]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-2
Stop being stupid and emitting the signal every time.
[~andy/gtk] / ChangeLog.pre-2-2
1 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
2
3         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
4         stupid and emitting the signal every time.
5
6         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
7
8 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
9
10        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
11
12        * contrib/gdk-pixbuf-xlib/Makefile.am: install
13        gdk-pixbuf-xlib-2.0.pc.
14
15 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
16
17         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
18         problem where menmonic wasn't removed properly when
19         setting a label when there already is a label.
20         Also, handle setting the tab label back to the same
21         value. (#61160, #61161)
22
23         * gtk/gtkentry.c (paste_received): Patch from 
24         Damian Ivereigh to replace selection if there is 
25         one. (#61121)
26
27 2001-09-25  Darin Adler  <darin@bentspoon.com>
28
29         * tests/.cvsignore: Ignore new test program.
30
31 2001-09-25  Havoc Pennington  <hp@redhat.com>
32
33         * gtk/gtktextview.c: fix for #50317
34         
35 2001-09-25  Havoc Pennington  <hp@redhat.com>
36
37         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
38         gtk_text_iter_can_insert
39         
40         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
41
42         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
43          (gtk_text_iter_can_insert): new function to fix #60282, should
44         also fix msw's "can paste into empty buffer" bug.
45
46         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
47         "event object,"  #59091
48
49         * gtk/gtktextbtree.c: indentation fixes
50
51         * gtk/gtktextiter.c (find_by_log_attrs): fixes
52
53 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
54
55         * configure.in: Version 1.3.9, interface age 0, binary age 0.
56
57         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
58
59         * NEWS: Updates.
60
61 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
62
63         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
64         function for drawing cursors between gtkentry/gtklabel/gtktextview.
65         Should this be public? It has a bit of an odd interface, but
66         custom editing widgets probably should be using it.
67         Function will draw with wider width for taller cursors, and
68         draws a little indicator arrow to indicate directoin for split 
69         cursors.
70
71         * gtk/gtktextview.c: Add a "cursor_color" property.
72
73         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
74         gtk_text_layout_draw().
75
76         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
77         _gtk_draw_insertion_cursor().
78
79 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
80
81         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
82         the behavior where you could turn family_set (etc) back on
83         and get back the values you had before.
84
85         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
86         g_string_ascii_up() rather than looping through the
87         string ourself.
88
89 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
90
91         * gtk/gtktreeviewcolumn.c
92         (gtk_tree_view_column_set_cell_renderer): Removed
93         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
94
95         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
96         Patch from Detlef Reichl
97
98 2001-09-25  Havoc Pennington  <hp@redhat.com>
99
100         * tests/testtextbuffer.c (line_separator_tests): Add tests for
101         line separators, addresses bug #57428
102
103 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
104
105         * gtk/gtkentry.c: Make a GtkCellEditable
106         (get_widget_window_size): Change to let it honor size_allocate
107         when a CellEditable.
108
109         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
110         editable changes.
111         (gtk_tree_view_set_cursor): Now you can set the cursor
112         horizontally, as well as start editing.
113
114         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
115         code to look more like the other check buttons.
116
117         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
118         Change the way we calculate cell size.
119
120         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
121
122         * demos/gtk-demo/sizegroup.c: Add mnemonics.
123
124         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
125         Fix logic.
126
127         * gtk/gtkcellrenderertext.c: Change to be editable.
128
129         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
130
131         * test/testtreesort.c: Fix misspelling
132
133         * test/testreecolumns.c: Add mnemonics.
134
135         * test/testreeedit.c: New test program.
136
137 2001-09-25  Havoc Pennington  <hp@pobox.com>
138
139         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
140         etc. docs about how these are not going to do what you want for 
141         the X/win32 ports. Futile attempt to avoid a FAQ...
142
143 2001-09-24  James Henstridge  <james@daa.com.au>
144
145         * gtk/gtkmarshal.list (VOID): add marshal function types.
146
147         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
148         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
149         GTK_TYPE_POINTER.
150         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
151         with no-op copy/free functions.
152
153         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
154         GtkCTreeNode get_type function.
155
156 2001-09-24  Havoc Pennington  <hp@redhat.com>
157
158         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
159         gtktextlayout.c:
160         Get rid of the newline-that-could-not-be-deleted; buffers may 
161         now be zero-length. Much easier to fix than expected, once 
162         I figured out the right way to do it. However, there are 
163         various subtle bugs introduced by this that will have to get 
164         sorted out. Please use bugzilla.
165
166 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
167
168         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
169         response back from the window manager if our size hasn't changed 
170         since we won't get a response back from the window manager;
171         there was code in there to do this, but it was in the wrong
172         place so if the hints change and the size didn't we'd expect
173         a response.
174
175         Also, optimize the position-only-changed case by running
176         the resize queue immediately, and clean up some comments
177         for the changes.
178
179 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
180
181         * gtk/gtknotebook.h: Add a compat macro that got lost.
182
183         * gtk/gtktreestore.c: Doc fixes.
184
185         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
186         leak for windows that receive events after being destroyed.
187         (#60863, Joshua N. Pritikin)
188
189         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
190         rather than gtk_container_queue_resize().
191
192         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
193         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
194         gtk_container_child_composite_name. (#60217.)
195
196 2001-09-22  Hans Breuer  <hans@breuer.org>
197
198         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
199
200 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
201
202         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
203         weight value should be an int
204
205 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
206
207         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
208         to gtk_menu_scroll_item_visible(). Only call
209         gtk_menu_scroll_item_visible() if the menu widget has been
210         realized. Fixes bug #55310.
211
212 2001-09-21  Havoc Pennington  <hp@redhat.com>
213
214         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
215         key press to IM context if cursor isn't in an editable location;
216         bug #58425, patch from Hidetoshi Tajima
217
218 2001-09-21  Havoc Pennington  <hp@redhat.com>
219
220         Bug #60862
221         
222         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
223         (_gtk_text_btree_unref): fix up mark memory management
224
225         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
226
227 2001-09-20  Havoc Pennington  <hp@redhat.com>
228
229         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
230         try to handle alignment here, because it's done by PangoLayout
231         after we set the layout width. Fix from Dov.
232
233 2001-09-21  Hans Breuer  <hans@breuer.org>
234
235         * gdk/gdk.def :
236         * gtk/gtk.def : updated externals
237
238         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
239         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
240         Also handle that Win32 pathes cann't be hard-coded      
241
242         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
243         module, themes etc directory calculations
244
245         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
246         >16 bit right. The size limit within Win9x appears _not_ to be 32767
247         but slightly smaller ...
248
249         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
250         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
251
252         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
253
254         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
255         handling. I'm not sure if it is better now, but at least not worse
256
257         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
258
259         * gdk/win32/gdkwin32.h : reflect recent API restrictions
260
261 2001-09-21  Matt Wilson  <msw@redhat.com>
262
263         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
264         radio_menu_item->group to NULL after removing it from the list, as
265         it is no longer in the group. (#60869)
266
267         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
268
269 2001-09-20  Havoc Pennington  <hp@pobox.com>
270
271         * configure.in (PANGO_REQUIRED_VERSION)
272         (ATK_REQUIRED_VERSION): add variables and checks for specific 
273         versions of dependencies. Previously we didn't verify the 
274         Pango or ATk versions.
275
276 2001-09-09  Havoc Pennington  <hp@pobox.com>
277
278         * gtk/gtktextiter.c: fool with indentation
279         (gtk_text_iter_in_range): add g_return_if_fail
280
281 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
282
283         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
284         ref count on new tag to be 1.  Update doc.  (#60836)
285
286 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
287
288         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
289         call to gdk_image_new_bitmap(). (#59094, reported by
290         by Sven Neumann)
291
292 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
293
294         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
295         day, as well as the current month and year.
296         (#59047, reported by Vitaly Tishkov)
297
298 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
299
300         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
301         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
302         
303 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
304
305         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
306
307         (build_option_menu): add func argument, connect ::changed
308         signal to option menu instead of connecting the ::activate
309         signal to the menu items,
310
311         (toplevel): get rid of RADIOMENUTOGGLED macro,
312
313         (list_toggle_sel_mode), (clist_toggle_sel_mode),
314         (ctree_toggle_line_style), (ctree_toggle_expander_style),
315         (ctree_toggle_justify), (ctree_toggle_sel_mode),
316         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
317         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
318
319         (notebook_type_changed): merged standard_notebook(),
320         notabs_notebook(), scrollable_notebook() and borderless_notebook()
321         into notebook_type_changed()
322
323         (create_list), (create_ctree), (create_notebook),
324         (create_progress_bar): changed OptionMenuItem arrays into
325         gchar * arrays. Removed "Extended" item where used.
326
327         Fixes bug #59885
328
329 2001-09-20  Sven Neumann  <sven@gimp.org>
330
331         * configure.in
332         * gdk/Makefile.am
333         * gtk/Makefile.am
334         * gtk/gtkselection.c
335         * gtk/gtktreeview.c
336         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
337
338 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
339
340         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
341         a missing pango_layout_iter_free ().
342
343 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
344
345         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
346         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
347
348         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
349         the function definition so we don't accidentally rely on
350         the compat #define from gtk_radio_menu_item_group.
351         (#60782, Jeff Franks)
352
353 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
354
355         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
356         incorrect values for top, right and bottom due to cut-and-paste
357         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
358
359 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
360
361         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
362         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
363         window, not just on the client leader. (#58463)
364
365 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
366
367         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
368
369         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
370         non-public _gtk_menu_item_set_placement.
371
372         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
373
374 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
375
376         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
377           gdk/linux-fb/gdkcolor-fb.c:
378         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
379         (#59723)
380
381 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
382
383         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
384         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
385         #59723)
386
387 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
388
389         Patch from Frank Belew #59037 for Solaris compilation.
390
391         * gtk/maketypes.awk: Change syntax slightly for a call
392         to sub(), apparently making awk on Solaris happier.
393
394         * gtk/gtktreeview.c: Remove C++ comments.
395
396 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
397
398         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
399         to handle '99% of the time. (#60473, reported by Christian Rose)
400
401         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
402         which no longer exists. (#60379, reported by Vitaly Tishkov)
403
404 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
405
406         * Released 1.3.8.
407
408         * gdk/Makefile.am: kill EXTRA_DIST clearing.
409         
410 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
411
412         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
413         as its broken in automake 1.4, add explicit object rule to
414         generate this.
415         
416         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
417         get rid of uneccessary stamps, group stuff more logically, and build
418         sources due to object rules. fix srcdir!=builddir.
419
420 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
421
422         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
423         incorrect parameter to compute_double_length
424         (#58680, patch from Matthias Clasen)
425
426         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
427
428         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
429
430         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
431         for GDK_RELEASE_MASK to avoid warnings with Forte.
432
433         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
434         break; statements.
435
436 2001-09-18  Alex Larsson  <alexl@redhat.com>
437
438         * gtk/gtkcheckbutton.c:
439         * gtk/gtkradiobutton.c:
440         Don't draw with GTK_STATE_ACTIVE.
441
442         * gtk/gtkclist.c:
443         * gtk/gtkctree.c:
444         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
445
446         * gtk/gtktextdisplay.c:
447         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
448         unfocused with base_gc [GTK_STATE_ACTIVE].
449         
450         * gtk/gtkentry.c:
451         Add select all menu-item.
452         Default cursor color is red.
453         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
454         unfocused with base_gc [GTK_STATE_ACTIVE].
455
456         * gtk/gtklabel.[ch]:
457         Add keynav + menu to selectable lables.
458         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
459         unfocused with base_gc [GTK_STATE_ACTIVE].
460
461         * gtk/gtkfilesel.c:
462         Add drag and drop support.
463
464         * gtk/gtkstyle.c:
465         (This was checked in earlier)
466         New default values for text/base SELECTED and ACTIVE
467         
468 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
469
470         * configure.in: up version to 1.3.8, interface age 0,
471         binary age 0, depend on glib 1.3.8.
472
473         * NEWS: 1.3.8 updates.
474
475 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
476
477         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
478         the editing code
479
480         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
481         reason to call it beyond emiting the two signals.
482
483         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
484         to GtkEntry.
485
486 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
487
488         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
489           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
490         PangoFontDescription.
491
492         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
493         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
494         structure.
495   
496         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
497
498         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
499         direct access to style->font. Deprecate gtk_style_ref/unref.
500   
501         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
502         Remove gtk_style_ref/unref with g_object_ref/unref.
503   
504         * gtk/gtkcalendar.c: Remove leftover macros accessing
505         style->font.
506   
507         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
508         variable.
509   
510         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
511         style->font.
512
513 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
514
515         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
516         "can_activate" properties in favor of
517         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
518         and GTK_CELL_RENDERER_MODE_EDITABLE
519
520 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
521
522         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
523         editable widgets.  This function is private, and should only be
524         used by GtkTreeView.
525
526 2001-09-18  Matt Wilson  <msw@redhat.com>
527
528         * docs/Makefile.am (EXTRA_DIST): don't use += before =
529
530         * docs/faq/Makefile.am (EXTRA_DIST): likewise
531
532         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
533         
534         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
535         (EXTRA_HEADERS): likewise
536
537         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
538         (EXTRA_HEADERS): likewise
539         (EXTRA_DIST): likewise
540         (CLEANFILES): likewise
541
542         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
543
544         * tests/Makefile.am (EXTRA_DIST): likewise
545         
546         * Makefile.am (install-data-local): changed to use
547         install-data-hook, which runs after install-pkgconfigDATA, so that
548         the pkgconfigdir will have been created and populated first.
549
550 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
551
552         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
553         be the last big GtkTreeView API change.
554
555         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
556         replace with "activate" and "start_editing".  Also, added a
557         "can_activate" and "can_edit" property.
558
559         * gtk/gtktreeviewcolumn.c: modify to use above.
560
561 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
562
563         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
564
565 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
566
567         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
568         icon instead of one with ugly white background.
569
570 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
571
572         * demos/gtk-demo/stock_browser.c (id_to_macro): make
573         the uppercasing work. (#59550)
574
575 2001-09-14  Jakub Steiner <jimmac@ximian.com>
576
577         * gtk/stock-icons/dialog_error.png:
578         * gtk/stock-icons/dialog_question.png: more road signs
579
580 2001-09-13  Jakub Steiner <jimmac@ximian.com>
581
582         * gtk/stock-icons/dialog_question.png:
583         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
584           like a road sign.
585
586 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
587
588         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
589         signals to make them more clear.  Also, change ::range_changed to
590         ::row_changed.
591         * gtk/gtktreemodel.c: Adjust to interface change
592         * gtk/gtktreemodel.h: ditto
593         * gtk/gtktreemodelsort.c: ditto
594         * gtk/gtktreestore.c: ditto
595         * gtk/gtkliststore.c: ditto
596         * gtk/gtktreeview.c: ditto
597         * tests/testtreecolumns.c: ditto
598         * gtk/gtkmarshal.list: Actually remove a marshaller!
599
600 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
601
602         * gtk/gtktextview.c
603         Add support for Ctrl+Up/Down arrow to move cursor to beginning
604         of previous/next paragraph. If within a paragraph cursor moves to
605         beginning of that paragraph.
606
607 2001-09-12  Jakub Steiner <jimmac@ximian.com>
608
609         * gtk/stock-icons/dialog_question.png: replacing the shaky
610           question mark with a sans-serif one.
611         * gtk/stock-icons/stock_top.png, stock_bottom.png,
612      stock_first.png, stock_last.png: using the new style arrows
613         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
614      colors.
615         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
616      color.
617         * gtk/stock-icons/stock_zoom*: anti-aliased
618         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
619      '-' with a '_', removed the wrong files
620
621 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
622  
623         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
624  
625         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
626         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
627         than in gtk-2.0/major.minor.micro/<type>/. This
628         works better for a search path for modules.
629  
630         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
631         gtk_binary_version variable holding major.minor.(micro-binary_age).
632  
633         * modules/input/Makefile.am (moduledir): Fix installation
634         directory to match change in lookup location.
635  
636         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
637         suffixes. Needs to be handled in g_module_build_path().
638
639         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
640         appropriate.
641  
642 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
643
644         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
645         causing RC properties not to work.
646
647 2001-09-11  Jakub Steiner <jimmac@ximian.com>
648
649         * gtk/stock-icons/dialog-error.png: less drastic
650         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
651           "STOP" is international enough.
652         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
653         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
654
655 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
656
657         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
658         (add|remove)_selection_clipboard symmetric. (bug #59836)
659
660         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
661         Avoid SEGV for empty tree. (bug #60243)
662
663 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
664
665         * tests/testgtk.c (create_idle_test): slight fix for
666         g_object_set() not usable for nesting anymore.
667
668         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
669         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
670         properties, supply ::shadow_type properties instead as most
671         other widgets do.
672
673 2001-09-10  Alex Larsson  <alexl@redhat.com>
674
675         * demos/gtk-demo/stock_browser.c:
676         * gdk/gdkcolor.c:
677         * gdk/gdkfont.c:
678         * gdk/gdkcursor.c:
679         * gdk/gdkevents.c:
680         * gdk/gdkrectangle.c:
681         * gtk/gtktypeutils.c:
682         Update to use the new g_boxed_type_register_static API.
683
684 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
685
686         * gtk/gtktreestore.c:
687         Fix looping in gtk_tree_store_init() waiting for zero random int.
688
689 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
690
691         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
692         behaviour which havoc broke. they have to default to 1.0 for
693         expand behaviour.
694
695         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
696
697 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
698
699         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
700         Amend previous change to avoid runtime error in g_param_spec_ref()
701
702 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
703
704         * gtk/gtkrc.c (insert_rc_property): Fix blank line
705         in the wrong place.
706
707 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
708
709         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
710         do a lookup immediately after creating style->property_cache,
711         since bsearch crashes on zero length for Solaris.
712         (Found by Padraig O'Briain.)
713
714 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
715
716         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
717         Really return NULL if not set.
718         (gtk_widget_init): Remove unused varaible.
719         
720 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
721
722         * configure.in:
723         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
724         in cvs.
725
726 2001-09-08  Havoc Pennington  <hp@pobox.com>
727
728         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
729         people might want to use
730
731 2001-09-08  Havoc Pennington  <hp@pobox.com>
732
733         * gtk/gtkalignment.c (gtk_alignment_class_init): default
734         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
735
736         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
737
738         * gtk/gtktextiter.c: fix docs
739         (gtk_text_iter_spew): get rid of this
740
741         * gtk/gtklayout.c: docs
742
743         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
744         to center image and label together, instead of having image on
745         left and label centered, patch/suggestion from Jacob
746
747         * gtk/gtkdialog.c: docs
748
749 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
750
751         * gtk/gtkliststore.c: Write documentation
752         * gtk/gtktreestore.c: Write documentation
753
754 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
755
756         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
757         with GArray and bsearch(), to remove dependency on a still
758         evolving interface that we want to keep private to glib/gobject. 
759
760 2001-09-08  Havoc Pennington  <hp@pobox.com>
761
762         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
763         docs fixes
764
765         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
766
767         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
768
769         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
770
771         * gtk/gtkscrolledwindow.h: docs fixes
772
773         * gtk/gtkimage.c (gtk_image_new): docs fixes
774
775 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
776
777         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
778         false alarm  constness warning with a cast.
779
780         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
781         for the inside-gdk case.
782
783 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
784
785         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
786         remove g_print.
787
788         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
789         change models, #59899
790
791 2001-09-07  Havoc Pennington  <hp@pobox.com>
792
793         * gtk/gtkmain.c: move some docs inline
794
795 2001-09-07  Havoc Pennington  <hp@pobox.com>
796
797         * gtk/gtk.h: tsk tsk, jrb broke the build
798
799 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
800
801         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
802         Removed 'fill' attribute.  It was silly b/c that was a property of
803         the cell renderer, anyway.
804         (gtk_tree_view_column_render): Actually render the packed
805         renderers.
806         * doc/tree-column-sizing.txt: initial devel documentation.
807         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
808         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
809
810         * tests/testtreefocus.c: fix up to reflect above changes.
811         * tests/testtreeview.c: ditto
812         * demos/gtk-demo/stock_browser.c: ditto
813
814 2001-09-07  Alex Larsson  <alexl@redhat.com>
815
816         * gdk/linux-fb/gdkcolor-fb.c:
817         Removed unused function.
818         
819         * gdk/linux-fb/gdkdrawable-fb2.c
820         * gdk/linux-fb/gdkfont-fb.c:
821         Use PangoLanguage functions.
822
823         * gdk/linux-fb/gdkinput.c:
824         * gdk/linux-fb/gdkselection-fb.c:
825         Fix const warnings.
826         
827         * gdk/linux-fb/gdkwindow-fb.c:
828         Fix warning. Implement gdk_window_set_icon_list() and
829         gdk_window_get_frame_extents(). (No icon support yet though.)
830
831         * gtk/gtkwindow.c (gtk_window_get_position):
832         If window->frame is set get the extents of it instead.
833         
834 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
835
836         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
837         Make the default default colormap the GdkRGB colormap,
838         not the system colormap.
839
840         * gtk/gtkinvisible.c (gtk_invisible_init) 
841           gtk/gtkwindow.c (gtk_window_init): Set the current
842         colormap, as returned by _gtk_widget_peek_colormap()
843         on the widget.
844
845         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
846         to GTK+. Make it return %NULL instead of the default
847         colormap if no colormap has explicitely been pushed.
848
849         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
850         colormaps on ancestral widgets before defaulting the
851         the system default colormap.
852
853         * docs/Changes-2.0.txt: explain colormap changes.
854
855 2001-09-07  Havoc Pennington  <hp@redhat.com>
856
857         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
858         #57424
859
860 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
861
862         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
863         make gdk_set_use_xshm a noop. Remove --no-xshm command line
864         option. If we aren't autodetecting properly, we need
865         to fix the problem, or at least make it an environment
866         variable setting, to avoid problems with propagating
867         to embedded children, plugins, etc.
868
869         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
870
871         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
872         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
873         New function to render a pixmap and mask for a particular colormap.
874
875         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
876         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
877         of internal implementation of the same.
878
879 2001-09-07  Havoc Pennington  <hp@redhat.com>
880
881         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
882         debug code that seems to have caused a breakpoint in valid cases
883         
884         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
885         pointer on the first view when adding the second view, fixes
886         crash when closing gtk-demo text test with active selection
887
888         * gtk/gtktextbuffer.c
889         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
890         clipboards in the list of clipboards - probably fixes #59836
891
892 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
893
894       Make gdkx.h the only installed header from gdk/x11.
895       All structures in gdk/x11 are opaque.
896
897         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
898         Don't install gdk{drawable,pixmap,window}-x11.h.
899
900         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
901         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
902         GdkVisualClass into C files.
903
904         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
905
906         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
907         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
908         Add public functions to replace previously exported direct
909         structure access.
910         gdk_x11_colormap_get_{xdisplay,xcolormap} 
911         gdk_x11_cursor_get_{xdisplay,xcursor},
912         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
913         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
914         gdk_x11_gc_get_{xdisplay,ximage}
915         
916         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
917         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
918
919       Fix a number of variables and functions that were exported
920       "accidentally" from GDK.
921
922         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
923         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
924         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
925         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
926         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
927         gdk_event_queue_find_first, gdk_event_queue_remove_link,
928         gdk_event_queue_append, gdk_event_button_generate,
929         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
930
931         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
932            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
933         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
934         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
935         gdk_use_xshm, gdk_input_ignore_core.
936
937         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
938         #defines to namespace functions into the private _gdk_ 
939         namespace.
940
941         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
942         to replace gdk_parent_root exported variable. Adjust and
943         deprecate GDK_ROOT_PARENT().
944
945         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
946         GDK_ROOT_PARENT usage, remove includes of port-specific
947         headers.
948
949         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
950         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
951         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
952
953         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
954         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
955         gdk_wm_delete_window functions, gdk_wm_take_focus, 
956         use gdk_atom_intern() instead.
957
958         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
959           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
960           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
961           gtk/gtkselection.c 
962         Unexport gdk_selection_property, just use 
963         gdk_atom_intern ("GDK_SELECTION").
964
965         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
966         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
967         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
968         GdkVisualprivate, gdk_x11_gc_flush.
969
970       Make a number of public exports of variables into functions
971       to increase encapsulation.
972
973         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
974         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
975         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
976
977         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
978         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
979         gdk_error_warnings.
980
981         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
982           docs/Changes-2.0.txt: 
983         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
984         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
985         Add gdk_x11_get_default_xdisplay().
986
987         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
988         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
989         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
990         Don't export gdk_progclass, move --class command line
991         option and handling to common portion of GDK.
992
993       Miscellaneous fixes:
994
995         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
996         g_return_val_if_fail that should have been g_return_if_fail.
997
998         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
999         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
1000
1001         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
1002         X11 dependency.
1003
1004         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
1005         Remove unused gdk_key_repeat_disable/restore.
1006
1007         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
1008         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
1009         Remove unused gdk_null_window_warnings variable.
1010
1011         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
1012         it can be retrieved from the repository; it is too far
1013         from functional to be worth having people check out;
1014         it would be easier to start from scratch, I suspect.
1015
1016         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
1017
1018         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
1019         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
1020         Fix some accidentally global variables and unused global variables.
1021
1022         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
1023         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
1024         Fix some accidentally global variables and unused global variables.
1025
1026       Add some space for future expansion to multihead.
1027
1028         * gdk/gdkdrawable.h: Add four reserved function pointers
1029         for future expansion of GdkDrawableClass.
1030
1031         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
1032         where we can put a GdkScreen * later.
1033
1034 2001-09-07  Havoc Pennington  <hp@redhat.com>
1035
1036         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
1037         adjustments after validating destination yrange; fixes #53918
1038         (This may cause other issues, but I hope it won't)
1039         
1040 2001-09-05  Havoc Pennington  <hp@redhat.com>
1041
1042         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
1043         line into start line, update the character counts in parent nodes; 
1044         caused a bug when end and start line had different parent nodes.
1045
1046 2001-08-30  Havoc Pennington  <hp@redhat.com>
1047         
1048         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
1049         assertion that tag is in a table
1050
1051 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
1052
1053         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
1054         g_strcasecmp on NULL strings. (#59058)
1055
1056 2001-09-06  Alex Larsson  <alexl@redhat.com>
1057
1058         * gtk/gtkbin.c:
1059         * gtk/gtkfontsel.c:
1060         * gtk/gtkspinbutton.c:
1061         * gtk/gtktipsquery.c:
1062         Use GtkType/GType instead of uint.
1063
1064 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
1065
1066         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
1067         sort column.
1068
1069         * gtk/gtktreestore.c (gtk_list_store_init): ditto
1070
1071         * gtk/gtktreesortable.c: add docs.
1072
1073 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
1074
1075         * Version 1.3.7
1076
1077         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
1078         docs for gtk-config
1079
1080         * modules/input/Makefile.am (install-data-local): Don't
1081         run gtk-query-immodules if DESTDIR is set.
1082
1083         * NEWS: Various additions.
1084
1085 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
1086
1087         * NEWS: updates for 1.3.7 release.
1088
1089 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
1090
1091         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
1092         handle default sort feature
1093
1094         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
1095         new function to handle default sort.
1096         (gtk_tree_sortable_has_default_sort_func): check if default sort
1097         is set.
1098
1099         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
1100         handle default sort feature
1101
1102 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
1103
1104         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
1105         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
1106         #59731
1107
1108 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
1109
1110         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
1111         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
1112         time, #59727
1113
1114         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
1115         correctly.
1116
1117 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
1118
1119         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
1120         so that we don't eternally update the keymap after we
1121         get a change notification.
1122
1123         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
1124         incorrect cast.
1125
1126 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
1127
1128         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
1129         it working. It mostly works now, although there're still a few issues
1130         to be worked out.
1131
1132         * tests/testtreesort.c (main): changes to have a better test
1133         application for the GtkTreeModelSort.
1134
1135 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
1136
1137         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
1138         fix for bug #59222.
1139
1140         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
1141         gpointer search_data argument to function definition and
1142         prototype, to match GtkTreeViewSearchEqualFunc typedef.
1143
1144 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
1145
1146         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
1147         per jrb's request.
1148
1149 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
1150
1151         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
1152
1153         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
1154
1155 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
1156
1157         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
1158         Instead of always mirroring the selection to a single PRIMARY
1159         selection, allow it to be mirrored to any number of clipboards.
1160
1161         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
1162         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
1163
1164         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
1165         GtkClipboard argument, and for paste_clipboard, the
1166         @override_location argument from @paste_primary.
1167
1168         * gtk/gtktextview.c: Adapt to above change.
1169         
1170 2001-08-30  Havoc Pennington  <hp@redhat.com>
1171
1172         * gtk/gtktextview.c (invalidated_handler): put validate idle at
1173         resize - 2 just for flexibility
1174
1175 2001-08-30  Havoc Pennington  <hp@redhat.com>
1176
1177         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
1178         object from the empty-child-anchor case by drawing a little box.
1179         
1180         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
1181         if the child anchor has no anchored widgets - fixes #59328.
1182
1183         Also, remove bizarre deletion of preedit string that seems to have
1184         gotten in here somehow.
1185
1186 2001-08-30  Havoc Pennington  <hp@redhat.com>
1187
1188         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
1189         to #58420 from Hidetoshi Tajima and Matthias Clasen
1190
1191 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
1192
1193         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
1194         change color when the GtkTreeView loses focus.
1195
1196         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
1197         ditto.
1198         
1199         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
1200
1201 2001-08-28  Havoc Pennington  <hp@pobox.com>
1202
1203         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
1204
1205 2001-08-28  Havoc Pennington  <hp@pobox.com>
1206
1207         * demos/gtk-demo/main.c (setup_default_icon): add default icon
1208
1209         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
1210         warning fix
1211         (gtk_radio_button_new_with_label): warning fix
1212
1213         * gtk/gtkdnd.c: used some random GtkImage private structs, 
1214         update to reflect GtkImage changes
1215
1216         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
1217         whether the hint is supported, just always set the icon. A task
1218         list might want to use it even if the WM doesn't, and the WM may
1219         change over time. Also, XDeleteProperty() if list == NULL.
1220
1221         * gtk/gtkwindow.c (gtk_window_set_icon_list)
1222         (gtk_window_get_icon_list)
1223         (gtk_window_set_icon)
1224         (gtk_window_get_icon)
1225         (gtk_window_set_default_icon_list)
1226         (gtk_window_get_default_icon_list):
1227         new functions
1228
1229         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
1230
1231         * gtk/gtkimage.c: Implement property support, bug #59408
1232
1233         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
1234         on reparent-without-removing-first a bit more helpful.
1235         Let's just destroy this FAQ.
1236
1237 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
1238
1239         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
1240         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
1241
1242 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
1243
1244         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
1245         of use_text_format to the end of the function. (#56447)
1246
1247 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
1248
1249         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
1250         only in response to an area_prepared signal.
1251
1252 2001-08-28  Alex Larsson  <alexl@redhat.com>
1253
1254         * gtk/gtkwidget.c (gtk_widget_class_init):
1255         Make unrealize GTK_RUN_LAST.
1256
1257 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
1258
1259         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
1260         with_label and with_mnemonic should create radio buttons, not
1261         check buttons
1262
1263 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
1264
1265         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
1266         * tests/treestoretest.c (make_window): ditto
1267         * demos/gtk-demo/main.c (create_tree): ditto
1268         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
1269
1270 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
1271
1272         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
1273         GTK selection types rather than GtkTreeSelectionMode.
1274
1275         * docs/Changes-2.0: Add comment about selection change.
1276
1277 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
1278
1279         * gtk/gtkenums.h (GtkSelectionMode): deprecate
1280         GTK_SELECTION_EXTENDED.
1281
1282         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
1283         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
1284
1285         * gtk/gtkctree.c: ditto
1286
1287         * gtk/gtklist.c: ditto
1288
1289         * gtk/gtktree.c: ditto
1290
1291 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
1292
1293         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
1294         of typos in compat macros. (#59624, Skip Montaro)
1295
1296 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
1297
1298         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
1299         macro.
1300
1301          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
1302  
1303         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
1304         interface to be a standard setter from gtk_menu_item_right_justify.
1305         (gtk_menu_item_get_right_justified): a getter to go with the setter
1306
1307         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
1308         gtk_menu_item_right_justify.
1309
1310         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
1311         gtk_menu_item_set_right_justified.
1312  
1313 2001-08-27  Jens Finke <jens@gnome.org>
1314
1315         * gtk+.spec.in: Updated to match gpp requirements, reworked the
1316         files section to make it work with 1.3.x releases.
1317
1318 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
1319
1320         * gtk/gtkbutton.[ch]:
1321         Add properties for labels, mnemonics and stock items.
1322         Added C accessor functions for the properties.
1323         Removed deprecated button->child.
1324
1325         * gtk/gtkradiobutton.c:
1326         * gtk/gtktogglebutton.c:
1327         Update to use the functions in GtkButton.
1328
1329         * gtk/gtkcheckbutton.c:
1330         Update to use the functions in GtkButton.
1331         Changed size allocation of child. Now only gets as much
1332         space as it requests.
1333
1334         * gtk/gtkclist.c:
1335         Don't use GtkButton->child
1336
1337         * gtk/gtklabel.c:
1338         Fixed typo in docs
1339         
1340 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
1341
1342         * tests/testgtk.c:
1343         * tests/Makefile.am:
1344         Ressurect the properties test.
1345         I don't care if it is inferior, I just want to test my property code.
1346
1347 2001-08-25  Chema Celorio  <chema@celorio.com>
1348
1349         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
1350         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
1351         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
1352
1353 2001-08-24  Havoc Pennington  <hp@pobox.com>
1354
1355         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
1356         these are already in gtkmenu.h, and the copies
1357         here were broken.
1358
1359         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
1360
1361         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
1362         special-case bitmaps to allow no colormap
1363         (bitmap1): implement no-colormap bitmap-getting
1364         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
1365         alpha
1366         (rgb8): indentation
1367         (rgb1a, rgb1): change the way we read the data out of the image, 
1368         old way didn't seem to work quite right.
1369
1370         I'm pretty sure a lot of the rgbconvert code is still broken.
1371         
1372         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
1373         above position constraint (I really intended to do this before,
1374         don't know what's up with that)
1375         (gtk_XParseGeometry): shut up gcc
1376
1377         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
1378         and "0" should have been. remove the attempted 4-bytes-at-once
1379         optimization, it was totally broken.
1380
1381 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
1382
1383         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
1384         on push to buttons (based on patch from Soeren Sandmann, #54720)
1385
1386           - Add child_displacement_x/y style properties to control how far the
1387             child moves when the button is depressed.
1388
1389           - Add non-exported function _gtk_button_set_depressed to clean
1390             up the handling of the in/out shadow and separate it frmo
1391             widget->state.
1392
1393           - Lots of code cleanup and simplification of state handling
1394             for GtkButton/GtkToggleButton.
1395  
1396         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
1397         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
1398
1399 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
1400
1401         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
1402         and make gtk_image_new() take no arguments. The compiler will
1403         catch it, and it is vastly more useful than having
1404         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
1405
1406         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
1407         to add tearoff-title property (#51319, Lee Mallabone)
1408
1409 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
1410
1411         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
1412         gtk_menu_item_configure(). (#58925)
1413
1414 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
1415
1416         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
1417         "use_align" to give people the option to just make a cell visible.
1418
1419         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
1420         we were scrolling past the end of the tree.
1421
1422         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
1423         rename gtk_tree_view_column_pack_start_cell_renderer to
1424         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
1425
1426 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
1427
1428         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
1429         a stray g_object_ref() left over from gtk_object_ref/sink.
1430         (Pointed out by Josh Pritikin.)
1431
1432 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
1433
1434         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
1435         to gtk_container_get_children. Added deprecated compatibility
1436         macro. (Suggested by Vitaly Tishkov, #59051)
1437
1438         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
1439         calls.
1440
1441 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
1442
1443         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
1444         gtk_menu_bar_append/prepend/insert, forgot to do this
1445         when we deprecated gtk_menu_append/prepend/insert.
1446
1447         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
1448         compat macros.
1449
1450         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
1451         renamed by compat macro.
1452
1453         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
1454         gtk_font_selection_dialog_get_font(). (Suggested by
1455         Vitaly Tishkov, #59383)
1456
1457 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
1458
1459         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
1460         Rename from gtk_text_tag_table_size(). (#59366)
1461
1462 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
1463
1464         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
1465         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
1466         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
1467         (#59173).
1468
1469 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
1470
1471         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
1472         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
1473         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
1474
1475 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
1476
1477         [ Patch from Sebastian Wilhelmi, 52790 ]
1478
1479         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
1480
1481         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
1482         Move compatibility macros from g[dt]kcompat.h to within 
1483         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
1484
1485         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
1486
1487         * demos/Makefile.am demos/gtk-demo/Makefile.am 
1488           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
1489           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
1490
1491         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
1492                  testpixbuf.c}: Fix usages of deprecated functions.
1493
1494 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
1495
1496         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
1497         when changing models.
1498
1499 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
1500
1501         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
1502         We check the current event for modifiers rather than try to trap
1503         all presses.
1504
1505 2001-08-22  Anders Carlsson  <andersca@gnu.org>
1506
1507         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
1508         It's LIST_STORE, not LISTSTORE.
1509
1510 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
1511
1512         * gtk/gtk.h: Remove commented out gtkpacker reference.
1513
1514 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1515
1516         * configure.in (all_loaders): Add tga loader, 
1517         patch by Nicola Girardi. (#56067)
1518
1519 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
1520
1521         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
1522         a little.  More needs to be done tomorrow.
1523
1524 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
1525
1526         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
1527
1528 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
1529
1530         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
1531         reported by Kristian Rietveld <kristian@planet.nl> to handle row
1532         == NULL.
1533         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
1534         <kristian@planet.nl> to change destroy order.
1535
1536 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
1537
1538         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
1539         correct marshaller.
1540
1541 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
1542
1543         * gtk/gtkliststore.c: Fix up warnings, #58928.
1544
1545         * gtk/gtktreeselection.h: Change signal prototype, #58647
1546
1547         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
1548         #59221.
1549
1550         * gtk/gtkstyle.c: Actually prelight arrow, #50981
1551         
1552 2001-08-18  Hans Breuer  <hans@breuer.org>
1553
1554         * gdk/gdk.def : updated externals
1555
1556         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
1557         is required to get (at least) visible in entry fields. Some selections
1558         are really handled now - even on win32 - but copying via middle
1559         mouse button into a different app needs to wait ... 
1560
1561         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
1562         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
1563
1564         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
1565         handling. I'm not sure if it is better now, but at least not worse
1566
1567         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
1568         with SetWindowPos () which allows more fine-tuning backing-store wise
1569
1570         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
1571         Also changed move/resize to be more like the X version.
1572
1573         * gtk/gtk.def : updated externals
1574
1575 2001-08-19  Sven Neumann  <sven@gimp.org>
1576
1577         * gtk/gtktooltips.c
1578         * tests/testtreesort.c
1579         * tests/treestoretest.c: inserted some casts to get rid of compiler
1580         warnings.
1581
1582 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
1583
1584         * gtk/gtktreeviewcolumn.c
1585         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
1586
1587         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
1588         (_gtk_tree_view_find_node): If *node is NULL,
1589         *tree should be NULL too.
1590
1591         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
1592         column/renderers.
1593         * tests/testtreecolumns.c: ditto
1594         * tests/testtreefocus.c: ditto
1595         * tests/testtreesort.c: ditto
1596         * tests/testtreeview.c: ditto
1597         * tests/treestoretest.c: ditto
1598
1599 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
1600
1601         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
1602         signals; is_expander/is_expanded.
1603
1604         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
1605         pixbufs.
1606
1607         * gtk/gtktreeview.c: set above properties.
1608
1609 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
1610
1611         * gtk/gtkwidget.h: Really remove set_default_style().
1612
1613         * docs/Changes-2.0.txt: added a note about
1614         gtk_widget_push/pop/set_default_style.
1615
1616 2001-08-18  Havoc Pennington  <hp@pobox.com>
1617
1618         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
1619         hints_changed in addition to the other cases.
1620         (gtk_window_move_resize): include last position from configure
1621         notify in debug spew
1622
1623 2001-08-18  James Henstridge  <james@daa.com.au>
1624
1625         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
1626         second argument to the weak ref notify, cleaning up some uglyness.
1627         (gtk_accel_group_attach): remove and add the weak notifier when
1628         changing the accel groups slist.
1629         (gtk_accel_group_detach): same here.
1630
1631 2001-08-17  Darin Adler  <darin@bentspoon.com>
1632
1633         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
1634         missing parameters to utf8 functions to make it compile.
1635
1636 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
1637
1638         * gtk/gtktreeprivate.h:
1639         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
1640         (gtk_tree_view_init), (gtk_tree_view_set_property),
1641         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
1642         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
1643         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
1644         (gtk_tree_view_set_destroy_count_func),
1645         (gtk_tree_view_set_enable_search),
1646         (gtk_tree_view_get_enable_search),
1647         (gtk_tree_view_get_search_column),
1648         (gtk_tree_view_set_search_column),
1649         (gtk_tree_view_get_search_equal_func),
1650         (gtk_tree_view_set_search_equal_func),
1651         (gtk_tree_view_search_dialog_destroy),
1652         (gtk_tree_view_search_position_func),
1653         (gtk_tree_view_interactive_search),
1654         (gtk_tree_view_search_delete_event),
1655         (gtk_tree_view_search_button_press_event),
1656         (gtk_tree_view_search_key_press_event),
1657         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
1658         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
1659         * gtk/gtktreeview.h:
1660         Add heavily modified patch from Kristian Rietveld to handle
1661         interactive searching.
1662
1663 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
1664
1665         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
1666         string parameter.
1667
1668         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
1669         GtkMenuShell::selection_done, now that we have it, instead of 
1670         ::deactivate so we're not tearing the menu apart and notify
1671         the user prematurely.
1672
1673 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
1674
1675         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
1676         window, clear window->need_default_position to avoid infinite loops.
1677         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
1678
1679 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
1680
1681         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
1682         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
1683         (gtk_tree_view_set_property): don't cast possible NULL objects.
1684         (gtk_tree_view_destroy): reset the model to NULL.
1685
1686         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
1687         parent_class handler.
1688
1689 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1690
1691         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
1692
1693 2001-08-17  Anders Carlsson  <andersca@gnu.org>
1694
1695         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
1696         point numbers so that the result will be floating point.
1697
1698 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1699
1700         * tests/testgtk.c (create_handle_box): 
1701         (create_toolbar): Replace gtk_window_set_policy calls by
1702         gtk_window_set_resizable.
1703
1704 2001-08-16  Jakub Steiner <jimmac@ximian.com>
1705
1706         * gtk/stock-icons/dialog_info.png: new style bulb
1707         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
1708         * gtk/stock-icons/dialog_warning.png: need a hand?
1709         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
1710           the aa border gets chopped off ok
1711         * gtk/stock-icons/stock_colorselector.png: using the new hand
1712         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
1713           this one is for, but the old icon was butt ugly.
1714         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
1715         * gtk/stock-icons/stock*_insert_object.png: "
1716         * gtk/stock-icons/stock_index.png: using new hand icon
1717         * gtk/stock-icons/stock*_new.png: the document template being used 
1718           elsewhere too
1719         * gtk/stock-icons/stock*_print*.png: new print and print preview 
1720           icons (panel/menu)  
1721         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
1722           icons based on Tuomas' floppy image.
1723         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
1724         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
1725         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
1726         * gtk/stock-icons/stock*_undelete.png: "
1727         * gtk/stock-icons/stock_preferences.png: I have a version with a 
1728           document base if the sliders are no good.
1729         * gtk/stock-icons/stock_properties.png: properties 
1730         
1731
1732         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
1733           (tigert@ximian.com) clipboard icons
1734         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
1735         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
1736         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
1737           little bigger IMHO
1738
1739 2001-08-16  Sven Neumann  <sven@gimp.org>
1740
1741         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
1742
1743 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
1744
1745         * gtk/gtkcellrenderertext.c:
1746         Avoid warning when specifying NULL for "attributes" property
1747
1748 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1749
1750         * docs/debugging.txt: Add a warning about --enable-debug=no,
1751         some editorial changes.
1752
1753 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1754
1755         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
1756         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
1757         debugging info, remove unused debug flags. (#58330)
1758
1759 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
1760
1761         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
1762         (gtk_tree_selection_select_all): Remove strict checking for rows.
1763
1764 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1765         
1766         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
1767         Don't remove the tooltip window when the tip text changes. (#15891)
1768
1769 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
1770
1771         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
1772         $(srcdir).
1773
1774 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
1775
1776         * Makefile.am (EXTRA_DIST): Fix problem with trying to
1777         dist files from intl/, which is no longer there.
1778
1779 2001-08-11  Hans Breuer  <hans@breuer.org>
1780
1781         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
1782           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
1783           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
1784           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
1785           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
1786           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
1787
1788         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
1789           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
1790         GDK_TYPE_EVENT signals
1791
1792         * gtk/gtkalignment.c : removed 'direct allocation bug',
1793         which Tim discovered while reading the patch
1794
1795 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
1796
1797         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
1798         compat macros for push/pop/set_visual that were supposed
1799         to be added a long time ago, but got dropped. 
1800
1801 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
1802
1803         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
1804         property notifies.
1805
1806 2001-08-07  Havoc Pennington  <hp@pobox.com>
1807
1808         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
1809
1810         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
1811         some fixage is needed here, but nothing simple. Owen understands
1812         it. ;-)
1813
1814         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
1815         sizing and positioning.  Also, fix bug in compute_geometry_hints
1816         (width/height confusion for setting min size). 
1817         (gtk_window_move): new function
1818         (gtk_window_resize): new function
1819         (gtk_window_get_size): new function
1820         (gtk_window_get_position): new function
1821         (gtk_window_parse_geometry): new function
1822         
1823         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
1824         (gtk_widget_get_size_request): new function
1825         (gtk_widget_get_usize): delete, that was a short-lived function
1826         ;-)
1827         (gtk_widget_set_usize): deprecate
1828         (gtk_widget_set_uposition): deprecate, make it a trivial 
1829         gtk_window_move() wrapper
1830         (gtk_widget_class_init): remove x/y/width/height properties,
1831         add width_request height_request
1832         
1833         * demos/*: update to avoid deprecated functions
1834         
1835         * gtk/gtklayout.c: add x/y child properties
1836
1837         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
1838         uses of "gint16"
1839
1840         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
1841         sizing test
1842
1843         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
1844         configure events on toplevel windows are always in root window
1845         coordinates, following ICCCM spec that all synthetic events 
1846         are in root window coords already, while real events are 
1847         in parent window coords. Previously the code assumed that 
1848         coords of 0,0 were parent window coords, which was 
1849         really broken.
1850   
1851         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
1852         warning
1853  
1854         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
1855         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
1856         hints in gtk_window_parse_geometry()
1857  
1858         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
1859         new USER_POS USER_SIZE hints    
1860
1861 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1862
1863         * tests/prop-editor.c (properties_from_type): Use 
1864         g_object_class_list_properties to get the param specs 
1865         for a given type. (#58609)
1866
1867 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1868
1869         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
1870         free the text_aa parts. (#57549)
1871
1872 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1873
1874         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
1875         not the foreground color. (#57621)
1876
1877 2001-08-09  Alexander Larsson <alexl@redhat.com>
1878
1879         * gdk/win32/gdkfont-win32.c:
1880         Update to the new pango win32 api.
1881
1882 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
1883
1884         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
1885         COMPOUND_TEXT instead of TEXT
1886         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
1887         interpret the return value of g_string_to_compound_text()
1888         (#55152)
1889
1890 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1891
1892         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
1893         fail if iter is NULL. (#58347)
1894
1895 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1896
1897         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
1898         some off-by-one issues, fixing selection of line-ends. (#50323)
1899
1900 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1901
1902         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
1903         functions in order to make mouse operation work again in the
1904         color wheel. (#58604)
1905
1906 2001-08-07  James Henstridge  <james@daa.com.au>
1907
1908         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
1909         the accelerator when the accel object is changed.  Fixes bug
1910         #58628.
1911
1912 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
1913
1914         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
1915         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
1916         (gnome bugzilla #58202)
1917
1918 2001-08-06  Havoc Pennington  <hp@pobox.com>
1919  
1920         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
1921         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
1922         it was expecting a GdkWindow, not a GdkWindowImplX11.
1923  
1924         Also, we were getting the window rect in screen coords 
1925         and the screen rect in window coords then intersecting 
1926         them; instead, get window rect in window coords.
1927  
1928         Finally, there were codepaths that resulted in a stuck server grab
1929         (when the window was fully onscreen, or on gdk_image_new()
1930         failure); make the server ungrab thing a bit more
1931         robust/consistent.
1932
1933 2001-08-06  Sven Neumann  <sven@gimp.org>
1934
1935         * gdk/gdkpango.c (gdk_pango_context_destroy): 
1936         check if info->colormap != NULL before unref'ing it. It might have
1937         been set to NULL using gdk_pango_context_set_colormap().
1938
1939 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
1940
1941         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
1942         Fix conversion from float to int so that we don't get
1943         skew in the int => float => int roundtrip. 
1944         (#58120, reported by Vitaly Tishkov). Also fix problem
1945         where if no alpha was set, the returned alpha
1946         from (say) set_current_alpha() was returned as 1, not 65535.
1947
1948 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
1949
1950         * gtk/gtklist.c (gtk_list_clear_items): Fix
1951         problem with selecting a new focus child.
1952
1953         * gtk/gtklist.c (gtk_list_clear_items): Clear 
1954         list->undo/list_focus_child after unparenting
1955         child, since unparenting the child can result
1956         in list->last_focus_child being set. (#58024)
1957
1958         * Makefile.am (SUBDIRS): Add target specific pc
1959         files to DISTCLEANFILES.
1960
1961         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
1962         (58327, Matthias Clasen)
1963
1964 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
1965
1966         * tests/testgtk.c: Patch from Hans (with various modifications),
1967         to add the ability to use testgtk as a rough-and-ready
1968         benchmark. Try, 'testgtk --bench all:5' (if you want decent
1969         numbers, run without a window manager)
1970
1971 2001-08-04 Alexander Larsson <alexl@redhat.com>
1972
1973         * gdk/win32/gdkinput.c:
1974         Add #ifdef HAVE_WINTAB around wintab.h include.
1975
1976         * gtk/gtk.def:
1977         Removed marshals that have been moved to glib.
1978         Commented out plug and socket. They didn't compile for me 
1979         on win32.
1980
1981 2001-08-04  Hans Breuer  <hans@breuer.org>
1982
1983         * gtk/stocks-icons/makefile.msc : new file
1984         * gtk/makefile.msc.in : use it
1985
1986         * gtk/gtkstyle.c : not all platforms do provide M_PI and
1987         friends, but luckily there is G_PI
1988
1989         * gtk/gtk.def : updated
1990
1991         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
1992         windows WS_POPUP, but only those without a parent. This fixes the 
1993         mis-alignment between the selectable (temp, input only) window and 
1994         the window text of GtkLabel.
1995
1996         (gdk_window_show) : respect private->state when actually showing
1997         the window.
1998
1999         (gdk_window_set_transient_for) : Implementation from Wolfgang 
2000         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
2001         error handling. Should fix #50586.
2002
2003         * gdk/win32/gdkevents-win32.c : beautify log output
2004
2005 2001-08-04  Michael Natterer  <mitch@gimp.org>
2006
2007         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
2008         Need to show the image after adding it to the GtkImageMenuItem.
2009         This used to work without in testgtk because of the
2010         gtk_widget_show_all() at the end of the function.
2011         (Closes #54978).
2012
2013 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
2014
2015         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
2016         (gtk_notebook_set_child_property): fix finding of child's page,
2017         since we have to validly deal with labels and menus here as well.
2018         (gtk_notebook_get_child_property): fix warning.
2019         (gtk_notebook_class_init): property tab_pack is of type
2020         GTK_TYPE_PACK_TYPE (enum) not boolean.
2021         (gtk_notebook_find_child): don't always warn, we might be looking
2022         for a label or menu child.
2023         (gtk_notebook_map): fix mapping of panel.
2024
2025         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
2026         widget's mapped state, regardless of the value being set equals
2027         old settings, since things like REALIZED(parent) or MAPPED(parent)
2028         may have changed since the old value was set. make it an error to
2029         invoke this function on a toplevel widget.
2030
2031 2001-07-31  Darin Adler  <darin@bentspoon.com>
2032
2033         * gdk/gdkprivate.h:
2034         * gdk/x11/gdkx.h:
2035         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
2036
2037         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
2038         GTK_OBJECT.
2039
2040 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
2041
2042         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
2043         scoping error pointed out by matthiasc@poet.de.
2044
2045 2001-07-31  Sven Neumann  <sven@gimp.org>
2046
2047         * demos/gtk-demo/appwindow.c
2048         * demos/gtk-demo/item_factory.c
2049         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
2050
2051 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
2052
2053         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
2054         argument order for g_signal_has_handler_pending.
2055
2056 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
2057
2058         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
2059         instead of long deprecated g_scanner_stat_mode().
2060
2061 2001-07-29  Hans Breuer  <hans@breuer.org>
2062
2063         * gdk/makefile.msc : build in the backend dir after
2064         auto-generating files
2065
2066         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
2067         with code from win32-production-branch.
2068
2069         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
2070         before calling DestroyWindow, which indirectly calls 
2071         gdk_window_destroy_notify ()
2072
2073         (performance patch merged from win32-production-branch)
2074         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
2075         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
2076         R2_COPYPEN rop). It is claimed to be much faster.
2077
2078 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
2079
2080         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
2081         add an "attributes" property to the text renderer for ATK.
2082
2083 2001-07-26  Alex Larsson  <alexl@redhat.com>
2084
2085         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
2086         Initialize image->bits_per_pixel from the drawable, not from
2087         the root window.
2088
2089         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
2090         Fix cast. argument is an IMPL already.
2091
2092 2001-07-15  James Henstridge  <james@daa.com.au>
2093
2094         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
2095         (gtk_window_remove_accel_group): same here.
2096         (gtk_window_key_press_event): same here.
2097
2098         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
2099         (gtk_widget_remove_accelerator): same here.
2100         (gtk_widget_remove_accelerators): same here.
2101
2102         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
2103
2104         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
2105         instead of GtkObject.
2106
2107         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
2108         now takes GObjects.
2109
2110         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
2111         pass a GObject to gtk_accel_group_entries_from_object.
2112         (gtk_item_factory_create_item): s/accel_widget/accel_object/
2113
2114         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
2115
2116         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
2117
2118         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
2119         GObjects can have accelerators set now.  Add compatibility
2120         defines.
2121
2122         * gtk/gtkmarshal.list: add missing marshallers.
2123
2124         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
2125         accelerators on plain GObjects.  gtk_accel_group_object_destroy
2126         has been converted into a weak reference, and
2127         gtk_accel_group_delete_entries is now a destroy notify for that
2128         piece of data.
2129
2130 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
2131
2132         * gdk/gdkdraw.c: Added a check on the colormap depth to
2133         gdk_drawable_set_colormap()
2134         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
2135         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
2136         for pixmaps without visuals (more specifically, bitmaps)
2137         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
2138         doesn't set a colormap with the wrong depth
2139
2140
2141 2001-07-22  Anders Carlsson  <andersca@gnome.org>
2142
2143         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
2144         expander_height and expander_width properties with a single
2145         property, expander_size.
2146         (gtk_tree_view_init): Set the tab_offset to expander_size
2147         plus some padding.
2148         (gtk_tree_view_unrealize): Remove the expand/collapse
2149         timeout if it exists.
2150         (coords_are_over_arrow): Fix a small bug.
2151         (gtk_tree_view_motion_draw_column_motion_arrow): Use
2152         expander_size.
2153         (gtk_tree_view_draw_focus): Use "treeview" instead of
2154         "add-mode" as detail when drawing the focus.
2155         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
2156         instead of "add-mode" as detail when drawing the focus.
2157         (gtk_tree_view_deleted): If we have a node currently being
2158         expanded or collapsed, remove the timeout and set the node 
2159         to NULL.
2160         (gtk_tree_view_queue_draw_arrow): New function that just
2161         redraws the arrow of a node.
2162         (gtk_tree_view_draw_arrow): Use expander_size instead of
2163         expander_width/expander_height, also pass a different
2164         expander_style to gtk_paint_expander depending on the 
2165         state of the node being drawn.
2166         (expand_collapse_timeout): New function for expanding 
2167         or collapsing a node depending on the previous state.
2168         (gtk_tree_view_real_expand_row): Add timeout and set 
2169         correct state for node being expanded.
2170         (gtk_tree_view_real_collapse_row): Add timeout and set
2171         correct state for node being collapsed.
2172
2173         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
2174         information about the node currently being expanded or
2175         collapsed, and also a timeout id.
2176
2177         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
2178         with expander_style for draw_expander.
2179
2180         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
2181         expander_style.
2182         (create_expander_affine): New function for creating an 
2183         expander affine.
2184         (apply_affine_on_point): New function for applying an 
2185         affine to a point.
2186         (gtk_default_draw_expander): Modified to take expander_style
2187         instead of is_open, and to draw the rectangle rotated differently
2188         depending on the expander style.
2189         (gtk_paint_expander): Replace is_open with expander_style.
2190
2191         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
2192
2193         * gtk/gtkenums.h: Add expander style enum.
2194
2195 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
2196
2197         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
2198         value from gtk_tree_model_get_iter, the model might be empty.
2199
2200 2001-07-20  Hans Breuer  <hans@breuer.org>
2201
2202         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
2203         gdk/gdkinput.c like the other backends
2204
2205         * gdk/win32/gdkinput-win32.h :
2206         * gdk/win32/gdkinput.c :
2207         * gdk/win32/gdkvisual-win32.c :
2208         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
2209         GdkVisual GObjectification. UNTESTED for pen-devices because
2210         I simply have none.
2211
2212         * gdk/gdk.def :
2213         * gtk/gtk.def : updated externals
2214
2215         * gtk/gtkiconfactory.c :
2216         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
2217         before passing &error to functions to avoid strange crashes
2218         
2219         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
2220
2221         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
2222
2223         * gtk/makefile.msc.in : updated
2224
2225 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
2226
2227         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
2228         Add property support. (#51858)
2229
2230 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
2231
2232         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
2233         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
2234         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
2235
2236 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
2237
2238         * gtk/gtkcolorsel.c: Add propery support (roughly
2239         based on patch from Lee Mallabone, #51014)
2240
2241         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
2242         deprecated, since we already g_warning() on it.
2243
2244 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
2245
2246         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
2247         typo that sometimes caused selection not to work properly.
2248
2249         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
2250         entry when tabbing in. (#57743)
2251         
2252         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
2253         user drags up above or down below the entry, move
2254         to the end or the beginning of the entry. (Suggestion
2255         from Jay Cox, #50940)
2256
2257         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
2258         a current selection, then when moving by chars or
2259         words, move to the end of the selection rather than
2260         from entry->current_pos. (Suggestion from Jay Cox,
2261         #50942)
2262         
2263 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
2264
2265         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
2266         set window->decorated. (Patch from Hidetoshi Tajima,
2267         #55846)
2268
2269 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
2270
2271         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
2272         the widget/child realization/mapping invariants.
2273
2274         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
2275         gtk_widget_[get/set]_child_visible() to control
2276         whether visible children of a mapped window are
2277         mapped.
2278
2279         * docs/widget_system.txt: Updated for changes in
2280         container contract, and addition of GTK_CHILD_VISIBLE.
2281
2282         * gtk/gtkcontainer.c: Add generic map()/unmap()
2283         functions that work for almost all containers.
2284
2285         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
2286         gtk_widget_set_child_visible() where necessary.
2287
2288         * gtk/*.c: Remove excess map(), unmap(), and 
2289         realization/mapping invariant enforcing code
2290         from many containers.
2291
2292 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
2293
2294         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
2295         Get the foreground color from 'text', nor 'fg'. (#57568)
2296
2297 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
2298
2299         * gtk/*.c: Patch from Matthias Clasen to remove remove
2300         all instances of g_return_if_fail (foo != NULL); that are
2301         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
2302         since the second check catches the NULL anyways.
2303
2304 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
2305
2306         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
2307         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
2308         GDK_THREADS_ENTER()/LEAVE() pairs.
2309
2310         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
2311         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
2312         pairs. (Problem found by M. Meeks)
2313
2314 2001-07-18  Darin Adler  <darin@bentspoon.com>
2315
2316         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
2317         that we don't get a g_warning message every time we register a new
2318         icon size.
2319
2320         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
2321         using pixel variable of the correct type.
2322         
2323 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
2324
2325         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
2326         so that using X functions on a GdkWindow is possible, if
2327         a little hairy.
2328
2329         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
2330         and ts_origin of a GC, so that external parties can offset/restore
2331         a GC, when using gdk_window_get_internal_paint_info().
2332
2333 2001-07-17  Darin Adler  <darin@bentspoon.com>
2334
2335         * .cvsignore: Ignore the sgml directory made by gtkdoc.
2336         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
2337         instead of the deprecated gtk_window_set_policy.
2338         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
2339         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
2340         function to get rid of warning and some code too.
2341         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
2342         missing const.
2343         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
2344         unused local.
2345         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
2346         const.
2347         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
2348         (gdk_utf8_to_compound_text): Add missing const.
2349         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
2350         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
2351         cast and get rid of an unnecessary one.
2352         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
2353         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
2354         local.
2355         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
2356         Remove unused local.
2357         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
2358         missing const.
2359         * tests/testsocket.c: (add_child): Add cast so the printf format
2360         doesn't make us implicitly depend on what integer type
2361         gtk_socket_get_id returns.
2362         * tests/testtextbuffer.c: Add missing const.
2363         * tests/testtreefocus.c: (main): Remove unused local.
2364         * tests/treestoretest.c: (iter_remove): Remove unused local.
2365         (uppercase_value): Remove unused function.
2366         (make_window): Add statement to quiet the compiler's uninitialized
2367         variable warning.
2368
2369 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
2370
2371         * gtk/gtkrange.c:
2372         (second_timeout): 
2373         (initial_timeout): 
2374         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
2375         (gtk_range_calc_layout): compute the new layout based on an
2376         adjustment->value being passed in as argument.
2377         (gtk_range_button_press): for button2 slider warps, first recalc
2378         the layout, then adjust the value. also, use update_slider_position()
2379         for adjusting the value, so we keep pixel quantisation at which we
2380         usually operate (upon motion or button releases). the reason for this
2381         is that, we can't change the adjustment upon button2 presses to a non
2382         quantised value and upon button2 release re-quantise the value since
2383         that'd alter the value even if we didn't get any motion events (causing
2384         unexpected scroll area warps upon release and/or slider pixel-jitter).
2385         (gtk_range_motion_notify): update the slider position from queried
2386         coordinates, not event coordinates.
2387
2388 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
2389
2390         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
2391         the default gc values are: width=0, CapBut, JoinMiter.
2392
2393 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
2394
2395         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
2396         into account the xpad and ypad when calculating the width and the
2397         height of the pixbuf cel.
2398
2399 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
2400
2401         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
2402         Rename to gtk_radio_menu_item_get_group(), add deprecated
2403         alias. (#57044)
2404
2405         * gtk/gtkfilesel.c: Indentation fix.
2406
2407 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
2408
2409         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
2410         Hasselmann to fix warnings in compat macros. 
2411         (#56773)
2412
2413         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
2414         stupid wrong cast added in last patch.
2415
2416 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
2417
2418         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
2419         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
2420
2421 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
2422
2423         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
2424         missing cast.
2425
2426         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
2427         NULL/FALSE return value confusion.
2428
2429         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
2430         problem when scrollbar completely fills range. (Patch
2431         from  Matthias Clasen, #57047)
2432
2433 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
2434
2435         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
2436         clean up when handling events for move-resize emulation.
2437         (Problem traced down by Matthias Clasen, #57271)
2438
2439 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
2440
2441         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
2442           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
2443           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
2444           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
2445           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
2446           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
2447           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
2448         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
2449
2450 2001-07-09  Peter Williams  <peterw@ximian.com>
2451
2452         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
2453         for when srcdir != builddir
2454
2455 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
2456
2457         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
2458         gtk_tree_model_get_iter_root.
2459
2460         * gtk/gtkliststore.c: Add a bunch of g_return statements.
2461         (gtk_list_store_iter_n_children): Fix up.
2462
2463         * gtk/gtktreestore.c: Add a bunch of g_return statements.
2464
2465 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
2466
2467         * gtk/gtkwidget.c (gtk_widget_class_init):
2468         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
2469         restore some workingness.
2470
2471         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
2472         handle of window type for input-only windows.
2473
2474 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
2475
2476         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
2477         Patch from Gregory Merchan to add 
2478         gtk_button_box_set_secondary(), which separates
2479         the child into a separate group from the normal
2480         buttons. (#56331)
2481
2482         * gtk/gtkdialog.c: Make help buttons secondary by
2483         default.
2484
2485         * gtk/gtkbbox.c: Added a child property "secondary".
2486
2487         * gtk/testgtk.c: Turn on the help button for the 
2488         color selector to check that it properly appears
2489         as secondary.
2490
2491 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
2492  
2493         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
2494         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
2495         Add gdk_set_pointer_hooks() to allow pointer-querying to
2496         be hooked by an event record/playback system like GERD.
2497         (#56914)
2498         
2499 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
2500
2501         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
2502         in the right value of initial_emission to
2503         gtk_widget_set_style_internal (#57091)
2504
2505 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
2506
2507         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
2508         Make compile.
2509
2510         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
2511         with calling gtk_widget_set_style_internal() with
2512         the old style, not the new style. (#56989)
2513
2514 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
2515
2516         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
2517           gtk/gtkwidget.c:
2518         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
2519         not GTK_WIDGET_GET_ANCESTOR ... see 
2520         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
2521         Indicate the best practice in the docs for gtk_widget_get_toplevel().
2522
2523         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
2524         so GtkPlug can give the correct signals when transforming
2525         from a child to a toplevel.
2526         
2527         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
2528         reparentation correctly.
2529
2530         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
2531         Propagate the previous_toplevel argument down properly.
2532
2533         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
2534         of wrong atr list.
2535
2536         * gtk/gtkplug.[ch]: Add an "embedded" signal.
2537
2538         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
2539         signals.
2540
2541         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
2542         functions gtk_plug_get_id(), gtk_socket_get_id(),
2543         to avoid the user having to worry about realization,
2544         and gdkx.h.
2545
2546         * tests/testsocket.c: Extend to try out the new signals
2547         and gtk_plug/socket_get_id().
2548
2549         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
2550         setting of underline attributes.
2551
2552         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
2553         DestroyNotify events from SubstructureNotifyMask
2554
2555         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
2556         Switch GDK_WINDOW_TYPE (window) as needed.
2557
2558         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
2559         allow creation of toplevel windows as children of
2560         foreign windows.
2561
2562         * gtk/gtkplug.c: Remove hacks involving changing private
2563         fields of GdkWindow.
2564
2565         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
2566         exactly the same signals and notification
2567         be emitted for local embedding as for inter-process
2568         embedding.
2569
2570 2001-07-04  James Henstridge  <james@daa.com.au>
2571
2572         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
2573
2574 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
2575
2576         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
2577         XEMBED embedding add a _XEMBED_INFO property to the
2578         client with version number and a "mapped" flags.
2579         Use the mapped flag instead of the racy MapRequestEvent
2580
2581         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
2582         code to reliably set things (when the child is a passive
2583         embedder participating in the XEMBED protocol) intead
2584         of just being a hack for embedding non-participating
2585         programs. Fix various bugs and race conditions.
2586         
2587         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
2588         work by simply making the GtkSocket the gtk parent
2589         of the GtkPlug. Set a flag in this case and make
2590         the GtkPlug work like a normal container by overriding
2591         methods such as check_resize and "chaining past" GtkWindow
2592         to GtkBin.
2593
2594         * gtk/gtkentry.c (gtk_entry_real_activate)
2595           gtk/gtkmain.c (gtk_propagate_event): 
2596         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
2597         
2598         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
2599         gtk_widget_get_ancestor):
2600         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
2601         might not give the expected result and recommend
2602         an alternative.
2603
2604         * tests/testsocket.c tests/testsocket_child.c
2605         tests/testsocket_common.c tests/Makefile.am: Extended
2606         to test different type of adding plugs to sockets
2607         (local,active,passive), and to test mapping/unmapping
2608         the plug.
2609
2610         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
2611         mark the window as destroyed until after we
2612         called _gdk_windowing_window_destroy().
2613         (_gdk_windowing_window_destroy() may use GDK functions
2614         on the window.)
2615
2616         * gdk/x11/gdkinput.c: Remove the check for finalization - 
2617         devices can be finalized under some circumnstances.
2618  
2619         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
2620         small problem with GDK_TYPE_DEVICE.
2621  
2622 2001-07-02  Havoc Pennington  <hp@pobox.com>
2623
2624         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
2625         use constants not atoms.
2626
2627 2001-07-02  James Henstridge  <james@daa.com.au>
2628
2629         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
2630         PANGO_TYPE_TAB_ARRAY.
2631
2632         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
2633         for PANGO_TYPE_TAB_ARRAY.
2634
2635         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2636         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
2637
2638         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
2639         the file.  Remove Pango types from defs -- they are now defined in
2640         libpango.
2641
2642 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
2643
2644         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
2645
2646         * gtk/gtkobject.c (gtk_object_destroy): invoke
2647         g_object_run_dispose().
2648
2649         * gtk/gtkwindow.c: 
2650         * gtk/gtkwidget.c: 
2651         * gtk/gtkobject.c:
2652         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
2653         method.
2654
2655 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
2656
2657         * gtk/gtktypeutils.c (gtk_type_class): Remove
2658         change check for GTK_TYPE_OBJECT derivation to
2659         G_TYPE_OBJECTS - it's Tim-approved to use this 
2660         for arbitary objects.
2661
2662         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
2663         prefix gtk_container_dequeue_resize_handler().
2664
2665         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
2666         to the hierarachy_changed signal, since you otherwise
2667         have to always keep that around.
2668
2669         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
2670         for extra argument to hierarchy_changed.
2671
2672 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
2673
2674         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
2675         for style to mean "revert to default style"
2676
2677         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
2678           gtk_widget_restore_default_style): Make this functions
2679         deprecated aliases for gtk_widget_set_style (widget, NULL).
2680
2681         * gtk/gtkwidget.[ch]: Remove:
2682            gtk_widget_set_default_style ()
2683            gtk_widget_push_style ()
2684            gtk_widget_pop_style ()
2685         These functions interact are overriden by RC files, and
2686         thus virtually useless, and complicated.
2687
2688 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
2689
2690         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
2691         most of the previous global variables in gtkrc.c. This is
2692         in preparation for multi-head, since each screen can
2693         have different GtkSettings and RC information.
2694
2695         * gtk/gtkrc.[ch]: 
2696
2697         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
2698         GtkSettings parameter to GtkRcStyle::parse.
2699
2700         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
2701         Add two new settings gtk-theme-name, gtk-key-theme-name,
2702         for RC files that are loaded by name after reading
2703         the default RC files.
2704         
2705         * gtk/gtkrc.c: Allow priorities for styles, as wll as
2706         bindings.
2707
2708         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
2709         and use it by default for RC files loaded via 
2710         gtk-theme-name, gtk-key-theme-name.
2711
2712         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
2713         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
2714         tests/testgtkrc: Require pathnames to be absolute.
2715
2716         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
2717         the source when parsing, since the operation of looking up a
2718         pixmap from an RC file depends on the parsing context.
2719
2720         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
2721         reset RC styles on all widgets when files are reparsed.
2722
2723         * tests/testgtk.c (create_rc_file) 
2724           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
2725         Simplify, now that gtk_rc_reparse_all() resets styles on
2726         all widgets itself.
2727
2728         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
2729         return value.
2730
2731         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
2732         GtkSettings argument.
2733
2734         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
2735         gtk_settings_get_global().
2736
2737         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
2738         to get the appropriate GtkSettings for a widget. (For now,
2739         just gets the default GtkSetttings.) 
2740
2741         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
2742           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
2743         changes.
2744
2745         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
2746         getting a style for a path without actually having a widget.
2747         (Allows using a style for a subpart of a widget, for
2748         example.)
2749
2750         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
2751         the RC files to be reloaded for just one GtkSettings
2752         (not sure how useful this really is.)
2753
2754         * gtk/gtkrc.h: Deprecate
2755         gtk_rc_add_widget_name/widget_class/class_style
2756
2757 2001-06-30  Alex Larsson  <alexl@redhat.com>
2758
2759         * gdk/linux-fb/gdkinput-none.c:
2760         * gdk/linux-fb/gdkinput.c:
2761         * gdk/linux-fb/gdkinputprivate.h:
2762         Convert GdkDevice to a GObject.
2763
2764         * linux-fb/gdkprivate-fb.h:
2765         * linux-fb/gdkvisual-fb.c:
2766         Convert GdkVisual to a GObject.
2767
2768 2001-06-29  Alex Larsson  <alexl@redhat.com>
2769
2770         * gdk/gdkvisual.h:
2771         * gdk/gdkcolor.c:
2772         * gdk/x11/gdkx.h:
2773         * gdk/x11/gdkvisual-x11.c:
2774         Convert GdkVisual to a GObject.
2775
2776         * gdk/gdkinput.h:
2777         * gdk/gdkevents.c:
2778         * gdk/x11/gdkinputprivate.h:
2779         * gdk/x11/gdkinput-gxi.c:
2780         * gdk/x11/gdkinput-none.c:
2781         * gdk/x11/gdkinput-x11.c:
2782         * gdk/x11/gdkinput-xfree.c:
2783         * gdk/x11/gdkinput.c:
2784         Convert GdkDevice to a GObject.
2785
2786 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
2787
2788         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
2789         to just plain new, fixing the number of columns, and column types
2790         at creation time.
2791
2792         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
2793
2794         * gtk/gtkcellrenderertext.c
2795         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
2796         height to a specific font.
2797
2798         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
2799
2800         * tests/*c: change to work with new store models.
2801
2802 2001-06-29  Havoc Pennington  <hp@redhat.com>
2803
2804        * Throughout: fixes to compile with G_DISABLE_COMPAT
2805         (s/g_signal_connectc/g_signal_connect/,
2806         s/g_signal_newc/g_signal_new/,
2807         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
2808
2809 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
2810
2811         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
2812         add path argument to selection callbacks.
2813
2814 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
2815
2816         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
2817         walk through a model in a depth first manner, with the option to
2818         break out.
2819
2820 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
2821
2822         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
2823         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
2824         column and follow it when draged, rather than a location in the
2825         view. "expander_column" property and drawing functions changed
2826         accordingly.  Fixes bug #55942.
2827
2828         (gtk_tree_view_{set,get}_expander_column): Now works with a
2829         GtkTreeViewColumn* instead of int.
2830
2831 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
2832
2833         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
2834
2835 2001-06-28  Havoc Pennington  <hp@pobox.com>
2836
2837         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
2838         image data to the screen, using a server grab to avoid race
2839         conditions.
2840
2841         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
2842         check for NULL return from gtk_image_new_from_stock(), it never
2843         returns NULL.
2844         (gtk_item_factory_create_item): fix bug where we parsed the stock
2845         ID as an inline pixbuf
2846
2847         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
2848
2849         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
2850         support (should be using binding set here)
2851
2852         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
2853         support (should be using binding set here)
2854
2855         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
2856         support
2857
2858         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
2859
2860         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
2861
2862         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
2863
2864         * gtk/gtkimcontextsimple.c
2865         (gtk_im_context_simple_filter_keypress): keypad
2866
2867         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
2868
2869         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
2870
2871         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
2872
2873         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
2874         should be binding-setted)
2875
2876         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
2877
2878         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
2879
2880         * gtk/gtkcalendar.c: numeric keypad fixes
2881
2882         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
2883         support
2884
2885         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
2886         screwup
2887
2888         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
2889         clip the render area to the drawable's clip region in advance,
2890         so we don't get data from the server that we don't need.
2891
2892         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
2893         check return value of gdk_pixbuf_get_from_drawable(), fall back 
2894         to bilevel alpha if we can't get the pixbuf to composite against.
2895
2896         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
2897
2898         * gdk/gdkimage.c (gdk_image_get_colormap): add
2899         gdk_image_set_colormap, gdk_image_get_colormap
2900
2901         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
2902         take a region of the image, instead of converting the entire
2903         image.
2904
2905         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
2906         keybinding signal. Add default bindings for it. Add default
2907         handler for show_help that shows the tooltip for the widget.
2908
2909         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
2910         "close" keybinding signal, remove key press handler.
2911
2912         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
2913         it's not our usual practice to leave a deprecated function around
2914         with a runtime warning, plus we don't want it to appear in docs,
2915         plus if we make them yellow no one will want to change them
2916         anyhow.
2917
2918 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
2919
2920         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
2921         GTK_WIDGET_REALIZE() for resize queueing.
2922
2923         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
2924         GTK_WIDGET_REALIZE() for post event delivery destruction upon
2925         GDK_DESTROY.
2926         
2927         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
2928         sompensate for former (pre-2.0) connect_after() facility.
2929         (gtk_widget_send_expose): 
2930         (gtk_widget_event): assert the widget is realized, since event delivery
2931         to non-realized widgets is essentially a bug. event handlers should
2932         be able to unconditionally rely on widget->window (unless they
2933         emit events on their own which can trigger widget destruction).
2934         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
2935         logic. event delivery happens as follows:
2936         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
2937         b) if !was_handled in (a) and the widget is still realized, emit event-
2938            specific signal (RUN_LAST handler). returns was_handled.
2939         c) emission of GtkWidget::event-after for notification if the widget is
2940            still realized (regardless of was_handled from previous stages, no
2941            class handler). no return value.
2942         d) was_handled gets passed on to caller, to determine further
2943            propagation. if the widget got unrealized meanwhile, was_handled
2944            is returned as TRUE.
2945
2946         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
2947         gdk_event_get_coords().
2948
2949 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
2950
2951         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
2952         age 0, binary age 0. depend on glib 1.3.7.
2953
2954         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
2955
2956         * gtk/gtkmenubar.c: same here.
2957         
2958         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
2959
2960         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
2961
2962         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
2963         
2964         * gtk/gtkmenubar.c (add_to_window): likewise.
2965         
2966         * gtk/gtktextbtree.c: and here...
2967         
2968         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
2969         
2970         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
2971         
2972         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
2973         
2974         * gtk/gtktreeviewcolumn.c:
2975         (_gtk_tree_view_column_set_tree_view): yet again.
2976
2977         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
2978         signal connections without g_signal_connect_data().
2979         
2980         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
2981         demo of the matter.
2982         
2983         * demos/testpixbuf.c (main): running out of equality phrases for the
2984         ChangeLog, but had to adapt connections here as well.
2985         
2986         * demos/testanimation.c (progressive_timeout): and for the fun of it,
2987         tackled this the same way.
2988         
2989         * tests/testtext.c (create_view): ok, it's becoming a pain at this
2990         point, but had enough enery for one more fix.
2991
2992         * tests/testtreecolumns.c (main): stand up man, do your work!
2993
2994         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
2995         fix, either that's been all of it or CVS gtk is broken yet again.
2996         
2997 2001-06-29  James Henstridge  <james@daa.com.au>
2998
2999         The following changes correspond to bug #56812
3000
3001         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
3002         code for GdkDevice.
3003
3004         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
3005         GdkCursor.
3006
3007 2001-06-19  Havoc Pennington  <hp@pobox.com>
3008
3009         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
3010         for mapping a window without fooling with stacking order, but
3011         updating the "withdrawn" flag
3012
3013         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
3014         filtering as soon as possible, moving move resize and wmspec_check
3015         handling after the event filter.  Make default filter apply to all
3016         events, not just those with no GdkWindow wrapped around the X
3017         window. Fix a FIXME about how the window could be a pixmap using 
3018         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
3019
3020         Also, be robust against events not on a known GdkWindow.
3021
3022         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
3023         gdk_x11_ungrab_server): export reference-counted server grabs, so
3024         other people can grab server over a GDK function that also does
3025         so.
3026
3027 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
3028
3029         * gtk/gtktreeviewcolumn.c
3030         (gtk_tree_view_column_pack_start_cell_renderer): New function to
3031         reflect that you can (hypothetically) pack cell renderers into a
3032         column.
3033         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
3034         (gtk_tree_view_column_cell_is_visible): Move more functionality to
3035         the column.
3036         (gtk_tree_view_column_cell_can_focus): Move more functionality to
3037         the column.
3038
3039         * gtk/gtktreeview.c: Move to use new column-packing code.
3040         (gtk_tree_view_real_expand_row): remove totally braindead code.
3041         (gtk_tree_view_real_collapse_row): ditto.
3042
3043 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
3044
3045         * gtk/gtktreeviewcolumn.c: Fix a typo.
3046         
3047 2001-06-26  Joel Becker  <jlbec@evilplan.org>
3048
3049         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
3050           at the end of the file
3051
3052 2001-06-26  Havoc Pennington  <hp@redhat.com>
3053
3054         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
3055
3056 2001-06-26  Havoc Pennington  <hp@redhat.com>
3057
3058         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
3059         property
3060
3061 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
3062
3063         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
3064         stupid missing statement
3065
3066         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
3067         private function for ATK.  It notifies you of how many _visible_
3068         children are deleted when a node is deleted.  Should be used by
3069         atk only.
3070
3071 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
3072
3073         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
3074         Use new pango_context_get_metrics() to fix problems
3075         with font lists in descriptions. (#56184, reported by
3076         Jonas Borgström)
3077
3078 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
3079
3080         * gtk/gtkiconfactory.c:
3081         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
3082         item factory so inlined pixbufs actually work.
3083
3084 2001-06-25  Havoc Pennington  <hp@redhat.com>
3085
3086         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
3087         s/RESIZEABLE/RESIZABLE/
3088
3089         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
3090
3091 2001-06-25  Alexander Larsson  <alexl@redhat.com>
3092
3093         * configure.in:
3094         Added --enable-fbmanager. This is some experimental code
3095         that lets several GtkFB apps coordinate their access to the
3096         framebuffer.
3097         
3098         * acconfig.h:
3099         Added ENABLE_FB_MANAGER.
3100
3101         * gdk/linux-fb/Makefile.am:
3102         Added gdkfbmanager and gdkfbswitch.
3103
3104         * gdk/linux-fb/gdkkeyboard-fb.c:
3105         * gdk/linux-fb/gdkmouse-fb.c:
3106         * gdk/linux-fb/gdkprivate-fb.h:
3107         Split device init and open so that
3108         they can be opened and closed while switched
3109         away.
3110
3111         * gdk/linux-fb/gdkmain-fb.c:
3112         Add the basic manager communication.
3113
3114         * gdk/linux-fb/gdkrender-fb.c:
3115         Don't update to the shadow fb if we're
3116         blocked by the fb manager.
3117
3118 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
3119
3120         * docs/Changes-2.0.txt: Add note about child property
3121         changes.
3122
3123 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
3124
3125         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
3126         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
3127
3128         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
3129         with un'reffing wrong list reported by Jeff Franks.
3130
3131         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
3132
3133         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
3134         for the default icon. Remove inline XPM.
3135
3136         * gtk/gtkstock.h gtk/gtkiconfactory.c:
3137         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
3138         is used for GTK_STOCK_DND, but it is a bit too small.)
3139
3140         * gtk/stock-icons/stock_dnd_multiple.png
3141         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
3142
3143         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
3144         TRUE when starting a drag. In other cases, we are
3145         just observing. (#52995)
3146
3147         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
3148         function to set the icon for a drag from a GdkPixbuf
3149         or stock ID.
3150
3151         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
3152         Likewise, for drag sources.
3153
3154         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
3155         (Now should be done using the stock system.)
3156
3157 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
3158
3159         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
3160         Removed - didn't work and not particularly useful anyways
3161         if it did. 
3162
3163 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
3164
3165         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
3166         introduced last night that was making things decidedly not work.
3167
3168         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
3169         so that we have getter/setter pairing everywhere it makes
3170         sense. (#55767)
3171
3172         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
3173         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
3174         deprecated compat macro. (#55516)
3175
3176         * gtk/gtklabel.[ch]: Add functions
3177         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
3178         gtk_label_set_label(), which mirror the property API for GtkLabel.
3179         Make gtk_label_get_attributes() only reflect the attributes
3180         set by gtk_label_set_attributes.
3181
3182         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
3183         from gtk_notebook_set_page().
3184
3185 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
3186
3187         * configure.in: Fix tests for XShm.h.
3188
3189         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
3190         gdk_image_new() by use of goto, properly use g_object_unref().
3191
3192 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
3193
3194         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
3195         calls, as GdkImage is an object. these should be g_obejct_unref()
3196         instead but that won't work because of the g_error() statement
3197         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
3198         to spot these places.
3199
3200 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
3201
3202         * modules/input/gtkimcontextxim.c: Fixup some problems with 
3203         text length handling in error cases.
3204
3205         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
3206         a bit to make test actually warn on attempt to allocation
3207         a negative size. (#56101, Matthias Clasen)
3208
3209 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
3210
3211         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
3212         noticed by Brian Cameron.
3213         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
3214         Cameron.
3215
3216 2001-06-22  Hans Breuer  <hans@breuer.org>
3217
3218         * gdk/gdk.def : updated externals
3219
3220         * gdk/win32/gdkdrawable-win32.c : corrected some casts
3221         in GDK_NOTEs
3222
3223         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
3224         to translate coordinates to the internal > 16 bit system
3225         Try to handle WM_WINDOWPOSCHANGED to get better performance for
3226         when moving/resizing
3227
3228         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
3229         and gdk_keymap_get_direction (). The latter is untested for
3230         the RTL case
3231
3232         * gtk/gtk.def : updated externals
3233
3234         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
3235         from pango_language_from_string (), not an already freed pointer
3236
3237         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
3238         binary (-kb) to be useable on windoze
3239  
3240 2001-06-21  Alexander Larsson  <alexl@redhat.com>
3241
3242         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
3243         Update to new PangoLanguage changes.
3244         
3245         * gtk/gtkwindow-decorate.c:
3246         * gtk/gtkwindow.[ch]:
3247         Added setting argument to gtk_window_set_has_frame ()
3248         
3249 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
3250
3251         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
3252         the case without XKB properly.
3253
3254         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
3255         unused gtk_rc_auto_parse variable.
3256
3257         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
3258         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
3259         longer needed with GdkPixbuf.
3260
3261         * gtk/gtkrc.c (_gtk_rc_init): Make private.
3262
3263 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
3264
3265         * gtk/gtkentry.h: Mark deprecated functions with
3266         GTK_DISABLE_DEPRECATED.
3267
3268 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
3269
3270         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
3271
3272         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
3273
3274         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
3275           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
3276           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
3277           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
3278           to recent changes in Pango.
3279
3280         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
3281           to test whether the basic engine honors them.
3282
3283 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
3284
3285         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
3286         gtk_container_child_get_property().
3287
3288 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
3289
3290         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
3291         (gtk_tree_view_move_cursor_page_up_down): implement.
3292
3293 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
3294
3295         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
3296         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
3297         don't use automatic fixed size buffer for printf-ing floats, doubles
3298         can expand to really _huge_ strings, use g_strdup_printf() instead.
3299
3300 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
3301
3302         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
3303         construct property in 1.2 and still needs to be.
3304
3305         * gtk/gtkwidget.c: "composite_child" is not a settable property.
3306
3307 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
3308
3309         * gtk/gtkliststore.c (gtk_list_store_clear): 
3310         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
3311         clear a model.
3312
3313 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
3314
3315         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
3316
3317         * gtk/Makefile.am:
3318         * gtk/gtk.h: disabled GtkPacker compilation.
3319
3320         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
3321
3322         * gtk/gtknotebook.c:
3323         * gtk/gtktable.c:
3324         * gtk/gtkbox.c: ported this over to child properties.
3325
3326         * gtk/gtksettings.c: fetch class properties via
3327         g_object_class_list_properties().
3328
3329         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
3330         child arg interface. use gobjectnotifyqueue.c for child property
3331         notification.
3332
3333         * gtk/gtkwidget.[hc]: provide necessary means for container child
3334         properties, i.e. ::child_notify signal,
3335         gtk_widget_freeze_child_notify(),
3336         gtk_widget_child_notify(),
3337         gtk_widget_thaw_child_notify().
3338
3339         * tests/testgtk.c: removed inferior property handling code, for
3340         property editing, a generic module should be used, and GLE
3341         coincidentally fullfills that purpose.
3342
3343         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
3344         needs to be adapted to g_object_class_list_properties() before this
3345         builds again.
3346
3347 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
3348
3349         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
3350         test if a node is expanded.
3351
3352 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
3353
3354         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
3355         where collapsing a selected row would result in the cursor/anchor
3356         getting screwed up.
3357
3358 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
3359
3360         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
3361         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
3362         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
3363         Now I can really reorder/sort all Store widgets.  treesorttest
3364         seems to just work now.
3365         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
3366         testtreesort worked through a big coincidence all this time.
3367         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
3368         code.
3369         * tests/testtreecolumns.c: Big 'ol warning at the top letting
3370         people know that this code should never ever ever be copied.
3371
3372 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
3373
3374         * gtk/gtkwindow.h: Fixed a small typo, it should be
3375         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
3376         on line 134.
3377
3378 2001-06-14  Havoc Pennington  <hp@redhat.com>
3379
3380         Docs fixups, and:
3381         
3382         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
3383         GTK_DISABLE_DEPRECATED
3384
3385 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
3386
3387         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
3388         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
3389         finish it off tonight, though it basically works now when it's a
3390         list.  Also, I have a sinking feeling neither GtkTreeStore or
3391         GtkListStore actually resort when adding a new item.  I'll look
3392         into it.
3393
3394 2001-06-14  Havoc Pennington  <hp@redhat.com>
3395
3396         * demos/gtk-demo/main.c (load_file): fix bug identified by
3397         warnings I just added to gtktextbuffer
3398
3399 2001-06-14  Havoc Pennington  <hp@redhat.com>
3400
3401         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
3402
3403         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
3404
3405         * gtk/gtktextbtree.c: don't leak node data all over the place.
3406
3407         * demos/gtk-demo/main.c (main): create fontify tags for the right
3408         buffer
3409
3410         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
3411         to mention tags in the same table can't have the same name,
3412         suggested by Skip Montanaro
3413
3414 2001-06-11  Havoc Pennington  <hp@redhat.com>
3415
3416         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
3417         for trying to add two tags with same name to the tag table
3418
3419         * demos/gtk-demo/main.c (main): fix colors ;-)
3420
3421 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
3422
3423         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
3424         that allows grouping together multiple windows so that grabs
3425         within that set of windows only affect those windows.
3426
3427         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
3428         signal for notification when a widget becomes shadowed
3429         by a grab or is no longer shadowed by a grab.
3430
3431         * gtk/gtkwidget.c (gtk_widget_propagate_state)
3432           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
3433         insenstive widgets to maintain a grab.
3434
3435 2001-06-14  Alexander Larsson  <alexl@redhat.com>
3436
3437         * docs/README.linux-fb:
3438         Add some example config files that can be used with the URW fonts.
3439         
3440         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
3441         Set up the color ramps for DirectColor mode.
3442
3443 2001-06-11  Havoc Pennington  <hp@redhat.com>
3444
3445         * Release 1.3.6
3446          
3447 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
3448
3449         * gdk/linux-fb/gdkwindow-fb.c:
3450         Unify shaped window code and make it repaint the area that used
3451         to be part of the shape, but isn't anymore.
3452
3453 2001-06-11  Havoc Pennington  <hp@redhat.com>
3454
3455         * NEWS: Updates
3456
3457         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
3458
3459         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
3460         
3461 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
3462
3463         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
3464         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
3465         passes zero instead, so do we.
3466         
3467 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
3468
3469         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
3470         Deep copy dash_list too.
3471         (_gdk_fb_gc_new): Set default cap_style before
3472         setting values.
3473
3474 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
3475
3476         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
3477         gdk_keymap_get_direction): New functions.
3478
3479 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
3480
3481         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
3482         gtk_tree_model_get_flags by adding a second flag for atk.
3483
3484         * gtk/gtktreemodel.c: make cursor behavior interact better with
3485         mouse presses.
3486
3487 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
3488
3489         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
3490         expand_row/collapse_row to be 2 signals each -- test_expand_row
3491         and row_expanded as well as test_collapse_row and row_collapsed.
3492
3493 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
3494
3495         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
3496         signal name to be changed instead of selection_changed.
3497
3498 2001-06-08  Havoc Pennington  <hp@redhat.com>
3499
3500         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
3501         "scroll_offset" property for notification when the layout offsets
3502         may have changed
3503         (gtk_entry_adjust_scroll): add notify for scroll_offset
3504         (gtk_entry_layout_index_to_text_index): function to compensate for
3505         preedit string when doing coordinate stuff on the entry's layout
3506         (gtk_entry_text_index_to_layout_index): inverse function
3507         (gtk_entry_get_layout_offsets): hook to get current position of
3508         the layout      
3509         (gtk_entry_get_layout): hook to get the layout itself.
3510
3511         * gtk/gtklabel.c (gtk_label_get_layout): new function
3512
3513 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
3514
3515         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
3516         keybinding.
3517         (gtk_tree_view_focus): Fix merge conflict.
3518
3519 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
3520
3521         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
3522         clean up cursor handling.
3523
3524 2001-06-08  Havoc Pennington  <hp@redhat.com>
3525
3526         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
3527         function
3528
3529         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
3530         this function
3531
3532 2001-06-08  Alex Larsson  <alexl@redhat.com>
3533
3534         * gtk/gtkcompat.h.in:
3535         Added compat macros for all old GTK_TYPE_GDK_xxx types.
3536         Fixes bug #52892
3537
3538 2001-06-08  Havoc Pennington  <hp@redhat.com>
3539         
3540         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
3541         parent still
3542
3543 2001-06-08  Havoc Pennington  <hp@redhat.com>
3544
3545         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
3546         don't call g_list funcs on GSList
3547
3548         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
3549         gtk_container_focus(), since some widgets have focusable locations
3550         which are not other widgets. These widgets should not have to be 
3551         containers just to manage the focus. For example, GtkHSV is
3552         currently a container for no good reason. Also, this cleans
3553         up the "if (is_container && is_sensitive && is_drawable)
3554         container_focus ()" mess in widget implementations.
3555
3556         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
3557         function, and have it just call gtk_widget_child_focus().
3558
3559         * gtk/gtkhsv.c: derive from widget not container
3560         
3561         Throughout: fix to reflect GtkContainer::focus change
3562         
3563 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
3564
3565         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
3566         range.  Fix bug #55921
3567
3568         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
3569         (#55920).
3570
3571 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
3572
3573         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
3574         and gdk_keymap_get_current_direction().
3575
3576         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
3577           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
3578         the current locked group, use it to set the keymap
3579         direction.
3580
3581         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
3582         to determine whether we draw a split cursor or use
3583         a jumping cursor based on the current direction.
3584
3585         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
3586         Obey the split cursor setting. 
3587
3588 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
3589
3590         * gtk/gtkimmulticontext.c (activate_cb): Only activate
3591         when toggling on, not when toggling off... (#55906)
3592
3593 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
3594
3595         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
3596         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
3597         in docs. (#55812, Vitaly Tishkov)
3598
3599 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
3600
3601         * demos/gtk-demo/main.c (create_tree): Changed signal name from
3602         selection_changed to changed in signal connection to GtkTreeSelection,
3603         also used g_signal_connectc since GtkTreeSelection is now a GObject.
3604
3605 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
3606
3607         * gtk/gtktreeselection.c: Now it's a GObject instead of a
3608         GtkObject.  The GtkTreeSelection::selection_changed signal is now
3609         the GtkTreeSelection::changed signal.
3610
3611         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
3612         object.
3613
3614         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
3615         object.
3616
3617 2001-06-07  Havoc Pennington  <hp@redhat.com>
3618
3619         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
3620
3621 2001-06-07  Havoc Pennington  <hp@redhat.com>
3622         
3623         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
3624         (not tested yet because with absolute path to srcdir I can't build
3625         atk, but it was broken anyway so this may help) 
3626
3627 2001-06-07  Havoc Pennington  <hp@redhat.com>
3628
3629         * configure.in: output m4macros/Makefile
3630         
3631 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
3632
3633         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
3634         buttons.  Fixes #55460 reported by matthiasc@poet.de.
3635
3636 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
3637
3638         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
3639         expansion/collapsing so it only happens in one place.
3640         (gtk_tree_view_real_expand_row): ditto.
3641
3642 2001-06-07  Havoc Pennington  <hp@redhat.com>
3643
3644         * tests/Makefile.am: add missing -I flag
3645
3646         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
3647
3648         * configure.in: use pkg-config to see if GModule is
3649         supported; fix to properly turn on included loaders 
3650         when GModule isn't supported; don't use AC_CHECK_LIB 
3651         when libs are not installed yet
3652
3653         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
3654
3655         * Makefile.am (SUBDIRS): add m4macros subdir
3656
3657         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
3658         dependencies also.
3659
3660 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
3661
3662         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
3663         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
3664
3665 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
3666
3667         * gtk/gtktreeview.c
3668         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
3669         bindings to expand and collapse rows.
3670         (gtk_tree_view_real_select_cursor_parent): New key binding.
3671         (gtk_tree_view_real_toggle_cursor_row): New key binding.
3672
3673         * gtk/gtkmarshal.list: new
3674         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
3675
3676 2001-06-06  Havoc Pennington  <hp@redhat.com>
3677
3678         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
3679
3680         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
3681         Down to move visually rather than logically, since it confuses 
3682         people. Add -/+ and Ctrl--/+ bindings for logical movement.
3683
3684 2001-06-06  Alex Larsson  <alexl@redhat.com>
3685
3686         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
3687         Fix up error messages.
3688
3689 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
3690
3691         * gtk/gtktooltips.h: Include gtkwidget.h 
3692         (#55798, Karl Nelson)
3693
3694         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
3695         a valid latin-1 character. (Marc Lehmann, #35467)
3696
3697         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
3698         (Marc Lehmann, #35467)
3699         
3700 2001-06-05  Alex Larsson  <alexl@redhat.com>
3701
3702         * demos/gtk-demo/appwindow.c (do_appwindow):
3703         Don't swap the order of the args to gtk_widget_destroyed.
3704
3705         * tests/testgtk.c (destroy_properties):
3706         Don't crash when the properties window is destroyed.
3707
3708         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
3709         Use with_mnemonics to handle the case of stock items with
3710         underscores in them.
3711
3712 2001-06-05  Havoc Pennington  <hp@redhat.com>
3713
3714         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
3715         gtk_text_iter_reorder
3716
3717 2001-06-05  Havoc Pennington  <hp@redhat.com>
3718
3719         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
3720
3721 2001-06-05  Havoc Pennington  <hp@redhat.com>
3722
3723         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
3724         to the range that was set
3725
3726         * gtk/gtkrange.c: add value_changed signal, primarily 
3727         intended for use with GtkScale
3728         (gtk_range_set_increments): new function
3729         (gtk_range_set_range): new function with weird name
3730         (gtk_range_set_value): new function
3731         (gtk_range_get_value): new function
3732
3733         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
3734         from gtk_spin_button_get_value_as_float(). Compat #define
3735         added for get_value_as_float.
3736
3737         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
3738
3739         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
3740
3741 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
3742
3743         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
3744
3745 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
3746
3747         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
3748
3749         * tests/testgtk.c (create_tooltips): Remove usage of
3750         gtk_widget_set().
3751
3752 2001-06-05  Havoc Pennington  <hp@redhat.com>
3753
3754         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
3755
3756         Applying patch from Jeff Franks, with function docs added.
3757         
3758         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
3759         remove call to set_mnemonic_widget, change docs a bit.  
3760
3761         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
3762         new function
3763
3764         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
3765         new function
3766
3767         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
3768
3769         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
3770         function
3771         (gtk_radio_button_new_with_mnemonic_from_widget): new function
3772
3773         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
3774         new function
3775
3776         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
3777         function        
3778
3779         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
3780         auto-selection of mnemonic widget.
3781
3782 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
3783
3784         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
3785         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
3786         (gtk_tree_view_column_set_min_width): ditto.
3787
3788 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
3789
3790         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
3791         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
3792
3793 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
3794
3795         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
3796         gtk_clist_thaw().
3797
3798 2001-06-04  Havoc Pennington  <hp@pobox.com>
3799
3800         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
3801         releases for buttons 6, 7
3802
3803 2001-06-04  Havoc Pennington  <hp@redhat.com>
3804
3805         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
3806         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
3807         #55562
3808
3809 2001-06-04  Havoc Pennington  <hp@redhat.com>
3810
3811         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
3812         where text_view->layout == NULL by assuming its size is 0, 
3813         i.e. same as if we haven't done any reflow. Reported by 
3814         Hidetoshi Tajima #55448 
3815
3816 2001-06-04  Havoc Pennington  <hp@redhat.com>
3817
3818         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
3819         and 7 for scroll left/right, from Thomas Broyer
3820
3821 2001-05-10  Havoc Pennington  <hp@redhat.com>
3822
3823         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
3824         we need to parse the xsetting as if it were an RC file string.
3825
3826         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
3827         value of palette from settings, not from static variable
3828
3829         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
3830         xsettings translation table
3831
3832         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
3833         hardcoding the toolbar style conflicts with new customizable 
3834         toolbar style philosophy
3835         (gtk_toolbar_class_init): add settings for default toolbar style;
3836         these are used unless the app specifically forces a toolbar style
3837
3838         * gtk/gtksettings.c (settings_install_property_parser): only
3839         return at the start if we warn and parser == NULL
3840
3841         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
3842         palette changed handler so we don't notify dead color selections
3843
3844         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
3845         xthickness/ythickness of 0 or 1 properly 
3846         (gtk_default_draw_resize_grip): clear the background behind the
3847         resize grips, and align to bottom right if we square the 
3848         area to be drawn.
3849
3850         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
3851         statusbar label to 1, so it doesn't make toplevels resize oddly
3852         (gtk_statusbar_size_request): add grip size to request
3853         (gtk_statusbar_size_allocate): hack so the hbox still works with 
3854         the grip size in the request
3855
3856         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
3857         bug where showing all on a toplevel makes the toolbar 
3858         button text appear despite the toolbar mode
3859
3860         * gtk/gtkmenubar.c: add internal padding style property
3861
3862         * gtk/gtktoolbar.c: Add internal padding style property; add
3863         shadow type style property
3864
3865         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
3866         state; and put Container::border_width outside the frame
3867
3868         * gtk/gtktextview.c: don't draw focus rectangle if we're in
3869         interior focus mode, we just use blinking cursor
3870
3871 2001-06-04  Havoc Pennington  <hp@redhat.com>
3872
3873         * configure.in: Make gdk-pixbuf have same version number as GTK
3874
3875 2001-06-04  Havoc Pennington  <hp@redhat.com>
3876
3877         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
3878         digits greater than 6. If there actually are limits (which there
3879         likely aren't), should clamp to them not warn.
3880         (gtk_spin_button_new_with_range): don't take log of 0
3881         (gtk_spin_button_size_request): use digits to compute size
3882         request, rather than step increment.
3883
3884         * tests/testgtk.c (create_spins): test larger values of digits
3885         
3886         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
3887         font on map not expose, so we don't get weirdness during scrolling
3888
3889 2001-06-04  Havoc Pennington  <hp@redhat.com>
3890
3891         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
3892         Sam Solon, bug #54577, update value even if not drawable.
3893
3894 2001-06-04  Havoc Pennington  <hp@redhat.com>
3895
3896         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
3897         SCROLL_LEFT, reported by Thomas Broyer.
3898
3899 2001-06-04  Havoc Pennington  <hp@redhat.com>
3900
3901         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
3902         Process updates immediately, to prevent funny lag effect
3903         when scrolling, at some mild potential efficiency cost.
3904
3905 2001-06-04  Havoc Pennington  <hp@redhat.com>
3906
3907         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
3908         slider on the click.
3909
3910 2001-06-03  Havoc Pennington  <hp@pobox.com>
3911
3912         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
3913         hscale/vscale details, so we can use it for scrollbar as well.
3914
3915         * tests/testgtk.c (reformat_value): honor digits from GtkScale
3916
3917         * gtk/gtkenums.h (GtkTroughType): Remove this enum
3918         (GtkScrollType): add START and END from GtkTroughType
3919
3920         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
3921         its x/y arguments
3922
3923         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
3924         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
3925         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
3926         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
3927         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
3928
3929         Notable changes in the process:
3930          
3931         - stepper_size style property is the height for vertical 
3932           ranges, width for horizontal; the other dimension matches
3933           the trough size
3934         - add ability to do NeXT-style steppers (and several other styles
3935           that don't make any sense)
3936         - added min_slider_length, fixed_slider_length properties to
3937           GtkScrollbar
3938         - cleaned some private (or at least useless) functions out of
3939           gtkscale.h    
3940         - moved bindings to GtkScale from subclasses, even arrow keys,
3941           since blind users don't know scale orientation.
3942         - change move_slider action signal to use new GtkScrollType,
3943           remove GtkTroughType argument
3944         - digits rounds the values a range will input to the given 
3945           number of decimals, but will not try to force adjustment 
3946           values set by other controllers. That is, we no longer
3947           modify adjustment->value inside a value_changed handler.
3948         - added getters for GtkScale setters
3949         - middle-click begins a slider drag
3950         
3951 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
3952
3953         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
3954         getting the focus code to work.
3955         (gtk_tree_view_class_init): Add a bunch of keybindings.
3956
3957         * gtk/gtktreeviewcolumn.c
3958         (gtk_tree_view_column_set_cell_data_func):
3959         s/GtkCellDataFunc/GtkTreeCellDataFunc.
3960         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
3961         of "properties_changed" to help justify the death of the latter
3962         signal. (-:
3963
3964         * tests/testtreefocus.c (main): Let some columns be focussable to
3965         test focus better.
3966
3967 2001-06-01  Havoc Pennington  <hp@redhat.com>
3968
3969         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
3970         
3971         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
3972         overwrite in overwrite mode if we already deleted the selection
3973         and replaced it with new text.  
3974
3975         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
3976         selection to an empty range, clear the clipboard if we owned it.
3977         (gtk_label_set_selectable): give up selection if we become
3978         unselectable.
3979         (gtk_label_state_changed): override state changed to unselect text
3980         when insensitive
3981         (get_text_callback): add paranoia check that indexes aren't
3982         outside of label->text
3983         (gtk_label_select_region): make -1 for start_offset mean "end of
3984         label," for consistency with GtkEditable
3985
3986         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
3987         GTK_DIALOG_NO_SEPARATOR flag
3988
3989 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
3990
3991         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
3992         notifications on non-existant "enable_arrow_keys".
3993         (#53753, Skip Montanaro)
3994
3995 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
3996
3997         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
3998         GDK_TYPE_RECTANGLE.
3999
4000         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
4001         of allocation argument be GDK_TYPE_RECTANGLE.
4002
4003 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
4004
4005         * gtk/gtkoptionmenu.c: Account for the fact that the border
4006         width is _outside_ the window. (Fixes #54585, bug found
4007         by Bastien Nocera.)
4008
4009 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
4010
4011         * gtk/gtksettings.c (gtk_settings_get_property): Validate
4012         value from GDK settings against parameter spec.
4013
4014         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
4015         to temporary values and use g_value_transform(), since
4016         thinking that GValue was going to be easy or efficient
4017         to use was, of course, a mistake.
4018
4019         * gtk/gtksettings.c: Add cursor blink setting.
4020         
4021         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
4022
4023         * gtk/gtkentry.c: Add cursor blinking.
4024
4025         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
4026         cursor blink global settings.
4027
4028         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
4029         for :text_position in places where it is missing.
4030
4031 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
4032
4033         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
4034
4035 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
4036
4037         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
4038         not pkg-config. (#51032)
4039
4040         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
4041         (fixes #51952, James Henstridge)
4042         
4043 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
4044
4045         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
4046         Rename to the more correct gtk-go-up.
4047
4048         * gtk/stock-icons/stock_menu_sort_ascending.png:
4049         Added new file.
4050         
4051         * gtk/stock-icons/stock_menu_sort_descending.png:
4052         Changed to show descending instead of ascending.
4053
4054         * gtk/gtkiconfactory.c:
4055         Added menu size icon to sort ascending.
4056
4057         * gtk/stock-icons/Makefile.am:
4058         Added stock_menu_sort_ascending.png.
4059         
4060         * gtk/gtkseparatormenuitem.c:
4061         Use correct typenames.
4062
4063 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
4064
4065         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
4066         gulong as in GSignal.
4067
4068 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
4069
4070         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
4071         instances of GtkCellRenderer in code (all but dnd icon code).
4072         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
4073         there, and I can do multiple Cells per column.
4074
4075         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
4076
4077         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
4078         when model was unreffed prior to removing the row reference.
4079
4080 2001-05-25  Havoc Pennington  <hp@redhat.com>
4081
4082         * gtk/gtkiconfactory.c: fix so that default icons are created if 
4083         you call gtk_stock_list_ids()
4084
4085         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
4086         in list
4087
4088 2001-05-25  Havoc Pennington  <hp@redhat.com>
4089
4090         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
4091         set can render without falling back to missing image icon
4092
4093         * gtk/gtktextview.c (gtk_text_view_size_request): request full
4094         size of text, instead of random values
4095
4096         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
4097         size of tree view, instead of random values
4098
4099         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
4100         image in an appropriate size
4101
4102         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
4103         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
4104
4105         Throughout: fix GTK_STOCK_BUTTON_ instances
4106         
4107         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
4108         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
4109         Add a bunch of new stock items/icons
4110
4111         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
4112         new function, convenience for inserting columns with a data func
4113
4114         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
4115         (_gtk_icon_factory_list_ids): use list of all factories to
4116         generate a list of all known IDs
4117
4118         * gtk/gtkstock.c (gtk_stock_list_ids): replace
4119         gtk_stock_list_items() with a function that returns all IDs known
4120         including those for GtkIconFactory.
4121
4122 2001-05-25  Hans Breuer  <hans@breuer.org>
4123
4124         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
4125         work -> check boxes and radio buttons are drawn now, even on win9x.
4126         Improved line settings a bit, still no clue how to get really dotted
4127         lines on win9x, on NT it's PS_ALTERNATE.
4128
4129         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
4130         GDK_HINT_MIN_SIZE as well
4131
4132         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
4133
4134         * gtk/gtk.def : updated
4135
4136         * gtk/gtktreeprivate.h : change column_drop_func to be a function
4137         pointer not a function pointer pointer
4138
4139         * tests/testdnd.c : include <stdlib.h> for putenv prototype
4140
4141         * tests/testsocket.c : made it compile on win32 again
4142
4143         * tests/makefile.msc : one more test-app uses prop-editor.obj
4144
4145 2001-05-22  Havoc Pennington  <hp@pobox.com>
4146
4147         * gtk/gtkbin.c (gtk_bin_get_child): New function
4148
4149 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
4150
4151         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
4152         to ignore when doing compose processing.
4153
4154 2001-05-22  Joe Shaw  <joe@ximian.com>
4155
4156         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
4157         Simplify as suggested by Havoc. Just get the last iter and work
4158         backward to the tag instead of getting a line and working back from
4159         there. Fixes passing in an invalid offset to
4160         iter_init_from_byte_offset().
4161
4162 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
4163
4164         * gtk/gtktreeview*.h: 
4165         * gtk/gtkcell*.h:
4166         * gtk/gtk*store.h:
4167         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
4168         macros to all objects.
4169
4170 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
4171
4172         * gtk/gtkcellrenderertext.c
4173         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
4174         with very large (TM) amounts of text.  May be moved to
4175         GtkCellRenderer in the future, though I'm not sure it wants to be
4176         this accessible.
4177
4178         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
4179         More sanity brought to this class.  I like it.
4180
4181         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
4182         case.  Kids, don't try this at home.
4183
4184         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
4185         convenience function.
4186
4187         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
4188
4189 2001-05-21  Alexander Larsson  <alexl@redhat.com>
4190
4191         * gtk/gtkfontsel.c:
4192         Added properties. Based on patch by Lee Mallabone.
4193
4194         * gtk/gtkruler.c:
4195         * gtk/gtkhruler.c:
4196         * gtk/gtkvruler.c:
4197         * gtk/gtktext.c:
4198         * gtk/gtktextview.c:
4199         Converted GtkArg to GParam. Based on patches by John Margaglione.
4200
4201         * tests/Makefile.am:
4202         * tests/testtext.c:
4203         Add a property editor to testtext.
4204         
4205 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
4206
4207         * gtk/gtk{h,v,}paned.c: Only show the separator if 
4208
4209         * configure.in: Fixed reversed conditional causing all image
4210         libraries to be linked in.
4211
4212 2001-05-21  Joe Shaw  <joe@ximian.com>
4213
4214         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
4215         that top_y needs to be >= 0.
4216
4217 2001-05-11  Havoc Pennington  <hp@pobox.com>
4218         
4219         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
4220         losing connection to the X server.
4221
4222 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
4223
4224         * configure.in: Start checks for X from pangox/pangoxft
4225         CFLAGS to avoid duplicate libraries.
4226
4227         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
4228
4229         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
4230         to include gobject.
4231         
4232 2001-05-18  Alexander Larsson  <alexl@redhat.com>
4233
4234         * gtk/gtkspinbutton.c:
4235         Convert GtkArgs to GParams. Based on patch by John Margaglione.
4236         Also do size request reasonable for MAXDOUBLE. Previously it printed
4237         the limits to a buffer and overran it. Instead do it using log10() and
4238         limit the width to 10 digits.
4239         
4240         * gtk/gtkwidget.c (gtk_widget_get_property):
4241         Correctly handle setting the parent property to NULL.
4242
4243 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
4244
4245         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
4246         style attributes even if the widget isn't realized.
4247
4248         * demos/gtk-demo/main.c: Use a slightly smaller font.
4249
4250 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
4251
4252         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
4253         This is something that only a widget writer would ever want
4254         to change.
4255
4256         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
4257         gtk_signal_emit_by_name().
4258
4259         * gtk/gtkviewport.c: Fix some warnings.
4260
4261         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
4262         allowing the requisitions of multiple widgets to be grouped
4263         together.
4264
4265         * tests/testgtk.c: Add GtkSizeGroup test
4266
4267         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
4268
4269         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
4270         warnings.
4271
4272         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
4273
4274 2001-04-28  Martin Baulig  <baulig@suse.de>
4275
4276         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
4277         to gtk_image_menu_item_set_icon() and made it work if there's already
4278         an image.
4279         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
4280         (gtk_image_menu_item_new_with_label): New function.
4281
4282 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
4283
4284         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
4285         highlighting code!!!!  The result is okay so long as you don't try
4286         to stress it.  It also highlights a bug in the TextView so it's in
4287         an unproportional font right now until it's fixed.
4288
4289         *demos/gtk-demo/*.c: Clean up code a bit to make it
4290         ugly-parser(TM) friendly. (-:
4291
4292 2001-05-17  Joe Shaw  <joe@ximian.com>
4293
4294         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
4295         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
4296         if it is only partially onscreen.
4297
4298 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
4299
4300         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
4301         not by characters.
4302
4303         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
4304         are not zero or one; that is, when graphemes of multiple characters
4305         are involved.
4306
4307         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
4308         FIXME.
4309
4310 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
4311         
4312         * gtk/gtkbbox.c:
4313         Add properties, based on patch by Lee Mallabone.
4314
4315         * gtk/gtknotebook.c:
4316         * gtk/gtktoolbar.c:
4317         Convert from GtkArg to GParam, based on patch by John Margaglione.
4318         
4319         * gtk/gtkhscale.c:
4320         * gtk/gtkvscale.c:
4321         * gtk/gtkhscrollbar.c:
4322         * gtk/gtkvscrollbar.c:
4323         * gtk/gtkrange.c:
4324         Move adjustment property to GtkRange.
4325
4326         * gtk/gtklabel.c:
4327         Setup mnemonics on property changes
4328
4329         * gtk/gtkwidget.c (gtk_widget_get_property):
4330         GdkExtensionMode is an enum, not a flag. Set it with
4331         g_value_set_enum ().
4332
4333         * tests/prop-editor.c:
4334         Better propery editor.
4335
4336         * tests/testgtk.c:
4337         Add new property test. Pass zero to the property editor to
4338         get properties from all derived types.
4339         
4340 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
4341
4342         * autogen.sh (have_automake): Require libtool-1.4,
4343         automake-1.4p1.
4344
4345         * acinclude.m4: Remove libtool macros.
4346
4347         * gdk-pixbuf/Makefile.am: Add dependencies to loade
4348         modules.
4349
4350         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
4351         for libgdk.
4352
4353         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
4354         libgdk.la for libgtk.
4355
4356         * modules/input/Makefile.am: Make modules have full
4357         dependencies.
4358
4359 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
4360
4361         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
4362         #54699 where paths weren't being checked for correctness.
4363
4364 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
4365
4366         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
4367         in any order you wan, whether or not the column is added to the
4368         tree, or the tree is realized.  Yay!
4369
4370         * gtk/gtktreeviewcolumn.c
4371         (gtk_tree_view_column_setup_sort_column_id_callback): handle
4372         sorting columns a lot saner
4373
4374         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
4375         new function to actually set wether or not a column is
4376         reorderable.
4377
4378         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
4379         if we have 'em.
4380
4381         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
4382         Fix nasty bug where we were showing the button just before
4383         realizing it.  As a result, the parent window was
4384         tree_view->window instead of tree_view->priv->header_window.
4385
4386         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
4387         to let you easily reorder a list or tree.
4388
4389 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
4390
4391         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
4392         from args to properties.
4393
4394 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
4395
4396         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
4397         from args to properties. (#51957)
4398
4399         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
4400         calls to after ->set_property call.
4401
4402 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
4403
4404         * tests/prop-editor.c: Block against redundant changes.
4405
4406         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
4407         properties.
4408
4409 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
4410
4411         * gdk/gdkpixmap.h: Remove creative formatting.
4412
4413 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
4414
4415         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
4416         property API. (#51669)
4417
4418         * gtk/gtkscale.c: Patch from John Margaglione converting to
4419         property API. (#51891)
4420
4421         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
4422         to property API. (#50985)
4423
4424 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
4425
4426         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
4427         buffering state across expose event, so we still call end_paint().
4428
4429 2001-05-11  Alexander Larsson  <alexl@redhat.com>
4430
4431         * gtk/gtkhsv.c (paint_triangle):
4432         Expose the ring in the triangle at the correct place when
4433         exposing just a part of the triangle.
4434
4435         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
4436         Return FALSE, or window focusing will not work.
4437
4438 2001-05-11  Havoc Pennington  <hp@pobox.com>
4439
4440         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
4441         #54144
4442
4443         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
4444         bug #54330
4445
4446 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
4447
4448         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
4449         propagate exposes to NULL child.
4450
4451         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
4452         against not having one of the scrollbars.
4453
4454         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
4455         we don't keep a mnemonic window if we have no mnemonic installed.
4456
4457 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
4458
4459         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
4460         it has the _important_ side effect of initializing a class.
4461
4462 2001-05-10  Alexander Larsson  <alexl@redhat.com>
4463
4464         * gdk/linux-fb/gdkprivate-fb.h:
4465         Make sure you can compile out the implementation/wrapper assert
4466         macros.
4467
4468         * gdk/linux-fb/gdkdrawable-fb2.c:
4469         Check implementation/wrappers, initialize type for pixmap dummys.
4470
4471         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
4472         Hide the cursor if reading from the screen.
4473
4474         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
4475         Fix sign bug in tiling code.
4476
4477         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
4478         Handle background pixmaps.
4479
4480 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
4481
4482         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
4483         function to let user control where columns are dragged.
4484
4485         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
4486         Escape is pressed.
4487
4488 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
4489
4490         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
4491         "columns_changed" signal.
4492         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
4493         motion code to draw arrows to the side if indicator is outside the
4494         widget.
4495         (gtk_tree_view_map_expanded_rows): Implement.
4496
4497 2001-05-07  Alexander Larsson  <alexl@redhat.com>
4498
4499         * demos/testpixbuf-save.c: 
4500         * demos/testpixbuf-drawable.c:
4501         Include gdkfb.h on linux-fb.
4502
4503 2001-05-07  Alexander Larsson  <alexl@redhat.com>
4504
4505         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
4506         New function for getting toplevel window at position.
4507         (gdk_drag_find_window): Use get_toplevel_window () instead
4508         of gdk_window_get_pointer(). (gdk_drag_status): Use
4509         correct context for getting window.
4510
4511         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
4512         g_strdup the atom name.
4513
4514         * gdk/linux-fb/gdkwindow-fb.c:
4515         Costmetic fix.
4516
4517         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
4518         Add code for changing cursor on linux-fb backend (same as
4519         win32).
4520
4521 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
4522
4523         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
4524         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
4525         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
4526         report was not for the development branch of GTK+, but it applies
4527         anyways).
4528
4529 2001-05-04  Havoc Pennington  <hp@redhat.com>
4530
4531         * configure.in: fix some shell typos
4532
4533         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
4534
4535         * gtk/gtkimage.c: handle animations
4536
4537         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
4538         border_width * 2, not just border_width
4539
4540         * gtk/gtkscale.c: add "format_value" signal to allow people
4541         to override the way values are drawn.
4542         (gtk_scale_get_value_size): fix width/height mistake,
4543         and compute size from actual displayed text, not 
4544         from made-up text.
4545
4546         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
4547         signal registration
4548
4549         * tests/testtext.c: Add "Remove all tags" menu item for testing
4550
4551         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
4552
4553         * demos/gtk-demo/main.c (main): add hack so we can find modules
4554         without installing gtk
4555
4556         * demos/gtk-demo/textview.c (insert_text): demo font scaling
4557
4558         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
4559         factor)
4560         (gtk_cell_renderer_text_set_property): remove some bogus
4561         g_object_notify
4562
4563         * gtk/gtktexttag.c: add "scale" property which is a font scaling
4564         factor
4565
4566         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
4567         to layout
4568
4569         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
4570         gtk_text_iter_is_first
4571
4572 2001-01-06  Hans Breuer  <hans@breuer.org>
4573
4574         * gdk/gdk.def : updated exports
4575
4576         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
4577         gdk won't compile anymore
4578  
4579         * gdk/win32/gdkevents-win32.c : initialize ret_val when
4580         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
4581         Improved gdk_flush () to not only do pending drawing operations
4582         but also process all currently pending events. This should make
4583         the behaviour more similar to the X11 version.  
4584
4585         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
4586         option needs to be set even if there is no GDK_GC_BACKGROUND.
4587         (gdk_win32_hdc_get) : use predraw_set_background () independent
4588         of value_mask. This allows to draw dashed lines leaving the original
4589         background intact.
4590
4591         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
4592         after processing, because we can't reuse it as the X11 version does.
4593
4594         * gtk/gtk.def : updated exports
4595
4596         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
4597         would like to get rid of this file again, and use straight
4598         makefile.msc again, as the other Gtk+ subdirs do)
4599
4600         * test/makefile.msc (new file) : build the test apps here
4601
4602 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
4603
4604         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
4605         strike-through setting
4606         (gdk_draw_layout_line_with_colors): Render strike-through
4607
4608 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
4609
4610         * Release 1.3.5
4611
4612         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
4613
4614         * NEWS: Updated
4615
4616         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
4617         Makefile breakage.
4618
4619 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
4620
4621         * demos/gtk-demo/images.c (progressive_timeout): Fix
4622         typo in filename.
4623
4624         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
4625         out FIXME warning; just too annoying.
4626
4627 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
4628
4629         * gdk/linux-fb/gdkcolor-fb.c:
4630         Better error messages.
4631
4632         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
4633         Initialize abs_x and abs_y.
4634         
4635         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
4636         Correct handling of stipple offset.
4637
4638         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
4639         Treat directcolor framebuffers as truecolor.
4640         
4641 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
4642
4643         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
4644         dependency on Atk for accessibility support.
4645
4646         * configure.in **/Makefile.am: Major reworking of substituted
4647         variables for CFLAGS/LIBS to make a lot more sane and 
4648         keep the the compile/link lines a bit shorter.
4649
4650         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
4651
4652 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
4653
4654         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
4655         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
4656         use _gtk_boolean_handled_accumulator.
4657
4658 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
4659
4660         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
4661         to fix things so clicking inside selection leaves cursor
4662         at point where clicked. (#50324)
4663
4664         * gtk/gtksettings.c (gtk_settings_class_init): Restore
4665         sane value for default double click time.
4666
4667         * tests/testtext.c (test_init): Really path to input modules.
4668
4669 2001-05-03  Sven Neumann  <sven@convergence.de>
4670
4671         * demos/testpixbuf-save.c: include target-specific headers as
4672         done in testpixbuf-drawable.c
4673
4674 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
4675
4676         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
4677         new_text_length appropriately when we run into the 
4678         size limit for the entry. (#53445, reported by Jeff Franks)
4679
4680         * tests/testgtk.c (create_entry): Remove most of the
4681         property toggle buttons. Replace with a "Props" button
4682         that brings up a property editor.
4683
4684         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
4685         Split the property editor code out for reuse, improve.
4686
4687 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
4688
4689         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
4690         trap errors around calls to XSetInputFocus since we have
4691         no way of knowing reliably whether we are viewable or
4692         not. (#53947)
4693
4694 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
4695
4696         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
4697         fix bug in dropping columns.  Moving columns now basically works
4698         modula some fine tuning.
4699
4700 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
4701
4702         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
4703         autoscroll support.  It mostly works, but could use some fine
4704         tuning.
4705         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
4706         Actually move the column.
4707
4708 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
4709
4710         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
4711           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
4712           New default theme! A slighly improved version of the 2.0 Raleigh
4713           theme, with Windows-esque focus/drawing default. 
4714           (GtkWidget::interior_focus defaults to TRUE.)
4715
4716         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
4717
4718 2001-04-30  Havoc Pennington  <hp@pobox.com>
4719
4720         * tests/testtext.c (line_numbers_expose): fix to work with
4721         gtk_paint_layout change
4722
4723 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
4724
4725         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
4726           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
4727           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
4728           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
4729
4730         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
4731           with GtkWidget::interior_focus = TRUE better.
4732
4733         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
4734         ::default_outside_border for more flexibility.
4735
4736         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
4737         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
4738         change that had to be made with g_object_get.
4739
4740 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
4741
4742         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
4743         (gtk_tree_view_move_column_after): Clean up interface. 
4744
4745 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
4746
4747         * gtk/gtkpacker.h:
4748         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
4749          to gtkenum.h.
4750
4751         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
4752         handled in switch).
4753
4754         * gtk/Makefile.am:
4755         (gtk.defs): generate enum portions with  glib-mkenums.
4756         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
4757         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
4758         
4759         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
4760         addition.
4761
4762         * docs/Changes-2.0.txt: keep a note on signal handlers now
4763         not getting emitted during the emission they were connected within.
4764
4765 2001-04-28  Havoc Pennington  <hp@pobox.com>
4766
4767         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
4768
4769 2001-04-24  Havoc Pennington  <hp@redhat.com>
4770
4771         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
4772         (gtk_text_layout_move_iter_to_next_line): fix these two for
4773         invisible text, lots of other stuff still hosed.
4774
4775         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
4776         new function, replaces the get/set palette stuff. This function 
4777         is intended for use by libgnomeui which should set the hook to a
4778         thing which sets the palette in GConf, and we need the
4779         GConf-to-xsettings proxy which will result in the change being
4780         propagated back to the GTK app.
4781
4782         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
4783         about unusable signals that it may be because the signal has 
4784         parameters.
4785
4786         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
4787         style, otherwise gtkrc.c won't know to create a new GtkStyle for
4788         it.
4789         (gtk_widget_modify_color_component): call
4790         gtk_widget_modify_style() so the rc style will get copied.
4791         (gtk_widget_modify_font): ditto
4792
4793         * gtk/gtkrc.c: make a couple variables static
4794
4795         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
4796         help button by default, since it does nothing
4797
4798         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
4799         around with UI
4800
4801         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
4802         so we can have tooltips
4803
4804         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
4805         can have tooltips
4806
4807         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
4808         GDK_ENABLE_BROKEN, because its memory behavior is completely
4809         hosed.
4810
4811         * gtk/gtknotebook.c: remove key press handler, replace with
4812         binding set, add numeric keypad support
4813
4814         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
4815
4816         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
4817
4818         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
4819         addition to plain Delete
4820
4821         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
4822         GDK_KP_Enter in addition to GDK_Return
4823
4824         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
4825         activate on entry instead of key press
4826         (gtk_font_selection_on_clist_key_press): get
4827         rid of this signal handler, not needed with new font sel.
4828
4829         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
4830         no-longer-needed emit_stop_by_name(), just return TRUE
4831
4832         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
4833         cruft, this widget is no longer focusable.
4834
4835         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
4836         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
4837         move_slider action signal, add binding set for vscale/hscale, in
4838         the process support numeric keypad
4839
4840         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
4841         make GDK_Return and GDK_KP_Enter activate the entry via 
4842         binding set, instead of hardcoded.
4843
4844 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
4845
4846         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
4847         code.  Some documentation added.
4848
4849 2001-04-27  Havoc Pennington  <hp@redhat.com>
4850
4851         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
4852
4853         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
4854
4855         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
4856         line/para separators
4857         (gtk_entry_create_layout): set single paragraph mode on the layout
4858
4859         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
4860         spacing between the image and label; instead, inside a button box 
4861         the button will get extra space that will go there, but if people 
4862         configure button box for 0 chubbiness, then there's no spacing.
4863
4864         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
4865         and min/max size style properties, so people can tune their
4866         chubbiness.
4867
4868         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
4869         functions
4870
4871         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
4872         space_style, and button_relief into style properties, remove
4873         functions for setting them
4874         
4875         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
4876         it back down
4877
4878         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
4879         types from gtk_widget_style_get
4880
4881         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
4882         with a style property.
4883
4884         * gdk/x11/gdkevents-x11.c: namespace the settings
4885
4886         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
4887
4888         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
4889         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
4890         be used. Also, translate doc strings for settings. Also, namespace
4891         the double-click-time property. Also, remove bell properties crap.
4892
4893 2001-04-27  Sven Neumann  <sven@gimp.org>
4894
4895         * Makefile.am: before creating links, check if pkg-config files
4896         exist for the default target. Otherwise link to the pkg-config files
4897         that got installed with this build.
4898
4899 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
4900
4901         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
4902         dragging code.  Revealed some (potential) GdkWindow bugs.
4903
4904         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
4905         _gdk_window_init_position to the end of reparent to fix the case
4906         of reparenting when new_x != old_x and new_y != old_y.
4907
4908 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
4909
4910         * gtk/gtkentry.c (strstr_len): Fix optimization that
4911         was correct for the use here, but completely incorrect
4912         in general.
4913
4914 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
4915
4916         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
4917         until patch adding gtk_window_set_size() is recommitted. 
4918
4919         * **Makefile.am configure.in gdk/x11/gdkim-11.c
4920           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
4921           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
4922           (#10784)
4923
4924 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
4925
4926         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
4927         window == NULL in a number of cases.
4928
4929         * tests/testdnd.c: Set module path for gdk-pixbuf.
4930
4931 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
4932
4933         * gtk/Makefile.am xembed.h: File containing #defines
4934         for XEMBED protocol.
4935
4936         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
4937
4938         - Change protocol from old plug/socket specific protocol
4939           to XEMBED draft
4940         - Various fixes to work with GTK+-2.0
4941
4942         Still quite a bit of work to do here to handle initiation
4943         from the socket side (as specified by XEMBED), to handle
4944         the more advanced features of XEMBED, and to figure out
4945         a good way to handle same-app embedding with less overhead
4946         than using full XEMBED.
4947
4948 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
4949
4950         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
4951         track of whether the toplevel has the focus; only send
4952         focus-in events to the focus widget when the window
4953         actually has the focus.
4954
4955 2001-04-25  Havoc Pennington  <hp@pobox.com>
4956
4957         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
4958         were still in the header
4959
4960 2001-04-24  Alexander Larsson  <alexl@redhat.com>
4961
4962         * gtk/gtkclist.[ch]:
4963         * gtk/gtkctree.c:
4964         When there is a row highlighted for D'n'D it must alse
4965         be painted hightlighted on exposes. Otherwise exposes from
4966         the icon being dragged will mess up the hightlight.
4967
4968         * gtk/gtkfontsel.c:
4969         Don't recenter selected font when exposing the font family
4970         clist. This means you can now actually scroll the font family
4971         list.
4972
4973         * gtk/gtknotebook.c:
4974         Fix focus movement on scrolling tabs that are placed on the left
4975         and right.
4976
4977 2001-04-21  Havoc Pennington  <hp@pobox.com>
4978
4979         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
4980         empty/invisible lines.
4981
4982         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
4983         (gtk_text_iter_set_visible_line_index): new functions to set
4984         indexes excluding invisible text
4985
4986         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
4987         index
4988
4989         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
4990         (gtk_text_iter_get_visible_line_offset): new functions to 
4991         get indexes excluding invisible text
4992
4993         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
4994         bunch of extra padding that served no purpose
4995
4996         * gtk/gtkdialog.c: Make all the spacings configurable via style
4997         properties, for chubbiness configuration in themes
4998
4999         * tests/testtext.c: fix path to the immodules.
5000         
5001 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
5002
5003         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
5004         got munched by #endif.
5005
5006         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
5007
5008         * gtk/gtktreeview.c: Refactored code to clean up a number of
5009         events.
5010
5011         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
5012         values to make consistent with other functions.  Spotted by Jeff
5013         Franks <jcf@tpg.com.au>.
5014
5015         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
5016         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
5017
5018 2001-04-23  Sven Neumann  <sven@gimp.org>
5019
5020         * gtk/Makefile.am
5021         * gtk/gtkplug.c
5022         * gtk/gtksocket.c: on request of Owen, reverted my last change 
5023         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
5024
5025 2001-04-23  Sven Neumann  <sven@gimp.org>
5026
5027         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
5028         compile for non-X11 targets again
5029
5030 2001-04-20  Alexander Larsson  <alexl@redhat.com>
5031
5032         * gtk/gtkcolorsel.[ch]:
5033         API Change. Take GdkColor arguments instead of gdouble *.
5034         Leave the old gtk_color_selection_set_color for compatibility,
5035         but marked deprecated.
5036         Do correct rounding when converting RGB <-> HSV.
5037         
5038         * gtk/gtkcolorseldialog.c:
5039         * tests/testgtk.c:
5040         Use new GtkColorSelection API.
5041
5042         * gtk/gtkhsv.c:
5043         Fix problem selecting colors in triangle when Hue is 330.
5044         Fix some black dots around the HSB triangle.
5045         
5046         * gtk/gtkfilesel.c:
5047         return FALSE from the focus_in_event handler to fix focus problems.
5048
5049 2001-04-18  Havoc Pennington  <hp@redhat.com>
5050
5051         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
5052         set, so keybindings are configurable    
5053         (gtk_window_activate_default): Change to activate the focus widget
5054         instead if there's a focus widget, to be consistent with the
5055         behavior that previously existed in key_press_event
5056
5057 2001-04-18  Havoc Pennington  <hp@redhat.com>
5058
5059         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
5060
5061 2001-04-18  Havoc Pennington  <hp@redhat.com>
5062
5063         Close bug #50615:
5064         
5065         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
5066         the layout
5067
5068         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
5069
5070         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
5071
5072         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
5073         
5074         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
5075         to blue for base, in addition to bg
5076         
5077 2001-04-18  Havoc Pennington  <hp@redhat.com>
5078
5079         * tests/testgtk.c (create_image): allow shrinking the image window
5080         to test that we clip to allocation.
5081
5082         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
5083         #9845
5084
5085         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
5086
5087 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
5088
5089         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
5090         mode on shm segments to 0600. We'll see who complains.
5091
5092         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
5093         _gdk_windowing_window_destroy() AFTER recursing through
5094         children.
5095
5096         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
5097         testsocket_child on X.
5098
5099         * tests/testsocket[_child].c: Fix uses of
5100         gtk_window_get_default_accel_group().
5101
5102         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
5103
5104         * gdk/gdkimage.c: (gdk_image_get):
5105         Deal with the possibility that XGetImage() might return NULL.
5106         Allocate the GdkImagePrivate structure only after XGetImage()
5107         succeeds in order not to dereference a NULL ximage pointer.  This
5108         prevents a core dump when XGetImage() fails - which is unlikely,
5109         but can happen due to race conditions accessing the geometries of
5110         drawables.  An x error will still be triggered, but the gdk image
5111         wrapper at least wont seg fault.
5112         
5113 2001-04-18  Havoc Pennington  <hp@redhat.com>
5114
5115         * gtk/gtkimage.c: fix to properly queue resizes when the image is
5116         set
5117
5118         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
5119         if the insertion point isn't editable
5120
5121         * demos/gtk-demo/images.c: Added a GtkImage demo
5122
5123         * demos/gtk-demo/drawingarea.c: drawing area demo
5124         
5125         * demos/gtk-demo/menus.c (create_menu): cleanups
5126
5127 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
5128
5129         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
5130           gdk/x11/gdkevents-x11.c: Introduce an extra child
5131         of toplevel windows that serves to hold the focus to
5132         avoid events being delivered to embedded windows.
5133
5134         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
5135         some extra variables to clean up code and reduce the
5136         number of casts.
5137
5138         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
5139         guint for 1 bit bit fields, not gboolean.
5140
5141 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
5142
5143         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
5144         not TRUE. (Fixes #52925)
5145
5146 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
5147
5148         * Released 1.3.4
5149
5150         * NEWS: Updated
5151
5152         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
5153         use GTK_TYPE_ENUM.
5154
5155 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
5156
5157         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
5158
5159         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
5160         names to compatibility #defines so docs work.
5161
5162         * gtk/gtkenums.h: Remove GtkMenuFactoryType
5163
5164         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
5165
5166         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
5167
5168         * tests/testgtkrc: No magenta cursors, please.
5169
5170         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
5171
5172         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
5173         
5174 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
5175
5176         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
5177         grabs, since they are no longer necessary.
5178
5179         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
5180         by signal_connect() and call gtk_button_pressed() rather
5181         than signal_connect_after().
5182
5183         * tests/testgtk.c: Restore radio menu items to combos 
5184         since they'll look OK with Raleigh, and it is easier
5185         than finishing the process of removing them that was
5186         started earlier.
5187
5188 2001-04-16  Hans Breuer  <hans@breuer.org>
5189
5190         * gdk/gdk.def :
5191         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
5192
5193         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
5194         we are interested in the functions return value not the function address
5195         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
5196
5197         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
5198
5199 2001-04-14  Hans Breuer  <hans@breuer.org>
5200
5201         * gdk/gdk.def :
5202         * gdk/makefile.msc : updated
5203
5204         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
5205         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
5206         (the testgtk::text backgound pixmap is drawn again)
5207         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
5208         Win32 Pango change
5209         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
5210
5211         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
5212         Not sure if the returned settings have the right unit, because I couldn't
5213         find any docs for the X version ...
5214
5215         * gtk/gtk.def :
5216         * gtk/makefile.msc.in : updated
5217
5218 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
5219
5220         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
5221         wording problems. (Compared to version from Johannes Stezenbach to
5222         check correctness.)
5223
5224 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
5225
5226         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
5227         this to compile.
5228
5229 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
5230
5231         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
5232         not pixbufpos.
5233
5234         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
5235
5236         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
5237         are unsigned insts, therefore use g_value_set_uint.
5238         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
5239
5240 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
5241
5242         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
5243
5244         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
5245         GTK_TYPE_STRING.
5246
5247         * gtk/gtktreeview.c: New functions to allow initial column
5248         dragging work.
5249
5250         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
5251
5252         * tests/testtreefocus.c: give dave some love.
5253
5254         * tests/testtreesort.c: Modify test to check really long samples.
5255
5256 2001-04-11  Alexander Larsson  <alexl@redhat.com>
5257
5258         * gtk-2.0.m4: Pass pkg-config options
5259         before the other args so it works even if
5260         POSIXLY_CORRECT is set.
5261
5262 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
5263
5264         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
5265         0, interface 0).
5266
5267 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
5268
5269         * gtk/gtkcalendar.c (gtk_calendar_button_press):
5270         check for action_func != NULL
5271
5272 2001-04-04  Sven Neumann  <sven@gimp.org>
5273
5274         * tests/testgtk.c (test_init): corrected path to gtk.immodules
5275
5276 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
5277
5278         * Released Gtk+-1.3.3.
5279
5280 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
5281
5282         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
5283
5284 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
5285
5286         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
5287         files to/from source dir. (if we don't stay in builddir, we
5288         can't reach make-inline-pixbuf.
5289
5290         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
5291         deps.
5292
5293         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
5294         ages 0).
5295
5296 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
5297
5298         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
5299         moved to the GtkTreeSortable interface.
5300
5301         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
5302         Make more efficient (fixes #50262).
5303
5304 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
5305
5306         * NEWS: Updated.
5307
5308         * configure.in: Remove support for uninstalled glib.
5309
5310         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
5311         so as not to stop emission.
5312
5313         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
5314         is no longer supported.
5315
5316         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
5317         into tests, change build order to build modules before
5318         gtk/.
5319
5320         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
5321         to here.
5322
5323 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
5324
5325         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
5326         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
5327         GPatternSpec. this is actually unlikely to cause breakage in
5328         third-party apps since except for gle, pretty much ever caller
5329         passes NULL here.
5330
5331         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
5332
5333         * *.c: use g_pattern_*() API.
5334
5335         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
5336
5337         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
5338         directions aren't passed in.
5339
5340         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
5341         functionality to be usable from gtkstyle.c as well, give precedence
5342         for conversion to user-supplied parsers.
5343         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
5344
5345         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
5346         _gtk_settings_parse_convert() for rcporperty value conversion.
5347
5348 2001-04-03  Alexander Larsson  <alexl@redhat.com>
5349
5350         * gdk/linux-fb/gdkevents-fb.c:
5351         Add empty gdk_setting_get().
5352
5353 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
5354
5355         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
5356         variable names.
5357         
5358         * gtk/makeenums.pl: touch this so enum files get remade.
5359
5360 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
5361
5362         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
5363         work again when not sorted.
5364
5365         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
5366         and "expand_row" signal, closing bug 52578.
5367
5368         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
5369         support.
5370
5371         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
5372         support.
5373
5374 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
5375
5376         * gdk/gdkevents.h: Add GdkEventSetting event for notification
5377         of changes to system settings, gdk_setting_get() to retrieve
5378         a single system setting.
5379
5380         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
5381         to the draft XSETTINGS mechanism.
5382
5383         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
5384         XSETTINGS.
5385
5386         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
5387         of GDK settings changes to the GtkSettings object.
5388
5389         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
5390         double-click-timeout property to GDK.
5391
5392         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
5393         Define GDK boxed types here.
5394
5395         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
5396         gdk/gdkenumtypes.[ch] for enum definitions.
5397
5398         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
5399         * gtk/gtk-boxed.defs: Comment out GDK types
5400         * gtk/gtktypeutils.h: Remove GDK types
5401         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
5402
5403 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
5404
5405         * Applied patch from Ron Steinke to add signal accumulators
5406         so that signals with the convention 'TRUE return means
5407         handled' stop emission on a TRUE return.
5408
5409         * gtk/gtkmain.[ch]: Add private accumulator 
5410         _gtk_boolean_handled_accumulator, used throughout GTK+.
5411         
5412         * gtk/gtkspinbutton.c: Add accumulator for ::output.
5413
5414         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
5415         
5416         * gtk/gtkwidget.c: Add accumulators for event signals,
5417         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
5418         for ::mnemonic-activate.
5419
5420         * gtk/gtkwindow.c: Add accumulator for ::frame_event
5421
5422 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
5423
5424         * gtk/gtkwidget.c: Add missing include.
5425
5426 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
5427
5428         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
5429         marshaller.
5430
5431         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
5432         "changed" signal to "range_changed".
5433
5434         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
5435         removing a tree from one model would remove all trees from that
5436         model.
5437         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
5438         changed signal instead.
5439
5440 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
5441
5442         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
5443         chaining up to parent impl, since we have a INPUT_ONLY
5444         window.
5445
5446         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
5447         foreground color for the cursor.
5448
5449 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
5450
5451         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
5452         param spec when caching property values, since we unref it
5453         later when we free the style.
5454
5455         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
5456         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
5457
5458 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
5459
5460         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
5461         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
5462         stupidity.
5463
5464 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
5465
5466         [ First pass at adding style properties. Still needs some definite
5467         fine-tuning. ]
5468
5469         * gtk/gtkbutton.c: Add ::default_spacing style property.
5470          
5471         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
5472         ::indicator_spacing style properties.
5473
5474         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
5475         style properties.
5476
5477         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
5478         rather than a normal property.
5479
5480         * gtk/gtkwidget.c: Add an ::interior_focus style property to
5481         draw focus inside buttons, in the Windows/Java Metal/etc. style.
5482
5483         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
5484         Honor ::interior_focus.
5485         
5486         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
5487         TRUE.
5488
5489         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
5490         Add ::slider_width, ::trough_border, ::stepper_size,
5491         ::stepper_spacing style properties.
5492
5493         * gtk/gtkscale.[ch] Add ::slider-length style property.
5494
5495 2001-04-02 Alexander Larsson   <alexl@redhat.com>
5496
5497         * gdk/linux-fb/gdkwindow-fb.c:
5498         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
5499         warnings that were spewed on startup.
5500
5501         * gtk/gtkwindow-decorate.c:
5502         gtk_window_reposition -> _gtk_window_reposition
5503
5504 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
5505
5506         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
5507         Add boxed type for GtkRequistion. Use it for ::size-request.
5508
5509         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
5510         Add a new GtkBorder structure useful for geometry properties
5511         for widgets. Add corresponding GTK_TYPE_BORDER.
5512         
5513         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
5514         Support automatic parser selection like
5515         gtk_settings_install_property_parser().
5516
5517         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
5518         functionality for use by gtk_widget_class_install_style_property.
5519         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
5520
5521 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
5522
5523         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
5524         g_param_spec_unichar(). 
5525
5526 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
5527
5528         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
5529         _NET window managers.
5530
5531         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
5532
5533 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
5534
5535         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
5536         bad needs to be nuked, not just deprecated.
5537
5538         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
5539         gtk_widget_popup().
5540
5541         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
5542         
5543         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
5544         widget.
5545         
5546         * docs/Changes-2.0.txt: updates.
5547         
5548 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
5549
5550         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
5551         for (i = 0; i < 100; i ++)
5552           g_print ("I will confirm it compile before committing\n");
5553
5554 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
5555
5556         * gtk/gtktreestore.c: Initial work on implementing the
5557         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
5558
5559 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
5560
5561         * gtk/gtkwidget.c: fixed a bunch of notifications, added
5562         reference counts around emissions where the widget is used afterwards.
5563         added freeze/thaws around multiple properties being notified.
5564         (_gtk_widget_get_aux_info): cleanups.
5565         
5566         * gtk/gtksettings.c (gtk_settings_install_property): provide
5567         default parsing functions for gdkcolor, enums and flags.
5568
5569         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
5570         applied by owen.
5571         backed out gtk_window_get_location(), gtk_window_set_location(),
5572         gtk_window_get_size() and gtk_window_set_size(), these
5573         have to be sorted out wrg x/y/width/height/default_with/default_height
5574         properties.
5575         kept a flag in GtkWindowGeometryInfo to handle user
5576         resetting default sizes.
5577         cleaned up ZVT comments.
5578         bunch of assorted bug fixes, notification fixes.
5579         (_gtk_window_reposition): make this a really internal function.
5580         
5581         * gtk/testgtk.c: fixups.
5582         
5583 2001-03-31  Hans Breuer  <hans@breuer.org>
5584
5585         * config.h.win32.in : disable USE_MMX for msvc build cause
5586         the assembler doesn't fit and is out of my scope. Disable
5587         USE_GMODULE for msvc build as wel. The right way to share
5588         binaries on win32 would be to use libtiff.dll etc. To reduce
5589         installation hassles IMO it's better to include all fileformats
5590         builtin to gdk-pixbuf
5591
5592         * gdk-pixbuf/makefile.msc : new file
5593
5594         * gdk/gdk.def : updated
5595
5596         * gdk/win32/gdkevents-win32.c : don't erase the background if
5597         .no_bg is set. It improves the scrolling (e.g. of testgtk main
5598         buttons
5599         * gdk/win32/gdkgeometry-win32.c : added comment about the above
5600
5601         * gdk/win32/gdkwindow-win32.c : added three new functions like
5602         the X version. Only one is implemented, because the other two
5603         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
5604         be default behaviour on win32 anyway ...
5605
5606         * gtk/gtk.def : updated
5607
5608         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
5609         from where it was built and add an additional rule to automagically
5610         build gtkmarshal.[hc]
5611
5612         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
5613         before array access for the current entry isn't finished
5614
5615         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
5616         use g_return_val_if_fail
5617
5618         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
5619         for the static array, but let the compiler calculate it. It
5620         makes me wonder if gcc isn't capable to catch bugs like this ...
5621
5622 2001-03-31  James Henstridge  <james@daa.com.au>
5623
5624         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
5625         constant "-1" in the aux info structure.
5626
5627 2001-03-30  Alexander Larsson  <alexl@redhat.com>
5628
5629         * gtk/gtkbutton.c (gtk_button_get_property):
5630         * gtk/gtklabel.c:
5631         Remove leaks.
5632         
5633         * gtk/gtkcontainer.c:
5634         * gtk/gtkhscale.c:
5635         * gtk/gtkhscrollbar.c:
5636         * gtk/gtklayout.c:
5637         * gtk/gtkmisc.c:
5638         * gtk/gtkprogress.c:
5639         * gtk/gtkprogressbar.c:
5640         * gtk/gtkrange.c:
5641         * gtk/gtktable.c:
5642         * gtk/gtkviewport.c:
5643         * gtk/gtkvscale.c:
5644         * gtk/gtkvscrollbar.c:
5645         * gtk/gtkwidget.c:
5646         Property patches, based on patches from John Margaglione and Lee Mallabone.
5647
5648 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
5649
5650         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
5651         adjustment. Cleaned redundant preconditions (spin != NULL). Added
5652         inline API function docs.
5653         (gtk_spin_button_new_with_range): New convenience constructor.
5654         (gtk_spin_button_set_increments): New adjustment helper.
5655         (gtk_spin_button_set_range): New adjustment helper.
5656
5657         * gtk/testgtk.c : added test of the new convenince constructor and
5658         value_changed signals.
5659
5660 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
5661
5662         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
5663         listen to the reorder signal.
5664
5665 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
5666
5667         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
5668         to get the aux info structure fo the widget.
5669
5670         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
5671         above function.
5672
5673         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
5674
5675         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
5676         to get the size of the window manager frame, basically the same
5677         code that gdk_window_get_root_origin() had
5678         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
5679
5680         * gtk/gtkwindow.c (gtk_window_set_default_size): use
5681         gdk_window_resize() if the window is realized and resizeable
5682
5683         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
5684         typo so that setting gravity works
5685
5686         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
5687         allocation if auto_shrink is on, even if the default size
5688         has not changed.
5689
5690         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
5691         g_return_if_fail
5692
5693 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
5694
5695         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
5696         reordering/sorting work.  Now pretty much works.
5697
5698         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
5699         reorder mostly work.  Still need to get the parity correct.
5700
5701         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
5702         signal, so I can listen for the sort_column_changed signal so I
5703         can change my "sort_indicator" property.  Cool.
5704
5705 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
5706
5707         [ Patch from Havoc Pennington, hp@redhat.com ]
5708
5709         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
5710         Add functions gdk_window_begin_resize_drag/begin_move_drag
5711         to start resizing or moving a toplevel window. This
5712         is done either using the _NET_WM_MOVERESIZE protocol,
5713         or, if that isn't present, by emulation.
5714
5715         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
5716         to export the above to GTK+-land.
5717
5718         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
5719         
5720         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
5721         Move this function into gdkwindow, since we need it
5722         when implementing fallback resizing.
5723
5724         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
5725         Fix typo when setting gravity.
5726
5727         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
5728         Add an optional (but on by default) resize grip for resizing 
5729         the parent window.
5730
5731 01-03-29  Alexander Larsson  <alexl@redhat.com>
5732
5733         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
5734         Don't return TRUE from the event handler, that blocks all
5735         event signals on the tooltip widget. Now you can press buttons
5736         in toolbars again.
5737
5738 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
5739
5740         * gtk/testtext.c (create_buffer): Add missing NULL on
5741         valist.
5742
5743         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
5744         c-n-p problem with INCONSISTENT property.
5745
5746         [ Patch from Havoc Pennington  <hp@redhat.com> ]
5747
5748         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
5749         hook.
5750
5751         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
5752         signal as a hook for extending the default popup menu
5753
5754         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
5755         use radio menu items for the input method menuitems
5756
5757         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
5758         inserted unicode from Ctrl-Shift-hex input method
5759
5760         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
5761         validatation here, already done at GtkTextBuffer level.
5762
5763         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
5764         popup_menu run action signal and Shift+F10 and Menu keybindings.
5765
5766         * gtk/gtkentry.c: implement a default handler for popup_menu
5767
5768         * gtk/gtktextview.c: implement a default handler for popup_menu
5769
5770         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
5771         from a key event
5772         
5773         * gtk/gtklabel.c: remove "trailer" cruft
5774
5775 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
5776
5777         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
5778         handle reordering of trees.  Seems to mostly work w/ the exception
5779         of the parity flag.
5780
5781         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
5782         signal.
5783
5784 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
5785
5786         * gtk/gtkwidget.h: c++ fixes.
5787
5788 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
5789
5790         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
5791         memory.
5792
5793 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
5794
5795         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
5796         Nils Barth fixing event return values. (#51041)
5797
5798         * gtk/gtkwidget.c: Fix some return values for default
5799         functions.
5800
5801         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
5802         return values for trough_keys functions.
5803
5804         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
5805         value for add_accelerator (shoudl have been a void
5806         return.)
5807
5808         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
5809         Fix return type of EVENT.
5810
5811         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
5812         signal return a boolean.
5813
5814 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
5815
5816         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
5817         reordered signal.
5818
5819         * tests/testtreesort.c (main): fix spelling.
5820
5821 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
5822
5823         * gtk/gtkliststore.c: More work on implementing sortable
5824         interface.
5825
5826 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
5827
5828         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
5829         reference the widgets in the resulting list. (#11821)
5830         This makes this consistent with gtk_container_children.
5831
5832         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
5833         uses of gtk_window_list_toplevels.
5834
5835 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
5836
5837         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
5838         a virtual function to set whether the IM context should use 
5839         the preedit string. (#51922)
5840         
5841 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
5842
5843         * gdk/gdkpango.h: Remove stale FIXME comment.
5844
5845 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
5846
5847         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
5848         Fixed bug that returned NULL if a filename was selected.
5849
5850 2001-03-24  Havoc Pennington  <hp@pobox.com>
5851
5852         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
5853         to contain the word "theme"
5854
5855 2001-03-24  Havoc Pennington  <hp@pobox.com>
5856
5857         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
5858         slower but finer-grained
5859         (gtk_hsv_focus): get initial focus on the ring or triangle 
5860         according to tab direction
5861
5862         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
5863
5864 2001-03-23  Havoc Pennington  <hp@pobox.com>
5865
5866         * gtk/gtkhsv.c: make this somewhat key-navigable
5867
5868         * gtk/gtkfontsel.c: mnemonics
5869
5870         * gtk/gtkgamma.c: mnemonics
5871
5872         * gtk/gtkcolorsel.c: add mnemonics to labels
5873
5874 2001-03-22  Havoc Pennington  <hp@pobox.com>
5875
5876         Applied big patch from Seth Lytle to fix event handler return
5877         values, slightly modified.
5878
5879         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
5880         handled.
5881         (gtk_calendar_key_press): return TRUE for GDK_space triggers
5882         select_day
5883
5884         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
5885         (gtk_clist_button_release): return TRUE if handled
5886
5887         * gtk/gtkcolorsel.c (mouse_release):
5888         (palette_activate): 
5889         (palette_press): 
5890         (palette_new): 
5891         (mouse_press): 
5892         (get_screen_color): 
5893         fixed return type (void to gboolean), return TRUE,
5894         added GTK_SIGNAL_FUNC cast
5895
5896         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
5897         (void to gboolean), and return TRUE
5898         (gtk_combo_button_release): changed return value to TRUE after
5899         gtk_grab_add on combo->popwin
5900
5901         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
5902         collapse or expand
5903
5904         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
5905         button/motion
5906
5907         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
5908         press/release and motion that trigger act
5909
5910         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
5911
5912         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
5913         for GDK_Return
5914         
5915         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
5916         (gtk_list_button_release): return TRUE if selection
5917
5918         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
5919         press
5920
5921         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
5922         (gtk_menu_shell_button_release): chain parent_menu_shell retval
5923
5924         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
5925         nothing triggered
5926         (gtk_notebook_button_release): return TRUE if we do anything
5927
5928         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
5929         (gtk_spin_button_button_release): return TRUE or chained retval
5930
5931         * gtk/gtktext.c (gtk_text_button_press): 
5932         (gtk_text_button_release): return TRUE
5933         (gtk_text_key_press): remove redundant retval code
5934         
5935         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
5936         and sensitive
5937         (gtk_tree_item_subtree_button_click): changed type to gint, and return
5938         TRUE if sensitive
5939
5940         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
5941         return TRUE
5942
5943 2001-03-23  Havoc Pennington  <hp@redhat.com>
5944
5945         * gtk/testgtk.c: fix warnings
5946
5947         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
5948
5949         * gtk/gtktextview.c: fix warnings
5950
5951         * gtk/gtktext.c (find_cursor_at_line): fix warning
5952
5953         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
5954
5955         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
5956         of this function
5957
5958         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
5959         fix warning
5960
5961         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
5962
5963         * gtk/gtkfontsel.c: fix warning
5964
5965         * gtk/gtkcolorsel.c: fix warnings
5966
5967 2001-03-23  Havoc Pennington  <hp@redhat.com>
5968
5969         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
5970
5971         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
5972
5973         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
5974         and deprecated gtk_check_menu_item_set_show_toggle().
5975         
5976         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
5977
5978         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
5979
5980         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
5981
5982 2001-03-23  Havoc Pennington  <hp@redhat.com>
5983
5984         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
5985         some docs
5986
5987 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
5988
5989         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
5990         this.
5991
5992         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
5993         set_cell to set_value
5994
5995         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
5996         set_cell to set_value
5997
5998 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
5999
6000         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
6001         fix braino.
6002         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
6003         support.
6004
6005         * gtk/gtktreeview.c: Addition of initial sortable support.
6006
6007         * gtk/gtktreestore.c: Addition of initial sortable support.
6008
6009         * gtk/gtkliststore.c: Addition of initial sortable support.
6010
6011         * gtk/gtkmarshal.list: yet another marshaller.
6012
6013         * gtk/gtktreedatallist.[ch]: shared code between the store models
6014         for handling sorting headers.
6015
6016 2001-03-22  Havoc Pennington  <hp@redhat.com>
6017
6018         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
6019         (gtk_container_unset_focus_chain): Add ability to override the 
6020         focus chain for a container explicitly
6021
6022 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
6023
6024         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
6025         added PROP_MNEMONIC_WIDGET.
6026
6027         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
6028         (gtk_window_remove_mnemonic): 
6029         (gtk_window_add_mnemonic): fixed assertions.
6030         (gtk_window_activate_mnemonic): constrain modifier checks to those
6031         permitted by gtk_accelerator_get_default_mod_mask().
6032         got rid of gtk_window_get_default_accel_group().
6033
6034         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
6035         activatable widgets either by focussing or a warning.
6036         added a signal accumulator to ::activate_mnemonic which stops the
6037         emission once a handler returned TRUE.
6038
6039 2001-03-22  Havoc Pennington  <hp@pobox.com>
6040
6041         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
6042         the stock item label
6043
6044         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
6045
6046         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
6047
6048         * demos/gtk-demo/*.c: Add mnemonics all over the place
6049
6050         * gtk/gtklabel.h: mark parse_uline deprecated
6051
6052 2001-03-21  Alexander Larsson  <alexl@redhat.com>
6053
6054         * gtk/gtkitemfactory.[ch]:
6055         Add support for stock and normal imagemenuitems.
6056         
6057         * gtk/testgtk.c:
6058         Add some tests for mnemonics, stock toolbars, stock
6059         and image menuitems in itemfactory and gdk_window_scroll.
6060
6061 2001-03-21  Alexander Larsson  <alexl@redhat.com>
6062
6063         * gtk/gtkbutton.[ch]:
6064         * gtk/gtkdialog.c:
6065         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
6066         removed accel_group argument. Renamed gtk_button_new_accel() to
6067         gtk_button_new_with_mnemonic() and removed accel_group argument.
6068
6069         * gtk/gtkcheckbutton.[ch]:
6070         New function gtk_check_button_new_with_mnemonic().
6071
6072         * gtk/gtkentry.c:
6073         Override activate_mnemonic and just grab focus.
6074
6075         * gtk/gtkitemfactory.c:
6076         Don't add menu uline accel group, instead use mnemonics support.
6077
6078         * gtk/gtklabel.[ch]:
6079         New support for mnemonics.
6080
6081         * gtk/gtkmarshal.list:
6082         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
6083
6084         * gtk/gtkmenu.[c]:
6085         * gtkmenushell.c:
6086         Use mnemonics instead of accel groups for uline
6087         support in menu items.
6088         Removed gtk_menu_get_uline_accel_group() and
6089         gtk_menu_ensure_uline_accel_group().
6090
6091         * gtk/gtkmenuitem.c:
6092         Override activate_mnemonic to handle switching between
6093         menu items if there are collisions.
6094         
6095         * gtk/gtknotebook.c:
6096         Connect to activate_mnemonic on the tab_label, so that
6097         activating it switches to that notebook page.
6098
6099         * gtk/gtkwidget.[ch]:
6100         Add activate_mnemonic signal. New function
6101         gtk_widget_activate_mnemonic() to emit it.
6102         Default implementation does activate/grab_focus.
6103
6104         * gtk/gtkwindow.[ch]:
6105         Add support for mnemonics in windows.
6106         New functions:
6107         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
6108         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
6109
6110         * gtk/testgtk.c:
6111         Update to function name changes.
6112         
6113 2001-03-21  Alexander Larsson  <alexl@redhat.com>
6114
6115         * gtk/gtkimagemenuitem.[c]:
6116         Add gtk_image_menu_item_new_from_stock()
6117
6118 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
6119
6120         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
6121         Fix buglet in meeting.
6122
6123 2001-03-19  Havoc Pennington  <hp@redhat.com>
6124
6125         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
6126         add a bunch of accessor functions. This is because we have
6127         reasonable expectations of extending what fields it contains in
6128         the future.
6129
6130         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
6131         changes
6132
6133         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
6134         GtkIconSource   
6135
6136 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
6137
6138         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
6139         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
6140
6141         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
6142           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
6143           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
6144           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
6145         Change float to double everywhere with the exception of 0<->1.0 alignment
6146         and GtkCurve.
6147
6148 2001-03-19  Tor Lillqvist  <tml@iki.fi>
6149
6150         * gdk/win32/gdkdrawable-win32.c
6151         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
6152         output.
6153
6154         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
6155         gdkwin32.h.
6156
6157 2001-03-18  Tor Lillqvist  <tml@iki.fi>
6158
6159         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
6160         print_event_state, print_event): Use preprocessor macro to make
6161         code more compact. Print also GDK_WINDOW_STATE events.
6162         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
6163         
6164         * gtk/gtk.def
6165         * gtk/makefile.mingw.in: Update.
6166
6167         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
6168         to catch also Cygwin.
6169
6170 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
6171
6172         * gtk/gtkspinbutton.[hc]: added rc-style argument
6173         GtkSpinButton::shadow_type.
6174         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
6175         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
6176         rc-style settings.
6177
6178         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
6179
6180         * gtk/gtkwidget.c: quark cleanups.
6181
6182         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
6183         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
6184         to create_rc_style() (we don't do cloning in standard OO sense).
6185         added per rc style properties.
6186         
6187         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
6188         property values and for caching those. some cleanups.
6189         
6190         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
6191         
6192         * gtk/gtksettings.[hc]: new file for global rc-file properties
6193         (at least currently, should get extended to support X properties
6194         and other communication mechanisms).
6195         
6196         * gtk/gtkwidget.[hc]: added style property support:
6197         (gtk_widget_class_install_style_property_parser): install style
6198         property pspec with parser function for rc-file values other
6199         than LONG, DOUBLE or STRING.
6200         (gtk_widget_class_install_style_property): same as above without
6201         parser (parsers are going to be needed quite infrequently).
6202         (gtk_widget_style_get_property): retrive style property value.
6203         (gtk_widget_style_get_valist): same as above with varargs support,
6204         has NOCOPY semantics.
6205         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
6206
6207 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
6208
6209         * demos/gtk-demo/main.c (row_activated_cb): modified to use
6210         "row_activated" signal.
6211
6212         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
6213         stupidity.  Lets actually pass in the row with this signal...
6214
6215 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
6216
6217         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
6218
6219         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
6220
6221         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
6222         everything into the ::destroy function, and freed a lot more.
6223
6224 2001-03-16  Havoc Pennington  <hp@redhat.com>
6225
6226         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
6227         instead of gint16, to avoid overflow issues, since sizes > 16-bit
6228         are now allowed.
6229
6230 2001-03-16  Havoc Pennington  <hp@redhat.com>
6231
6232         * Applied patch from Nils Barth (bug # 51041) to 
6233         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
6234         in various places.
6235
6236 2001-03-15  Havoc Pennington  <hp@redhat.com>
6237         
6238         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
6239         for properties to set on the tag.
6240
6241         * gtk/testtext.c: fixups to reflect create_tag change
6242         
6243         * gtk/gtktexttag.c (gtk_text_tag_set_property):
6244         background/foreground stipple are objects, not boxed.
6245
6246         * demos/gtk-demo/textview.c: intellihancing
6247
6248 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
6249
6250         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
6251         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
6252
6253 2001-03-16  Alexander Larsson  <alexl@redhat.com>
6254
6255         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
6256         Fix sign error with queued region translations.
6257
6258 2001-03-15  HideToshi Tajima  <tajima@happy>
6259
6260         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
6261         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
6262         * gtk/gtkentry.c (update_im_cursor_location): 
6263         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
6264         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
6265         set_cursor_pos to set_cursor_location in GtkInputContext class
6266
6267 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
6268
6269         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
6270         the location of the cell relative to its area.
6271         * gtk/gtkcell*: modified for above change
6272         * gtk/gtktreeview.c: modified for above change.
6273
6274 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
6275
6276         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
6277          (gtk_tree_view_finalize): actually unref the model.  Thanks to
6278         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
6279
6280 2001-03-14  Havoc Pennington  <hp@redhat.com>
6281
6282         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
6283         
6284         * gtk/gtk.h: remove gtkdata.h
6285
6286         * gtk/Makefile.am: remove gtkdata
6287         
6288         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
6289         not "disconnect" on the adjustments.
6290         
6291         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
6292         GtkData
6293
6294         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
6295         not GtkData
6296
6297         * configure.in: handle case where X render exists, but Pango lacks
6298         Xft support.
6299
6300 2001-03-15 Alexander Larsson  <alexl@redhat.com>
6301
6302         * gtk/gtktoolbar.[ch]:
6303         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
6304         to add stock items to toolbars.
6305
6306         * gtk/Makefile.am:
6307         Remove ../gdk/gdkim.h from gdk_headers.
6308
6309 2001-03-15  Sven Neumann  <sven@gimp.org>
6310
6311         * gdk/gdkim.h: removed
6312         
6313         * gdk/gdkprivate.h
6314         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
6315
6316 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
6317
6318         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
6319         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
6320         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
6321         set_cursor_pos() virtual method
6322
6323         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
6324         (gtk_im_context_xim_set_cursor_pos): add implementation for
6325         set_cursor_pos() method
6326
6327         * gtk/gtkentry.c (recompute_idle_func): set current cursor
6328         position to input methods
6329
6330 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
6331
6332         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
6333         code a lot.
6334
6335         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
6336         g_mem_chunk.
6337         (_gtk_tree_data_list_alloc): use g_mem_chunk.
6338         (_gtk_tree_data_list_node_to_value): Fix to switch on
6339         G_TYPE_FUNDAMENTAL.
6340         (_gtk_tree_data_list_value_to_node): Fix to switch on
6341         G_TYPE_FUNDAMENTAL.
6342         (_gtk_tree_data_list_node_copy): Fix to switch on
6343         G_TYPE_FUNDAMENTAL.
6344
6345 2001-03-12  Havoc Pennington  <hp@redhat.com>
6346
6347         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
6348         to convert to new property API. Also, change default_width and
6349         default_height get_property to return 0 as the flag value for
6350         "unset"; -1 is not a valid value for these fields.
6351
6352 2001-03-12  Havoc Pennington  <hp@redhat.com>
6353
6354         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
6355         enum with registration for icon sizes, instead of strings.
6356
6357         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
6358         gtkwidget.c: Fix to reflect GtkIconSize
6359         
6360 2001-03-12  Alexander Larsson  <alexl@redhat.com>
6361
6362         Make GtkFB compile and link.
6363         
6364         * gdk/linux-fb/gdkdrawable-fb2.c:
6365         window->mapped to GDK_WINDOW_IS_MAPPED(). 
6366         
6367         * gdk/linux-fb/gdkwindow-fb.c:
6368         window->mapped to GDK_WINDOW_IS_MAPPED(). 
6369         Added gdk_window_shape_combine_region.
6370         Added assorted placeholders for unimplemented new GdkWindow API calls.
6371
6372 2001-03-12  Alexander Larsson  <alexl@redhat.com>
6373
6374         * gtk/gtkfilesel.c:
6375         Add more test when converting filenames from/to utf-8.
6376         Don't allow entering text in the filename entry which isn't allowed in
6377         a filename. Just beep instead.
6378
6379 2001-03-12  Alexander Larsson  <alexl@redhat.com>
6380
6381         * gtk/gtkclist.c:
6382         Scroll using gdk_window_scroll(). Don't wait for exposes.
6383         Move the column headers in an order that makes them flash less.
6384
6385 2001-03-10  Hans Breuer  <hans@breuer.org>
6386
6387         * gdk/gdk.def : updated
6388
6389         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
6390         to offseting the clip_mask at the right place
6391
6392         * gdk/win32/gdkwindow-win32.c : don't create background brushes
6393         for all the gdkClasses, especially not for the input_only case.
6394         Otherwise flickering wont be avoidable, because we don't get
6395         WM_ERASEBKGND message for these windows.
6396
6397         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
6398         and fixed massive redraw problems apparently triggered by Alexanders 
6399         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
6400         but it seems to work quite well :-)
6401
6402         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
6403         prototype
6404
6405 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
6406
6407         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
6408         (gtk_list_store_set_cell): Fix a stupid typo.
6409
6410 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
6411
6412         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
6413         select_all not work if you're in SINGLE mode (it doesn't make that
6414         much sense, anyway.)
6415
6416         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
6417         handle types more sanely.
6418         (_gtk_tree_data_list_value_to_node): handle types more sanely.
6419         (_gtk_tree_data_list_node_copy): handle types more sanely.
6420
6421         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
6422         GValue better. Converts the type as well.
6423
6424         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
6425         GValue better. Converts the type as well.
6426
6427 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
6428
6429         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
6430         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
6431         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
6432         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
6433
6434         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
6435         gdk_im/gdk_ic.
6436
6437 2001-03-09  Hans Breuer  <hans@breuer.org>
6438
6439         * gdk/gdk.def : updated
6440
6441         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
6442         for their palette
6443
6444         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
6445         removing
6446
6447         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
6448         removing and implemented Havoc's GdkWindow state functions; 
6449         stick/unstick only as no-op, cause I don't know how to emulate 
6450         on win32 ...
6451
6452         * gtk/gtk.def : updated
6453
6454         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
6455
6456         * gtk/gtktypeutils.c : #include <string.h>
6457
6458         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
6459
6460 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
6461
6462         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
6463         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
6464         not a boxed.
6465
6466 2001-03-09  Alexander Larsson  <alexl@redhat.com>
6467
6468         * docs/Changes-2.0.txt:
6469         Document expose event->region change and that gtk_widget_event
6470         doesn't allow passing expose events.
6471
6472         * gdk/gdkevents.h:
6473         Add region to expose event.
6474         
6475         * gdk/gdkevents.c:
6476         Handle event->region in gdk_event_copy() and gdk_event_free().
6477
6478         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
6479         Generate expose_event->region when creating expose events.
6480
6481         * gdk/x11/gdkevents-x11.c:
6482         Generate expose events with regions when translating X events.
6483
6484         * gtk/gtkcontainer.[ch]:
6485         Default expose handler that propagates expose events to NO_WINDOW
6486         children. New function gtk_container_propagate_expose()
6487
6488         * gtk/gtkwidget.[ch]:
6489         Moved gtk_widget_event implementation to gtk_widget_event_internal.
6490         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
6491         expose events. New function gtk_widget_send_expose() to send expose
6492         events. New function gtk_widget_region_intersect() to calculate
6493         window/region intersections.
6494         
6495         * gtk/gtkmain.c (gtk_main_do_event):
6496         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
6497         Use gtk_widget_send_expose() to send expose events.
6498         
6499         * gtk/gtkbin.c:
6500         * gtk/gtkbox.c:
6501         * gtk/gtkfixed.c:
6502         * gtk/gtkimagemenuitem.c:
6503         * gtk/gtklist.c:
6504         * gtk/gtkpacker.c:
6505         * gtk/gtktable.c:
6506         * gtk/gtktree.c:
6507         Remove expose handler, using the default container implementation
6508         instead.
6509         
6510         * gtk/gtkbutton.c:
6511         * gtk/gtkcheckbutton.c:
6512         * gtk/gtkeventbox.c:
6513         * gtk/gtkfixed.c:
6514         * gtk/gtkhandlebox.c:
6515         * gtk/gtklayout.c:
6516         * gtk/gtklistitem.c:
6517         * gtk/gtkmenu.c:
6518         * gtk/gtkmenubar.c:
6519         * gtk/gtkmenuitem.c:
6520         * gtk/gtknotebook.c:
6521         * gtk/gtkoptionmenu.c:
6522         * gtk/gtkpaned.c:
6523         * gtk/gtkscrolledwindow.c:
6524         * gtk/gtktogglebutton.c:
6525         * gtk/gtktoolbar.c:
6526         * gtk/gtktreeitem.c:
6527         * gtk/gtkviewport.c:
6528         Chain expose handler to parent class handler. Use
6529         gtk_container_propagate_expose() to propagate exposes.
6530
6531         * gtk/gtkclist.c (check_exposures):
6532         * gtk/gtktext.c (process_exposes):
6533         Use gtk_widget_send_expose instead of gtk_widget_event.
6534
6535 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
6536
6537         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
6538
6539 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
6540
6541         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
6542         unref the nodes.   Fixes bug #50058.
6543
6544         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
6545         "::ref_iter" to "::ref_node".
6546         (gtk_tree_model_unref_node): change "::unref_iter" to
6547         "::unref_node". Fixes bug #50064.
6548
6549 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
6550
6551         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
6552         support for invisible cells.
6553          (gtk_tree_view_bin_expose): ditto
6554
6555 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
6556
6557         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
6558         on gobjects.
6559
6560         * tests/testtreefocus.c (main): New test file.
6561
6562         * tests/testtreeview.c: update to latest glib changes.
6563
6564         * tests/testtreecolumns.c: update to latest glib changes.
6565
6566 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
6567
6568         * gtk/testgtk.c: re-enabled event watcher emission hooks.
6569
6570 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
6571
6572         * *.c: added accumulator data argument to g_signal_newc()
6573         functions.
6574
6575         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
6576         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
6577         * gtk/treestoretest.c (make_window):
6578         s/g_signal_connect/g_signal_connectc/.
6579
6580         * gtk/gtktextbuffer.c: completed signal arg fixups,
6581         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
6582
6583 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
6584
6585         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
6586         G_CONST_RETURN.
6587
6588         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
6589         ::hierarchy-changed signal when a widget changes
6590         from anchored to unanchored or vice versa.
6591         (anchored means 
6592          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
6593         Use a private flag to keep track of this efficiently.
6594
6595 2001-03-07  Havoc Pennington  <hp@redhat.com>
6596
6597         * gtk/testgtk.c (create_spins): uglify so that size request gets
6598         tested.
6599
6600         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
6601         request on values for upper/lower, completes #6152
6602
6603 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
6604
6605         * Makefile.am: Remove gtk-config-2.0 again.
6606         (Grrrr, pkg-config. And stops make loops.)
6607
6608 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
6609
6610         * gtk/gtksignal.[hc]: removed old emission hook API.
6611         
6612         * docs/Changes-2.0.txt: fixed sections.
6613         
6614         * gtk/gtktextbuffer.c: signal arg fixups.
6615
6616 2001-03-07  Havoc Pennington  <hp@redhat.com>
6617
6618         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
6619
6620         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
6621         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
6622         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
6623         validation and the redraw which is higher priority than the
6624         validation.
6625
6626 2001-03-07  Havoc Pennington  <hp@redhat.com>
6627
6628         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
6629         (gtk_entry_set_property): remove trailer
6630
6631         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
6632         (gtk_entry_get_width_chars): new functions, to set size request to 
6633         a given number of characters
6634
6635         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
6636
6637         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
6638         (gtk_dialog_get_has_separator): new function
6639         (run_delete_handler): fix to not emit "response" signal
6640         because we already did in the delete event handler installed
6641         at dialog creation time.
6642         
6643         * gtk/gtkdialog.h: add a has_separator property,
6644         add GTK_DIALOG_NO_SEPARATOR flag
6645
6646 2001-03-07  Havoc Pennington  <hp@redhat.com>
6647
6648         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
6649         off decorations for a window.
6650
6651         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
6652         changes
6653
6654         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
6655         to get location of PangoLayout inside the label, closes #51198
6656
6657         * gtk/testgtk.c (create_bbox): fix up button box usage
6658
6659         * gtk/testcalendar.c (create_calendar): fix up button box usage
6660
6661         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
6662
6663         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
6664
6665         * gtk/gtkhbbox.h: deprecations
6666
6667         * gtk/gtkvbbox.h: deprecations
6668
6669         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
6670         emulate deprecated gtk_button_box_get_spacing
6671
6672         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
6673         the "set global default" functions
6674         (struct _GtkButtonBox): remove "spacing" field, use the one from 
6675         GtkBox base class
6676
6677         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
6678
6679         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
6680         render the icon, return the missing image icon.
6681
6682         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
6683         image icon if the load fails.   
6684
6685         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
6686         when no image is found; should be the Netscape "missing image"
6687         icon eventually but for now is a random image
6688
6689         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
6690         role for the session manager
6691
6692         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
6693
6694         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
6695         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
6696
6697         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
6698
6699 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
6700
6701         * gtk/*.c: marshaller fixes.
6702         
6703         * gtk/gtkmarshal.list: extreme cleanup.
6704
6705         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
6706         param spec for now.
6707
6708         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
6709         where appliable.
6710
6711         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
6712         special cased autogenerated boxed types from gtktypebuiltins_ids.c
6713         which are not reference counted:
6714         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
6715         PangoFontDescription, GtkTreeIter and GtkTreePath.
6716
6717 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
6718
6719         * gtk/gtktreeselection.h: 
6720         * gtk/gtktreemodel.c:
6721         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
6722         file should be included directly, and gobject/gmarshal.h
6723         as well as gtk/gtkmarshal.h even can't be included directly.
6724
6725         * Makefile.am: grr, install gtk-config-2.0.
6726
6727         * gtk/testgtk.c:
6728         * gtk/simple.c:
6729         * gtk/gtkmenu.c:
6730         * gtk/gtkitemfactory.c: use g_object_connect() instead of
6731         passing "*signal*::*" args to gtk_widget_set().
6732         
6733         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
6734         
6735         * gtk/*.c: removed trailer arg from property setters and getters.
6736         macro fixups.
6737
6738 2001-03-07  Alexander Larsson  <alexl@redhat.com>
6739
6740         * gtk/gtklabel.c (set_markup): Removed warning
6741
6742 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
6743
6744         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
6745         field to allow you to hide cell renderers.
6746
6747         * gtk/gtkcellrenderer.c: Add support for invisible cells.
6748
6749         * gtk/gtktreeview.c: Add support for invisible cells.
6750
6751 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
6752
6753         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
6754         Add "clicked" signal back to columns.
6755
6756         * ChangeLog: remove conflict markers.
6757
6758 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
6759
6760         * gtk/gtkbutton.c: Add animation of activation by, on 
6761         activate, pressing the button, and adding a timeout that 
6762         releases the button after 250ms or on key release and
6763         emits ::clicked. (#51501)
6764
6765         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
6766         action area, we connect to ::clicked instead of ::activate
6767         so the dialog stays up through the animation.
6768
6769 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
6770
6771         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
6772         check the ignore_enter flag for the menu shell that
6773         the item is actually a child of, not for attached
6774         submenus. (#51536)
6775
6776 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
6777
6778         * gtk/gtkmain.c (gtk_propagate_event): Only do special
6779         special key-press grab handling for widgets within
6780         GtkWindows. Otherwise, fall through to normal case.
6781
6782         This prevents key events being sent twice to GtkInvisible
6783         widgets, which can cause all sorts of mischief.
6784
6785 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
6786
6787         * gtk/gtkmain.c (gtk_propagate_event): When a grab
6788         widget is in effect, give the grab widget a first
6789         crack at KEY_PRESS/RELEASE events. (#424)
6790
6791 2001-03-06  James Henstridge  <james@daa.com.au>
6792
6793         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
6794         offset for the window_state_event to point at window_state_event
6795         rather than no_expose_event.
6796
6797 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
6798
6799         * gtk/gtkimmodule.h: fix busted /* comment */
6800
6801 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
6802
6803         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
6804         object properties.
6805
6806 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
6807
6808         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
6809         add object properties.
6810
6811         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
6812         to add object properties.
6813
6814         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
6815         object properties.
6816
6817         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
6818         add object properties.
6819
6820         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
6821         object properties.
6822
6823 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
6824
6825         * gtk/gtktreemodel.c: renamed "child_toggled" to
6826         "has_child_toggled".
6827
6828         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
6829         handle new signal name.
6830
6831         * gtk/gtktreestore.c: Updated to handle new signal name.
6832         * gtk/gtklisttore.c: Updated to handle new signal name.
6833         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
6834
6835 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6836
6837         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
6838         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
6839
6840 2001-03-05  Michael Natterer  <mitch@gimp.org>
6841
6842         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
6843         pixbuf-engine coincidentially also failed to make one of it's
6844         parent_class pointers static, causing overwriting of GtkLabel's
6845         parent_class pointer in pixbuf_style_class_init().
6846         (Will commit the fix to the pixbuf-engine too).
6847
6848 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6849
6850         * gdk/gdkwindow.h:
6851         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
6852         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
6853         gdk_window_set_icon_list for net wmspec functionality.
6854
6855         * gdk/x11/gdkwindow-x11.c:
6856         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
6857         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
6858         gdk_window_set_icon_list.
6859         Added gdk_wmspec_change_state helper function and used it in the code.
6860         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
6861
6862         * gtk/gtkdialog.c (gtk_dialog_init):
6863         Set GDK_WINDOW_TYPE_HINT_DIALOG.
6864
6865         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
6866         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
6867
6868         * gtk/gtkwindow.c:
6869         new function gtk_window_set_type_hint.
6870         On realize, set type hint and modal hint.
6871
6872         * gtk/gtkwindow.h:
6873         Added type_hint field and gtk_window_set_type_hint.
6874
6875 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6876
6877         * gtk/gtklabel.[ch]:
6878         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
6879         New function gtk_label_get_accel_keyval () to get the underline accelerator
6880         of the label. Setting the label pattern overrides other attributes.
6881
6882 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
6883
6884         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
6885         Added missing initializers to gtk_rc_style_init().
6886
6887 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
6888
6889         * gtk/gtktextview.c: fixed bug #51097 about setting 
6890         gtk_text_view_set_border_window_size() if the widget is 
6891         already realized.
6892
6893 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
6894
6895         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
6896
6897         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
6898         comment. Won't do to have duplicated doc comments between
6899         the platform subdirs.
6900
6901 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
6902
6903         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
6904           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
6905
6906         Detectable auto-repeat - make a repeating key generate
6907         press/press/press/release instead of press/release pairs.
6908
6909         If we have Xkb and XkbSetDectableAutoRepeat supports
6910         that, we do it that way. Otherwise, when we get
6911         a release event, we check ahead with XPending to see
6912         if the next key is a KeyPress with the same keycode
6913         and timestamp. (Not 100% reliable, but pretty close.)
6914           
6915 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
6916         
6917         * gtk/gtkmain.c (gtk_propagate_event): Only do special
6918         special key-press grab handling for widgets within
6919         GtkWindows. Otherwise, fall through to normal case.
6920  
6921         This prevents key events being sent twice to GtkInvisible
6922         widgets, which can cause all sorts of mischief.
6923  
6924 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
6925  
6926         * gtk/gtkmain.c (gtk_propagate_event): When a grab
6927         widget is in effect, give the grab widget a first
6928         crack at KEY_PRESS/RELEASE events. (#424)
6929  
6930 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
6931
6932         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
6933         to extend the selection. (Roughly based on patch
6934         from Jay Cox, #50939)
6935
6936         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
6937         to properly handle previous GDK_BUTTON_PRESS. 
6938         (Patch from Jay Cox, #50938)
6939
6940         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
6941         '\0' back along with the deleted text. (#51148)
6942
6943 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
6944
6945         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
6946         the group when extracting it from the X keyboard event.
6947
6948         * modules/input/Makefile.am modules/input/imipa.c: 
6949         Simple module for entering IPA. (Do we need a 
6950         gtk-stupid-input-tricks CVS module?)
6951
6952 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
6953
6954         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
6955         const.
6956
6957         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
6958
6959         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
6960         is no focus widget for the dialog currently, grab the focus as well
6961         as the default.
6962
6963         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
6964         the action area's children to iterate through, not the
6965         dialog's children.
6966
6967 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
6968
6969         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
6970         Add plug-socket tests. (Won't work worth a darn until I commit
6971         the rest of the plug-socket changes, but no reason these
6972         can't go into CVS now.)
6973
6974 2001-03-02  Havoc Pennington  <hp@redhat.com>
6975
6976         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
6977         _gdk_region_get_xrectangles()
6978
6979         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
6980
6981         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
6982
6983         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
6984         function, contributed by Ron Steinke    
6985
6986         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
6987         gdk_net_wm_supports
6988
6989         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
6990         New function, contributed by Ron Steinke
6991
6992         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
6993         used to line up the text in the entry when using the entry for
6994         editable sheet cell hacks
6995
6996         * gtk/testgtk.c (create_entry): test the activate_default setting
6997         on GtkEntry
6998
6999         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
7000         cause the entry to activate the default button for a dialog when 
7001         activated
7002         (gtk_entry_get_activates_default): new function
7003
7004 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
7005
7006         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
7007         Hwang to move call to sync_selection() up a few lines
7008         to before the row list is modified, to fix crash when
7009         removing rows in the undo_selection list.
7010
7011         (Test case provided by Daniel Elstner:
7012
7013         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
7014
7015 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
7016
7017         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
7018         of tree->root_tree in parent_set rather than _map(), 
7019         fixing #50892 in a bit better manner.
7020
7021 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
7022
7023         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
7024
7025 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
7026
7027         * gtk/gtkstyle.c : Remove duplicate fwd decl for
7028         gtk_default_draw_shadow.
7029
7030 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
7031
7032         * gdk/gdkimage.c (gdk_image_new): Remove excess 
7033         warning, make warnings more verbose, treat a error
7034         in shmat as permanent, and don't try again.
7035         (#51163, Ed Randall.)
7036
7037 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
7038
7039         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
7040         delay for the first click before starting to scroll.
7041         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
7042
7043         * gtk/gtktext.c: GtkText should have I-beam cursor. 
7044         (based on gtk-enf-990513-1.patch, Eric Fisher.)
7045
7046 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
7047
7048         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
7049         cleanup to remove some references to unused
7050         ->xoffset, ->yoffset.
7051
7052 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
7053
7054         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
7055         mask. (#51039, fix from Martin Maierhofer)
7056
7057 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
7058
7059         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
7060         for unshifted + and shifted = for non-us keyboards.
7061         Make <Control>+ and <Control>- work as well as 
7062         <Control>KP_Plus, <Control>KP_Minus for recursive
7063         open/close.  (#2682, René Seindal)
7064
7065 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
7066
7067         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
7068         the active menu item before deactivating the menu,
7069         so gtk_menu_popdown doesn't change the history. (#50964)
7070         
7071 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
7072
7073         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
7074         draw lines with text_gc rather than black_gc.
7075         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
7076
7077 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
7078
7079         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
7080         Move handling of buttons fully in gtktreeviewcolumn.  This code is
7081         less interrelated then it was, but it still requires the
7082         GtkTreeView to map it.
7083
7084         * test/testtreecolumn.c: Now I can add a column to one view,
7085         remove it, add it to the another view, remove it, then re-add it
7086         to the first.  Nifty.
7087
7088 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
7089
7090         * docs/tutorial/gtk-tut.sgml: Minor corrections
7091
7092 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
7093
7094         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
7095         GtkRowReference.
7096
7097 2001-02-28  Havoc Pennington  <hp@redhat.com>
7098
7099         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
7100         draw_default
7101         (gtk_widget_draw_focus): remove this function; we could instead
7102         make it just gtk_widget_draw(), but in most cases I think the
7103         result would be broken user code, so think it's better to have
7104         that code not compile and get fixed
7105         (gtk_widget_draw_default): ditto
7106
7107         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
7108         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
7109         
7110         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
7111         widgets lose/get the default, instead of calling draw_default
7112         
7113         * docs/Changes-2.0.txt: note about all this
7114
7115         Then fixed every widget in GTK, I won't list all the filenames.
7116
7117 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
7118
7119         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
7120         _gtk_tree_row_reference_deleted.
7121         (inserted_callback): Proxy out to
7122         _gtk_tree_row_reference_inserted.
7123         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
7124         get around signal emission ordering problem.
7125
7126         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
7127         fix to work with SINGLE 
7128         (_gtk_tree_selection_internal_select_node): Major sanitization on
7129         selections.  SINGLE now seems to work.
7130
7131         * tests/Makefile.am: add testtreecolumn.c:
7132
7133         * tests/testtreecolumn.c: New test.  Mostly points out selection
7134         bugs currently, but will test columns later.
7135
7136         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
7137         selection bug.  I hate touching this code -- it's scary.
7138
7139 2001-02-26  Havoc Pennington  <hp@redhat.com>
7140
7141         * gtk/testgtk.c: test the window state stuff
7142
7143         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
7144         window come to the user's attention as if it were just created
7145         (gtk_window_iconify): new function
7146         (gtk_window_deiconify): new function
7147         (gtk_window_stick): new function
7148         (gtk_window_unstick): new function
7149         (gtk_window_maximize): new function
7150         (gtk_window_unmaximize): new function
7151
7152         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
7153
7154         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
7155
7156         * gdk/x11/gdkevents-x11.c: create window state events when
7157         appropriate
7158         (gdk_wmspec_supported): new function
7159
7160         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
7161         iconification before showing the window
7162         (gdk_window_deiconify): new function
7163         (gdk_window_stick): new function
7164         (gdk_window_unstick): new function
7165         (gdk_window_maximize): new function
7166         (gdk_window_unmaximize): new function
7167
7168         * gdk/gdkwindow.c: store the window state in the window; 
7169         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
7170         window->mapped.
7171         (gdk_window_get_state): return the current window state
7172
7173         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
7174         (gdk_event_get_state): handle GDK_WINDOW_STATE
7175         (gdk_synthesize_window_state): function to create the window state
7176         events
7177
7178         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
7179         event, for changes to "window state" such as maximized, sticky, 
7180         etc.
7181         
7182         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
7183         focuses a window
7184
7185         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
7186         finds out if we support a given WM spec hint
7187
7188 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
7189
7190         * docs/faq/gtk-faq.sgml: New question re memory leaks.
7191
7192 2001-02-25  Hans Breuer  <hans@breuer.org>
7193
7194         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
7195         cause we want to loose those prototypes only in the latter case
7196
7197         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
7198         GdkPixmapImplWin32 because it itsn't derived from it. Use the
7199         impl member variable instead
7200
7201         * gtk/gtk.def : updated
7202
7203         * gtk/gtklist.c : 
7204         * gtk/gtkmenus.c : include <string.h> for memset ()
7205
7206         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
7207         for everthing built here, but for gtk-x.x.dll only. This solves
7208         problem of indifferent gtk type definitions
7209
7210 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
7211
7212         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
7213
7214 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
7215
7216         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
7217         column that is exposed.
7218
7219         (_gtk_tree_view_update_size): Changed name from set_size, and
7220         changed function to do more work, and not force people calling it
7221         to figure out the size.  Simplifies a lot of code elsewhere.
7222
7223 2001-02-23  Alexander Larsson  <alexl@redhat.com>
7224
7225         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
7226         return solid masks for xpms that have no transparent color.
7227         This makes the ..._create_from_xpm... API backwards
7228         compatible.
7229
7230 2001-02-23  Tor Lillqvist  <tml@iki.fi>
7231
7232         * README.win32: Update. Mention the gtk-1-3-win32-production
7233         branch.
7234
7235         * gdk/win32/bdfcursor.c: New file. A program that generates
7236         xcursors.h. Thanks to Stefan Ondrejicka.
7237
7238         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
7239         compact format.
7240
7241         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
7242
7243         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
7244         function, uses xcursors.h.
7245         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
7246         cursor from inline data instead of using LoadCursor() to generate
7247         it from a resource.
7248
7249         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
7250         event, must check the Windows message for mouse button state, as
7251         the GDK event state might not have been built if it is
7252         undelivered. Remove one goto.
7253
7254         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
7255         SetCursor() if the current cursor as returned by GetCursor() is
7256         the window's previous cursor. The ChildWindowFromPoint() test
7257         apparently didn't work correctly.
7258
7259         * gdk/win32/rc/*.cur: Remove.
7260
7261         * gdk/win32/rc/gdk.rc.in: Remove cursors.
7262
7263         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
7264
7265         * gtk/makefile.{mingw,msc}.in: Updates.
7266
7267 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
7268
7269         * gtk/gtktreemodel.h: add functions for signal emission.
7270
7271         * gtk/gtktreestore.c: move to use above functions instead of
7272         g_signal_emit.
7273
7274         * gtk/gtkliststore.c: ditto
7275
7276 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
7277
7278         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
7279         GObject instead of GtkObject.
7280
7281         * gtk/gtkliststore.c: ditto.
7282
7283         * gtk/gtktreemodelsort.c: ditto.
7284
7285         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
7286         GtkTreeModelIface, instead of in each model.
7287
7288 2001-02-21  Havoc Pennington  <hp@redhat.com>
7289
7290         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
7291         unbreak this function
7292
7293         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
7294         properties
7295
7296         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
7297         properties
7298
7299         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
7300         properties
7301
7302         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
7303         mean unset the max length
7304
7305 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
7306
7307         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
7308         Changed name to be set_cell_data_func to make it clear what
7309         the functino does.  Close bug #51069.
7310
7311 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
7312
7313         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
7314         have memory actually freed.  Keeps box running longer.
7315
7316 2001-02-21  Alexander Larsson  <alexl@redhat.com>
7317         
7318         * gtk/gtkseparatormenuitem.[ch]:
7319         Added new menu separator item. The drawing and size handling
7320         is still done in GtkMenuItem, but the API is a bit more sane.
7321         
7322         * gtk/Makefile.am:
7323         Add gtkseparatormenuitem.[ch].
7324
7325         * gtk/gtk.h:
7326         Add gtkseparatormenuitem.h.
7327         
7328         * gtk/gtkentry.c:
7329         * gtk/gtkmenufactory.c:
7330         * gtk/gtktextview.c:
7331         Use the new API for menu separators.
7332         
7333         * demos/gtk-demo/menus.c (create_menu):
7334         Add some GtkSeparatorMenuItem demo code.
7335
7336 2001-02-20  Havoc Pennington  <hp@redhat.com>
7337
7338         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
7339         Lee Mallabone
7340
7341         * gtk/gtkarrow.c: Convert to new property API, patch from 
7342         Lee Mallabone
7343
7344 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
7345
7346         * tests/testtreeview.c (toggled_callback): fix to reflect change
7347         in GtkTreeModelStore.
7348
7349 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
7350
7351         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
7352         function to create an icon set from a pixbuf.
7353
7354 2001-02-20  Alexander Larsson  <alexl@redhat.com>
7355
7356         * gtk/gtkcellrenderertext.[ch]:
7357         Add a "markup" property.
7358
7359         * gtk/treestoretest.c:
7360         Use the markup property, remove some leftover stuff from
7361         GtkTreeModelMapping.
7362
7363 2001-02-20  Alexander Larsson  <alexl@redhat.com>
7364
7365         * gtk/gtklabel.c (gtk_label_set_selectable):
7366         Queue a redraw if the selectable setting was changed.
7367
7368 2001-02-20  Alexander Larsson  <alexl@redhat.com>
7369
7370         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
7371         Actually copy the whole gc, not just the public parts.
7372         
7373         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
7374         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
7375         labels.
7376
7377 2001-02-19  Havoc Pennington  <hp@pobox.com>
7378
7379         * gdk/gdkwindow.c: docs
7380
7381         * gdk/gdkrgb.c: docs
7382
7383         * gdk/gdkregion-generic.c: docs
7384
7385         * gdk/gdkgc.c (gdk_gc_set_values): docs
7386
7387         * gdk/gdkdraw.c: docs
7388
7389         * gdk/gdkdrawable.h: deprecate drawable get/set data
7390
7391 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
7392
7393         * demos/gtk-demo/dialog.c: Add simple new demo.
7394
7395 2001-02-19  Havoc Pennington  <hp@redhat.com>
7396
7397         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
7398         insert_child_anchor signal, bug #50245
7399
7400         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
7401         from create_child_anchor, so the anchor is passed in
7402
7403         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
7404         (_gtk_widget_segment_new): have the child anchor object passed in, 
7405         instead of creating it.
7406
7407         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
7408         to gtk_text_buffer_get_modified
7409
7410 2001-02-19  Havoc Pennington  <hp@redhat.com>
7411
7412         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
7413         changed GLib without fixing GTK
7414
7415         * gtk/gtkrange.h: Rename all the stupid implementation detail 
7416         functions to have an underscore in front. Most of them should 
7417         probably just go away, but for starters don't export them.
7418         Bug #50482
7419
7420 2001-02-19  Havoc Pennington  <hp@redhat.com>
7421
7422         * gdk/gdkcolor.h: test was backward, so deprecated functions were
7423         excluded by default
7424
7425         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
7426         clean up the old code a bit
7427
7428         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
7429         inconsistent state
7430
7431         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
7432         draw inconsistent state
7433
7434         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
7435         (create_menu): add inconsistent test
7436
7437         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
7438         new function
7439         (gtk_check_menu_item_get_inconsistent): new function
7440         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
7441         state (using etched in for now)
7442
7443         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
7444         draw inconsistent state
7445
7446         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
7447         function, used when the user has selected a range of stuff in
7448         different states
7449         (gtk_toggle_button_get_inconsistent): accessor for that
7450         (gtk_toggle_button_paint): draw inconsistent state (etched in?
7451         don't know what else to do)
7452
7453 2001-02-19  Hans Breuer <hans@breuer.org>
7454
7455         * gtk/gtk.def : updated exported symbols
7456
7457         * gtk/makefile.msc.in : updated
7458
7459         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
7460         a colormap, when invoked from testgtk::entry. I'm not sure where
7461         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
7462         avoids immediate crashing ...
7463
7464         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
7465         any objections ?
7466
7467         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
7468         0 parameter. At least msvc doesn't like macros with var args. 
7469         I simply removed the extra 0, was it a feature or a typo ?
7470
7471         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
7472         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
7473         because the value assignment to the internal struct wasn't working.
7474         I'm not absolutely sure. The problem could have been resolved by
7475         changing the "func" declartion in the struct, but was the pointer
7476         to the function pointer intended ?
7477
7478         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
7479
7480         * gdk/gdk.def : updated exported symbols
7481
7482         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
7483         only use SetDIBitsToDevice if there is a palette at the drawable
7484         and the image is GDK_VISUAL_PSEUDO_COLOR
7485
7486         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
7487
7488         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
7489
7490         * gdk/*/makefile.msc : updated
7491
7492 2001-02-19  Havoc Pennington  <hp@redhat.com>
7493
7494         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
7495         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
7496
7497         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
7498         (gdk_key_repeat_restore): nuke
7499
7500         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
7501         (gdk_init_check): no atexit func
7502
7503         * gdk/gdkrgb.h: mark some stuff deprecated
7504
7505         * gdk/gdkcolor.h: mark some stuff deprecated
7506         
7507         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
7508
7509         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
7510
7511 2001-02-16  Havoc Pennington  <hp@redhat.com>
7512
7513         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
7514         scroll steps.
7515
7516         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
7517         steps, and add Ctrl-arrow shortcuts for paging visually as with
7518         HScale, since Page Up and Page Down move logically.
7519
7520         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
7521         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
7522         
7523         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
7524         steps
7525         (gtk_range_scroll): handle the visual steps
7526
7527         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
7528         scroll steps
7529
7530         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
7531         steps, not the logical ones.
7532
7533         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
7534         (scroll_vertical): handle up/down steps
7535
7536 2001-02-19 Alexander Larsson  <alexl@redhat.com>
7537
7538         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
7539         Copy data and free data with free().
7540
7541         * gdk-pixbuf/gdk-pixbuf.c:
7542         * gdk-pixbuf/io-jpeg.c:
7543         * gdk-pixbuf/io-png.c:
7544         Use g_try_malloc/g_free instead malloc/free.
7545         
7546         * gdk-pixbuf/test-gdk-pixbuf.c:
7547         Must... initialize... gobject...
7548         
7549         * gdk-pixbuf/pixops/timescale.c:
7550         * gtk/gtkcalendar.c:
7551         Use g_malloc instead of malloc.
7552         
7553 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
7554
7555         * gtk/testgtkrc:
7556         Comment out property assignments, these don't work yet.
7557
7558 2001-02-17  Havoc Pennington  <hp@pobox.com>
7559
7560         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
7561         bit.
7562
7563 2001-02-17  Havoc Pennington  <hp@pobox.com>
7564
7565         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
7566         shadowed variables that had broken size request in some cases,
7567         leading to bogus tooltips (#50996)
7568
7569 2001-02-06  Jon K Hellan  <hellan@acm.org>
7570
7571         Implement fast browsing of tooltips, bug #50619
7572         
7573         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
7574         and last_popdown
7575         
7576         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
7577         use_sticky_delay and last_popdown.
7578         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
7579         time of popdown.
7580         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
7581         is NULL.
7582         (gtk_tooltips_recently_shown): New static function.  Return true
7583         if < sticky_delay has elapsed since last popdown.
7584         (gtk_tooltips_event_handler): Display window after sticky_delay
7585         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
7586         since last popdown.
7587         
7588 2001-02-17  Havoc Pennington  <hp@pobox.com>
7589
7590         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
7591         instead of (). #6394
7592
7593         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
7594         G_CONST_RETURN, make it return by reference, #50473
7595         
7596 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
7597
7598         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
7599         generated ENTER_NOTIFY event with 0, otherwise not explicitely
7600         setup fields contain garbage (e.g. subwindow, breaking
7601         gdk_drawable_ref() upon event copy).
7602         (gtk_menu_stop_navigating_submenu_cb): same here.
7603
7604         * gtk/gtklist.c (gtk_list_vertical_timeout): 
7605         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
7606         * gtk/gtkclist.c (vertical_timeout): 
7607         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
7608         default-zero-intialization for unions to memset(,0,), as unions are
7609         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
7610         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
7611
7612         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
7613         g_closure_sink() warning.
7614
7615         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
7616         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
7617         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
7618         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
7619         
7620 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
7621
7622         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
7623         gtk_*_store_get, and moved to GtkTreeModel.
7624
7625         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
7626
7627         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
7628
7629         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
7630
7631         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
7632         set the func.
7633
7634         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
7635         freeze/thaw notify between setting all the properties for a cell.
7636
7637         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
7638
7639 2001-02-15  Havoc Pennington  <hp@redhat.com>
7640
7641         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
7642         the X coordinates so they're with respect to the line, rather than 
7643         with respect to the layout.
7644
7645         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
7646         Mallabone
7647
7648         * gtk/testgtk.c (create_range_controls): add vscale tests, 
7649         and inverted test
7650
7651         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
7652         #50806
7653
7654         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
7655
7656         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
7657         gtk_text_iter_is_end
7658
7659         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
7660         rename gtk_text_buffer_get_end_iter
7661
7662         * gtk/testgtk.c (create_labels): Add test for selectable
7663
7664         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
7665         the selection stuff. This code is kind of broken since it doesn't 
7666         use the theme engine.
7667
7668         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
7669         fix infinite loop and y offset problem
7670         (gdk_draw_layout_line_with_colors): fix foreground color handling
7671
7672         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
7673         that makes the label selectable.
7674         
7675         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
7676         layout when the style is set, since fonts etc. could have changed.      
7677
7678 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
7679
7680         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
7681
7682         * gtk/gtktreemodelsimple.[ch]: removed.
7683
7684 2001-02-16  Alexander Larsson  <alexl@redhat.com>
7685
7686         * gtk/gtktreemodelmapping.[ch]:
7687         New files. Implement GtkTreeModelMapping.
7688         
7689         * gtk/Makefile.am:
7690         Add gtktreemodelmapping.[ch].
7691         
7692         * gtk/gtk.h:
7693         Add gtktreemodelmapping.h
7694
7695         * gtk/treestoretest.c:
7696         Test the GtkTreeModelMapping
7697
7698 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
7699
7700         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
7701         have a demo, we might as well pass in real values.  Thanks to
7702         clahey for pointing this out.
7703
7704 2001-02-14  Havoc Pennington  <hp@pobox.com>
7705
7706         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
7707         "static" to a private function
7708         (gtk_image_menu_item_class_init): remove destroy handler,
7709         add "image" object property
7710
7711 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
7712
7713         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
7714         Add a shortcut if the window and the current clip_region doesn't
7715         overlap. This is needed when there are a lot of windows in a
7716         window. The layout test in testgtk is a good test.
7717
7718         * gdk/linux-fb/gdkwindow-fb.c:
7719         Whitespace fix.
7720
7721 2001-02-13  Sven Neumann  <sven@convergence.de>
7722
7723         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
7724
7725 2001-02-13  Alexander Larsson  <alexl@redhat.com>
7726
7727         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
7728         Don't reference last_cursor if it is null. Fixes crash when rotating
7729         the screen before having moved the mouse.
7730
7731         * gdk/linux-fb/gdkcc-fb.c: Zapp!
7732
7733         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
7734
7735         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
7736         when using 90 or 270 degrees rotation.
7737
7738 2001-02-12  Havoc Pennington  <hp@pobox.com>
7739
7740         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
7741         it always set the foreground, even if we were only using
7742         a stipple.
7743         (gdk_draw_layout_line_with_colors): new function, allow
7744         override colors
7745         (gdk_draw_layout_with_colors): new function, allow override
7746         colors
7747         (gdk_pango_layout_line_get_clip_region): function to get the clip
7748         region for a logical text range
7749         (gdk_pango_layout_get_clip_region): get the clip region for a
7750         logical text range
7751
7752         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
7753         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
7754         the right number of arguments.
7755
7756         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
7757         enhance the function to check that node data corresponds to a 
7758         view still belonging to the tree.
7759
7760         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
7761         GtkTreePath
7762         (gtk_tree_view_inserted): ditto
7763         (gtk_tree_view_child_toggled): ditto
7764
7765         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
7766         simplify this code.
7767
7768         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
7769         a PangoAttrList
7770
7771         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
7772
7773         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
7774
7775         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
7776         size in the size request 
7777         (gtk_menu_bar_size_allocate): consider toggle size here
7778
7779         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
7780         that displays a widget in the toggle slot
7781
7782         * gtk/testgtk.c: test GtkImageMenuItem
7783
7784         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
7785         
7786         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
7787         request and allocation
7788
7789         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
7790
7791         * gtk/gtkcheckmenuitem.c
7792         (gtk_check_menu_item_toggle_size_request): ditto
7793         
7794 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
7795
7796         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
7797         reference.
7798
7799         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
7800         and refuse to initialize GTK+ if they fail.
7801
7802 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
7803
7804         * configure.in: Add check for gtk-doc version.
7805
7806 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
7807
7808         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
7809         where the xpad/ypad was only being used on one side!
7810
7811 2001-02-11  Tor Lillqvist  <tml@iki.fi>
7812
7813         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
7814         function, copied from X11 version.
7815
7816         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
7817         DestroyCursor failures. The reason for the problem (despite the
7818         inconsistent messages from GetLastError()) was that
7819         DestroyCursor() cannot be called while a cursor is set in a
7820         window. Set the new cursor first and then destroy the old one.
7821         Thanks to jpe@archaeopteryx.com.
7822
7823         * gdk/win32/gdkcc-win32.c: Remove.
7824
7825         * gdk/win32/Makefile.am: Remove from here, too.
7826         
7827         * gdk/gdk.def
7828         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
7829
7830         * gtk/gtk.def
7831         * gtk/makefile.mingw.in: Updates.
7832
7833 2001-02-08  Havoc Pennington  <hp@redhat.com>
7834
7835         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
7836         add a widget to a bin that already has a child.
7837
7838         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
7839
7840         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
7841         
7842         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
7843
7844         * gdk/gdk.h: remove gdkcc.h
7845
7846         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
7847
7848         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
7849         GdkPixbuf, since the previous implementation was GdkColorContext
7850         dependent.
7851
7852         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
7853         
7854 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
7855
7856         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
7857         a sane value!
7858
7859 2001-02-08  Havoc Pennington  <hp@redhat.com>
7860
7861         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
7862         lighten them.
7863
7864 2001-02-08  Havoc Pennington  <hp@redhat.com>
7865
7866         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
7867         validation idle
7868
7869         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
7870         cell renderer
7871
7872         * demos/pixbuf-demo.c (timeout): remove deprecated
7873         gtk_widget_draw
7874
7875         * demos/testpixbuf-save.c (main): remove deprecated
7876         gtk_drawing_area_size
7877
7878         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
7879         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
7880         at the start of the allocation.
7881         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
7882         unsetup or NULL model.
7883
7884         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
7885         even/odd/sorted cells in the tree view.
7886
7887         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
7888         bugfixes
7889
7890         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
7891         backgrounds with draw_flat_box using different detail for even/odd
7892         rows.
7893
7894         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
7895         row, so we can draw the alternating colors thing
7896
7897         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
7898         property from a synonym property, notify for the synonym.
7899         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
7900         (gtk_text_tag_get_property): Always return the font, even if
7901         all its fields aren't set
7902
7903         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
7904         store the attr list; it leaves us with no way to change attributes
7905         in _render according to the render flags, and no way to implement
7906         get_property. Instead store all the specific text attributes. 
7907         Separate whether an attribute is enabled from its value. Sync all
7908         properties with GtkTextTag, make them all consistent, etc.
7909
7910         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
7911         renderers can highlight the sort row/column     
7912
7913         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
7914         accessor functions to get values; this has the side effect of
7915         showing up which accessor functions were missing. Added those.
7916
7917         * gtk/gtktreeviewcolumn.h: Replace set_justification with
7918         set_alignment, to be consistent with GtkLabel, GtkMisc
7919
7920         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
7921         arrow.
7922
7923         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
7924
7925         * gtk/gtktreesortable.h: updates in here
7926
7927 2001-02-07  Sven Neumann  <sven@convergence.de>
7928
7929         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
7930         pango dimensions after painting the background. We used to draw
7931         gigantic flat boxes here.
7932
7933 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
7934
7935         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
7936         error introduced with earlier commit) (pointed out by
7937         Ollie Lho)
7938
7939 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
7940
7941         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
7942         which are no longer necessary.
7943
7944 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
7945
7946         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
7947
7948 2001-02-04  Tor Lillqvist  <tml@iki.fi>
7949
7950         * gdk/gdk.def
7951         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
7952         Provide dummy implementations.
7953
7954 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
7955
7956         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
7957
7958         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
7959         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
7960         deprecated this function.
7961
7962         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
7963         argument.
7964
7965 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
7966
7967         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
7968
7969 2001-02-03  Havoc Pennington  <hp@pobox.com>
7970
7971         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
7972         Mikael Hermansson with patch from Mikael (if there was a toggle
7973         start one after the first character in the range, this function
7974         was broken). Bug #50380
7975
7976 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
7977
7978         * configure.in: Remove confusing comment about X11.
7979
7980 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
7981
7982         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
7983         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
7984         
7985 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
7986
7987         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
7988         it breaks things on BSD. If you want to compile GTK+ with
7989         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
7990         when configuring, since GTK+ simply can't be "pure ANSI" 
7991         in the header files it uses. (#8170, Greg Hudson)
7992
7993 2001-02-02  Havoc Pennington  <hp@redhat.com>
7994
7995         * gtk/gtkwindow.c: docs
7996
7997         * gtk/gtkwidget.c: docs
7998         (gtk_widget_set_colormap): add a reference to the colormap
7999         (gtk_widget_get_default_colormap): add a reference to the colormap
8000
8001         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
8002
8003         * gtk/gtktextiter.c: docs
8004
8005         * gtk/gtkmain.c (gtk_propagate_event): docs
8006
8007         * gtk/gtkpaned.c (gtk_paned_get_position): docs
8008         (gtk_paned_set_position): docs
8009
8010         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
8011         sort interface, no implementation yet.
8012
8013         * demos/testpixbuf.c (new_testrgb_window): replace
8014         gtk_drawing_area_size() with gtk_widget_set_usize()
8015
8016         * demos/testpixbuf-drawable.c (main): ditto
8017         
8018         * gtk/testgtk.c: remove use of GtkStatusbarMsg
8019
8020         * gtk/gtktextbuffer.c: docs
8021
8022         * gtk/gtkstock.c: docs
8023
8024         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
8025
8026         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
8027
8028         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
8029         
8030         * gtk/gtkimage.c: add some docs in here
8031         (gtk_image_size_request): change name of
8032         gtk_widget_render_stock_icon
8033         (gtk_image_get_icon_set): don't dup returned string
8034         (gtk_image_get_icon_set): don't dup returned string
8035
8036         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
8037         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
8038         and gtkiconfactory.h functions
8039
8040         * gtk/gtkiconfactory.c: add some docs in here
8041
8042         * gtk/gtkmain.c (gtk_get_default_language): document
8043         (gtk_get_current_event): document
8044         (gtk_get_current_event_state): document
8045         (gtk_get_event_widget): document
8046
8047         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
8048
8049         * gtk/gtkcontainer.c: Add some documentation
8050         (gtk_container_add): give a more explanatory warning on adding an
8051         already-parented widget, this is kind of a FAQ and also a common
8052         typo that's easier to debug with a nice warning 
8053
8054         * gtk/gtkcellrenderertoggle.c
8055         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
8056         adding this, it's useless
8057         (gtk_cell_renderer_toggle_set_active): remove
8058         (gtk_cell_renderer_toggle_get_radio): add
8059
8060         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
8061         the NULL cell renderer, that doesn't make any sense to me. 
8062
8063         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
8064         demo code should never use deprecated features.
8065
8066         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
8067         code should never use deprecated features.
8068
8069         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
8070         gtk_widget_queue_clear_area deprecated
8071
8072         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
8073         deprecated
8074
8075         * gtk/gtklabel.h: mark gtk_label_get() deprecated
8076
8077         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
8078         a GdkImage deprecated, replaced by new consistently-named
8079         functions       
8080
8081         * gtk/gtkmain.h: Mark gtk_exit() deprecated
8082
8083         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
8084
8085         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
8086         deprecated
8087
8088         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
8089         so it won't appear in docs and confuse people.
8090
8091         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
8092
8093         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
8094         macros deprecated. (can't mark the type itself deprecated, since
8095         GtkProgressBar is not deprecated and we need the type decl to use
8096         GtkProgressBar)
8097
8098         * gtk/gtkpixmap.h: Mark deprecated
8099
8100         * gtk/gtkoldeditable.h: Mark deprecated
8101
8102         * gtk/gtklist.h: Mark deprecated
8103
8104         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
8105         for anything anymore.
8106
8107         * gtk/gtkctree.h: Mark deprecated
8108
8109         * gtk/gtkclist.h: Mark deprecated
8110
8111         * gtk/gtkpreview.h: Mark deprecated
8112
8113         * gtk/gtkpacker.h: Mark deprecated
8114
8115         * gtk/gtktipsquery.h: Mark deprecated
8116
8117         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
8118
8119         * gtk/gtkvruler.h: Add comment that it will move out of GTK
8120
8121         * gtk/gtkhruler.h: Add comment that it will move out of GTK
8122
8123         * gtk/gtkruler.h: Add comment that it will move out of GTK
8124
8125         * gtk/gtkgamma.h: Add comment that it will move out of GTK
8126
8127         * gtk/gtkcurve.h: Add comment that it will move out of GTK
8128
8129 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
8130
8131         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
8132         gdk_colormap_sync private since it was never exported
8133         in a header file.
8134
8135         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
8136         colormap->colors[] for StaticGray, StaticColor colormaps.
8137
8138         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
8139         was being used as if it was image->bits_per_pixel.
8140
8141         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
8142         for the image in the GdkImage structure since it isn't
8143         reconstructable, and we need it to handle packed types
8144
8145         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
8146         the assumption that on Win32 image->bits_per_pixel == image->depth,
8147         always.
8148
8149         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
8150
8151         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
8152         warning message if no converter can be found. 
8153
8154 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
8155
8156         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
8157         chars to isupper() / tolower(). (#567)
8158
8159         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
8160         to clear up 64-bit warnings. (#567)
8161
8162 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
8163
8164         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
8165         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
8166
8167         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
8168         since some people set $(libdir) separately. (#1290, David Kaelbling)
8169
8170 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
8171
8172         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
8173         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
8174         MAXPATHLEN, but the code here depends on a fixed value.)
8175         (#4524)
8176
8177 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
8178
8179         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
8180         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
8181
8182 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
8183
8184         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
8185         viewable there is no way that moving the node will cause the 
8186         focus row to become not viewable, so omit check on the visibility
8187         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
8188
8189 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
8190
8191         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
8192         selection before inserting new text.
8193
8194 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
8195
8196         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
8197         Make the sensitivity of the reparented child track that of
8198         the original parent menu item. (#34218, David Hodson)
8199
8200         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
8201         the case where the current item is destroyed properly.
8202
8203         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
8204         some edge cases with child-less menuitems.
8205         
8206 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
8207
8208         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
8209         key pop down window. (#12074, Jon K Hellan)
8210
8211 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
8212
8213         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
8214         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
8215         The solution here isn't perfect - you get an extraneous
8216         emission of "toggle", which could conceivably confuse an app,
8217         but better than the current situation. LXR search seems to
8218         indicate that no apps in GNOME CVS connect to "toggle".
8219
8220 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
8221
8222         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
8223         gtk_public_h_sources to directly here to avoid warning when
8224         building srcdir != builddir. (#9656)
8225
8226 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
8227
8228         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
8229         handlers in gtkrange.c return the proper values (TRUE == handled)
8230         (#10316).
8231
8232         This is just the tip of the iceberg, but gtkrange.c is the
8233         most common place where the propagation is problematical,
8234         and also a place where it is almost certainly safe to change
8235         this in the stable branch.
8236
8237         (You don't want right click popups on a range control or anything...)
8238
8239 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
8240
8241         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
8242         area on focus out, even if a background pixmap isn't set.
8243         (#13941)
8244         
8245 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
8246
8247         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
8248         to deal with setting the shape properly when scrolling arrows are
8249         turned on, but not visible because there is sufficient space.
8250         (#13432)
8251
8252 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
8253
8254         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
8255         items with submenus, destroy the item along with the submenu.
8256         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
8257         properly.
8258
8259         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
8260         later.
8261
8262 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
8263
8264         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
8265         the focus widget sometimes wasn't drawn with the default if there
8266         was no default widget.
8267
8268         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
8269         unreference pixmaps. 
8270
8271         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
8272         for some extra safety.
8273
8274 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
8275
8276         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
8277         the text of a cell to the old pointer value better, by
8278         copying the new text before freeing the old text. Some code
8279         cleanup. (#8079, Karl Nelson)
8280
8281 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
8282
8283         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
8284         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
8285
8286 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
8287
8288         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
8289         item from a menu, check to see if it matches 
8290         menu->old_active_menu_item, and if so, unref and clear
8291         old_active_menu_item (Patch from Pavel Cisler)
8292
8293         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
8294         menu_shell->active_menu_item, if it is the child being
8295         removed. (Patch based on that of Gene Ragan, #50337)
8296
8297 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
8298
8299         * gdk/linux-fb/gdkselection-fb.c: 
8300         * gdk/linux-fb/gdkcolor-fb.c: 
8301         * gdk/linux-fb/gdkdrawable-fb2.c: 
8302         * gdk/linux-fb/gdkfont-fb.c: 
8303         * gdk/linux-fb/gdkim-fb.c: 
8304         * gdk/linux-fb/gdkinput.c: 
8305         * gdk/linux-fb/gdkkeyboard-fb.c: 
8306         * gdk/linux-fb/gdkmain-fb.c: 
8307         * gdk/linux-fb/gdkrender-fb.c: 
8308         A bunch of whitespace cleanup.
8309         
8310 2001-01-30  Havoc Pennington  <hp@pobox.com>
8311
8312         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
8313         #ifdef GTK_ENABLE_BROKEN.
8314
8315         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
8316         GTK_ENABLE_BROKEN just before including the broken headers.
8317         
8318         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
8319         deprecated types registered.
8320
8321         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
8322         we have to test the broken stuff.
8323
8324         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
8325         
8326 2001-01-30  Havoc Pennington  <hp@redhat.com>
8327
8328         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
8329         here where prev pointer was set to the wrong thing
8330
8331         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
8332         (gtk_tree_path_is_descendant): new function
8333
8334         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
8335         cached length
8336         (gtk_list_store_get_iter): don't modify iter if we can't get the
8337         path.
8338
8339         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
8340         
8341         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
8342         GtkTreeDragDest
8343
8344         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
8345         was causing segfault
8346
8347         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
8348         pointer to NULL
8349
8350         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
8351
8352         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
8353         on returning FALSE
8354         (gtk_list_store_iter_children): ditto
8355         (gtk_list_store_iter_nth_child): ditto
8356         (gtk_list_store_iter_nth_child): ditto
8357         (gtk_list_store_iter_parent): ditto
8358
8359         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
8360         on iter->user_data != NULL instead of silently accepting it.
8361         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
8362         we are returning TRUE.
8363         (gtk_tree_store_iter_children): ditto
8364         (gtk_tree_store_iter_nth_child): ditto
8365         (gtk_tree_store_iter_parent): ditto
8366         (gtk_tree_store_insert): remove handling of parent->user_data ==
8367         NULL, replace with parent == NULL       
8368
8369         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
8370         and a comment explaining things
8371
8372         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
8373         interface support to GtkTreeStore.
8374
8375         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
8376         FALSE if no prev, fix
8377
8378         * gtk/gtktreeview.c (set_source_row): use a row reference
8379         (set_dest_row): use a row reference
8380
8381 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
8382
8383         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
8384         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
8385         (gtk_tree_selection_select_iter): The same as above.
8386
8387 2001-01-26  Havoc Pennington  <hp@redhat.com>
8388
8389         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
8390         which holds a handle to a specific row (particular set of values
8391         in the model, i.e. pointer-identity row).
8392
8393         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
8394         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
8395         Still need to use it for the src/dest row saved on the drag context.
8396
8397 2001-01-26  Havoc Pennington  <hp@redhat.com>
8398
8399         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
8400
8401         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
8402         not offset by TREE_VIEW_HEADER_HEIGHT
8403         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
8404         TREE_VIEW_HEADER_HEIGHT
8405
8406         * configure.in (included_loaders): for me, --with-included-loaders
8407         generates the error "the specified loader yes does not exist",
8408         i.e. the arg defaults to "yes", so change test for value ""
8409         to test for value "yes", and include all loaders in that case.
8410
8411         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
8412
8413         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
8414         handle TREE_VIEW_VERTICAL_SEPARATOR
8415         (gtk_tree_view_bin_expose): fix to consider the row offset as
8416         pointing halfway into vertical separator.       
8417         (gtk_tree_view_draw_node_focus_rect): ditto
8418
8419         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
8420         --gtk-debug=updates, which causes gdk_window_set_debug_updates
8421         (TRUE) to be called.
8422
8423         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
8424         debug mode where the invalid region is colored in on invalidate,
8425         so you can see the flicker and know whether your redraw code is 
8426         doing a good job.
8427
8428         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
8429         tree window coordinates (clip rect is in tree window coords)
8430
8431         * gtk/Makefile.am: add gtktreednd.[hc]
8432
8433         * gtk/gtkliststore.c: implement gtktreednd interfaces.
8434
8435         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
8436         drag-and-drop data operations on a model (so we can set up tree
8437         drag-and-drop automatically)
8438
8439         * gtk/testgtk.c: Add a window to change sensitivity in the
8440         GtkLabel test; add a way to change the entry frame in GtkEntry
8441         test
8442
8443         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
8444         (gtk_entry_get_has_frame): new functions to remove the frame
8445         around an entry
8446         (gtk_entry_size_request): shrink requisition if no frame
8447         (gtk_entry_draw_focus): don't draw frame if no frame
8448
8449         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
8450         checks inside a cell renderer
8451         (gtk_default_draw_option): ditto for options
8452
8453         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
8454         children from the alignment, not the button
8455         (gtk_tree_view_column_init): ref/sink the column, to emulate
8456         GObject refcounting.
8457
8458         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
8459         
8460         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
8461         Use theme functions to draw the toggles 
8462
8463         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
8464
8465         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
8466         GdkPangoAttrEmbossed to use in rendering insensitive text
8467
8468         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
8469
8470         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
8471         using new GDK features
8472         
8473 2001-01-24  Alexander Larsson  <alexl@redhat.com>
8474
8475         * gtk/gtkimage.c:
8476         Splitted gtk_image_clear into gtk_image_clear() and
8477         gtk_image_reset(). Call gtk_image_clear() in ::destroy
8478         to avoid leaks.
8479
8480         * gtk/gtklabel.c (set_markup):
8481         Don't leak text.
8482
8483         * gtk/gtktextlayout.c:
8484         Always free display->shaped_objects.
8485
8486         * gtk/testgtk.c (create_clist):
8487         Don't leak custom style.
8488
8489 2001-01-23  Alexander Larsson  <alexl@redhat.com>
8490
8491         * gtk/gtkcolorsel.c (grab_color_at_mouse):
8492         Don't leak image. Simplify using gdk_colormap_query_color().
8493         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
8494
8495         * linux-fb/gdkcolor-fb.c:
8496         Implemented gdk_colormap_query_color.
8497
8498 2001-01-23  Alexander Larsson  <alexl@redhat.com>
8499
8500         * linux-fb/gdkcursor-fb.c:
8501         Don't leak built-in cursors.
8502
8503         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
8504         Don't leak tmp_points.
8505
8506         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
8507         Don't modify desc. Don't leak font if the PangoFont
8508         isn't found.
8509         
8510         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
8511         Free dash_list.
8512
8513         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
8514         Don't leak string.
8515         
8516 2001-01-20  Havoc Pennington  <hp@pobox.com>
8517
8518         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
8519         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
8520         me, matches Pango
8521
8522 2001-01-22  Havoc Pennington  <hp@redhat.com>
8523
8524         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
8525
8526         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
8527
8528         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
8529         Remove, move back to gdk-pixbuf
8530
8531         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
8532         to all the word functions
8533
8534         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
8535         before doing anything on NULL layout or if we don't have the focus
8536
8537         * gtk/testtext.c (fill_example_buffer): "justification"
8538
8539         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
8540         to be called "justification" not "justify"
8541
8542         * demos/gtk-demo/textview.c (create_tags): "justification"
8543         
8544         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
8545
8546 2001-01-22  Alexander Larsson  <alexl@redhat.com>
8547
8548         * gdk/gdkwindow.c (gdk_window_invalidate_region):
8549         Don't leak visible_region. Use visible_region instead of region.
8550         
8551         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
8552         Don't do extra gdk_drawable_ref(). This is not X.
8553         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
8554         gdk_fb_focused_window is ref:ed.
8555         (gdk_fb_window_send_crossing_events): Watch out for destroyed
8556         windows.
8557
8558 2001-01-22  Alexander Larsson  <alexl@redhat.com>
8559
8560         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
8561         Don't leak the PangoFontDescriptor.
8562
8563 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
8564
8565         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
8566         when not realized.
8567         (gtk_tree_view_scroll_to_cell): Make work when not realized.
8568         (gtk_tree_view_realize): add scroll_to support
8569         (gtk_tree_view_finalize): add a finalize method.  Populate.
8570         (gtk_tree_view_insert_column): ref and sink the column.
8571         (gtk_tree_view_append_column): ref and sink the column.
8572         (gtk_tree_view_queue_draw_node): New function to handle redrawing
8573         individual nodes.  Should make the code much more efficient, if
8574         actually used.
8575
8576 2001-01-19  Havoc Pennington  <hp@redhat.com>
8577
8578         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
8579         byte_offset variable was being used to mean both "offset into
8580         layout" and "offset into buffer line" which was no longer true
8581         with addition of preedit string; fix
8582
8583 2001-01-19  Havoc Pennington  <hp@redhat.com>
8584
8585         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
8586
8587         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
8588         function
8589
8590         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
8591         implement
8592
8593         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
8594         scroll_to_cell, matches TextView scroll functions better
8595         (gtk_tree_view_tree_to_widget_coords): new function
8596         (gtk_tree_view_widget_to_tree_coords): new function
8597         (gtk_tree_view_get_visible_rect): new function
8598         (gtk_tree_view_get_path_at_pos): accept negative coordinates
8599         (gtk_tree_view_draw_node_focus_rect): new function moved from
8600         draw_focus, also, use width of bin_window as width of the focus
8601         rect
8602         (gtk_tree_view_expand_row): fix bug where it didn't recognize
8603         already-expanded rows
8604         (gtk_tree_view_get_cell_rect): new function
8605         (gtk_tree_view_get_path_at_pos): return the click position
8606         relative to the passed-in cell
8607         (gtk_tree_view_set_expander_column): new function
8608
8609         * configure.in: remove gtk-config-2.0 chmod
8610
8611         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
8612         and properly handle drags with targets we don't understand
8613         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
8614         scrolling anyway
8615         (gtk_text_view_drag_drop): stop scrolling here though, and set the
8616         mark invisible
8617
8618         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
8619         function
8620         (gtk_drag_dest_get_target_list): new function
8621         (gtk_drag_dest_set_target_list): new function
8622         
8623         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
8624
8625         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
8626         related to drag-and-drop
8627
8628 2001-01-19  Alexander Larsson  <alexl@redhat.com>
8629
8630         * gdk/linux-fb/gdkprivate-fb.h:
8631         Define EMULATE_GDKFONT.
8632         Add extra pango_font stuff to GfkFontPrivate.
8633         
8634         * gdk/linux-fb/gdkdrawable-fb2.c:
8635         * gdk/linux-fb/gdkfont-fb.c:
8636         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
8637         emulation using PangoFont.
8638
8639 2001-01-17  Havoc Pennington  <hp@pobox.com>
8640
8641         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
8642         all the non-deprecated set_foo functions. Added missing object
8643         properties, and added g_object_notify() to setters. 
8644         Wrote docs.
8645         
8646 2001-01-18  Tor Lillqvist  <tml@iki.fi>
8647
8648         * gtk/gtkmain.c
8649         * gtk/gtkrc.c: (Win32) Use the new
8650         g_win32_get_package_installation_(sub)directory() functions.
8651
8652         * config.h.win32.in: New file.
8653         
8654         * config.h.win32: Removed.
8655
8656         * configure.in: Output config.h.win32.
8657
8658         * Makefile.am: Add it to EXTRA_DIST.
8659
8660         * gtk/gtk.def: Update.
8661
8662 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
8663
8664         * gtk/gtklabel.c (gtk_label_size_request): Set the
8665         attributes onto the PangoLayout even if they are newly
8666         created from label->pattern.
8667
8668 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
8669
8670         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
8671
8672         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
8673         structures in functions. Fixes bug where gtk_dataset_*
8674         was accidentally still being used in one place, causing
8675         every dest side event to be treated independently.
8676
8677         * gtk/gtkdnd.c: Remove last vestages of handling
8678         ::draw (fixes warning)
8679         
8680         * gtk/gtkentry.[ch]: Add drag and drop support.
8681
8682         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
8683         new function gtk_check_drag_threshhold() for checking
8684         to check if (dx,dy) has exceeded the threshhold for starting
8685         a drag and use it everywhere.
8686
8687 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
8688
8689         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
8690         add -I{includedir}/gtk-2.0.
8691
8692         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
8693         gdk/gdk-pixbuf.h: Doc fixups.
8694         
8695         * gtk/gtkobject.h: Remove trailing , from enum
8696
8697 2001-01-17 Alexander Larsson <alexl@redhat.com> 
8698
8699         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
8700         Doh! Mixed up x and y.
8701
8702         * gdk/linux-fb/gdkglobals-fb.c:
8703         Removed gdk_fb_pointer_grab_window_events,
8704         added _gdk_fb_pointer_grab_owner_events and
8705         _gdk_fb_keyboard_grab_owner_events.
8706
8707         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
8708         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
8709         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
8710         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
8711         Send crossing events after ungrab finished.
8712         (gdk_keyboard_grab): Set ..._owner_events
8713         (type_masks): Move out of function.
8714         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
8715         gdk_fb_keyboard_event_window): New functions, return the
8716         window an event should be targeted at. Handles grabs and
8717         event propagation. Can return NULL.
8718         (gdk_event_make): Remove event_mask checking. Now always
8719         returns an event.
8720                 
8721         * gdk/linux-fb/gdkkeyboard-fb.c:
8722         * gdk/linux-fb/gdkproperty-fb.c:
8723         * gdk/linux-fb/gdkselection-fb.c:
8724         Use new event_window/gdk_event_make() behaviour.
8725         
8726         * gdk/linux-fb/gdkmouse-fb.c:
8727         Use new event_window/gdk_event_make() behaviour.
8728         Only send motion events if in the same window.
8729         If grabbed, use cursor from window if sibling of grabbed
8730         window, and cursor from grabbed window otherwise.
8731
8732         * gdk/linux-fb/gdkprivate-fb.h:
8733         Update gdk_fb_window_send_crossing_events, gdk_event_make
8734         and grab varaible declarations. Add gdk_fb_*_event_window().
8735
8736         * gdk/linux-fb/gdkwindow-fb.c:
8737         Use new event_window/gdk_event_make() behaviour.
8738         Keep correct track of focus window.
8739         (gdk_window_set_events): Set all specific button motion masks
8740         if GDK_BUTTON_MOTION_MASK set.
8741
8742         * gtk/gtkdnd.c (gtk_drag_update):
8743         Free info->last_event if gdk_drag_motion returned FALSE.
8744
8745 2001-01-16  Tor Lillqvist  <tml@iki.fi>
8746
8747         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
8748         Eliminate redraws when input-only windows are shown or
8749         hidden. Thanks to jpe@archaeopteryx.com.
8750
8751 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
8752
8753         * docs/faq/gtk-faq.sgml: FAQ update:
8754           - Update to bugzilla
8755           - Add GTK+ and security/SUID/SGID
8756           - Add DnD question
8757
8758 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
8759
8760         * gdk/linux-fb/gdkdnd-fb.c:
8761         Some cleanups.
8762         
8763 2001-01-15  Havoc Pennington  <hp@pobox.com>
8764
8765         * tests/testtreeview.c: add test stuff for CellRendererToggle
8766
8767         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
8768         accessor
8769
8770         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
8771         only toggle on button press (would do release like GtkButton, but
8772         we'd need implicit grab code for treeview cells)
8773
8774 2001-01-16  Tor Lillqvist  <tml@iki.fi>
8775
8776         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
8777
8778         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
8779         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
8780
8781         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
8782         to g_{locale,filename}_{to,from}_utf8 to match current API.
8783
8784         * gtk/makefile.msc.in (gtk_OBJECTS)
8785         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
8786
8787         * gtk/gtk.def: Update.
8788
8789 2001-01-15  Tor Lillqvist  <tml@iki.fi>
8790
8791         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
8792         implementaion that more closely mimics the events that an X server
8793         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
8794         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
8795         with nested preview widgets, for instance, more responsive when
8796         you move the mouse quickly into them.
8797         (find_window_for_pointer_event): Make it actually compile.
8798         (gdk_event_translate): Set send_event to the value of
8799         InSendMessage (). This doesn't really mean the same as X11's
8800         send_event flag, but is close enough, says jpe@archaeopteryx.com
8801
8802 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8803
8804         * gdk/linux-fb/gdkdnd-fb.c:
8805         Implemented drag and drop.
8806         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
8807         when it tries to free and then copy the same event (info->last_event).
8808         I am not sure about why this happens, but will continue looking.
8809
8810 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8811
8812         * gdk/linux-fb/gdkwindow-fb.c:
8813         Use gdk_window_invalidate_rect instead of
8814         gdk_window_invalidate_rect_clear to minimise flashing.
8815         When hiding windows you need to clear the root window though.
8816
8817 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8818
8819         * gdk/linux-fb/gdkdrawable-fb2.c:
8820         For optization, add an full_shapes argument to gdk_fb_clip_region.
8821         If this is false, only the cliprects of the shapes are used.
8822
8823         * gdk/linux-fb/gdkprivate-fb.h:
8824         Export gdk_fb_window_peek_shape.
8825         Add full_shapes to gdk_fb_clip_region.
8826
8827         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
8828         When moving a window, don't clear everything under the it, just the
8829         root window. Makes stuff faster and flash less.
8830         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
8831         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
8832         offset of the shape.
8833         
8834
8835 2001-01-12  Havoc Pennington  <hp@redhat.com>
8836
8837         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
8838         current invalid region, fixes redraw bug while scrolling the 
8839         text widget
8840
8841         * gtk/gtktextview.c, gtk/gtktextview.h:
8842         Rearrange the scrolling/validation/etc. code in a major way, 
8843         so it seems to make sense to me. Probably isn't genuinely that
8844         much better, but...
8845
8846         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
8847         notifies
8848
8849         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
8850
8851 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
8852
8853         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
8854         Hide mouse pointer while rotation. Show it afterwards.
8855
8856 2001-01-12  Alexander Larsson  <alexl@redhat.com>
8857
8858         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
8859         windows in consideration when generating clip region.
8860
8861         * gdk/linux-fb/gdkfb.h:
8862         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
8863
8864         * gdk/linux-fb/gdkprivate-fb.h:
8865         Add shape to GdkWindowFBDatat.
8866         exported gdk_fb_window_get_abs_shape().
8867         removed gdk_fb_draw_lines declaration.
8868
8869         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
8870         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
8871         send focus changes when there is a grabbed window.
8872         (gdk_window_get_pointer): Handle shaped windows.
8873         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
8874         (gdk_fb_window_peek_shape): Returns the shape for a window,
8875         handles GDK_FB_USE_CHILD_SHAPE.
8876         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
8877         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
8878         (gdk_window_shape_combine_mask): Implement.
8879
8880         * gtk/gtkwindow-decorate.c:
8881         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
8882         setting the shape of a window makes the window transparent.
8883
8884 2001-01-11  Havoc Pennington  <hp@redhat.com>
8885
8886         * gtk/gtktreemodelsimple.h: Oops, broke some macros
8887
8888 2001-01-10  Havoc Pennington  <hp@redhat.com>
8889
8890         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
8891         add this function, bug 40251
8892
8893         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
8894         of type macro   
8895
8896 2001-01-11  Alexander Larsson  <alexl@redhat.com>
8897
8898         * acconfig.h:
8899         Added ENABLE_SHADOW_FB
8900
8901         * configure.in:
8902         Added --disable-shadowfb
8903
8904         * gdk/linux-fb/gdkcursor-fb.c:
8905         Update shadowfb when updating cursor
8906
8907         * gdk/linux-fb/gdkdrawable-fb2.c:
8908         Added wrappers for shadowfb that calls  the normal drawable
8909         methods, but calls gdk_shadow_fb_update(bounding box) when
8910         GdkWindows are drawed to.
8911         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
8912         which also returns the bounding box.
8913
8914         * gdk/linux-fb/gdkfb.h:
8915         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
8916
8917         * gdk/linux-fb/gdkgeometry-fb.c:
8918         Update shadowfb when scrolling window.
8919
8920         * gdk/linux-fb/gdkglobals-fb.c:
8921         Add _gdk_fb_screen_angle.
8922         
8923         * gdk/linux-fb/gdkkeyboard-fb.c:
8924         Test code for screen rotation. Shift-F2 in the xlate driver
8925         rotates the screen.
8926
8927         * gdk/linux-fb/gdkmain-fb.c:
8928         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
8929
8930         * gdk/linux-fb/gdkmouse-fb.c:
8931         Use fb_width/height instead of modeinfo.xres/yres.
8932
8933         * gdk/linux-fb/gdkprivate-fb.h:
8934         Added fb_men, fb_width, fb_height & fb_stride. When using
8935         shadow fb these can differ from the framebuffer stuff.
8936         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
8937         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
8938         _gdk_fb_screen_angle. Removed CM, RP.
8939
8940         * gdk/linux-fb/gdkrender-fb.c:
8941         Added code for shadowfb handling and screen rotation using
8942         shadowfb.
8943
8944         * gdk/linux-fb/gdkwindow-fb.c:
8945         Use fb_mem, fb_stride, fb_width, fb_height.
8946         Added recompute_rowstride to reset the rowstride of all windows.
8947         Added gdk_fb_recompute_all() which recomputes rootwindow size,
8948         window abs positions and window rowstrides. Usefull when the
8949         rotation has changed.
8950
8951 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
8952
8953         * docs/faq/gtk-faq.sgml: update to make web site updating easier
8954
8955 2001-01-10  Havoc Pennington  <hp@redhat.com>
8956
8957         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
8958         where sibling == iter
8959         (gtk_tree_store_insert_after): handle sibling == iter
8960         (gtk_tree_store_prepend): remove stamp checks
8961         (gtk_tree_store_insert_before): ditto
8962         (gtk_tree_store_append): ditto
8963         (gtk_tree_store_get_path): ditto
8964         (gtk_tree_store_get_value): ditto
8965         (gtk_tree_store_iter_has_child): ditto
8966         (gtk_tree_store_iter_n_children): ditto
8967         (gtk_tree_store_iter_nth_child): ditto
8968         (gtk_tree_store_insert_after): ditto
8969         (gtk_tree_store_is_ancestor): ditto
8970         (gtk_tree_store_iter_depth): ditto
8971         (gtk_tree_store_insert_before): assert that sibling's parent is
8972         the same as the passed-in parent
8973         (gtk_tree_store_insert_after): assert that sibling's parent is
8974         the same as the passed-in parent
8975
8976         
8977         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
8978         function to get the first iterator in a model
8979         
8980         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
8981         conventionally the "root" in this sense is just NULL afaict.
8982
8983         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
8984         where sibling == iter
8985         (gtk_list_store_insert_after): handle case where sibling == iter
8986
8987         * tests/testtreeview.c (run_automated_tests): fairly lame basic
8988         automated tests for ListStore, TreeStore
8989
8990         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
8991         (gtk_list_store_insert): update tail pointer, and fix it to work
8992         (gtk_list_store_insert_before): update tail pointer, and fix it to work
8993         (gtk_list_store_append): use tail to be faster
8994         (gtk_list_store_prepend): fix it, update tail pointer
8995         (gtk_list_store_insert_after): fix it, update tail pointer
8996
8997         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
8998         the list
8999
9000 2001-01-09  Havoc Pennington  <hp@redhat.com>
9001
9002         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
9003         is NULL due to a pending resize
9004
9005         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
9006         column width to values less than 1
9007
9008         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
9009         width to be between min/max width, and still set the width 
9010         even if autosize is turned on, so the tree view can use this 
9011         function in order to autosize.
9012         (gtk_tree_view_column_init): set initial width to 1 not 0
9013
9014         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
9015         setter function to modify column width, so we get notification
9016         (gtk_tree_view_insert_iter_height): ditto
9017         (gtk_tree_view_calc_size): ditto
9018         (gtk_tree_view_check_dirty): ditto
9019
9020         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
9021         properties to change all the interesting attributes of the tree
9022         view column.
9023         (gtk_tree_view_column_set_header_clickable): rename set_clickable
9024         (gtk_tree_view_column_get_clickable): add
9025         (gtk_tree_view_column_set_cell_renderer): don't unset the current
9026         attributes; assume a cell renderer with equivalent object
9027         properties has been swapped in. Do g_object_notify().
9028         (gtk_tree_view_column_set_visible): g_object_notify
9029         (gtk_tree_view_column_get_sizing): rename from get_col_type
9030         (gtk_tree_view_column_set_sizing): g_object_notify
9031         (gtk_tree_view_column_set_width): add g_object_notify
9032         (gtk_tree_view_column_set_min_width): ditto
9033         (gtk_tree_view_column_set_max_width): ditto
9034         (gtk_tree_view_column_set_title): ditto
9035         (gtk_tree_view_column_set_clickable): ditto
9036         (gtk_tree_view_column_set_widget): ditto
9037         (gtk_tree_view_column_set_justification): ditto
9038
9039 2001-01-09  Havoc Pennington  <hp@redhat.com>
9040
9041         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
9042         there are no rows in the model
9043
9044         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
9045         NULL, then return the start of the list
9046
9047         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
9048         if we can't get any rows from an empty model 
9049
9050         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
9051         extraneous * after function pointer typedef usage
9052
9053         * Makefile.am: don't specify full path to cp and rm
9054
9055         * gtk/gtkcellrenderertextpixbuf.c
9056         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
9057         NULL before dereferencing, fixes a segfault that happened from
9058         time to time
9059
9060         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
9061         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
9062         and reindent the function
9063         (gtk_cell_renderer_pixbuf_get_size): indentation
9064
9065         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
9066         we quit it
9067         (gtk_dialog_add_buttons_valist): add g_return_if_fail
9068         (gtk_dialog_set_default_response): New function, to set default
9069         button
9070         (gtk_dialog_set_response_sensitive): New function, to set 
9071         sensitivity of buttons
9072
9073         * gtk/gtkcellrendererpixbuf.c
9074         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
9075         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
9076
9077         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
9078         handle any G_TYPE_OBJECT subclass, not just the base class, and 
9079         also boxed types.
9080         (_gtk_tree_data_list_value_to_node): ditto
9081
9082         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
9083         --gtk-debug=tree
9084
9085         * gtk/gtkmain.c: add GTK_DEBUG_TREE
9086
9087         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
9088
9089 2001-01-09  Tor Lillqvist  <tml@iki.fi>
9090
9091         * gdk/win32/gdkevents-win32.c: Implement better mouse
9092         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
9093         (find_window_for_pointer_event): New function.
9094         (gdk_event_translate): Use it when handling mouse events.
9095
9096 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
9097
9098         * configure.in:
9099         Added --with-included-loaders option
9100
9101         * gdk-pixbuf/Makefile.am:
9102         * gdk-pixbuf/gdk-pixbuf-io.c:
9103         Add support for including selected gdk-pixbuf loaders only.
9104
9105         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
9106         gtk_window_set_has_frame):
9107         Added inline documentation.
9108
9109         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
9110         * docs/reference/gdk/tmpl/windows.sgml:
9111         Added inline documentation.
9112
9113 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
9114
9115         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
9116         realizing buttons that have already been realized.
9117
9118 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
9119
9120         * tests/testtreeview.c (main): Show menu items before adding to
9121         option menu.
9122
9123         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
9124         around if we kill them.
9125
9126         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
9127         Return if we pass in a NULL model.
9128
9129 2001-01-08  Havoc Pennington  <hp@redhat.com>
9130
9131         * tests/testtreeview.c: hack on this some
9132
9133         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
9134         gtk_tree_store_set_valist, v is for arrays, valist for varargs
9135         list
9136         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
9137
9138         * gtk/gtkliststore.h: Add varargs set() and get() convenience
9139         functions
9140
9141 2001-01-08  Alexander Larsson  <alexl@redhat.com>
9142
9143         * gtk/gtkwindow-decorate.[hc]:
9144         * gtk/Makefile.am:
9145         New files. Contains an implementation of a minimal WM for
9146         linux-fb.
9147
9148         * gtk/gtkwindow.h:
9149         Add the possibility for GtkWindows to specify a frame. This
9150         is used for the window decoration code, but could concievably
9151         be used for X programs too (xmms style windows).
9152         GtkWindow->frame is the toplevel window if the window is framed.
9153         The signal frame_event gets all events that are targeted to
9154         GtkWindow->frame.
9155         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
9156         
9157         * gtk/gtkwindow.c:
9158         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
9159         Call out to gtkwindow-decorate.c for WM support in linx-fb.
9160
9161 2001-01-08  Alexander Larsson  <alexl@redhat.com>
9162
9163         * docs/README.linux-fb:
9164         Correct filename ~/.pangoft2_aliases
9165
9166         * gdk/gdkwindow.h:
9167         Added new function gdk_window_get_decorations.
9168
9169         * gdk/linux-fb/gdkfb.h:
9170         Removed _gdk_window_get_decorations declaration.
9171         Renamed _gdk_window_set_child_handler to
9172         gdk_fb_window_set_child_handler.
9173
9174         * gdk/linux-fb/gdkwindow-fb.c:
9175         Renamed _gdk_window_set_child_handler to
9176         gdk_fb_window_set_child_handler.
9177
9178         * gdk/x11/gdkwindow-x11.c:
9179         New function gdk_window_get_mwm_hints().
9180         Implemented gdk_window_get_decorations.
9181
9182         * docs/reference/gdk/tmpl/windows.sgml:
9183         * docs/reference/gdk/gdk-sections.txt:
9184         Added gdk_window_get_decorations docs.
9185         
9186 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
9187
9188         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
9189         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
9190         gdk_fb_window_send_crossing_events):
9191         Possibly send focus events when the mouse moves from one
9192         window to another.
9193
9194 2001-01-07  Tor Lillqvist  <tml@iki.fi>
9195
9196         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
9197         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
9198         to match current API.
9199
9200         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
9201         environment variable is set, don't call g_error when on a
9202         palettized (PseudoColor) display. Some people want to use GTK+ 
9203         in 256-colour mode even though works only partially.
9204
9205         * gdk/gdk.def
9206         * gtk/gtk.def
9207         * gtk/makefile.mingw.in: Update.
9208
9209 2001-01-05  Havoc Pennington  <hp@redhat.com>
9210
9211         * tests/testtreeview.c: hack on this a bit
9212
9213         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
9214         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
9215
9216         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
9217         was spelled incorrectly
9218         (GTK_IS_TREE_MODEL_SIMPLE): ditto
9219
9220         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
9221         from gtk_tree_view_set_headers_active   
9222
9223         * gtk/gtktexttag.c:
9224         (gtk_text_tag_get_property): handle PROP_DIRECTION
9225         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
9226         properties, bug 40235
9227
9228         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
9229         forward_to_line_end
9230
9231 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
9232
9233         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
9234         modules/input/gtkimcontextxim.c: Adapt to new prototypes
9235         for unicode,locale,filename conversion functions.
9236
9237 2001-01-05  Havoc Pennington  <hp@redhat.com>
9238
9239         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
9240         broken if called on the first position in the buffer.
9241
9242         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
9243         forward_to_delimiters to be called only if we aren't already at
9244         the delimiters.
9245
9246 2001-01-05  Havoc Pennington  <hp@redhat.com>
9247
9248         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
9249
9250 2001-01-05  Alexander Larsson  <alexl@redhat.com>
9251
9252         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
9253         colormap in here. Sync from X port.
9254         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
9255         Sync from X port.
9256         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
9257         This happens now and then, and i don't think it is a bug.
9258         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
9259         != endpoint.
9260         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
9261         GDK_LINE_SOLID.
9262
9263         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
9264         some of the fields filled in at least.
9265
9266         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
9267         miLineArcD is no more, remove it from the function definition.
9268
9269 2001-01-04  Havoc Pennington  <hp@redhat.com>
9270
9271         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
9272         this
9273
9274         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
9275         user_data instead of tree_node
9276
9277         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
9278         TREE_VIEW_COLUMN_SIZE
9279
9280         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
9281         "size" field to "width" finishes bug 40061
9282
9283         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
9284         for bitfields, bug 40268
9285
9286 2001-01-04  Havoc Pennington  <hp@redhat.com>
9287
9288         Rename some stuff:
9289         
9290         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
9291
9292         s/GtkModelSimple/GtkTreeModelSimple/g;
9293         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
9294         s/gtk_model_simple/gtk_tree_model_simple/g;
9295         s/gtkmodelsimple/gtktreemodelsimple/g;
9296
9297         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
9298
9299         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
9300         s/column_set_col_type/column_set_sizing/g;
9301
9302         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
9303         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
9304
9305         s/GtkCellRendererType/GtkCellRendererState/g;
9306         
9307         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
9308         (gtk_cell_renderer_toggle_class_init): change "state" property to
9309         "active", to match GtkToggleButton
9310         (gtk_cell_renderer_toggle_get_active): new function, bug
9311         40269
9312         (gtk_cell_renderer_toggle_set_active): new function
9313         (gtk_cell_renderer_toggle_set_property): route changes to toggle
9314         state through gtk_cell_renderer_set_active
9315
9316 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
9317
9318         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
9319         temporarily until they work again.  Brought up to date with
9320         changes in the model.
9321         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
9322         model.
9323
9324 2001-01-04  Havoc Pennington  <hp@redhat.com>
9325
9326         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
9327         equal to the line length, then position iterator before paragraph 
9328         separators. Fixes crash reported by Mikael Hermansson when
9329         pressing left arrow from the start of a line.   
9330
9331         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
9332         about byte indexes off the end
9333         (iter_set_from_char_offset): add g_error about char offsets
9334         off the end
9335
9336 2001-01-03  Havoc Pennington  <hp@redhat.com>
9337
9338         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
9339
9340         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
9341         of private functions; remove inclusion of private headers.
9342
9343         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
9344         function, so we don't need private functions in gtktextdisplay.c
9345
9346         * gtk/gtktextiterprivate.h: underscore-ification
9347
9348         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
9349         to instead say "only useful to implement widgets"
9350
9351         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
9352         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
9353         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
9354
9355         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
9356         This function was completely broken
9357
9358         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
9359
9360         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
9361
9362         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
9363
9364         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
9365
9366         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
9367
9368         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
9369
9370         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
9371         gtk_paint_layout
9372
9373         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
9374         gtk_paint_layout
9375
9376         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
9377         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
9378         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
9379         which were not implemented.     
9380
9381         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
9382         insert_pixbuf signal. Rename delete_text to delete_range since it
9383         also deletes pixbufs and child anchors. This almost closes bug
9384         40245 (still need to deal with child anchors)
9385
9386         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
9387         insert_pixbuf, change signal names as appropriate, change types of
9388         signals taking marks/tags to have the specific type, not just
9389         G_TYPE_OBJECT
9390         
9391         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
9392         closes bug 40051
9393
9394         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
9395         unnecessary remove_contents() call
9396         (gtk_option_menu_class_init): add a "changed" signal, closes
9397         bug 40039
9398         (gtk_option_menu_update_contents): emit "changed" if the 
9399         active menu item changes
9400
9401         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
9402         cast to GtkObject, reported by Jonas Borgstrom
9403         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
9404         we can't do stuff with side effects in finalize. Instead, spew a
9405         warning if the loader isn't closed.
9406
9407         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
9408         colormap in here, non-X ports probably need to sync to this change
9409
9410         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
9411         assertion that colormap != NULL, you can set the colormap to NULL
9412         if you like.
9413         
9414         * Makefile.am: remove gtk-config-2.0
9415
9416         * configure.in: Use pkg-config to locate GLib. Remove
9417         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
9418         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
9419         Use pkg-config to locate Pango. Output correct Pango libs to
9420         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
9421
9422         * Makefile.am (pkgconfig_DATA): install only target-specific pc
9423         files
9424         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
9425         X11 pc files
9426
9427         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
9428         unref from here
9429
9430 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
9431
9432         * configure.in:
9433         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
9434
9435 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
9436
9437         * gtk/gtktextlayout.c
9438         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
9439         variable when moving back onto a single line.
9440
9441 2001-01-01  Havoc Pennington  <hp@redhat.com>
9442
9443         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
9444
9445         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
9446
9447         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
9448         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
9449
9450 2001-01-01  Havoc Pennington  <hp@redhat.com>
9451
9452         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
9453
9454         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
9455         GtkTextAttributes
9456
9457         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
9458         #40246
9459         (gtk_text_attributes_copy_values): rename from 
9460         gtk_text_attributes_copy
9461         (gtk_text_attributes_copy): a more standard GTK copy function, 
9462         which returns a new object
9463
9464 2001-01-01  Havoc Pennington  <hp@redhat.com>
9465
9466         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
9467         
9468         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
9469         don't fill in tree_view->priv->selection, kind of an unexpected
9470         side effect
9471
9472         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
9473         gtkintl.h
9474         
9475         * gtk/gtkcellrenderer.c: Remove definition of _ and include
9476         gtkintl.h
9477         (gtk_cell_renderer_get_property): remove calls to g_value_init
9478
9479         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
9480         gtkintl.h
9481
9482         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
9483         and include gtkintl.h
9484         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
9485         property names
9486
9487         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
9488         GtkTreeSelection
9489         (_gtk_tree_selection_new_from_with_view): rename, return
9490         GtkTreeSelection
9491         (_gtk_tree_selection_set_tree_view): rename with uscore
9492         (gtk_tree_selection_get_selected): fill in the "model" out param
9493         first, so it gets filled in even if we return at the top of the 
9494         function
9495         (gtk_tree_selection_real_select_all): add a comment and an else{}
9496         to clarify this a bit
9497         (gtk_tree_selection_real_unselect_all): add the same else{}
9498
9499         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
9500         set_tree_view to have underscore prefixes, move them to the
9501         private header, fix return type of new_with_tree_view
9502         (struct _GtkTreeSelection): mark struct
9503         fields private  
9504
9505         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
9506         GtkTreeModelFlags, not a guint
9507         (gtk_tree_path_prev): return gboolean not gint
9508         (gtk_tree_path_up): return gboolean not gint
9509
9510         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
9511         return GtkTreeModelFlags, not a guint
9512
9513         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
9514         that child model is non-null before unrefing it
9515         (g_value_int_compare_func): make this a qsort compare func, not 
9516         a boolean predicate
9517
9518         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
9519         (add -umn to the end), and mark it unimplemented
9520         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
9521         I don't see what it's for - doesn't the model always sort itself?
9522         (gtk_tree_model_sort_set_compare): this had the wrong signature
9523
9524         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
9525         Fix the docs to say that it destructively replaces existing
9526         attributes (previously said that it added attributes).
9527         (gtk_tree_view_column_set_visible): canonicalize bool before
9528         equality testing. Also, check for realization before
9529         hiding/showing the tree_column->window; if this window could exist
9530         before realization, then it's busted and needs fixing, we can't 
9531         create GDK resources pre-realization. Also, remove
9532         superfluous queue_resize(), since set_size() does that for us.
9533         (gtk_tree_view_column_set_col_type): check realization before 
9534         using tree_column->window
9535
9536         * gtk/gtktreedatalist.c: fix filename in copyright notice
9537
9538 2000-12-31  Havoc Pennington  <hp@pobox.com>
9539
9540         * gtk/gtktextview.c: Rearrange all the
9541         scroll-while-dragging-or-selecting code to be different, not
9542         necessarily better. ;-)
9543         (gtk_text_view_scroll_to_mark): Change this
9544         function to take within_margin as a fraction instead of a pixel
9545         value, and to take alignment arguments (indicating where to align 
9546         the mark inside the visible area)
9547         
9548         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
9549         to GtkObject
9550
9551         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
9552         behavior so that offsets past the end of the line are not 
9553         allowed, and an offset equal to the line length moves the iterator
9554         to the next line
9555         (gtk_text_iter_set_line_index): make parallel change
9556         (gtk_text_iter_get_bytes_in_line): add this function
9557         
9558         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
9559         of byte indexes off the end of the line; byte index at the end of
9560         the line now returns FALSE and doesn't fill in the requested
9561         values, byte index past the end of the line is an error.  Also,
9562         don't allow -1 offset anymore, since its meaning is unclear.
9563
9564         This change exposes some bug in visual cursor motion, where we
9565         end up with a huge invalid byte index; needs fixing. Symptom of 
9566         bug is a crash when you hit up arrow.
9567         
9568         (_gtk_text_line_char_locate): match the change to byte_locate
9569
9570         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
9571         from start of line properly. fixes bug reported by Mikael
9572         Hermansson where backspace would delete all text before the
9573         cursor.
9574
9575 2000-12-30  Tor Lillqvist  <tml@iki.fi>
9576
9577         * gdk/win32/gdkwindow-win32.c
9578         (gdk_window_impl_win32_get_visible_region): New function, as in
9579         the X11 backend.
9580         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
9581         instead of duplicating the same code here.
9582
9583         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
9584         GDK_COLORMAP macro.
9585
9586         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
9587         destroy function.
9588         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
9589         access that.
9590
9591         * gtk/gtk.def: Update.
9592
9593         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
9594
9595 2000-12-30  Havoc Pennington  <hp@pobox.com>
9596
9597         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
9598         colormap on input only windows, to avoid special cases all over
9599         the code for these windows.
9600
9601 2000-12-26  Tor Lillqvist  <tml@iki.fi>
9602
9603         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
9604         we are on a palettized display ("PseudoColor" in X11), as the code
9605         for that doesn't work anyway, and never has.
9606
9607 2000-12-22  Alexander Larsson  <alexl@redhat.com>
9608
9609         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
9610         Don't use isprint() for chars > 255.
9611
9612 2000-12-21  Havoc Pennington  <hp@redhat.com>
9613
9614         * tests/testtreeview.c: more work
9615
9616 2000-12-21  Alexander Larsson  <alexl@redhat.com>
9617
9618         * docs/README.linux-fb:
9619         Update the docs to the new pangoft2 way.
9620
9621 2000-12-21  Alexander Larsson  <alexl@redhat.com>
9622
9623         * configure.in:
9624         For linux-fb get the pangoft2 cflags and libs. This needs a recent
9625         pango version.
9626         Remove modules/linux-fb/Makefile.
9627
9628         * gdk/linux-fb/gdkdrawable-fb2.c:
9629         Render glyphs using freetype.
9630
9631         * gdk/linux-fb/gdkfb.h:
9632         Add new fb-specific functions needed for managing windows.
9633
9634         * gdk/linux-fb/gdkmain-fb.c:
9635         Remove gdk_font_init/fini() calls.
9636
9637         * gdk/linux-fb/gdkpango-fb.c:
9638         Remove old implementation. Use pangoft2 instead.
9639
9640         * gdk/linux-fb/gdkprivate-fb.h:
9641         Remove PangoFBFont and related stuff.
9642
9643         * gdk/linux-fb/gdkwindow-fb.c:
9644         Implement drawable->get_visible_region.
9645         Implement support for _gdk_window_set_child_handler () and
9646         _gdk_window_get_decorations().
9647
9648         * modules/Makefile.am:
9649         Remove linux-fb subdir.
9650
9651         * modules/linux-fb/*:
9652         Removed all.
9653         
9654 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
9655
9656         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
9657         calls, as they are no longer needed.
9658
9659         * gtk/gtktreemodelsort.c: Fix up the comparison code.
9660         
9661         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
9662         figure out how to emit a signal on an interface.
9663
9664 2000-12-20  Havoc Pennington  <hp@redhat.com>
9665
9666         * tests: new directory to contain tests, gtk/test* should move
9667         here sometime (with appropriate on-cvs-server hackery)
9668
9669         * tests/testtreeview.c, tests/Makefile.am: a test
9670         
9671         * configure.in (AC_OUTPUT): add tests/Makefile
9672
9673         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
9674         and "invisible_set" which were missing
9675
9676         * gtk/gtkrbtree.h: some cheesy indentation fix
9677         
9678 2000-12-20  Alexander Larsson  <alexl@redhat.com>
9679
9680         * gtk/gtkinvisible.c (gtk_invisible_realize):
9681         Attach the style to the window so that the style it is not
9682         leaked when unrealizing the window.
9683
9684 2000-12-18  Havoc Pennington  <hp@redhat.com>
9685
9686         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
9687         begin/end user action where appropriate
9688         (gtk_text_view_commit_handler): add begin/end user action
9689
9690         * gtk/gtktextbuffer.c: add begin/end user action signals, and
9691         bracket interactive operations with begin/end user action pair.
9692         
9693         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
9694         "interactive" arg from insert_text and delete_text signals.
9695         Add begin_user_action, end_user_action signals
9696         (gtk_text_buffer_begin_user_action): 
9697         (gtk_text_buffer_end_user_action): New functions to delimit 
9698         a user-visible action
9699
9700         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
9701         signals.
9702         
9703 2000-12-18  Havoc Pennington  <hp@redhat.com>
9704
9705         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
9706         was pretty non-working.
9707
9708         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
9709         by passing the length to g_utf8_validate().
9710
9711 2000-12-16  Havoc Pennington  <hp@pobox.com>
9712
9713         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
9714         Port to GObject, can go back in gdk-pixbuf after setting up 
9715         a gdk-pixbuf-marshal.h header over there.
9716
9717         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
9718         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
9719         args
9720         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
9721         set
9722         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
9723         here, do it when we create the buttons later
9724         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
9725         (gtk_tree_view_map): paranoia checks that column->button is shown 
9726         and unmapped
9727         (gtk_tree_view_size_request): only request visible children.
9728         Move header size calculation in here, for cleanliness, and 
9729         to maintain invariants for child widgets if we eventually 
9730         let users set different children inside the buttons
9731         (gtk_tree_view_map_buttons): factor out code to map buttons,
9732         since it was being called several times
9733         (gtk_tree_view_size_allocate_buttons): move_resize the drag
9734         windows instead of just moving them; their height may change 
9735         if we allow random widgets in there, or the theme changes.
9736         (gtk_tree_view_size_allocate): move button size allocation 
9737         above emitting the scroll signals, to ensure a sane state when we
9738         hit user code
9739         (gtk_tree_view_button_release): remove queue_resize after
9740         tree_view_set_size(), set_size() will handle any resize queuing
9741         that's needed
9742         (gtk_tree_view_focus_in): just queue a draw, don't fool with
9743         draw_focus goo
9744         (gtk_tree_view_focus): use gtk_get_current_event() and
9745         gdk_event_get_state()
9746         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
9747         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
9748         semicolon
9749         (gtk_tree_view_create_button): show the button here
9750         (gtk_tree_view_button_clicked): actually emit the clicked signal
9751         on the column
9752         (_gtk_tree_view_set_size): return right away if the size is
9753         unchanged, as a cheesy optimization
9754         (gtk_tree_view_setup_model): rename set_model_realized to 
9755         setup_model to match the flag that indicates whether we've 
9756         called it
9757         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
9758         exist, because set_scroll_adjustment does that and it shouldn't
9759         matter what order you call these in
9760         (gtk_tree_view_get_vadjustment): ditto
9761         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
9762         for paranoia
9763         (gtk_tree_view_set_headers_visible): call
9764         gtk_tree_view_map_buttons() instead of using cut-and-paste code
9765         (gtk_tree_view_append_column): clarify whether the return value
9766         is the count of columns before or after, and do the increment 
9767         separately from the return statement so you can tell from the code.
9768         (gtk_tree_view_remove_column): ditto
9769         (gtk_tree_view_insert_column): ditto
9770         (gtk_tree_view_get_column): remove g_return_if_fail for columns
9771         outside the existing range, the docs say that outside-range
9772         columns are allowed, so we handle them as documented. (Presumably
9773         this allows a nice loop with column != NULL as test.)
9774         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
9775         mean (left/right/center etc.).
9776         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
9777         (gtk_tree_view_expand_row): add docs
9778         (gtk_tree_view_collapse_row): add docs
9779
9780         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
9781         function to emit the clicked signal on a column
9782         
9783         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
9784         state of an event
9785         (gdk_event_get_time): don't treat GDK_SCROLL 
9786         as a button event, remove default case from switch so gcc 
9787         will whine if we don't explicitly handle all event types
9788
9789         * gtk/gtktreeselection.h: added some FIXME 
9790         
9791         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
9792         "columns" to "n_columns" and "column" to "columns" for clarity
9793
9794 2000-12-16  Havoc Pennington  <hp@pobox.com>
9795         
9796         * gtk/gtktextiter.c: General cleanup of the log attr iteration
9797         stuff. This should make e.g. the delete key work again in the
9798         text widget...
9799         (gtk_text_iter_forward_cursor_positions): handle negative count
9800         (gtk_text_iter_backward_cursor_positions): handle negative count
9801         (gtk_text_iter_forward_word_ends): handle negative count
9802         (gtk_text_iter_backward_word_starts): handle negative count
9803
9804         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
9805         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
9806         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
9807         GObject. No doubt will cause breakage.
9808
9809         * demos/gtk-demo/textview.c: remove hacks around
9810         non-GObject-ification of the text objects
9811
9812         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
9813         the text tag
9814         
9815 2000-12-14  Havoc Pennington  <hp@pobox.com>
9816
9817         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
9818         that we have Xrender
9819
9820 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
9821
9822         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
9823         Add two virtualized functions gdk_drawable_get_clip_region - to
9824         get the clip region when drawing.
9825         
9826         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
9827         use invalidate_region.
9828
9829         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
9830         region.
9831
9832         * acconfig.h configure.in: Check for Xft. For now, assume
9833         that if Xft is found, Pango was compiled with Xft support
9834         as well.
9835
9836         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
9837         gdk_colormap_query_color().
9838         
9839         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
9840         with Xft if appropriate.
9841
9842         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
9843         a pangoxft context if we have XFT and the environment
9844         variable GD_USE_XFT is set.
9845         
9846         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
9847         and also possibly an XftDraw structure.
9848
9849         * gtk/gtkfontsel.c: Handle the case where the font from the
9850         style doesn't match any of the fonts a bit better.
9851         
9852         * gtk/testgtk.c: Add tabs between directional segments for
9853         hebrew/arabic test. (Not really necessary, just a little
9854         prettier.)
9855
9856 2000-12-14  Havoc Pennington  <hp@redhat.com>
9857
9858         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
9859         reading a file
9860
9861 2000-12-14  Havoc Pennington  <hp@redhat.com>
9862
9863         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
9864         unused call to get_last_line()
9865
9866         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
9867         here until boxed is working (and maybe after that - we should
9868         really not gratuitously break old code)
9869
9870         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
9871         specific types for font_desc and tabs args, move them to
9872         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
9873         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
9874
9875         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
9876         use GTK_TYPE_POINTER for signal signatures as a hack-around
9877
9878         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
9879         PangoTabArray
9880
9881         * gtk/gtktextlayout.c (line_display_iter_to_index): 
9882         make static
9883         (line_display_index_to_iter): make static
9884
9885         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
9886         to marshal a string not a boxed
9887
9888         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
9889
9890         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
9891         since the UTF-8 isn't validated yet
9892
9893         * gtk/gtktextsegment.c (char_segment_check_func): don't require
9894         lines to end in '\n'
9895         
9896         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
9897         forward_to_delimiters, and grapheme boundaries
9898         (gtk_text_view_delete_from_cursor): properly handle non-newline
9899         delimiters, and grapheme boundaries
9900
9901         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
9902         to gtk_text_iter_forward_to_delimiters, and make it work properly
9903         if empty lines end with a character other than '\n'
9904
9905         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
9906         position
9907
9908 2000-12-15  Tor Lillqvist  <tml@iki.fi>
9909
9910         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
9911
9912         * gtk/gtk.def
9913         * gdk/gdk.def: Update.
9914
9915         * gdk/win32/gdkmain-win32.c
9916         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
9917         gdkmain-win32.c here.
9918
9919         * gdk/win32/makefile.mingw.in (all): No need to make
9920         gdk-win32res.o here, the makefile one step up will call us to make
9921         it.
9922
9923         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
9924         gdkkeys-win32.
9925
9926         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
9927
9928         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
9929         call to g_source_add().
9930
9931         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
9932         leak. Thanks to Andreas Kemnade.
9933
9934 2000-12-13  Havoc Pennington  <hp@pobox.com>
9935
9936         * gtk/gtktextbtree.h: Remove double _ in front of some functions
9937
9938         * gtk/gtktext*.[hc]: update accordingly
9939         
9940 2000-12-13  Havoc Pennington  <hp@pobox.com>
9941
9942         * gtk/gtktextbtree.h: Put _ in front of every function in this 
9943         header file
9944
9945         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
9946
9947 2000-12-13  Alex Larsson  <alexl@redhat.com>
9948
9949         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
9950         Add support for ps2 intellimouse.
9951
9952         * gdkkeyboard-fb.c:
9953         Move shift-F1 repaint handling to xlate handler only.
9954         
9955         * docs/README.linux-fb:
9956         Add imps2 to docs.
9957         Document the new refresh keys.
9958         
9959 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
9960
9961         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
9962
9963         * gtk/gtkbox.c: change property types from (u)long to (u)int for
9964         ::position and ::padding.
9965
9966         * gtk/gtkcontainer.c: make ::border_width an INT property.
9967
9968         * gtk/gtkpacker.c: make ::position an INT property.
9969
9970         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
9971         guard against NULL h/v scrollbars, since this is used at construction
9972         time.
9973
9974         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
9975         internal gtk_clist_constructor().
9976
9977         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
9978         gtk_ctree_constructor().
9979
9980         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
9981         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
9982
9983         * docs/reference/Makefile.am: fun stuff, disabled docs generation
9984         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
9985
9986         * gtk/gtkwidget.[hc]:
9987         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
9988         and gtk_widget_get().
9989         (gtk_widget_new): use g_object_new_valist().
9990         (gtk_widget_set): use g_object_set_valist().
9991
9992         * gtk/gtkobject.[hc]:
9993         removed gtk_object_arg_get_info(), gtk_object_getv(),
9994         gtk_object_query_args(), gtk_object_newv(),
9995         gtk_object_class_add_signals(),
9996         gtk_object_class_user_signal_new(),
9997         gtk_object_class_user_signal_newv(),
9998         gtk_object_arg_set(), gtk_object_arg_get(),
9999         gtk_object_args_collect(),
10000         gtk_object_default_construct(),
10001         gtk_object_constructed(),
10002         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
10003         removed nsignals, signals and n_args members from GtkObjectClass.
10004         (gtk_object_new): use g_object_new_valist().
10005         (gtk_object_set): use g_object_set_valist().
10006         (gtk_object_get): use g_object_get_valist().
10007         
10008         * gtk/gtkcompat.h: define gtk_object_default_construct().
10009         
10010         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
10011         g_object_new().
10012
10013         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
10014         fucntions, cleaned up method assignments (make sure your structures
10015         are setup properly before calling out). removed all GTK_CONSTRUCTED
10016         hacks ;)
10017
10018 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
10019
10020         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
10021         off-by-one error in checks. (Dave Lambert)
10022
10023 2000-12-12  Alexander Larsson  <alexl@redhat.com>
10024
10025         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
10026         Don't free gdk_fb_keyboard twice.
10027
10028 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
10029
10030         * gtk/testgtk.c:
10031         (create_tooltips): 
10032         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
10033         use GObject swapped_signal:: properties instead.
10034
10035         * gtk/gtkcellrenderertoggle.c: 
10036         * gtk/gtkcellrenderertextpixbuf.c: 
10037         * gtk/gtkcellrenderertext.c: 
10038         * gtk/gtkcellrendererpixbuf.c: 
10039         * gtk/gtkcellrenderer.c:
10040         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
10041         missing warnings for invalid property ids, install properties
10042         with g_object_class_install_property() now.
10043         
10044         * gtk/gtksignal.c:
10045         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
10046         
10047 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
10048         
10049         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
10050         to determine if a window is the focus widget within
10051         its toplevel.
10052
10053         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
10054         to be boolean.
10055
10056         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
10057         of the case where the container CAN_FOCUS to here instead
10058         of having it in each individual move-the-focus place.
10059
10060         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
10061         focusing to be geometric in a much more obvious sense. Arrowing
10062         around is still non-intuitive because it isn't perfect and
10063         because entries, etc, grab the arrow keys, but it at least
10064         usually will do what you expect now.
10065         
10066         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
10067         file.
10068
10069         * gtk/gtknotebook.c: Change tabs to be a single item in
10070         the focus chain. Make movement of focus on tabs with arrow
10071         keys wrap around.
10072         
10073         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
10074         CHECK_FIND_CHILD macro to give informative error messages
10075         instead of silent returns.
10076
10077         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
10078         flag since we handle GdkReturn on the tabs.
10079
10080         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
10081         windows rather than sending expose events directly.
10082
10083         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
10084         definition for GtkNotebookPage into .c file, since it is private.
10085
10086         * gtk/testgtk.c (create_notebook): Add option for 
10087         testing borderless notebook.
10088
10089         * gtk/testgtk.c (page_switch): Removed egregious poking
10090         around in GTK+ internals.
10091
10092         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
10093
10094         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
10095         properly through gtk_clist_focus. Make the title headers a
10096         single item in the tab-focus chain, and make left-right wrap
10097         around.
10098
10099         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
10100         focus method so that wrapping around works properly.
10101
10102         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
10103         that is handled for the widget now. 
10104
10105 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
10106
10107         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
10108         widgets as TOPLEVEL.
10109
10110         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
10111         TOPLEVEL widgets are containers.
10112
10113         * gtk/gtkinvisible.h: Remove useless include.
10114
10115 2000-12-11  Havoc Pennington  <hp@redhat.com>
10116
10117         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
10118         Handle chopping off \r\n and 0x2029 in addition to \n before
10119         passing to PangoLayout
10120
10121         * gtk/gtkimcontextsimple.c
10122         (gtk_im_context_simple_get_preedit_string): 
10123         return an empty string if no match is pending
10124
10125         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
10126         assertion that the returned preedit string was sane
10127
10128         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
10129         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
10130         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
10131
10132 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
10133
10134         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
10135         Fix up finalizer to chain to its parent.
10136
10137 2000-12-11  Alexander Larsson  <alexl@redhat.com>
10138
10139         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
10140         Clearified the difference between the keyboard types. Wrote a note
10141         about the magic sysrq key to get out of raw mode.
10142
10143 2000-12-09  James Henstridge  <james@daa.com.au>
10144
10145         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
10146         member to hold masks for detecting the start of a protocol packet.
10147         (mouse_devs): add packet start masks for ps2 and ms device types.
10148         Left the mask for fidmour blank, as I have no idea what it should
10149         be.
10150         (handle_mouse_io): skip bytes until we get to the start of a
10151         packet.  My Logitech mouse seems to be passing an extra NULL pad
10152         byte, and GPM does a similar thing here.
10153         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
10154         this is the ms mouse driver.
10155         (gdk_fb_mouse_ms_packet): fix up button handling, which was
10156         completely broken except for button1.  It was checking the wrong
10157         bit in the packet for the status of the right mouse button, and
10158         wrongly assuming right == button2 rather than 3.  I fixed that and
10159         also added support for middle button (button2).
10160
10161 2000-12-08  Havoc Pennington  <hp@redhat.com>
10162
10163         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
10164         that cause a segfault on text insertion
10165
10166         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
10167         warning
10168
10169         * gtk/gtktextiter.c (test_log_attrs): use
10170         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
10171
10172         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
10173         Get log attrs for a line, using a cache stored on the buffer
10174         
10175         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
10176         reported by Jeff Franks
10177
10178 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
10179
10180         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
10181         /dev/ttyS0 -> /dev/mouse
10182
10183 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
10184
10185         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
10186         Added dummy gdk_fontset_load.
10187
10188 2000-12-08  Alexander Larsson  <alexl@redhat.com>
10189
10190         * docs/README.linux-fb:
10191         * docs/Makefile.am:
10192         Initial GtkFB docs.
10193         
10194         * gdk/linux-fb/Makefile.am:
10195         Define GDK_DATA_PREFIX.
10196
10197         * gdk/linux-fb/gdkmain-fb.c:
10198         Fix typo.
10199         Change default display to /dev/fb0.
10200
10201         * gdk/linux-fb/gdkpango-fb.c:
10202         Add $(prefix)/share/fonts/ to font path.
10203         
10204 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
10205
10206         * gdk/linux-fb/gdkkeyboard-fb.c:
10207         New file containing the abstracted keyboard driver. Most code
10208         taken from gdkinput-ps2.c
10209
10210         * gdk/linux-fb/gdkinput-ps2.c:
10211         Removed file.
10212         
10213         * gdk/linux-fb/Makefile.am:
10214         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
10215
10216         * gdk/linux-fb/gdkcolor-fb.c:
10217         display->fb was renamed to display->fb_fd.
10218
10219         * gdk/linux-fb/gdkcursor-fb.c:
10220         gdk_mouse_get_info -> gdk_fb_mouse_get_info
10221
10222         * gdk/linux-fb/gdkinput.c:
10223         Moved gdk_input_init here from gdkinput-ps2.c
10224
10225         * gdk/linux-fb/gdkmain-fb.c:
10226         display->fb was renamed to display->fb_fd.
10227         Now the tty and the console is opened here instead
10228         of in the keyboard driver. Also check GDK_VT to see what
10229         tty to open.
10230         Move gdk_beep () here from gdkinput-ps2.c
10231         gdk_mouse_get_info -> gdk_fb_mouse_get_info
10232
10233         * gdk/linux-fb/gdkmouse-fb.c:
10234         Add header.
10235         gdk_mouse_get_info -> gdk_fb_mouse_get_info
10236         Return correct keyboard modifiers.
10237         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
10238
10239         * gdk/linux-fb/gdkprivate-fb.h:
10240         Add tty and vt info to display.
10241         Add orignal modeinfo storage to display
10242         Update global functions
10243
10244         * gdk/linux-fb/gdkwindow-fb.c:
10245         Added gdk_fb_window_find_focus().
10246         gdk_mouse_get_info -> gdk_fb_mouse_get_info
10247
10248 2000-12-07  Havoc Pennington  <hp@pobox.com>
10249
10250         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
10251         function, noticed by Alex
10252
10253 2000-12-06  Elliot Lee  <sopwith@redhat.com>
10254
10255         * configure.in: Detect freetype properly
10256
10257         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
10258         above.
10259
10260 2000-12-06  Alexander Larsson  <alexl@redhat.com>
10261
10262         * gdk/linux-fb/Makefile.am:
10263         Add gdkmouse-fb.c
10264         
10265         * gdk/linux-fb/gdkmouse-fb.c:
10266         New file. Abstracted the mouse drivers a bit.
10267
10268         * gdk/linux-fb/gdkcursor-fb.c:
10269         The cursor hide/show functions was moved here from gdkinput-ps2.c.
10270
10271         * gdk/linux-fb/gdkinput-ps2.c:
10272         Removed old mouse handling code. Moved cursor handling code
10273         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
10274         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
10275         gdk_mouse_get_info.
10276
10277         * gdk/linux-fb/gdkmain-fb.c:
10278         Pass NULL pointers for x,y in gdk_mouse_get_info call.
10279
10280         * gdk/linux-fb/gdkprivate-fb.h:
10281         Removed public gdk_fb_find_common_ancestor, added and renamed
10282         functions for the new mouse handling code.
10283
10284         * gdk/linux-fb/gdkwindow-fb.c:
10285         Moved gdk_fb_window_send_crossing_events here. added global
10286         variable gdk_fb_window_containing_pointer. made
10287         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
10288         renamed to gdk_mouse_get_info.
10289
10290 2000-12-06  Alexander Larsson  <alexl@redhat.com>
10291
10292         * gdk/linux-fb/gdkevents-fb.c:
10293         Update to match latest gmain/gsource changes.
10294
10295         * gdk/linux-fb/gdkinput-ps2.c:
10296         Bogus gdk_keymap_get_entries_for_keycode implementation so that
10297         it links. Will be implemented later.
10298
10299 2000-12-03  Havoc Pennington  <hp@pobox.com>
10300
10301         * gdk/Makefile.am: add gdkkeys.[hc]
10302
10303         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
10304         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
10305
10306         * acconfig.h, configure.in: add checks and command line options
10307         for XKB
10308
10309         * gdk/x11/gdkkeys-x11.c: Implement the above functions
10310         
10311         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
10312         and group in the key event
10313
10314         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
10315         field with the low-level hardware key code, and a group
10316         field with the keyboard group
10317
10318         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
10319         and declare a couple globals used for keymap handling
10320         
10321         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
10322         hold down Shift-Control and type a hex number to get a Unicode 
10323         character corresponding to the hex number
10324         (gtk_im_context_simple_get_preedit_string): Fix cursor position
10325         (return bytes not chars)
10326
10327 2000-12-05  Elliot Lee  <sopwith@redhat.com>
10328
10329         * gdk/gdkcolor.h: Make GdkColor specify element sizes
10330         to avoid waste on 64-bit platforms.
10331
10332 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
10333
10334         * INSTALL: Fix link to PNG home, remove reference
10335         to fribidi.
10336
10337         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
10338         
10339         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
10340         tested.)
10341
10342         * gtk/gtkcheckmenuitem.c: Permanently turn on
10343         always_show_toggle.
10344
10345         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
10346         be NULL. (Vladimir Klebanov, #26545)
10347
10348         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
10349         some signed/unsigned comparison problems. (#6510,
10350         David Kaelbling)
10351
10352         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
10353         return type to boolean (Oskar Liljeblad, #18648)
10354
10355 2000-12-05  Alexander Larsson  <alexl@redhat.com>
10356
10357         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
10358         Remove bogus colormap setting.
10359
10360 2000-12-05  Alexander Larsson  <alexl@redhat.com>
10361
10362         * gdk/linux-fb/gdkcolor-fb.c:
10363         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
10364
10365         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
10366         Must set colormap.
10367         
10368 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
10369
10370         * docs/tutorial/gtk-tut.sgml: DND updates
10371
10372 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
10373
10374         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
10375         Remove old debug g_warning().
10376         (gdk_fb_draw_drawable): The src argument can be either a wrapper
10377         or an implementation, just pass the implementation to draw_drawable_2.
10378         
10379         * gdk/linux-fb/gdkprivate-fb.h:
10380         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
10381
10382         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
10383         clear and invalidate area when window is destroyed.
10384         (send_map_events): Remove old commented out code.
10385
10386 2000-12-05  Alexander Larsson  <alexl@redhat.com>
10387
10388         * gdk/linux-fb/gdkpango-fb.c:
10389         Use italic instead of oblique in font aliases.
10390         
10391         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
10392         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
10393         other unsupported functions.
10394
10395 2000-12-04  Havoc Pennington  <hp@redhat.com>
10396
10397         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
10398
10399         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
10400
10401         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
10402
10403         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
10404         hack to avoid infinite loops (synthetic expose event) - 
10405         Owen has more appropriate fixes in a branch he'll check in later.
10406
10407         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
10408         separator, CR, and CRLF as line ends
10409
10410         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
10411         into lines using pango_find_paragraph_boundary(); other bits of
10412         the widget are still going to be broken if the boundary isn't '\n'
10413         though
10414
10415 2000-12-04  Alexander Larsson  <alexl@redhat.com>
10416
10417         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
10418         multiply.
10419
10420         * gdk/linux-fb/gdkpango-fb.c:
10421         Copied some 26.6 scaling macros from pango to clean up the rounding.
10422         (pango_fb_font_get_glyph_info): Correct sign on x value.
10423
10424         * gdk/linux-fb/gdkprivate-fb.h:
10425         Removed unreferenced external functions.
10426
10427         * modules/linux-fb/Makefile.am: Use ` instead of '.
10428
10429         * modules/linux-fb/basic.c:
10430         Remove dead code. In particular the dummy lang engine which broke all
10431         pango layouts in GtkFB. Don't include tables-big.i anymore.
10432
10433         * modules/linux-fb/tables-big.i:
10434         Upgrade to latest version from pango. Left for reference, basic_ranges
10435         moved to basic.c.
10436         
10437 2000-12-04  Havoc Pennington  <hp@redhat.com>
10438
10439         Fix bugs Alex found:
10440         
10441         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
10442         to "draw"
10443
10444         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
10445
10446         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
10447
10448         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
10449         implementation in here, apparently the expose() implementation was
10450         dead code.
10451
10452 2000-12-04  Alexander Larsson  <alexl@redhat.com>
10453
10454         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
10455         Return positive descent.
10456
10457 2000-12-02  Havoc Pennington  <hp@pobox.com>
10458
10459         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
10460         method and signal
10461         
10462         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
10463         calls gdk_window_process_updates() to push the exposes through
10464         (gtk_widget_class_init): No more draw signal, no
10465         gtk_widget_real_draw()  
10466         
10467         * gtk/gtkbin.c (gtk_bin_draw): remove
10468
10469         * gtk/gtkbox.c (gtk_box_draw): remove
10470
10471         * gtk/gtkbutton.c (gtk_button_draw): remove
10472
10473         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
10474
10475         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
10476
10477         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
10478
10479         * gtk/gtkclist.c (gtk_clist_draw): remove
10480
10481         * gtk/gtkentry.c (gtk_entry_draw): remove
10482
10483         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
10484
10485         * gtk/gtkfixed.c (gtk_fixed_draw): remove
10486
10487         * gtk/gtkframe.c (gtk_frame_draw): remove
10488
10489         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
10490
10491         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
10492
10493         * gtk/gtklayout.c (gtk_layout_draw): remove
10494
10495         * gtk/gtklist.c (gtk_list_draw): remove
10496
10497         * gtk/gtklistitem.c (gtk_list_item_draw): remove
10498
10499         * gtk/gtkmenu.c (gtk_menu_draw): remove
10500
10501         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
10502
10503         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
10504
10505         * gtk/gtknotebook.c (gtk_notebook_draw): remove
10506
10507         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
10508
10509         * gtk/gtkpacker.c (gtk_packer_draw): remove
10510
10511         * gtk/gtkrange.c (gtk_range_draw): remove
10512
10513         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
10514
10515         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
10516
10517         * gtk/gtktable.c (gtk_table_draw): remove
10518
10519         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
10520
10521         * gtk/gtktext.c (gtk_text_draw): remove
10522
10523         * gtk/gtktextview.c (gtk_text_view_draw): remove
10524
10525         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
10526
10527         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
10528
10529         * gtk/gtktree.c (gtk_tree_draw): remove
10530
10531         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
10532
10533         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
10534
10535         * gtk/gtkviewport.c (gtk_viewport_draw): remove
10536
10537         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
10538
10539         * gtk/gtkvscale.c (gtk_vscale_draw): remove
10540
10541         * gtk/gtkwindow.c (gtk_window_draw): remove
10542
10543 2000-20-01  Anders Carlsson  <andersca@gnu.org>
10544
10545         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
10546         a GtkToggleButton is both insensitive and active, it was being
10547         drawn by the GtkButton draw handler which doesn't check the
10548         state. Now it's calling gtk_toggle_button_paint instead.
10549         
10550 2000-12-01  Havoc Pennington  <hp@redhat.com>
10551
10552         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
10553         dangling pointers to the appearance attributes from the 
10554         line display
10555
10556         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
10557         width/height to mean "full width/height of drawable"
10558
10559         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
10560         click to select word/line
10561         
10562         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
10563         when getting log attrs. Get a slice, so that pixmaps and stuff
10564         are properly handled.
10565
10566         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
10567         paste into the selection (replaces selection now, previously
10568         crashed or added to selection). Reveals longstanding btree bug -
10569         select multiple lines, middle-click on the selection, boom. This
10570         isn't related to my changes though.
10571
10572         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
10573         PangoLogAttrs changes
10574         (gtk_entry_move_backward_word): ditto
10575
10576         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
10577         functions return bool whether the iter moved onto a
10578         dereferenceable position.
10579  
10580         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
10581         functions for motion in terms of display lines.
10582
10583         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
10584         get the buffer a mark is inside
10585         
10586 2000-12-01  Alexander Larsson  <alexl@redhat.com>
10587
10588         * gdk/linux-fb/Makefile.am:
10589         * modules/linux-fb/Makefile.am:
10590         Freetype 2 final uses freetype-config
10591
10592         * gdk/linux-fb/gdkpango-fb.c:
10593         Upgrade to use Freetype 2 final.
10594         More flexible support for font aliases, this also fixes a bug with
10595         GtkFontSelector, as the aliases must be visible in the font/family list,
10596         or GtkFontSelector reads uninitialized memory.
10597
10598 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
10599
10600         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
10601         XGetIMValues to properly terminate variable argument list, and do
10602         NULL return check for ic_values and xim_styles.
10603
10604         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
10605         Restore preedit state after XmbResetIC().
10606         
10607         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
10608         XvaCreateNestedList() should take XvaNestedList, but not
10609         XvaNestedList*.
10610
10611         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
10612         preedit_draw_callback, preedit_caret_callback): Match
10613         "preedit-changed" signal name to "preedit_changed" to be
10614         consistent to the spec.
10615
10616         * gtk/gtkimcontextsimple.c (check_table):
10617         Match "preedit-changed" to "preedit_changed" to be consistent
10618         to the spec.
10619
10620 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
10621
10622         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
10623         gc->clip_region == NULL>
10624
10625 2000-11-30  Tor Lillqvist  <tml@iki.fi>
10626
10627         Changes by Hans Breuer:
10628         
10629         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
10630         Dont't use negative width and height as max_hints. This fixes
10631         Owen's recent testgtk changes for win32.
10632
10633         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
10634         gdk_win32_hdc_release): These are exported and may be called with
10635         other drawable types than our GdkDrawableImplWin32 (?).
10636
10637         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
10638         so always #define USE_BACKING_STORE.
10639
10640         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
10641         of printf for debugging output.
10642
10643         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
10644         
10645         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
10646
10647         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
10648         declaration.
10649
10650         * gtk/gtktexttypes.h: Ditto.
10651
10652         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
10653         (GDK_VoidSymbol) also if in case of arg check failure.
10654
10655         * gtk/gtkimcontextsimple.c
10656         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
10657         position to the pointer, but to the variable it points to.
10658
10659         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
10660
10661         * gtk/gtk.def: Updates.
10662
10663 2000-11-29  Elliot Lee  <sopwith@redhat.com>
10664
10665         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
10666         GTK_TYPE_TREE_MODEL.
10667
10668 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10669
10670         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
10671         Set the size of the font from the description.
10672         (gdk_text_width): Gross hack that calculates the width
10673         of text by text_length * size/2. This is necessary because
10674         GtkLabel does some ugly gtk_string_width call to calculate
10675         an good size.
10676         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
10677
10678 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
10679
10680         * docs/tutorial/gtk-tut.sgml: DND updates
10681
10682 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10683
10684         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
10685         If you pass width or height == 0 to gdk_window_clear_area they
10686         should be calculated from the window size.
10687
10688 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10689
10690         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
10691         a grab, but no grab-cursor, use the cursor from the grabbed
10692         window. (gdk_fb_window_send_crossing_events): Send normal
10693         enter/leave notifications if grab and owner_events == TRUE.
10694
10695 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10696
10697         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
10698         Do implicit button grabs, even if the window doesn't
10699         want the event.
10700         (gdk_fb_window_send_crossing_events): If there is a
10701         grab, only the grabbed window gets normal enter/leave
10702         notifications. On ungrab go from grabbed window to current.
10703         Don't send any notification to b when propagating from c -> b.
10704         If setting a grab on window, don't set prev_window.
10705         (handle_mouse_input): Send enter/leave events to the window the
10706         mouse is over, not the grabbed one.
10707         
10708 2000-11-28  Elliot Lee  <sopwith@redhat.com>
10709
10710         * gdk/gdkregion-generic.c: Zap warning.
10711         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
10712         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
10713
10714 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
10715
10716         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
10717         The cursor should be hidden if it is part of either the
10718         source or destination region. Not only if it is in both.
10719         (gdk_window_set_transient_for): Silence warnings.
10720
10721 2000-11-28  Alexander Larsson  <alexl@redhat.com>
10722
10723         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
10724         The default mode in X is Pie Arcs, therefore that is
10725         what Gtk+ uses.
10726
10727 2000-11-28  Alexander Larsson  <alexl@redhat.com>
10728
10729         * gdk/linux-fb/gdkinput-ps2.c:
10730         Implement correct EnterNotify/LeaveNotify:
10731         (gdk_fb_window_send_crossing_events): New function that sends
10732         all GdkCrossingEvents from the last mouse-window to the specified
10733         destination.
10734         (gdk_fb_window_visibility_crossing): Removed function.
10735         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
10736         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
10737         instead of gdk_window_get_pointer() for better readability.
10738
10739         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
10740         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
10741
10742         * gdk/linux-fb/gdkprivate-fb.h:
10743         removed gdk_fb_window_visibility_crossing, added
10744         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
10745
10746         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
10747         New function that finds the least common ancestor of two windows.
10748         (gdk_window_show, gdk_window_hide):
10749         Use gdk_fb_window_send_crossing_events.
10750         (gdk_fb_window_move_resize): Send configure events to toplevel
10751         windows. Use gdk_fb_window_send_crossing_events.
10752
10753 2000-11-27  Havoc Pennington  <hp@redhat.com>
10754
10755         * gtk/gtkprivate.h (enum): Remove a trailing comma
10756
10757 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
10758
10759         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
10760         the "changed" callback of the adjustment.  We need to redraw the
10761         spin button's arrows when the adjustment's range changes.
10762         (adjustment_changed_cb): Draw the arrows.
10763         (gtk_spin_button_value_changed): Draw the arrows.
10764
10765 2000-11-23  Alexander Larsson  <alexl@redhat.com>
10766
10767         * gdk/linux-fb/gdkselection-fb.c:
10768         Initial selection implementation.
10769
10770         * gtk/gtkselection.c:
10771         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
10772         requestor in gtk_selection_request.
10773         
10774         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
10775         Added gdk_selection_property atom.
10776
10777         * gdk/linux-fb/gdkprivate-fb.h:
10778         Export _gdk_selection_window_destroyed.
10779         Removed mask_off_x/y from GdkCursorPrivateFB.
10780         Removed hbearing, added top, left to PangoFBGlyphInfo.
10781
10782         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
10783         Call _gdk_selection_window_destroyed
10784         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
10785         the root window has been created.
10786         (static_dx_hack, static_dy_hack, compare_draw_rects,
10787         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
10788         in region. They are already sorted. Instead just traverse them in
10789         reverse if draw_direction < 0.
10790         
10791         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
10792         Double-clicks must be sent after the normal button_press.
10793         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
10794         
10795         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
10796         Pass _gdk_fb_screen_gc instead of NULL.
10797
10798         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
10799         Initialize gdk_selection_property.
10800         (gdk_event_make): Remove unused code.
10801
10802         * gdk/linux-fb/gdkcursor-fb.c:
10803         Make the pixmap for the cursor the same size as the mask. Also remove
10804         the mask_off_x/y fields in GdkCursorPrivateFB and combine
10805         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
10806         Now the whole cursor is visible.
10807
10808         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
10809         Fix bug where xdest+height instead of ydest+height was used
10810         to calculate if the source and dest overlapped. This fixes the
10811         redraw bug when the main window in testgtk was scrolled when
10812         partially covered by a tall window.
10813         Copy rectangles in region in order depending on draw_direction.
10814         Also moved the draw_direction flipping of start_y and end_y into
10815         the gc functions, as this might not be what all of them want.
10816         (gdk_fb_draw_lines): Support dashed lines.
10817         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
10818         so that the text is positioned correctly (was 1 pixel high).
10819
10820         gdk/linux-fb/gdkgc-fb.c:
10821         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
10822         all lines were drawn a pixel to short. Also checked the default of
10823         the rest of the values, and they're the same as X now.
10824
10825         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
10826         Clean up pixel positioning of the glyphs. Just use bgy->top and
10827         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
10828         to all divisions to get correct rounding behaviour.
10829
10830         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
10831         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
10832         Moved start_y/end_y flip into draw_drawable implementations.
10833         Flip also x rendering when draw_direction < 0.
10834         Remove unneccesary multiply with draw_direction.
10835
10836 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
10837
10838         * docs/tutorial/gtk-tut.sgml:
10839           - get rid of gtk_toggle_button_toggled FUD
10840           - start DND section - needs work - based on:
10841                 http://wolfpack.twu.net/docs/gtkdnd/
10842
10843 2000-11-22  Alexander Larsson  <alexl@redhat.com>
10844
10845         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
10846         Correct calculation of font metrics. Now GtkEntrys have sane
10847         size.
10848
10849 2000-11-22  Alexander Larsson  <alexl@redhat.com>
10850
10851         * gdk/gdktypes.h:
10852         Add new type GdkSpan
10853         
10854         * docs/reference/gdk/gdk-sections.txt,
10855         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
10856         gdk/gdkregion.h:
10857         Implement and document gdk_region_spans_intersect_foreach.
10858
10859         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
10860         Add new file gdkrender-fb.c which contains all core
10861         rendering code.
10862         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
10863         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
10864         (optimized rectangle fillers).
10865
10866         * gdk/linux-fb/gdkdrawable-fb2.c:
10867         Move all rendering code to gdkrender-fb.c.
10868         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
10869         Use the new span intersection functions in gdk_fb_fill_spans.
10870         gdk_fb_draw_rectangle() clips filled rectangles and calls
10871         gc->fill_rectangle with the result.
10872         gdk_fb_fill_spans() gets extra argument "sorted".
10873
10874         * gdk/linux-fb/gdkevents-fb.c:
10875         Remove unused includes and defines.
10876         New function gdk_fb_get_time() to get correct time for events.
10877
10878         * gdk/linux-fb/gdkinput-ps2.c:
10879         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
10880         Make sure to set the time of all events.
10881
10882         * gdk/linux-fb/gdkmain-fb.c:
10883         Use gdk_fb_get_time ().
10884
10885         * gdk/linux-fb/gdkprivate-fb.h:
10886         New virtual GC calls: fill_span & fill_rectangle.
10887         Export gdk_fb_get_time().
10888         gdk_fb_fill_spans() gets extra argument "sorted".
10889
10890         * gdk/linux-fb/mi*.c:
10891         Use GdkSpan instead of GdkRectangle.
10892         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
10893         from XFree 4 source)
10894         
10895 2000-11-22    <jrb@redhat.com>
10896
10897         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
10898         reversing the order in an if statement will do.  Doing so managed
10899         to make the treemodelsort half work.  Other half will follow after
10900         I get the insert function fully fixed.
10901
10902 2000-11-21  Elliot Lee  <sopwith@redhat.com>
10903         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
10904         more than 2 bits. Besides, I need to implement an evil hack. :)
10905
10906 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
10907
10908         * docs/tutorial/gtk-tut.sgml: minor corrections
10909
10910 2000-11-20  Jonathan Blandford <jrb@redhat.com>
10911         * gtk/gtktreemodelsort.h: Add convertion functions to let you
10912           convert to and from relative path's and iters.
10913
10914         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
10915           testing sorting functions a bit better.  Currently broken -- will
10916           fix in morning.
10917
10918 2000-11-20  Havoc Pennington  <hp@redhat.com>
10919
10920         * gtk/gtkwidget.c: Documented a bunch of functions in here
10921         (gtk_widget_realize): Warn if you try to realize
10922         a widget with no parent that isn't a toplevel
10923         (gtk_widget_intersect): return a gboolean
10924
10925 2000-11-20  Havoc Pennington  <hp@redhat.com>
10926
10927         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
10928         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
10929         scrolling to be implemented in GDK to finish. Also, right now
10930         we just size_allocate all children on every layout change,
10931         which is pretty lame. Test commented out of testtext.c, 
10932         until it works better.
10933
10934 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
10935
10936         * gdk/linux-fb/gdkdrawable-fb2.c:
10937         Removed unused arguments from gdk_fb_drawable_get_pixel().
10938
10939         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
10940         Renamed fidur specific mouse packet data in MouseDevice to
10941         generic. Used it in ps2 mouse handling code to avoid blocking
10942         reads.
10943
10944 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
10945
10946         * demos/gtk-demo/main.c: Changed to have the list become
10947         non-italic when the demo window is destroyed through an external
10948         event (like a close button).  Doing so found three bugs in the
10949         widget.
10950
10951         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
10952
10953         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
10954         we actually set the cell.
10955
10956         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
10957
10958         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
10959         free a leaked path.  Thanks memprof.
10960
10961 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
10962
10963         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
10964         off-by-one error when destroying allocated segments
10965         on failure. (Elliot)
10966
10967 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
10968
10969         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
10970         memleaks found by Evan Martin.
10971
10972 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
10973
10974         * Released 1.3.2
10975         
10976         * NEWS: Updates for 1.3.2
10977
10978 2000-11-17  Tor Lillqvist  <tml@iki.fi>
10979
10980         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
10981         but in general for window system specific events.
10982
10983         * gtk/gtk.def
10984         * gtk/makefile.mingw.in
10985         * gtk/makefile.msc.in: Update.
10986         
10987         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
10988
10989 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
10990
10991         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
10992         distribute gtk.immodules.
10993
10994         * gtk/Makefile.am (install-data-local): Don't install the
10995         gtk.immodules file created for the uninstalled modules;
10996         instead run gtk-query-immodules after install
10997
10998 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
10999
11000         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
11001         -rpath to the right install location.
11002
11003         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
11004         -export-dynamic.
11005
11006         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
11007         properly.
11008
11009 2000-11-15  Havoc Pennington  <hp@pobox.com>
11010
11011         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
11012         patch from Mikael Hermansson to temporarily stop blinking while
11013         the user is using the keyboard to type or navigate. 
11014
11015         Also, when blinking, stay on for longer than we stay off. Also,
11016         return from start_cursor_blink if !cursor_visible, to save
11017         checking that flag all over the place before we call
11018         start_cursor_blink.
11019
11020 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
11021
11022         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
11023         only contain a "fontset" line, which is now ignored.
11024
11025         * gtk/gtkentry.c (gtk_entry_button_release): Make 
11026         double-click-to-select-word work.
11027         
11028 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
11029
11030         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
11031         Don't move back one char when we are actually at the end of the 
11032         paragraph.
11033
11034 2000-11-15  Robert Brady  <robert@suse.co.uk>
11035
11036         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
11037         'o' < 'p'.
11038         
11039         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
11040         bind_textdomain_codeset.
11041
11042         (gtk_init_check): Make the warning about translating default:LTR
11043         sterner.
11044         
11045 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
11046
11047         * **/Makefile.am : remove unecessary rules for win32-specific
11048         config-substituted targets. If you want these rules, use
11049         --enable-maintainer-mode (called automatically by autogen.sh).
11050         Stops a lot of unneccessary make-time warnings.
11051
11052         * gtk/gtktext{layout,display}.c: Factor in total width as
11053         well as screen when figuring alignment for word-wrap as well as
11054         no wrap; this is necessary to handle lines that cannot be wrapped
11055         at all.
11056
11057 2000-11-15  Havoc Pennington  <hp@redhat.com>
11058
11059         * gtk/testtext.c: Implement essential color cycling feature
11060
11061 2000-11-15  Havoc Pennington  <hp@redhat.com>
11062
11063         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
11064         when we invalidate the main window.
11065
11066         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
11067         GtkTextView will now invalidate the side windows for us when text
11068         changes.
11069
11070 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
11071
11072         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
11073         unconditionally, since we may need to update the horizontal
11074         scrollbars even if the height didn't change.
11075
11076         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
11077         the extra attrs, since some of them affect size.
11078
11079         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
11080         x_offset correctly.
11081
11082 2000-11-15  Havoc Pennington  <hp@redhat.com>
11083
11084         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
11085         don't move the first line out into the margin, instead move the
11086         whole paragraph in order to make space for the first line within 
11087         the margin
11088
11089 2000-11-15  Havoc Pennington  <hp@redhat.com>
11090
11091         * gtk/gtktextview.c (changed_handler): offset redraw rect by
11092         xoffset in addition to yoffset, so horizontal scrolling doesn't
11093         break redraws
11094
11095 2000-11-15  Havoc Pennington  <hp@redhat.com>
11096
11097         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
11098         from the cursor
11099         (render_layout_line): fix reversed test that caused weird
11100         underlines to get drawn
11101
11102 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
11103
11104         * gdk/linux-fb/gdkprivate-fb.h:
11105         Fix debug macros.
11106         
11107 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
11108
11109         * gdk/linux-fb/gdkprivate-fb.h:
11110         Added virtual functions set_pixel, get_color,
11111         fill_span and draw_drawable to the GC.
11112         Added global _gdk_fb_screen_gc to use instead of
11113         NULL when drawing to the screen.
11114         Added _gdk_fb_gc_calc_state() prototype.
11115
11116         * gdk/linux-fb/gdkgc-fb.c:
11117         Call _gdk_fb_gc_calc_state() on any gc state change.
11118
11119         * gdk/linux-fb/gdkglobals-fb.c:
11120         Add _gdk_fb_screen_gc
11121                 
11122         * gdk/linux-fb/gdkdrawable-fb2.c:
11123         _gdk_fb_gc_calc_state() calculates best functions
11124         for the GC state and depth.
11125         Moved bpp specialized code to separate functions.
11126         Added optimized 24 bpp AA draw_drawable.
11127
11128         * gdk/linux-fb/gdkevents-fb.c:
11129         Silence gcc warning.
11130
11131         * gdk/linux-fb/gdkimage-fb.c:
11132         Use _gdk_fb_screen_gc
11133
11134         * gdk/linux-fb/gdkwindow-fb.c:
11135         Init and use _gdk_fb_screen_gc
11136
11137         * gdk/linux-fb/mitypes.h:
11138         Remove unused types.
11139
11140 2000-11-14  Havoc Pennington  <hp@pobox.com>
11141
11142         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
11143         to pixels
11144
11145 2000-11-14  Havoc Pennington  <hp@pobox.com>
11146
11147         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
11148
11149         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
11150         unknown char, no real reason we were using a variable. 
11151         Remove gtk_text_unknown_char variable. Fix all the text widget
11152         files accordingly.
11153
11154         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
11155         since the Unicode spec seems to prefer that character for our
11156         purposes.
11157
11158 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
11159
11160         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
11161         value of g_getenv() isn't freeable, so g_strdup it.
11162
11163         * modules/input/inuktitut.c: Inuktitut input method.
11164
11165         * modules/input/Makefile.am: Build this.
11166         
11167 2000-11-14  Elliot Lee  <sopwith@redhat.com>
11168
11169         * gtk/Makefile.am: Install gtk.immodules, needed for operation
11170         of gtk programs.
11171
11172 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
11173
11174         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
11175         reversed > that was causing Home to go to end of previous line.
11176
11177         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
11178         modified-keypresses (leave for bindings.)
11179
11180         * modules/input/Makefile.am: Remove useless -export-dynamic
11181         from module LDFLAGS.
11182
11183 2000-11-14  Havoc Pennington  <hp@redhat.com>
11184
11185         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
11186         higher.
11187
11188         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
11189         account. Also, render rise, underline, background, etc. for
11190         pixbufs as well as text. Also, draw underlines one pixel higher.
11191
11192         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
11193         PangoAttribute for the rise, so it gets drawn properly. Also,
11194         add the GtkTextAppearance attribute for pixbuf/widget segments
11195         as well; we should go ahead and have rise, underline, background,
11196         stipple work for those
11197
11198         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
11199         Pango
11200
11201 2000-11-15  Tor Lillqvist  <tml@iki.fi>
11202
11203         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
11204
11205         * gtk/gtk.def: Update.
11206
11207         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
11208         included.
11209         (gtk_rc_get_im_module_file): Use run-time installation directory
11210         on Win32.
11211
11212         * gdk/win32/rc/gdk.rc: Remove.
11213         * gdk/win32/rc/gdk.rc.in: New file.
11214         * gdk/win32/rc/Makefile.am: New file
11215         * gdk/win32/Makefile.am: Corresponding changes.
11216
11217         * gtk/gtk.rc: Remove.
11218         * gtk/gtk-win32.rc.in: New file.
11219         * gtk/Makefile.am: Corresponding changes.
11220
11221         * configure.in: Corresponding changes.
11222
11223         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
11224         has a built gtkcompat.h. Developers using CVS code on Win32 can
11225         hand-edit it from gtkcompat.h.in.
11226
11227         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
11228         gtkcompat.h from gtkcompat.h.win32.
11229
11230 2000-11-14  Havoc Pennington  <hp@redhat.com>
11231
11232         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
11233         to default to GDK_ACTION_MOVE if the drag is within a single
11234         widget. Defaults to GDK_ACTION_COPY between widgets.
11235
11236 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
11237
11238         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
11239
11240         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
11241
11242         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
11243         srcdir != builddir
11244
11245         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
11246
11247         * configure.in (GTK_VERSION): Up to 1.3.2
11248
11249         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
11250         gtkimcontextxim.h
11251
11252         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
11253         missing doc comment.
11254
11255 2000-11-14  Alexander Larsson  <alexl@redhat.com>
11256
11257         * modules/linux-fb/basic.c:
11258         Use the glib iconv wrappers.
11259
11260 2000-11-13  Havoc Pennington  <hp@pobox.com>
11261
11262         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
11263         still more bugs.
11264
11265         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
11266         scroll the GdkWindows before realization.
11267
11268 2000-11-13  Havoc Pennington  <hp@redhat.com>
11269
11270         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
11271         where GC didn't always get updated properly
11272
11273         * demos/gtk-demo/textview.c (create_tags): Use subattributes
11274         of fonts instead of setting the entire font
11275
11276         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
11277         setting entire font
11278
11279         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
11280
11281         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
11282         a bunch of individually-settable font attributes. You can still 
11283         use the "font" and "font_desc" args, they just set all the font
11284         attributes at once.
11285
11286 2000-11-13 Elliot Lee <sopwith@redhat.com>
11287
11288         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
11289
11290 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
11291
11292         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
11293         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
11294
11295         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
11296         work better.
11297
11298 2000-11-13  Havoc Pennington  <hp@redhat.com>
11299
11300         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
11301         the module file.
11302
11303         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
11304         dest->language
11305
11306         * gtk/testtext.c: Test pixels above/below/inside paragraphs
11307         settings
11308
11309         * gtk/gtktextview.c: Implement object args and setters/getters for
11310         all the aspects of the GtkTextAttributes that are not set from
11311         GtkWidget attributes. This is spacing, justification, margins,
11312         etc.
11313
11314         (gtk_text_view_set_arg)
11315         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
11316         args
11317         (gtk_text_view_class_init): Add args for justify, left_margin,
11318         right_margin, indent, and tabs
11319         
11320
11321         * gtk/gtktextlayout.c (set_para_values): fix to display indent
11322         attribute properly
11323
11324         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
11325         replace with indent attribute
11326
11327         * gtk/gtktextlayout.c (set_para_values): multiply indent by
11328         PANGO_SCALE
11329
11330         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
11331         rearranging code to do that
11332         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
11333         i.e. don't subtract the top_margin first, just to keep
11334         all margin-futzing in one place.
11335
11336         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
11337
11338         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
11339         special case of last line, Pango now handles this itself.
11340         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
11341         Y coordinate
11342         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
11343         (find_display_line_above): wasn't moving the byte index as it
11344         iterated over lines, so always returned byte 0. Also, port to use
11345         PangoLayoutIter.
11346         (find_display_line_below): same problem as
11347         find_display_line_above. Also, port to use PangoLayoutIter.
11348
11349 2000-11-13  Alexander Larsson  <alexl@redhat.com>
11350
11351         * gdk/linux-fb/*.[ch]:
11352         Massive reindent to gtk+ standard. My hands hurt.
11353
11354         * gdk/linux-fb/gdkcolor-fb.c:
11355         Move GdkColorPrivateFB from inherited to windowing_data
11356
11357         * gdk/linux-fb/gdkcursor-fb.c:
11358         _gdk_cursor_new_from_pixmap made static
11359
11360         * gdk/linux-fb/gdkdnd-fb.c:
11361         GdkDragContextPrivate moved to windowing_data
11362
11363         * gdk/linux-fb/gdkdrawable-fb2.c:
11364         Removed endian.h, use glib endianness macros instead
11365         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
11366         and GDK_DRAWABLE_IMPL_FBDATA
11367
11368         * gdk/linux-fb/gdkfont-fb.c:
11369         Add empty gdk_font_load(). Needed for linking of Gtk+.
11370
11371         * gdk/linux-fb/gdkimage-fb.c:
11372         Removed endian.h, use glib endianness macros instead
11373         Moved GdkImagePrivateFB to windowing_data
11374         gdk_image_new_bitmap didn't always allocate enough
11375         memory.
11376
11377         * gdk/linux-fb/gdkinput-ps2.c:
11378         Added semi-working support for MS serial mice.
11379
11380         * gdk/linux-fb/gdkprivate-fb.h:
11381         s/GdkWindowPrivate/GdkWindowObject/
11382         Removed GdkWindowPrivate typedef
11383         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
11384         Removed GDK_DRAWABLE_P
11385         Move GdkColorPrivateFB from inherited to windowing_data
11386         Moved GdkImagePrivateFB to windowing_data
11387
11388         * gdk/linux-fb/gdkvisual-fb.c:
11389         Removed some unused debug code.
11390
11391         * gdk/linux-fb/gdkwindow-fb.c:
11392         Use stock cursors instead of including X headers.
11393         s/GdkWindowPrivate/GdkWindowObject/
11394
11395         * gdk/linux-fb/mitypes.h:
11396         Removed unused types.
11397
11398         * modules/linux-fb/basic.c:
11399         Use the pango fribidi wrappers.
11400
11401 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
11402
11403         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
11404         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
11405         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
11406         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
11407         GEqualFunc where applicable.
11408         
11409         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
11410         pango_font_description_equal as changed in pango.
11411         
11412         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
11413
11414         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
11415
11416         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
11417
11418         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
11419
11420         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
11421
11422         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
11423
11424         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
11425         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
11426
11427         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
11428         gtk_rc_styles_compare -> gtk_rc_styles_equal.
11429
11430 2000-11-12  Havoc Pennington  <hp@pobox.com>
11431
11432         * demos/gtk-demo/Makefile.am (democodedir): change demo install
11433         dir to datadir/gtk+-2.0/demo
11434
11435         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
11436         sorts of text widget and Pango font bugs. Urgh.
11437
11438         * demos/gtk-demo/Makefile.am (demos): Add textview.c
11439
11440         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
11441         tree that you should double click to see the demo. Fix 
11442         types of variables to reflect changed return values from 
11443         GtkTreeStore and GtkTreeViewColumn constructors.
11444
11445         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
11446         newly-created buffer to prepare for GObject semantics
11447
11448         * gtk/testtext.c: don't leak the buffer with GObject semantics
11449
11450         * gtk/testtextbuffer.c: ditto
11451         
11452 2000-11-12  Havoc Pennington  <hp@pobox.com>
11453
11454         Rename this testgtk to gtk-demo to avoid confusion, and 
11455         install it so people can use it as a supplement to 
11456         the documentation.
11457         
11458         * demos/gtk-demo: Moved from demos/testgtk
11459
11460         * demos/testgtk: Removed
11461
11462         * configure.in: make Makefile in gtk-demo
11463         
11464         * demos/gtk-demo/Makefile.am: Install sample source to 
11465         datadir/gtk-demo (maybe there's a better place?), and 
11466         rename the binary to gtk-demo
11467         
11468         * demos/gtk-demo/main.c (load_file): Load installed sample
11469         source if source isn't found in pwd.
11470
11471 2000-11-09  Havoc Pennington  <hp@pobox.com>
11472
11473         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
11474         argument to set the char displayed when visibility == FALSE
11475         (gtk_entry_create_layout): If !entry->visible, replace 
11476         all chars with the "invisible char"
11477
11478         * gtk/testgtk.c: Test the invisible_char deal
11479         
11480 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
11481
11482         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
11483         can't get a native font in the right encoding.
11484
11485 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
11486
11487         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
11488         respectively.
11489
11490 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
11491
11492         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
11493         Fix warning when moving between paragraphs.
11494
11495         * gtk/gtkentry.[ch]: Change move => move_cursor, 
11496         delete => delete_from_cursor, insert => insert_at_cursor
11497
11498 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
11499
11500         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
11501
11502         * modules/input/imthai-broken.c: A Thai input method for use if
11503         Thai keys are really generating Latin1 keysyms.
11504
11505         * modules/input/Makefile.am: Build these.
11506
11507 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
11508
11509         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
11510         g_filename_{to,from}_utf8 now takes an extra parameter.
11511
11512         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
11513         strftime into UTF-8.
11514
11515         (column_from_x, gtk_calendar_paint_day_names): Support RTL
11516         calendars.
11517
11518         (gtk_calendar_paint_day_names): Draw day names in the right 
11519         place.
11520         
11521 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
11522
11523         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
11524         problem with using result of g_get_charset() backwards -
11525         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
11526
11527         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
11528         negative min_width/height and max_width/height to
11529         mean "requisition"; this allows setting a window
11530         to be user-resizable in only one direction easily.
11531
11532         * gtk/testgtk.c (create_main_window): Remove hard-coded
11533         usize - set a default size in the vertical direction.
11534
11535 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
11536
11537         * gtk/gtkrange.c: Add some missing casts. Support 
11538         2 and 3 button clicks on the arrows to mean 
11539         "move by pages" and "jump to end". (Like gtkspinbutton)
11540
11541 2000-11-12 Hans Breuer <Hans@Breuer.Org>
11542
11543         * gdk/win32/makefile.msc : reflect build module changes
11544
11545         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
11546         from GdkPixmap*, cast implementation member instead.
11547
11548         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
11549         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
11550         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
11551         more Gdi functions return value checking. 
11552         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
11553         GdkImagePrivateWin32 *.
11554
11555         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
11556         menus useable again. Add #pragma message to keep reminded on this issue.
11557         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
11558         windows. This allows to enable backing store on Win32!
11559
11560         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
11561         in drawable is of impl type. Correct specific type checks appropriate.
11562  
11563         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
11564         GDK_WINDOW_DESTROYED before allocating new resources.
11565
11566         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
11567
11568         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
11569         (gdk_window_foreign_new) initialize parent handle.
11570         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
11571
11572         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
11573         Let the GDI invalidate the window on MoveWindow call to fix scrolling
11574         problems (e.g. main buttons in testgtk). 
11575
11576 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
11577
11578         * gtk/gtkentry.c (gtk_entry_key_press): Call 
11579         gtk_widget_activate for GDK_Return.
11580
11581         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
11582         of preedit cursor position.
11583
11584 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
11585
11586         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
11587         static.
11588
11589 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
11590
11591         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
11592         out support for multiple locales; that simple doesn't
11593         work reliably with current Xlib
11594
11595         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
11596         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
11597         Add support for positioning the cursor within the preedit string.
11598
11599 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
11600
11601         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
11602         at XIM input method module.
11603
11604         * gtk/gtktextview.c: Check for bindings after passing
11605         events to im context filter.
11606
11607 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
11608
11609         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
11610         empty attribute lists properly.
11611
11612 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
11613
11614         * gtk/queryimmodules.c (main): Return non-zero exit
11615         status if errors were encountered querying any
11616         modules.
11617
11618         * modules/input/Makefile.am (moduledir): remove
11619         leftover bin program target.
11620
11621         * docs/make-todo: Fix typo in error message.
11622
11623 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
11624
11625         * configure.in: Add modules/input/Makefile
11626
11627 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
11628
11629         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
11630         don't include gtkthemes.h.
11631
11632         * gtk/testgtk.c gtk/testtext.c: Set environment variables
11633         to point
11634
11635         * gtk/Makefile.am: Add new .c and .h files, build 
11636         gtk-query-immodules and use it to create a gtk.immodules
11637         file for use of test programs.
11638
11639         * gtk/gtkpreview.c: remove extra blank line.
11640
11641 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
11642
11643         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
11644         Add the ability to add extra tables beyond the default
11645         one, and also the ability to have compose sequences 
11646         that are prefixes of other compose sequences. 
11647
11648         * gtk/gtkimcontextsimple.c: Export a preedit string which
11649         consists of possible candidates for keystrokes that have
11650         been entered but not yet committed.
11651
11652         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
11653         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
11654
11655         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
11656         Add a function to add input-method switching menu items
11657         to a menu.
11658
11659         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
11660         when switching input methods.
11661
11662         * gtk/gtkimcontextsimple.[ch]: Change the format of
11663         the compose table to allow compose tables of different
11664         lengths / sequence.
11665
11666 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
11667
11668         * gtk/gtkimmodule.[ch]: Support routines for loading
11669         GtkIMContext implementations dynamically at runtime.
11670
11671         * modules/input/imcyrillic-translit.c: A sample input
11672         method (based on GtkIMContextSimple with an extra table),
11673         which demonstrates preedit strings and the module
11674         system for input modules
11675
11676         * gtk/queryimmodules.c: Program to query the available
11677         input modules and write the results into a file.
11678          
11679         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
11680         extra config options "im_module_file" (cache file for
11681         input method modules), and "im_module_path" - path
11682         to look for modules when generating cache file.
11683
11684         This doesn't scale.
11685
11686 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
11687
11688         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
11689         generic code from gtkthemes into a new abstraction
11690         GtkModule which has the logic for implementing
11691         a loadable module which implements a number of 
11692         GObject types.
11693
11694 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
11695
11696         * gtk/gtkeditable.[ch]: Convert GtkEditable from
11697         a class into an interface  
11698         
11699         * gtk/gtkoldeditable.[ch]: Move the old editable
11700         implementation into here, so legacy widgets can
11701         still rely on the implemenation. GtkOldEditable
11702         exports GtkEditable. Make selection handling
11703         code use new text conversion functions (and
11704         handle UTF-8 as a side-effect). Use GtkClipboard
11705         for CLIPBOARD.
11706
11707         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
11708         Adopt to match above changes.
11709
11710         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
11711         avoid GtkOldEditable implementation. Restructure
11712         to reduce number of places that modify state directly.
11713         Move to GtkBindingSet. Display the preedit string.
11714         Queue recomputation of PangoLayout and scroll position
11715         to improve effiency of doing complex changes naively.
11716         Add a menu with cut/copy/paste and input method selection.
11717
11718 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
11719
11720         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
11721         to set preedit string and attributes; display preedit string by
11722         inserting string and attributes at cursor when creating the
11723         GtkTextLineDisplay.
11724
11725         * gtk/gtktextlayout.c: Move all conversions between byte
11726         positions in PangoLayout and GtkTextIter into new functions
11727         line_display_iter_to_index/index_to_iter that properly
11728         handle the preedit string.
11729
11730         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
11731         it to return const char * (eventually will end up
11732         as GCONST char *, most likely.)
11733
11734         * gtk/gtktextview.[ch]: Handle the preedit string, call
11735         gtk_im_context_reset() as necessary, add a menu to switch
11736         input methods.
11737         
11738         * gtk/gtktextlayout.[ch]: Remove useless
11739         gtk_text_layout_get_log_attrs() function.
11740
11741 2000-11-11  Tor Lillqvist  <tml@iki.fi>
11742
11743         * gdk/gdk.def
11744         * gtk/gtk.def: Update.
11745
11746         * gdk/win32/*.c: Add last argument to g_type_register_static()
11747         calls.
11748
11749         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
11750
11751         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
11752         generated by older wheel mouse drivers. Get the correct y
11753         coordinate from WM_MOUSEWHEEL messages.
11754
11755         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
11756         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
11757         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
11758         Debugging functions.
11759
11760         * gdk/win32/gdkprivate-win32.h: Declare them.
11761
11762         * gdk/win32/gdkinput-win32.h: Add declaration for
11763         gdk_input_window_destroy().
11764
11765         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
11766
11767 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
11768
11769         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
11770         function to help handle keeping things in sync.
11771
11772 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
11773
11774         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
11775         BOXED marshallers.
11776
11777         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
11778         (gtk_list_store_class_init): use the new BOXED marshallers.
11779
11780         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
11781         new_with_values to new_with_types.
11782         (gtk_tree_store_get_column_type): add this.
11783         (gtk_tree_store_class_init): use the new BOXED marshallers.
11784
11785         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
11786         mirror some POINTER marshallers.
11787
11788 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
11789
11790         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
11791         allow more interesting iterators.  Also, made the lifecycle of
11792         iterators more explicit.
11793
11794         * gtk/gtktreemodelsort.[ch]: New model for sorting.
11795
11796         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
11797         types.
11798
11799 2000-11-09  Alexander Larsson  <alexl@redhat.com>
11800
11801         * demos/testgtk/menus.c:
11802         Changes to make the new testgtk compile after
11803         gtk_menu_append was removed.
11804
11805         * gdk/linux-fb/gdkdrawable-fb2.c
11806         (gdk_fb_get_depth, gdk_fb_get_visual,
11807         gdk_drawable_impl_fb_class_init): Implement
11808         these drawable functions. Now GtkImages work again.
11809
11810         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
11811
11812         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
11813         
11814         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
11815         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
11816         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
11817         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
11818
11819 2000-11-08  Havoc Pennington  <hp@pobox.com>
11820
11821         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
11822         visible_set args, don't know where these had gone, I thought they
11823         used to be there
11824
11825         * gtk/testtext.c: Add a menu item to apply invisibility tag;
11826         now we can test the feature and see that it's totally broken.
11827
11828 2000-11-08  Havoc Pennington  <hp@pobox.com>
11829
11830         Make DND copy pixbufs and tags when source and target share a 
11831         tag table.
11832         
11833         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
11834         in-process GTK_TEXT_BUFFER_CONTENTS target
11835         (gtk_text_view_drag_data_received): Paste from
11836         GTK_TEXT_BUFFER_CONTENTS if we receive it.
11837
11838 2000-11-08  Alexander Larsson  <alexl@redhat.com>
11839
11840         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
11841         API changes.
11842
11843         * gtk/gtkmenu.c: Add support for scrolling menus.
11844         Remove gtk_menu_append/prepend/insert, these have been moved to
11845         gtkcompat.h as #defines.
11846
11847         * gtk/gtkcompat.h.in:
11848         Add compatibility #defines for gtk_menu_append/prepend/insert
11849
11850         * gtk/gtkmenu.h: Add data needed for scrolling menus.
11851         GtkMenuPositionFunc gets an extra argument push_in.
11852         gtk_menu_append/prepend/insert removed.
11853         
11854         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
11855         positioning behaviour to fit to scrolling menus.
11856
11857         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
11858         into menuitem->submeny. That is wrong, and broke torn
11859         off submenus of torn off menus, since they were unrealized
11860         when the first menu was unrealized.
11861
11862         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
11863         gtk_menu_shell_select_item() since these need to be overridden in
11864         GtkMenu.
11865
11866         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
11867         positioning behaviour to fit to scrolling menus.
11868         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
11869         the current item so that it is prelighted when the menu pops up.
11870         This is a workaround to the fact that the menu doesn't get the
11871         initial enter event (due to grabs).
11872
11873         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
11874         s/gtk_menu_append/gtk_menu_shell_append/
11875
11876         * gtk/gtknotebook.c:
11877         s/gtk_menu_insert/gtk_menu_shell_insert/
11878
11879         * gtk/testgtk.c (create_menu, create_menus):
11880         Create the first menu with 50 items so that menu scrolling
11881         can be tested.
11882         
11883         
11884         Patch from Jonathan Blandford  <jrb@redhat.com>
11885
11886         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
11887         system to handle size requests.  First, we ask what the size of
11888         the toggle is.  Then, when allocating the size, we allocate the
11889         toggle_size first.  This way we can have multiple menu-item
11890         classes w/o needing a seperate class for each.
11891
11892         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
11893         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
11894
11895         * gtk/gtkcheckmenuitem.c
11896         (gtk_check_menu_item_toggle_size_request): New function to handle
11897         the toggle size-request.
11898
11899 2000-11-07  Havoc Pennington  <hp@redhat.com>
11900
11901         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
11902         Half-ass somewhat fix this function, so that scrolling to the
11903         insertion point works. Pango hacking is in the future to really
11904         fix it.
11905
11906         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
11907         length of data, no longer used.
11908
11909         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
11910         method contents in here, get rid of destroy method
11911         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
11912         that were backward. Remove debug spew.
11913         (cut_or_copy): Make the clipboard work with insert_range to
11914         preserve tags and pixbufs, not just the primary selection.
11915
11916 2000-11-07  Havoc Pennington  <hp@redhat.com>
11917
11918         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
11919         to gtk_text_mark_get_visible
11920
11921         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
11922         bug that was generating an invalid iterator
11923
11924         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
11925         ensure_char_offsets() in front of code placing the iter in an
11926         invalid state.
11927
11928         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
11929         make override_location arg const
11930         (paste): Replace the selection if we paste into the 
11931         current selection
11932
11933         * gtk/gtkselection.h: Remove "GtkSelectioData"
11934         (struct _GtkSelectionData): move the definition here.
11935
11936         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
11937         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
11938
11939         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
11940
11941         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
11942         (gtk_text_buffer_insert_range_interactive): implement
11943         (gtk_text_buffer_get_tags): Remove, replaced by
11944         gtk_text_iter_get_tags()
11945
11946         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
11947         limit parameter, to avoid infinite linear scan.
11948         (gtk_text_iter_backward_search): Add search limit
11949         (gtk_text_iter_forward_find_char): Add search limit
11950         (gtk_text_iter_backward_find_char): Add search limit
11951
11952 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
11953
11954         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
11955         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
11956         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
11957         gdk/linux-fb/gdkwindow-fb.c:
11958         use g_object_new() instead of g_type_create_instance() which
11959         is a private function for fundamental type implementations.
11960
11961         * gdk/linux-fb/gdkinput-ps2.c:
11962         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
11963         instead just store the current modifier state. Add a (somewhat broken)
11964         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
11965         Rename exported function gdk_input_ps2_get_mouseinfo to
11966         gdk_input_get_mouseinfo.
11967
11968         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
11969         gdk/linux-fb/gdkwindow-fb.c:
11970         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
11971         
11972
11973 2000-11-02  Havoc Pennington  <hp@redhat.com>
11974
11975         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
11976         use stock buttons. Should be 100% source compatible, appropriate
11977         filesel fields now point to dialog->vbox and dialog->action_area.
11978         On the bizarre side, dialog->action_area and filesel->action_area
11979         are not the same widget.
11980         (gtk_file_selection_init): Put some padding around the selection
11981         entry, so it isn't touching the GtkDialog separator.    
11982
11983         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
11984         use stock buttons, etc. Should also be source compatible.
11985         Set the dialog default title in _init not _new().
11986         
11987         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
11988         Use stock buttons; don't put a button box inside the existing
11989         dialog button box. Don't bother with push/pop colormap anymore.
11990
11991         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
11992         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
11993         for message dialog, and necessary for the font selection and color
11994         selection with help and apply buttons.
11995         
11996         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
11997         to the created button widget. Set GTK_CAN_DEFAULT on the button.
11998         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
11999         between buttons, put less padding around the action area.
12000         (gtk_dialog_run): Exit on unmap rather than on destroy. 
12001         This will also exit the loop if the widget is hidden.
12002         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
12003         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
12004         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
12005         special-case delete event.
12006
12007         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
12008         formatting
12009         
12010 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
12011
12012         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
12013         button to temporarily disable position recording in the
12014         "saved position" test.
12015
12016 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
12017
12018         * gtk/gtkthemes.c: added compat code that temporarily implements
12019         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
12020         going to be revamped by owen's upcoming GtkModule patches, but
12021         untill then people want gtk to build, right? ;)
12022
12023 2000-11-04  Havoc Pennington  <hp@pobox.com>
12024
12025         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
12026         list
12027
12028         * docs/Changes-2.0.txt: Add note about
12029         gtk_container_get_toplevels()
12030
12031         * gtk/gtktextview.h: formatting
12032         
12033         * gtk/gtktextview.c: don't start descriptions with "Returns",
12034         confuses gtk-doc
12035
12036 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
12037
12038         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
12039         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
12040
12041 2000-11-03  Havoc Pennington  <hp@redhat.com>
12042
12043         * gtk/gtktexttagtable.c: Docs
12044         (gtk_text_tag_table_size): return a signed int
12045
12046         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
12047         (gtk_text_tag_event): make the event_object a GObject
12048
12049         * gtk/gtktextview.c: Write API docs for all functions.
12050
12051         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
12052         for gtk_text_view_get_window_type() called on one of the private
12053         windows.
12054
12055         * gtk/gtktextview.c: Instead of accessing text_view->buffer
12056         directly, call get_buffer() which demand-creates a default
12057         buffer. So gtk_text_view_new() can be used to create a view with a
12058         default buffer in it, if you just want an empty text box users can
12059         put data in. Useful for GUI builders also.
12060
12061 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
12062
12063         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
12064         the charset encodign portion MUST be in lowercase.
12065         * gtk/gtkrc.az: added file for Azeri language
12066
12067 2000-11-03  Havoc Pennington  <hp@redhat.com>
12068
12069         Get widgets working on the btree/buffer side. Display of them 
12070         still doesn't work.
12071         
12072         * gtk/gtktextview.c: start implementing child widget stuff
12073
12074         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
12075
12076         * gtk/gtktextlayout.c: handle embedded widgets
12077
12078         * gtk/gtktextdisplay.c: handle embedded widgets
12079
12080         * gtk/gtktextchild.c: Implement all the child anchor goo
12081
12082         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
12083         function
12084
12085         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
12086         (insert_pixbuf_or_widget_segment): abstract out common portions of 
12087         creating a child anchor or a pixbuf segment.
12088         (gtk_text_btree_create_child_anchor): new function
12089         (gtk_text_btree_unregister_child_anchor): new function
12090
12091         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
12092         allocate_child signal on GtkTextLayout
12093
12094         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
12095         values
12096         (gtk_text_iter_get_child_anchor): new function
12097
12098         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
12099         default handler for the changed signal, which calls
12100         gtk_text_buffer_set_modified(), instead of just always emitting
12101         changed then calling set_modified() manually. I guess this is
12102         maybe more flexible. It seems logical.
12103
12104 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
12105
12106         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
12107         now.
12108
12109         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
12110
12111 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
12112
12113         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
12114         been marked static.
12115
12116 2000-11-02  Havoc Pennington  <hp@redhat.com>
12117
12118         * gtk/testgtk.c (create_labels): had a test backward
12119
12120         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
12121         fields, so the dest GC ends up with the correct clip origin, 
12122         etc. Fixes a bug where colored labels didn't redraw 
12123         properly.
12124
12125 2000-11-02  Alexander Larsson  <alexl@redhat.com>
12126
12127         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
12128         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
12129         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
12130         Add last argument to t_type_register_static call.
12131         
12132         * gdk/linux-fb/gdkdrawable-fb2.c:
12133         Add last argument to t_type_register_static call.
12134         export the get_image drawable virtual function.
12135
12136         * gdk/linux-fb/gdkimage-fb.c:
12137         Add last argument to t_type_register_static call.
12138         rename gtk_image_get to _gdk_fb_get_image and
12139         export it for use by gdkdrawable-fb2.
12140
12141         * gdk/linux-fb/gdkprivate-fb.h:
12142         export _gdk_fb_get_image.
12143
12144         * gdk/linux-fb/gdkselection-fb.c:
12145         Add new api call stubs.
12146
12147         * gtk/Makefile.am:
12148         Missing ( in linux-fb part.
12149
12150         * modules/linux-fb/Makefile.am:
12151         Must link with gdk_pixbuf or get unresolved symbol.
12152
12153 2000-11-01  Havoc Pennington  <hp@pobox.com>
12154
12155         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
12156         GTK_TYPE_TEXT_ITER and BOXED marshallers
12157
12158         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
12159
12160         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
12161         
12162         * gtk/gtk-boxed.defs: add GtkTextIter
12163
12164         * gtk/gtkmarshal.list: Add marshallers for text widget that 
12165         properly use OBJECT and BOXED
12166
12167 2000-11-01  Havoc Pennington  <hp@redhat.com>
12168
12169         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
12170
12171         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
12172         before returning it. 
12173         
12174 2000-11-01  Havoc Pennington  <hp@redhat.com>
12175
12176         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
12177         Clip the rectangle to be rendered to the drawable, since
12178         get_from_drawable() requires a region within the drawable
12179
12180 2000-11-01  Havoc Pennington  <hp@redhat.com>
12181
12182         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
12183         from coordinates.
12184
12185 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
12186
12187         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
12188         it isn't NULL.
12189
12190 2000-11-01  Havoc Pennington  <hp@pobox.com>
12191
12192         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
12193         on a label
12194         (gtk_label_finalize): unref the attr list if any.
12195
12196         * gtk/testgtk.c (create_get_image): close test on second click
12197         (make_message_dialog): close dialog if it exists
12198
12199         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
12200
12201         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
12202         gdk-pixbuf
12203
12204         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
12205         from Pango markup format
12206         (gtk_label_set_markup_with_accel): ditto but with accelerator
12207         parsing
12208
12209         * gtk/gtkimage.c (gtk_image_expose): reformatting.
12210
12211         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
12212         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
12213         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
12214         call gdk_window_get_origin().
12215
12216         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
12217         implement GDK_PIXBUF_ALPHA_FULL
12218         
12219 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
12220
12221         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
12222         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
12223         g_signal_handlers_disconnect_matched to block/unblock and disconnect
12224         multiple handlers respectively, instead of only treating the
12225         first handler found (bug reported by owen).
12226
12227 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
12228
12229         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
12230
12231         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
12232
12233         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
12234         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
12235         gtk/gtktreeviewcolumn.h: Fixed inline docs.
12236
12237         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
12238         widget.  Needs writing someday.
12239
12240         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
12241         the docs.
12242
12243 2000-10-30  Havoc Pennington  <hp@redhat.com>
12244
12245         * gtk/gtktextview.h, gtk/gtktextview.c:
12246         Rename delete_at_cursor delete_from_cursor, and 
12247         move to move_cursor.
12248
12249 2000-10-30  Havoc Pennington  <hp@redhat.com>
12250
12251         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
12252         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
12253         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
12254         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
12255         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
12256         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
12257         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
12258         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
12259         gtktexttypes.h, gtktextview.c, gtktextview.h:
12260
12261         Massive reindentation and reformatting. Arg alignment and comments
12262         still need fixing in various places.
12263
12264 2000-10-30  Havoc Pennington  <hp@redhat.com>
12265
12266         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
12267         to be named insert_at_cursor and delete_at_cursor so C++ can
12268         handle them.
12269
12270 2000-10-28  Tor Lillqvist  <tml@iki.fi>
12271
12272         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
12273         to get a double directory separator in case the home directory
12274         ends with one. This would cause trouble especially on Windows,
12275         where the path will be confused with the syntax for an an UNC
12276         (network share) path \\server\share\path.
12277         (gtk_rc_add_initial_default_files): Ditto.
12278
12279 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
12280
12281         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
12282
12283         * gtk/gtktextview.c: Use correct marshallers.
12284
12285 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
12286
12287         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
12288         use new iter stuff, and added all the appropriate signals et al.
12289
12290         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
12291         code is internal to gtk only.
12292
12293 2000-10-28  Tor Lillqvist  <tml@iki.fi>
12294
12295         * gtk/gtk.def
12296         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
12297         glib-genmarshal etc.
12298
12299 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
12300
12301         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
12302         parallel builds.
12303
12304 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
12305
12306         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
12307
12308 2000-10-27  Robert Brady  <robert@suse.co.uk>
12309
12310         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
12311         en_GB (British), ia (Interlingua).
12312
12313 2000-10-26  Havoc Pennington  <hp@redhat.com>
12314
12315         * gtk/gtktextiter.c (my_strrstr): fix constness warning
12316
12317         Fixed output of:
12318         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
12319         
12320         * gtk/gtktextsegment.c (char_segment_new): rename
12321         (_char_segment_new_from_two_strings): rename
12322         (_toggle_segment_new): rename
12323         
12324         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
12325         (make_clipboard_widget): make it static
12326         (text_get_func): static
12327         (text_clear_func): static
12328
12329         * gtk/gtkcolorsel.c (adjustment_changed): make this function
12330         static
12331         (hex_changed): make it static
12332         (hsv_changed): make it static
12333         (opacity_entry_changed): make it static
12334
12335         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
12336         (toggle_segment_check_func): rename with _gtk
12337
12338         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
12339         (_widget_segment_new): rename
12340         (_widget_segment_add): rename
12341         (_widget_segment_remove): rename
12342         (_widget_segment_ref): rename
12343         (_widget_segment_unref): rename
12344
12345         * gtk/gtktextmark.c (_mark_segment_new): Rename
12346         _gtk_mark_segment_new   
12347
12348 2000-10-26  Havoc Pennington  <hp@redhat.com>
12349
12350         * gtk/gtkmarshal.list: add new marshallers used by the text widget
12351         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
12352         types
12353
12354         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
12355         marshaller types
12356
12357         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
12358         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
12359         license on these files.
12360
12361         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
12362         work.
12363
12364         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
12365         runtime random number different for each tree, instead of 
12366         a constant I made up.
12367
12368 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
12369
12370         * gtk/Makefile.am: buncha cleanups, kludged build sources
12371         dependencies with a Makefile: oldest-source-stamp dependancy
12372         for the moment. automake is really fighting us here, with
12373         intentionally not allowing user-defined rules or dependancies
12374         prior to it's -include $(DEP_FILES) statement. sucks rocks!
12375
12376         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
12377         to public headers. tehy have a comment stating that they are
12378         "semi-public" aren't included by gtk.h and if enums popup there,
12379         they can be /*< skip >*/-ed.
12380
12381         * gtk/gtktextlayout.h: 
12382         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
12383         added LGPL... <SIGH>
12384
12385 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
12386
12387         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
12388         GtkTreeIter.  Added iterators everywhere.
12389
12390         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
12391
12392         * gtk/gtktreeviewselection.c: Changed to use the iterators.
12393
12394         * gtk/gtktreestore.c: Changed to use the iterators.
12395
12396         * gtk/gtkliststore.c: Commented out the code.  Will convert to
12397         iterators tomorrow.
12398
12399         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
12400         iterators tomorrow.
12401
12402         * gtk/treestoretest.c: Changed to use iterators.
12403
12404         * demos/testgtk/main.c: Moved to use the new iterator system.
12405
12406 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
12407
12408         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
12409         localization misbehaviour.
12410
12411         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
12412         a useless type without copy/free.
12413
12414         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
12415         of GTK_TYPE_CTREE_NODE.
12416
12417 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
12418
12419         * gtk/gtksignal.c:
12420         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
12421         applicable.
12422
12423         * gtk/gtk-boxed.defs (GtkSelectionData): specify
12424         gtk_selection_data_copy and gtk_selection_data_free
12425         do GtkSelectionData work as params in signals.
12426
12427 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
12428
12429         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
12430         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
12431         couldn't they at least give it a non-standard name?
12432         
12433         * gtk/gtktextlayout.c: arg! yet another implementation of
12434         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
12435
12436         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
12437         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
12438         home. now i know this _is_ a conspiracy.
12439
12440         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
12441         ::state-changed.
12442
12443         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
12444         (gtk_accel_group_create_add): marshaller signature fixups.
12445
12446         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
12447         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
12448
12449         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
12450         anymore.
12451
12452 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
12453
12454         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
12455         due to the signal system changes, it wouldn't build currently. to
12456         be fixed soon.
12457
12458         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
12459
12460         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
12461         so it needs gtk_marshal_VOID__ENUM() instead of
12462         gtk_marshal_NONE__UINT().
12463
12464         * gdk/gdk*.c: adapted type registration functions.
12465
12466         * gtk/gtkbindings.c:
12467         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
12468         gone.
12469
12470         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
12471
12472         * gtk/gtkobject.c:
12473         (gtk_object_destroy):
12474         (gtk_object_shutdown): fixed recursion guards. basically we have to
12475         catch the case where any of GObject.shutdown() or gtk_object_destroy()
12476         is called during ::destroy, and avoid recursion there.
12477
12478         * gtk/gtktypeutils.c:
12479         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
12480         boxed_copy/boxed_free. this needs a more general solution based on a
12481         publically installed code-generator utility.
12482
12483         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
12484         glib's gobject has support for that now.
12485         define GtkSignalMarshaller in terms of GSignalCMarshaller.
12486
12487 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
12488
12489         * gtk/gtksignal.[hc]:
12490         * gtk/gtkmarshal.[hc]:
12491         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
12492         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
12493         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
12494         care of that.
12495
12496         * *.c: marshaller name fixups.
12497
12498         * gtk/gtkmarshal.list: added a comment briefing the format.
12499
12500 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
12501
12502         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
12503         compatibility macros here now. more specifically, most of
12504         the API is preserved (yes, _most_, nonwithstanding the
12505         following exceptions listed, the API is stil lHUGE ;)
12506         things that got removed completely:
12507         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
12508         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
12509         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
12510         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
12511         gtk_signal_remove_emission_hook().
12512         non-functional functions variants:
12513         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
12514         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
12515         not supported anymore.
12516         (gtk_signal_compat_matched): new internal function to aid
12517         implementation of the compatibility macros, it  provides
12518         functionality to block/unblock/disconnect handlers based
12519         on func/data.
12520
12521         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
12522
12523         * *.c: adaptions to new type registration API signatures.
12524
12525 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
12526
12527         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
12528
12529 2000-10-25  Robert Brady  <robert@suse.co.uk>
12530
12531         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
12532         gdk_property_delete): If window == NULL, assume the root window.
12533         (restoring the behaviour that was in 1.2).
12534         
12535         * gtk/testtext.c (save_buffer): Allow creation of new files when
12536         saving.
12537
12538         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
12539         calls to read().
12540
12541 2000-10-25  Tor Lillqvist  <tml@iki.fi>
12542
12543         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
12544
12545         * gdk/win32/gdkdrawable-win32.c
12546         * gdk/win32/gdkimage-win32.c
12547         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
12548         X11 backend.
12549
12550         * gdk/win32/gdkcc-win32.c
12551         * gdk/win32/gdkcolor-win32.c
12552         * gdk/win32/gdkfont-win32.c
12553         * gdk/win32/gdkinput-win32.c
12554         * gdk/win32/gdkmain-win32.c
12555         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
12556
12557 2000-10-24  Havoc Pennington  <hp@redhat.com>
12558
12559         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
12560         it a static function
12561
12562         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
12563         redraw text when a tag is applied to it.
12564
12565         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
12566         (gtk_text_tag_affects_nonsize_appearance): private functions to
12567         see if a tag requires various kinds of redraw/layout to be queued
12568         up.
12569
12570         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
12571
12572         * gtk/testtext.c (fill_example_buffer): Put the cursor 
12573         at the start of the buffer, so search works by default
12574
12575         * gtk/gtktextiter.c (lines_match): init match_start always
12576
12577         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
12578         function, get iter at a line + a byte index
12579
12580         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
12581         to set byte position within a line
12582         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
12583
12584 2000-10-23  Havoc Pennington  <hp@redhat.com>
12585
12586         * gtk/testtext.c: Re-enable the "find" dialog
12587
12588         * gtk/testgtk.c: Add test for gdk_drawable_get_image
12589         
12590         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
12591         the arguments to gdk_draw_drawable were in the wrong order
12592         (gdk_window_paint_init_bg): This function was ignoring the
12593         init_region, instead of clipping to it, so the entire backing
12594         pixmap was cleared on every begin_paint()
12595         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
12596         was in here again, the loop kept using the same GtkWindowPaint
12597         over and over.
12598         (gdk_window_begin_paint_region): Fix a bug where we had two
12599         x_offset instead of x_offset and y_offset
12600
12601         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
12602         before we get the image.
12603         (gdk_draw_drawable): get the composite before we draw the drawable.
12604         (gdk_drawable_real_get_composite_drawable): default
12605         get_composite_drawable implementation that returns the drawable 
12606         itself
12607
12608         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
12609         get_composite_drawable virtual function
12610
12611         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
12612         list-walking bug
12613
12614         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
12615         make this work if the source drawable is a GdkDrawableImplX11
12616         instead of a public drawable type. This is really broken; the
12617         problem is that GdkDrawable needs a virtual method get_xid(), but
12618         of course that doesn't work in practice. Enter RTTI.
12619
12620         Also, improve mismatched depth message.
12621
12622         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
12623         GdkPixmap
12624
12625         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
12626         install _gdk_x11_get_image as our implementation of get_image
12627         
12628         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
12629         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
12630
12631         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
12632         gdk_drawable_get_image
12633
12634         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
12635
12636         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
12637         get_image
12638
12639         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
12640         trailing semicolon after for loop
12641
12642 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
12643
12644         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
12645         where font_desc for widget's context lagged widget's font_desc by
12646         one step.
12647
12648 2000-10-22  Tor Lillqvist  <tml@iki.fi>
12649
12650         * gdk/win32/gdkgc-win32.c
12651         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
12652
12653         * gtk/makefile.mingw.in
12654         * gtk/gtk.def: Updates.
12655
12656         * gtk/testgtk.c: sleep() is called _sleep in MS's C
12657         library.
12658
12659         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
12660
12661         * gtk/makefile.msc: Remove
12662
12663         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
12664
12665         * gtk/Makefile.am: Add it.
12666
12667         * configure.in: Generate it.
12668
12669         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
12670         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
12671         something even if not implemented, to satisfy picky MSVC.
12672
12673         Patches by Hans Breuer:
12674         
12675         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
12676         SetBkMode() and SetTextAlign() before calling
12677         pango_win32_render().
12678
12679         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
12680         Set hcliprgn to NULL after destroying it.
12681         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
12682
12683         * gdk/win32/gdkgeometry-win32.c
12684         (_gdk_windowing_window_queue_antiexpose): More effective
12685         implementation.
12686
12687         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
12688         depth as default, not the visual's.
12689
12690         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
12691         against empty title.
12692
12693         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
12694         IMAGE_PRIVATE_DATA.
12695
12696         * gdk/win32/gdkimage-win32.c: Use it.
12697
12698 2000-10-22  Robert Brady  <robert@suse.co.uk>
12699
12700         * configure.in: Check for bind_textdomain_codeset
12701
12702         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
12703         present, make use of it.
12704
12705         Add a translatable string "default:LTR" which, if translated
12706         to "default:RTL", will cause the default direction to be
12707         Right-to-Left.
12708
12709         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
12710         direction if marked as flippable.
12711
12712         * gtk/gtkhscale.c: Mark widget as flippable.
12713         
12714 2000-10-04  Havoc Pennington  <hp@redhat.com>
12715
12716         * gtk/testgtk.c (create_buttons): create some stock buttons
12717         with the default accel group
12718         (create_image): test some new GtkImage features
12719         (make_message_dialog): test GtkMessageDialog
12720         (create_modal_window): fix someone's bizzarro indentation
12721
12722         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
12723         GTK_WIN_POS_CENTER_ON_PARENT. 
12724         Add "destroy with parent" setting, which means the window goes
12725         away with its transient parent.
12726         (gtk_window_get_default_accel_group): get the default accel group
12727         for the window.
12728         (gtk_window_set_destroy_with_parent): set/unset destroy with
12729         parent flag
12730         (gtk_window_read_rcfiles): invalidate icon set caches
12731         after reloading rcfiles 
12732
12733         * gtk/gtkenums.h (GtkWindowPosition): add
12734         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
12735         on its parent window when the dialog is mapped for the first time.
12736
12737         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
12738         a simple message dialog class
12739         
12740         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
12741         handler to emit response signal, and maybe later it would
12742         honor a hide_on_delete flag - though that isn't there yet.
12743         Set border width on the vbox to 2, so we get some padding.      
12744         Use a button box for the action area.
12745         (gtk_dialog_key_press): synthesize a delete event if Esc
12746         is pressed and the GtkWidget key press handler didn't 
12747         handle the escape key.
12748         (gtk_dialog_new_with_buttons): new function creates a dialog
12749         with some default buttons in it.
12750         (gtk_dialog_add_action_widget): add an activatable widget
12751         as a button in the dialog - you can also add a non-activatable
12752         widget by accessing the action area directly.
12753         (gtk_dialog_add_button): add a simple button - stock ID or 
12754         label - to the action area
12755         (gtk_dialog_response): emit response signal
12756         (gtk_dialog_run): block waiting for the dialog, return 
12757         the response. Override normal delete_event behavior, so that 
12758         delete_event does nothing inside gtk_dialog_run().
12759
12760         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
12761         emitted when an action widget is clicked or the dialog gets
12762         delete_event
12763
12764         * gtk/gtk.h: add gtkmessagedialog.h
12765
12766         * gtk/Makefile.am: add gtkmessagedialog.[hc]
12767
12768 2000-10-18  Havoc Pennington  <hp@redhat.com>
12769
12770         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
12771         where any number of empty lines would get skipped
12772
12773         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
12774         edge.
12775
12776         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
12777         warning about invalid iterators (explain more thoroughly)
12778         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
12779
12780         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
12781         big
12782
12783         * demos/*.c: Add error handling
12784
12785         * gtk/gtktextbuffer.c: don't modify const iterators
12786
12787         * gtk/gdk-pixbuf-loader.c: Add full error handling here
12788
12789         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
12790         on file load
12791
12792         * gtk/gtkiconfactory.c: Update to reflect addition of error
12793         handling to gdk-pixbuf loaders
12794
12795 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
12796
12797         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
12798         move to new modularized testgtk.
12799
12800 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
12801
12802         * gtk/gtktreeview.c: Draw the arrows correctly.
12803
12804         * gtk/gtktreemodel.c: Added user docs.
12805
12806         * gtk/gtk.h: remove gtktreedatalist.h.
12807
12808         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
12809         parent when generating my type.
12810
12811         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
12812         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
12813
12814 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
12815
12816         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
12817         GtkTreeModel from object to interface.
12818
12819 2000-10-16  Havoc Pennington  <hp@redhat.com>
12820
12821         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
12822         compilation
12823
12824 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
12825
12826         * gtk/gtktreeselection.c: Add API documentation to all public
12827         functions.
12828
12829         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
12830         functions.
12831
12832 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
12833
12834         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
12835         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
12836         docs to all public functions.
12837
12838         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
12839         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
12840         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
12841         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
12842         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
12843         issue.
12844
12845 2000-10-14  Robert Brady  <robert@suse.co.uk>
12846
12847         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
12848
12849 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
12850
12851         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
12852         values other then G_TYPE_STRING.
12853         * gtk/gtktreeselection.c: Minor commenting updates.
12854         * gtk/gtktreeview.c: Format updates.
12855
12856 2000-10-09  Tor Lillqvist  <tml@iki.fi>
12857
12858         * README.win32: Update.
12859
12860         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
12861         lines that had been deleted by mistake (?).
12862
12863         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
12864         also the case fg==white and bg==black (but still not randomly
12865         coloured cursors). Thanks to Wolfgang Sourdeau.
12866
12867         * gdk/win32/*.c: Silence gcc -Wall.
12868
12869         * gtk/gtk.def: Add missing entry points.
12870
12871         Fixes by Hans Breuer:
12872
12873         * gdk/makefile.msc
12874         * gdk/win32/makefile.msc: Update.
12875
12876         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
12877         some MSVC thing, presumably), cause breakpoint on failures. Add
12878         GDK_NOR case. Call g_log_set_always_fatal.
12879
12880         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
12881         should be pased by reference.
12882         
12883         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
12884         
12885         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
12886
12887         * gdk/win32/gdkevents-win32.c
12888         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
12889
12890         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
12891         implementation object.
12892
12893         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
12894         not just windows.
12895         
12896         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
12897         Use the wrapper object.
12898         
12899 2000-10-06  Havoc Pennington  <hp@redhat.com>
12900
12901         * Makefile.am (SRC_SUBDIRS): contrib subdir
12902
12903         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
12904         so it can be used in Xlib version
12905
12906         * demos/testpixbuf.c (update_timeout): error checking from 1.0
12907         tree
12908
12909         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
12910         change from 1.0 tree that returns first frame of animation
12911         if the loaded file is an animation.
12912
12913         * contrib: add new directory to hold stuff that comes with GTK+
12914         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
12915         
12916         * configure.in: add contrib/*
12917
12918 2000-10-05  Havoc Pennington  <hp@redhat.com>
12919
12920         * demos/testpixbuf-save.c: add pixbuf save test
12921
12922         * demos/Makefile.am: add testpixbuf-save.c
12923
12924 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
12925
12926         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
12927         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
12928         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
12929         * gtk/gtktreeselection.[ch]: Replaced
12930         "node_selected"/"node_unselected" signal with "selection_changed"
12931         signal.
12932
12933 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
12934
12935         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
12936         tree widget.
12937
12938 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
12939
12940         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
12941         drawing.
12942
12943 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
12944
12945         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
12946         Move list pointer forwards before removing item from
12947         list. (Crash reported by Salmaso Raffaele)
12948
12949         * gdk/gdkwindow.h: Remove spurious trailing ,
12950
12951         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
12952         dependencies on uninstalled libraries, sorry folks.
12953
12954 2000-10-04  Havoc Pennington  <hp@redhat.com>
12955
12956         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
12957         gtk/gtkiconfactory.c: Fix copyrights    
12958
12959         * demos/testpixbuf.c: add inline pixbuf test
12960         
12961 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
12962
12963         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
12964         Add gdk_window_iconify.
12965
12966         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
12967         (gdk_window_set_geometry_hints): Add win_gravity
12968         to geometry structure.
12969
12970         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
12971         Implement _NET_WM_PING.
12972
12973         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
12974         Set _NET_WM_PID on the client leader.
12975
12976         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
12977         Handle UTF-8 better.
12978
12979         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
12980         UTF-8 better, set _NET_WM_NAME as well. Only set
12981         icon name if it hasn't previously been explicitely 
12982         set.
12983
12984 2000-10-03  Havoc Pennington  <hp@redhat.com>
12985
12986         * gtk/testtextbuffer.c: clean up trailing whitespace,
12987         add extensive tests for tag toggle iteration.
12988         
12989         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
12990         distance
12991
12992         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
12993         optimize case where the tag root is on level 1
12994         (gtk_text_line_previous_could_contain_tag): attempt to implement
12995         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
12996         functionality
12997
12998         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
12999         Implement this, though not very efficiently.
13000
13001         * gtk/gtktextiterprivate.h: reformat
13002
13003         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
13004         iterator
13005
13006         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
13007         this to properly revalidate the iterators.
13008
13009         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
13010         properly at the end of the line (and therefore on empty lines)
13011
13012         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
13013         maybe we should return a value...
13014
13015 2000-10-03  Tor Lillqvist  <tml@iki.fi>
13016
13017         * config.h.win32: Guard definition of alloca(). glib.h now handles
13018         that.
13019
13020         * gdk/gdk.def
13021         * gtk/gtk.def: Add new entry points.
13022
13023         Changes just to make GTK+ build without errors on Win32. No hope
13024         of it working in its current state, though...:
13025         
13026         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
13027         some functions from the X11 backend, just to make GTK+ build.
13028
13029         * gdk/makefile.mingw.in
13030         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
13031         number. Add new object files.
13032
13033         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
13034         GetMessageTime to get timestamp (where on X11 uses
13035         gdk_x11_get_server_time()).
13036
13037 2000-10-02  Havoc Pennington  <hp@pobox.com>
13038
13039         * gtk/gtktextview.c: text_window_* weren't static and should have
13040         been.
13041         Start work on child widgets; not yet complete, syncing to 
13042         office computer.
13043
13044         * gtk/gtktextchild.h: change this to contain a public interface,
13045         starting work on child interfaces.
13046         * gtk/gtktextchildprivate.h: move private interfaces here
13047
13048         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
13049
13050         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
13051         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
13052         gtk/gtktextmark.c: copyright notices
13053
13054         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
13055         internal functions      
13056
13057         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
13058         internal function
13059
13060         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
13061         Reformatting    
13062
13063 2000-09-30  Havoc Pennington  <hp@pobox.com>
13064
13065         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
13066         NULL start/end pointers
13067
13068         * gtk/gtktextbuffer.c: Write some docs
13069         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
13070         NULL, so you can just check whether there's a selection.        
13071
13072         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
13073         cleanup_line or segments_changed ourselves, it gets done 
13074         in unlink_segment
13075
13076         * gtk/gtktextmark.h:
13077         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
13078         
13079         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
13080
13081         * gtk/gtktextmark.c: delete some more old Tk cruft
13082
13083         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
13084         mark before removing it, so we can emit MARK_DELETED with a valid
13085         pointer.
13086         (gtk_text_buffer_mark_set): hold ref across signal emission
13087
13088         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
13089         whining about attempts to delete special marks
13090
13091         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
13092         underscore, since it's internal.
13093
13094         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
13095         now implemented in terms of iterators in gtktextiter.h
13096
13097         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
13098         New function, destructively sets contents of buffer. Also 
13099         a convenient way to clear the buffer by setting text to ""
13100
13101         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
13102         multiline string literal
13103
13104         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
13105         text changes.
13106
13107         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
13108         is not dereferenceable
13109         (gtk_text_iter_forward_lines): fix return value
13110
13111 2000-09-29  Havoc Pennington  <hp@redhat.com>
13112
13113         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
13114
13115         * gtk/gtktextview.c: Implement drag thresholding; change functions 
13116         that set border window size to have nicer name
13117         (gtk_text_view_mark_set_handler):  Fix this to have the 
13118         right signature.
13119
13120         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
13121
13122         * gtk/testtext.c: Update with API changes, put line numbers on 
13123         both sides.
13124         
13125         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
13126         with this
13127
13128         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
13129         pixbuf; delete a big block of #if 0 Tk code
13130
13131         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
13132         insert_pixmap with insert_pixbuf
13133
13134 2000-09-29  Martin Baulig  <baulig@suse.de>
13135
13136         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
13137         confusion with the GdkPixbuf of the GNOME 1.x platform.
13138
13139 2000-09-29  Havoc Pennington  <hp@pobox.com>
13140
13141         * gtk/gtktextview.c: Implement the side windows.
13142
13143         * gtk/testtext.c: Implement simple line numbering in the 
13144         left side window; seems to make scrolling sloooow. Oops.
13145         Also, cursor blink is for some reason causing redraws
13146         of the line numbers. Should investigate...
13147
13148 2000-09-28  Havoc Pennington  <hp@redhat.com>
13149
13150         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
13151         scrolling child windows, and draw focus rectangle properly.
13152         
13153         (gtk_text_view_buffer_to_window_coords):
13154         Coordinate transformation to deal with all these freaking windows
13155         and offsets
13156         (gtk_text_view_window_to_buffer_coords): transform the other way
13157
13158         * gtk/testtext.c (create_buffer): Update to match Pango API change
13159
13160         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
13161         anonymous tags
13162         (foreach_unref): don't emit remove signal from finalize, just
13163         set tag's parent to NULL
13164
13165 2000-09-26  Havoc Pennington  <hp@redhat.com>
13166
13167         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
13168         Fix some warnings       
13169
13170 2000-09-26  Havoc Pennington  <hp@redhat.com>
13171
13172         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
13173         headers into the private header list
13174
13175         * Makefile.am (pkgconfig_DATA): install pkg-config files
13176
13177         * configure.in: add pkg-config files
13178
13179         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
13180
13181         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
13182         outstanding icon caches on theme change.
13183
13184         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
13185         important types:
13186
13187         (GtkIconSource): Specification for creating a pixbuf 
13188         appropriate for a direction/state/size triplet from 
13189         a source pixbuf or filename
13190
13191         (GtkIconSet): List of GtkIconSource objects that are used to
13192         create the "same" icon (e.g. an OK button icon), and cache for
13193         rendered icons
13194
13195         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
13196         up the icon set for a given stock ID.  GTK maintains a stack of
13197         GtkIconFactory to search, and applications or libraries can add
13198         additional icon factories on top of the stack
13199         
13200         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
13201         the set of GtkIconSource specified for a given stock ID into 
13202         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
13203         RcStyle, under the specified stock ID.
13204
13205         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
13206         render_icon used to derive a GdkPixbuf from a GtkIconSource.
13207         This allows people to theme how prelight, insensitive, etc. are
13208         done.
13209
13210         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
13211         icon factories for a style, and return the resulting 
13212         icon set if any.
13213
13214         (gtk_style_render_icon): Render an icon using the render_icon 
13215         method in the GtkStyleClass.
13216
13217         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
13218         Use the style for a given widget to look up a stock ID, get the
13219         icon set, and render an icon using the render_icon method 
13220         of the style
13221
13222         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
13223         (contains information about a stock item), the built-in stock item
13224         IDs, and functions to add/lookup stock items.
13225
13226         * gtk/stock-icons/*: Stock icons that come with GTK
13227
13228         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
13229         a button based on a GtkStockItem
13230         (gtk_button_new_accel): Takes a uline string and accel group, and
13231         installs the accelerator.
13232
13233         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
13234         image-display widget.
13235
13236 2000-09-25  Havoc Pennington  <hp@redhat.com>
13237
13238         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
13239
13240         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
13241         Fix a bug when removing node data, we didn't properly 
13242         re-splice the linked list after removing the data.
13243
13244         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
13245         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
13246
13247         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
13248
13249         * gtk/gtktextlayout.c (set_para_values): Set tab array 
13250         for the layout from the GtkTextTag.
13251
13252         * gtk/gtktexttypes.h: delete tab and search cruft, 
13253         remove g_convert() in favor of GLib version
13254
13255         * gtk/gtktexttypes.c: remove tab implementation from here,
13256         move to Pango
13257
13258         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
13259         tab stuff using new PangoTabArray from Pango
13260
13261         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
13262         unused border_width stuff
13263
13264 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
13265
13266         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
13267         glib) and now useless utf_to_latin1() latin1_to_utf()
13268
13269         * gtk/gtktextview.[ch]: Change ::move_insert and
13270         ::delete_text action signals to ::move and ::delete;
13271         create the signals with the right enumeration type,
13272         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
13273         C-v bindings, change Home, End to move to beginning/end
13274         of line, Add C-Home C-End to move to beginning/end
13275         of buffer. Change ::cut_text to ::cut_clipboard, etc;
13276         combine ::scroll_text into ::move; use new GtkSelectionData
13277         functions to simplify DND text handling.
13278         
13279         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
13280         deletion enumerations here, rename enumeration values to 
13281         be consistently plural.
13282
13283         * gtk/gtktextbuffer.c: Use new clipboard interfaces
13284         for cut/copy/paste and primary selection.
13285
13286         * gtk/gtktextbuffer.[ch]: Remove excess time and
13287         'interactive' arguments from cut/copy/paste;
13288         rename cut to cut_clipboard, etc; remove
13289         gtk_text_buffer_get_clipboard_contents().
13290
13291         * gtk/gtktextlayout.[ch]: Add 
13292         gtk_text_layout_move_iter_to_line_end() to move the iter to 
13293         line ends.
13294
13295         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
13296         Functions to set or get a UTF-8 string on the selection
13297         data.
13298
13299         * gtk/gtkclipboard.[ch]: New, simplified selection handling
13300         interfaces.
13301
13302         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
13303         created widgets - one of these is useless if we don't.
13304
13305         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
13306         a public function clear all targets registered for the
13307         widget.
13308
13309         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
13310         Never call gtk_widget_realize() - that was just asking
13311         for bizarre side-effects.
13312
13313         * gtk/gtkselection.c (gtk_selection_owner_set): Call
13314         gdk_selection_owner_set even if the widget is the
13315         same so that we reliably update the timestamp on
13316         the server.
13317
13318         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
13319         gdk_x11_get_server_time() function.
13320         
13321         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
13322         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
13323         Add some tricky filtering on serial numbers for
13324         selection clear events to fix up long-standard
13325         race condition FIXME's in gtkselection.c.
13326
13327         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
13328         routines to convert from utf8 to compound text or
13329         STRING and from a text property to UTF-8.
13330
13331         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
13332         a convenience function gdk_get_current_event_time().
13333
13334         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
13335         and free selection_data->data properly
13336
13337 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
13338
13339         * gtk/gtkthemes.c: Remove some unecessary includes.
13340
13341 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
13342
13343         * gtk/gtktextdisplay.c
13344         * gtk/gtktextlayout.c
13345         * gtk/gtktexttag.c
13346         * gtk/gtktexttag.h
13347         * gtk/testtext.c: Change the overstrike property to strikethrough,
13348         to closer match pango.
13349
13350 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
13351
13352         * gtk/gtktextview.c: Fix up visibility so that focus,
13353         cursor_visible and blink interact properly.  Reenable cursor blink
13354         which had been roughly disabled. Make blink and focus
13355         properly per-view.
13356
13357         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
13358         Add a flag for whether to display insertion cursor and
13359         a function to set the flag.
13360
13361         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
13362         get_line_y() to get_line_yrange(), to be a bit more generally
13363         useful.
13364
13365 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
13366
13367         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
13368           do stop_navigating_submenu, to clear last timeout properly.
13369           Also in gtk_menu_motion_notify move ignore_enter above
13370           the conditional to make it always happen as suggested by Owen
13371
13372 2000-09-07  Tor Lillqvist  <tml@iki.fi>
13373
13374         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
13375
13376         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
13377         w32api headers.
13378
13379         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
13380         declarations.
13381
13382         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
13383         (gdk_win32_get_colormap): A line had been deleted by mistake.
13384
13385         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
13386         (gdk_event_translate): Handle more virtual keycodes to be able to
13387         generate GDK events for Control-comma, Control-period, etc.
13388
13389         * gtk/gtk.def: Add some missing entry points.
13390
13391 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
13392
13393         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
13394         Doc comment fixing. (Mostly non-matching parameter names.)
13395
13396         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
13397         comments a little to avoid looking like a doc comment.
13398
13399         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
13400         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
13401         conversions be changed to GError?)
13402
13403         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
13404         Move private #defines into .c file.
13405
13406         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
13407         order of argument addition, remove duplicates.
13408
13409         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
13410         parent class is FrameClass, not BinClass.
13411
13412         * gtk/gtk.h: Add gtkinvisible, which was missing.
13413         (It's occasionalyl useful for client apps, if seldom.)
13414
13415         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
13416         #define.
13417
13418 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
13419
13420         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
13421         coordinates when creating window, instead of GDK-space
13422         coordinates. (Avoid BadValue on too large windows.)
13423
13424 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
13425
13426         * configure.in (use_mmx_asm): Remove conftest* after use along the
13427         lines of AC_TRY_COMPILE.        
13428         
13429         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
13430         of g_dirname, which is deprecated.
13431         (gtk_rc_parse_any): Removed calls to
13432         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
13433
13434         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
13435         Removed calls to g_hash_table_{freeze,thaw}, as they are
13436         deprecated now.
13437
13438         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
13439         instead of g_basename.
13440         
13441 2000-09-04 Elliot Lee <sopwith@redhat.com>
13442         
13443         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
13444         ANSI warning.
13445
13446 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
13447
13448         * gtk/gtkwidget.h:  Add some documenting comments about 
13449           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
13450           just as owen said on irc.
13451
13452         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
13453           set HAS_DEFAULT.  Only set it if there isn't another window
13454           holding it (a focus window which RECEIVES_DEFAULT) and only unset
13455           it if the widget is not the focused window with RECEIVES_DEFAULT.
13456           This fixes weird double default bugs in dialogs which has things
13457           call gtk_window_set_default at times.
13458
13459 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
13460
13461         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
13462         Nils Barth and David Santiago to improve submenu
13463         navigation. The patch does this by creating a triangular
13464         region from the point where the pointer leaves the
13465         menu to the submenu.  While the pointer is in
13466         that region and a timeout has not expired, events 
13467         that would cause the active submenu to change are
13468         ignored.
13469
13470 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
13471
13472         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
13473         moving a toplevel window immediately after sizing it would
13474         result in it being sized back to the old size since 
13475         impl->width, impl->height aren't updated until we hear
13476         back from the server. There is still a (longstanding) bug
13477         here that gdk_window_get_size() will give the wrong size
13478         until we do hear back.
13479
13480 2000-08-31  Havoc Pennington  <hp@redhat.com>
13481
13482         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
13483         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
13484         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
13485         Rename GtkTextStyleValues to GtkTextAttributes
13486
13487 2000-08-31  Havoc Pennington  <hp@pobox.com>
13488
13489         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
13490         for rapid testing whether an iterator is the end iterator
13491         (gtk_text_btree_new): init end line cache
13492         (gtk_text_line_is_last): use fast cached line to 
13493         see if we're the last line.
13494         (get_last_line): use cached line here too, should 
13495         speed up some random unrelated code.
13496         
13497 2000-08-30  Havoc Pennington  <hp@pobox.com>
13498
13499         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
13500         signals.
13501
13502         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
13503         delete_text signals. This allows the signals to be used for
13504         implementing undo.
13505
13506         * gtk/gtktextbuffer.c: Change signal handler signatures; 
13507         provide "interactive" argument when emitting insert_text or
13508         delete_text signal.
13509         
13510 2000-08-30  Havoc Pennington  <hp@pobox.com>
13511
13512         * gtk/gtktextbuffer.c: Docs
13513
13514 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
13515
13516         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
13517         from switch statements, since Tor removed the enumeration
13518         value.
13519         
13520         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
13521         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
13522
13523 2000-08-29 Elliot Lee <sopwith@redhat.com>
13524         * */*.h: Use G_GNUC_CONST.
13525
13526 2000-08-27  Havoc Pennington  <hp@pobox.com>
13527
13528         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
13529         minor indentation fixes, inserted some FIXME about stuff I
13530         realized was broken while documenting it.
13531         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
13532         GTK convention  
13533
13534 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
13535
13536         * gtk/testgtk.c (create_styles): Fix double free of
13537         font desc.
13538
13539 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
13540
13541         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
13542         
13543         * gtk/testgtk.c (create_styles): Add a test for modifying
13544         the style through gtk_widget_modify_*.
13545
13546         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
13547         a function to get the current modifier style.
13548
13549         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
13550         of the passed in GtkRcStyle instead of ref'ing it.
13551
13552         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
13553
13554 2000-08-20  Tor Lillqvist  <tml@iki.fi>
13555
13556         * gdk/gdkimage.h
13557         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
13558         shared memory image+pixmap GdkImage type, or
13559         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
13560         I am dropping that.
13561
13562         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
13563         actually call gtk_init_abi_check(), passing also
13564         sizeof(GtkWindow). Ditto for gtk_init_check(). 
13565
13566         * gtk/gtk.def
13567         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
13568         New functions, used to check that the GTK+-using code has been
13569         compiled using the correct compiler and switches. In particular,
13570         with gcc one has to use the -fnative-struct switch as GTK+ is
13571         compiled with that.
13572
13573 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
13574
13575         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
13576         ->prev fields when merging lists. (Found simultaneously
13577         by Pawel Salek and Jakub Jelinek)
13578
13579 2000-08-12  Tor Lillqvist  <tml@iki.fi>
13580
13581         * gdk/gdk.def
13582         * gtk/gtk.def: Add missing entries.
13583
13584         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
13585         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
13586
13587         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
13588         function. Dummy implementation at this point.
13589
13590         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
13591         rules. Undefine GTK_COMPILATION when compiling the test programs.
13592         
13593         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
13594
13595 2000-08-11  Tor Lillqvist  <tml@iki.fi>
13596
13597         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
13598         to convert back and forth from UTF-8 and the "system" (or "current
13599         locale") charset when necessary. Indentation/spacing cleanup.
13600
13601 2000-08-10  Havoc Pennington  <hp@redhat.com>
13602
13603         * Makefile.am (snapshot): Change the format of the snapshot
13604         version to match glib
13605
13606         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
13607         from EXTRA_DIST since it doesn't seem to exist
13608
13609 2000-08-10  Tor Lillqvist  <tml@iki.fi>
13610
13611         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
13612         version of the directory name (not the UTF-8 one) when building
13613         the path name to stat().
13614
13615 2000-08-03  Elliot Lee  <sopwith@redhat.com>
13616
13617         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
13618         PANGO_ATTR_SHAPE set.
13619
13620 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
13621
13622         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
13623         Peter Osterlund to simplify the code while keeping the
13624         functionality the same.
13625
13626 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
13627
13628         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
13629         is_viewable() test further inside the function, since removing the 
13630         window from the redraw list without clearing ->update_area
13631         was also very broken.
13632
13633 2000-08-02  Tor Lillqvist  <tml@iki.fi>
13634
13635         * configure.in: Check for <unistd.h>.
13636
13637 2000-08-01  Martin Baulig  <baulig@suse.de>
13638
13639         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
13640         to display the message that this is a development version of GTK+.
13641
13642 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
13643
13644         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
13645         was depending on widget->allocation instead of the width of text_area,
13646         which was incorrect for subclasses like GtkSpinButton.
13647
13648         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
13649         with width == 1 tests that should be width == -1.
13650
13651 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
13652
13653         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
13654         (broken, Elliot, every single window blank on X) custom code with call
13655         to gdk_window_is_viewable() which a) prevents code duplicate and
13656         b) works. 
13657
13658 2000-07-31  Elliot Lee  <sopwith@redhat.com>
13659
13660         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
13661         to get the GDK_PARENT_ROOT() macro to work.
13662         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
13663         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
13664         of, windows that aren't shown.
13665         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
13666         pointer grab stuff.
13667
13668 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
13669
13670         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
13671           s/gtk_main_iteration/g_main_iteration/
13672
13673           Did this already in change:
13674                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
13675           don't know how it got reverted.
13676
13677 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
13678
13679         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
13680         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
13681
13682         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
13683         not gdk_pixbuf.
13684
13685 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
13686
13687         * configure.in,po/{sp,sr}.po: Added Serbian files
13688
13689 2000-07-30  Tor Lillqvist  <tml@iki.fi>
13690
13691         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
13692
13693         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
13694         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
13695         GIOChannel implementation.
13696
13697         * gdk/win32/gdkinput.c
13698         * gdk/win32/gdkpango-win32.c: Update license name here, too.
13699
13700         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
13701         definition to match prototype.
13702
13703         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
13704
13705 2000-07-27  Elliot Lee  <sopwith@redhat.com>
13706
13707         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
13708         function, to allow handling image formats that cannot be detected
13709         by looking at content alone.
13710
13711 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
13712
13713         * docs/tutorial/*.gif *.jpg *.eps
13714           Update these to the same look-n-feel.
13715           Why does including images in DocBook suck so badly?
13716
13717 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
13718
13719         * gtk/gtktable.c: applied patch from Phil Thompson
13720         <phil@river-bank.demon.co.uk> that enables space settings for
13721         the last row/columns as well.
13722
13723 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
13724
13725         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
13726         updates the license headers to the GNU Lesser General Public License,
13727         as well as updating the copyright year to 2000.
13728
13729 2000-07-26  Robert Brady  <rwb197@zepler.org>
13730
13731         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
13732           and po/Makefile, was installing and looking for them under gtk20
13733           and gtk2 respectively.
13734
13735 2000-07-25  Havoc Pennington  <hp@redhat.com>
13736
13737         * gtk/testtext.c: Comment out some stuff that depends on the rest
13738         of my patches.
13739
13740 2000-07-25  Havoc Pennington  <hp@redhat.com>
13741
13742         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
13743         buffer
13744
13745 2000-07-25  Havoc Pennington  <hp@redhat.com>
13746
13747         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
13748         widget changes.
13749
13750         * gtk/gtktextview.h: To be consistent with usage of "line"
13751         throughout the API to mean "newline-terminated thingy", change
13752         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
13753         to MOVEMENT_LINE.
13754
13755         (GtkTextView): Add flags for default editability, and whether to
13756         show the cursor. Add functions to get/set that. Add 
13757
13758         (gtk_text_view_get_iter_location): new function
13759
13760         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
13761         gtktextlayout.h
13762         (g_convert): Add g_convert temporarily, will go in glib in a bit
13763         
13764         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
13765         GtkTextTagTableForeach instead of brokenly using GHFunc.
13766         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
13767
13768         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
13769         moved to public header.
13770
13771         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
13772         "invisible", since "elide" was a bad name.
13773         (gtk_text_tag_get_priority): Added
13774
13775         (GtkTextStyleValues): put this in public header, along with
13776         functions to use it.
13777
13778         * gtk/gtktextmarkprivate.h: Include more headers, since we no
13779         longer include gtktextbtree.h.
13780
13781         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
13782         gtk_text_mark_deleted
13783
13784         * gtk/gtktextlayout.h: Don't include the "really private" headers,
13785         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
13786         to make this possible. Now we only need to install
13787         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
13788         (However the Makefile.am isn't changed yet because of the
13789         logistics of merging gtk-hp-patches piecemeal)
13790
13791         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
13792         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
13793         gtk_text_iter_get_line is now used in the public API for a
13794         different purpose.
13795
13796         * gtk/gtktextiter.h: Clean up function names to be more
13797         consistent. Always call char offset "offset" and byte index
13798         "index". A "line" is always a line number. 
13799
13800         (gtk_text_iter_is_last): new function, more efficient than 
13801         the existing way to check
13802         (gtk_text_iter_is_first): new function, also more efficient
13803
13804         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
13805
13806         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
13807         gtk_text_iter_forward_char, etc.
13808
13809         (gtk_text_iter_forward_to_tag_toggle): Renamed from
13810         forward_find_tag_toggle, since this isn't a linear search
13811
13812         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
13813
13814         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
13815         New functions, search for a buffer substring.
13816
13817         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
13818         interactive and default editable (since we need to store that info
13819         until we receive the selection data).
13820
13821         Remove all the _at_char and at_line etc. versions of functions;
13822         only have iterator versions.
13823
13824         Add _interactive() versions of functions, that consider the
13825         editability of text. (FIXME add interactive flag to the 
13826         insert/delete signals per Darin's suggestion)
13827
13828         (gtk_text_buffer_get_tag_table): new function, demand-creates the
13829         tag table if necessary
13830
13831         Remove declaration of gtk_text_buffer_get_iter_from_string
13832
13833         (_gtk_text_buffer_get_btree): private/internal function, added.
13834         
13835
13836         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
13837         (gtk_text_line_is_last): new function
13838
13839 2000-07-25  Havoc Pennington  <hp@redhat.com>
13840
13841         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
13842         using GtkProgressBar. See Changes-2.0.txt for details.
13843
13844         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
13845         "pulse_step" which are the equivalent of
13846         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
13847         Implement new API.
13848         
13849         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
13850         (use_text_format) to mark whether text set on the progress bar is
13851         a format string. Deprecate entire GtkProgress interface.
13852
13853         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
13854         (gtk_progress_build_string): make this a no-op if use_text_format
13855         is FALSE
13856
13857         * docs/Changes-2.0.txt: Describe progress bar changes.
13858
13859 2000-07-25  Tor Lillqvist  <tml@iki.fi>
13860
13861         * Makefile.am: Include the build directory.
13862
13863         * configure.in: Generate build/Makefile, build/win32/Makefile,
13864         gdk/, gdk/win32/, and gtk/makefile.mingw.
13865
13866         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
13867         Add GETTEXT_PACKAGE.
13868         
13869         * gdk/gdk.def
13870         * gtk/gtk.def: Updates.
13871
13872         * gdk/gdkfont.h
13873         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
13874         need them any longer.
13875
13876         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
13877
13878         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
13879         PANGOWIN32_LIBS and gdk_pixbuf.
13880
13881         * gdk/win32: Compiles, but no doubt doesn't work at all.
13882
13883         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
13884
13885         * gdk/win32/gdkinput.c: New file, temporarily.
13886         
13887         * gdk/win32/gdkinput-win32.h: New file
13888
13889         * gdk/win32/gdkinputprivate.h: Remove.
13890
13891         * gdk/win32/gdkpango-win32.c: New file.
13892
13893         * gtk/makefile.mingw.in: New file
13894
13895         * gtk/makefile.cygwin: Removed
13896         
13897         * gtk/Makefile.am: Update accordingly.
13898
13899         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
13900         made externally visible.
13901
13902         * gtk/gtkmain.c: Use it.
13903         
13904         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
13905         is enough.
13906
13907         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
13908
13909 2000-07-24 Elliot Lee <sopwith@redhat.com>
13910         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
13911         individual backends already.
13912         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
13913         again. Yes, there really is a good reason for this, if you are using the gdkregion
13914         internals, and if you're not, why do you care?
13915         * gdk/gdkwindow.c: Fix inverted condition
13916         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
13917         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
13918         * gtk/gtkrange.c: Redraw trough when moving.
13919         * gtk/gtktypeutils.c: Fix warning by adding const cast.
13920         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
13921
13922 2000-07-23  Tor Lillqvist  <tml@iki.fi>
13923
13924         * configure.in: Check for mkstemp and sigsetjmp. Output
13925         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
13926
13927         More work on GDK for Win32. Still in an intermediate state.
13928
13929         * gdk/makefile.cygwin
13930         * gdk/win32/makefile.cygwin: Removed.
13931         
13932         * gdk/makefile.mingw.in
13933         * gdk/win32/makefile.mingw.in: New files.
13934
13935         * gdk/Makefile.am
13936         * gdk/win32/Makefile.am: Generate and distribute them.
13937
13938         * gdk/win32/gdkwindow-win32.h
13939         * gdk/win32/gdkdrawable-win32.h
13940         * gdk/win32/gdkpixmap-win32.h: New files.
13941
13942         * gdk/win32/gdkcolor-win32.c
13943         * gdk/win32/gdkcursor-win32.c
13944         * gdk/win32/gdkdrawable-win32.c
13945         * gdk/win32/gdkgc-win32.c
13946         * gdk/win32/gdkimage-win32.c
13947         * gdk/win32/gdkprivate-win32.h
13948         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
13949         Rename fields and variables called xcursor, xid, etc (these names
13950         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
13951
13952 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
13953
13954         * gtk/gtkentry.[ch]: Fix some problems with vertical
13955         alignment.
13956
13957         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
13958         char/byte confusion.
13959
13960 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
13961
13962         * gtk/gtktextview.c (changed_handler): Fix bug where
13963         redraw wasn't being done properly when height of
13964         dirty region changed.
13965
13966         * demos/Makefile.am: Remove various references to
13967         -lgmodule
13968
13969 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
13970
13971         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
13972         PangoAttrShape to reserve space for pixmaps, add 
13973         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
13974         in the display functions.
13975         
13976         * gtk/testgtk.c (create_layout): Set some more exotic
13977         scrolled window options
13978
13979         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
13980         Add function to set the shadow type of a window, to allow
13981         putting a shadow around widgets such as GtkLayout or GnomeCanvas
13982         which don't draw their own frame.
13983
13984 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
13985
13986         * docs/tutorial/package-db-tutorial.sh: New file for
13987           packaging DocBook format tutorial
13988
13989 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
13990
13991         * docs/tutorial/gtk-tut.sgml: Minor updates
13992
13993         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
13994
13995 2000-07-19  Tor Lillqvist  <tml@iki.fi>
13996
13997         * gtk/gtksignal.c: Fix C++ comment.
13998
13999         * gtk/gtkimmulticontext.c
14000         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
14001         don't return value from void functions.
14002
14003         * gtk/gtk.def: Add gtk_rc_style_unref.
14004
14005 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
14006
14007         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
14008         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
14009         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
14010         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
14011         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
14012         gtk/gtktypeutils.h: Include files outside of the extern "C"
14013         block. Makes some C++ compiler happy. Reported by Denis Vakatov
14014         <vakatov@peony.nlm.nih.gov>.
14015
14016 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
14017
14018         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
14019           Completes first pass. Hurrah!
14020
14021 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
14022
14023         * docs/tutorial/gtk-tut.sgml: More clean ups.
14024
14025 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
14026
14027         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
14028         paint the background of the text area which was accidentally
14029         removed at some point.
14030
14031         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
14032           
14033          - Move most of the functionality from the theme vtable
14034            into GtkRcStyleClass and GtkStyleClass. The moved
14035            vtable functions were changed a bit in the move to
14036            work better in their new home.
14037
14038          - Get rid of the engine and engine_data fields from
14039            GtkRcStyle and GtkStyle; instead the theme
14040            engine derives theme-specific subclasses of GtkRcStyle
14041            and GtkStyle
14042
14043          - Add extra dlsym() found entry point to themes,
14044            theme_create_rc_style().
14045
14046         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
14047         in gtk_style_real_copy.
14048
14049         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
14050         to register a type associated with an engine. (The engine
14051         won't be unloaded as there is an instance of the type.)
14052
14053
14054 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
14055
14056         * docs/tutorial/gtk-tut.sgml: Clean ups.
14057
14058 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
14059
14060         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
14061           of cleaning up to do.
14062
14063 2000-07-15  Tor Lillqvist  <tml@iki.fi>
14064
14065         * gdk/testgdk.c: New file, quick hack to test backends for
14066         pixel-by-pixel correctness of the most simple graphic operations.
14067
14068 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
14069
14070         * Really release 1.3.1
14071         
14072         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
14073         include structure.
14074
14075 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
14076
14077         * Released 1.3.1
14078
14079 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
14080
14081         * gtk/gtktextlayout.c: use FALSE for size_only most
14082         of the time when calling gtk_text_layout_get_line_display()
14083         to avoid causing double reshapes when a redraw follows
14084         immediately after.
14085
14086 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
14087
14088         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
14089         appropriate region and gdk_window_process_updates() so trough
14090         updating doesn't lag behind the window being scrolled.
14091
14092         * gdk/gdkgc.c: Make parent_class pointer static.
14093          
14094 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
14095
14096         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
14097         include <string.h>.
14098          
14099         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
14100         cut-and-paste error in computing memory offset for 4 channels.
14101
14102 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
14103
14104         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
14105         gtk_rc_append_default_pixmap_path(), since it wasn't
14106         adding an interesting path and we don't have a meaningful
14107         default for this value.
14108
14109 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
14110
14111         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
14112         gtk-config to gtk-config-2.0 move gtk_.m4 to
14113         gtk-2.0.m4
14114
14115         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
14116         gdk/Makefile.am demos/Makefile.am: Change 
14117         library names to libgtk-1.3.la, etc, so that we
14118         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
14119
14120         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
14121         gdk/Makefile.am gdk/x11/Makfile.am
14122         Move include files into /usr/include/gtk-2.0, 
14123         /usr/lib/gtk-2.0/include/
14124          
14125         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
14126         gtk/gtkintl.h: Change package for gettext from 
14127         gtk+ to gtk20. Put hack in autogen.sh to modify
14128         po/Makefile.in.in after gettextize to make this
14129         possible.
14130
14131         * gtk+.spec: Some updates, not tested.
14132
14133         * gdk-pixbuf/Makefile.am: Move loaders into
14134         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
14135
14136         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
14137         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
14138         to THEMENAME/gtk-2.0/. Move engine directory  to
14139         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
14140         
14141 2000-07-12  Tor Lillqvist  <tml@iki.fi>
14142
14143         Win32 changes, still doesn't build though.
14144
14145         * gdk/makefile.cygwin
14146         * gdk/win32/makefile.cygwin
14147         * gtk/makefile.cygwin: Updates.
14148
14149         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
14150         default values for fg and bg pixel as X11 does (0 and 1), not
14151         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
14152         Use 0 for pen width by default (treated as 1 anyway later, but for
14153         apps that might check the value in the GdkGC).
14154         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
14155         interface to gdk_gc_predraw and _postdraw.
14156
14157         * gdk/win32/gdkwin32.h
14158         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
14159
14160         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
14161         extraneous semicolon.
14162
14163         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
14164
14165         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
14166         not the Win32 bitspixel value.
14167
14168         * gdk/win32/gdkcc-win32.c:
14169         * gdk/win32/gdkcolor-win32.c 
14170         * gdk/win32/gdkprivate-win32.h
14171         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
14172         GDK object structure.
14173
14174 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
14175
14176         * docs/tutorial/gtk_tut_12.es.sgml (name): 
14177         * docs/tutorial/gtk_tut_it.sgml (name): 
14178         * docs/tutorial/gtk_tut_fr.sgml (name): 
14179         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
14180         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
14181
14182 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
14183
14184         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
14185           small changes.
14186
14187 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
14188
14189         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
14190         a bug here, never been here and never fixed anything ;(
14191         (don't segfault if tree->root_tree is NULL, which happens prior
14192         to widget realization, but puke instead).
14193
14194 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
14195
14196         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
14197         add the necessary tokens.
14198
14199         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
14200         (gtk_rc_style_to_style): copy thicknesses.
14201         (gtk_rc_init_style): apply thicknesses.
14202         (gtk_rc_parse_style): parse xthickness and ythickness.
14203
14204         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
14205
14206         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
14207         (gdk_window_new): 
14208         (_gdk_windowing_window_init): 
14209         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
14210         (gdk_pixmap_create_from_data): 
14211         (gdk_bitmap_create_from_data): 
14212         (gdk_pixmap_new): 
14213         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
14214         (gdk_image_new): 
14215         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
14216         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
14217         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
14218         (gdk_colormap_get_system): 
14219         (gdk_colormap_new): 
14220         * gdk/gdkwindow.c (gdk_window_init): 
14221         * gtk/gtkstyle.c (gtk_style_new):
14222         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
14223         * gdk/gdkpixmap.c (gdk_pixmap_init): 
14224         * gtk/gtkrc.c (gtk_rc_style_new):
14225         use g_object_new() instead of g_type_create_instance() which
14226         is a private function for fundamental type implementations.
14227
14228 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
14229
14230         * configure.in: Add check for db2html
14231
14232 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
14233
14234         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
14235         hack to set glib_debug_objects based on gtk_debug_flags.
14236
14237 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
14238
14239         * INSTALL.in: Update the Prerequisites section.
14240
14241         * Makefile.am demos/Makefile.am docs/Makefile.am
14242         docs/tutorial/Makefile.am gdk/x11/Makefile.am
14243         gdk/linux-fb/Makefile.am: Dist fixes
14244
14245 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
14246
14247         * NEWS: 10,000 foot view of 1.3.1 changes.
14248
14249 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
14250
14251         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
14252         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
14253         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
14254         gdk/x11/gdkmain-x11.c: 
14255
14256         Patch from George Lebl to add a GdkGrabStatus enumeration to use
14257         as a return value of gdk_*_grab(). Previously, we just
14258         returned the X11 values directly.
14259
14260 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
14261
14262         * gdk/x11/Makefile.am: Patch from George Lebl to 
14263         install all the headers in the right place.
14264
14265 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
14266
14267         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
14268           initial conversion to DocBook.
14269
14270 2000-07-04  Tor Lillqvist  <tml@iki.fi>
14271
14272         * README.win32: Improve a bit.
14273
14274         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
14275         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
14276         Alt+0nnn on the numpad (used to enter characters by numeric code
14277         from current DOS or ANSI codepage) working correctly, as in other
14278         Windows apps.
14279
14280         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
14281         same argument validity tests as in X11 version.
14282         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
14283
14284         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
14285         definitions in case missing from headers.
14286
14287         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
14288         destroy the window-specific cursor.
14289         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
14290         calling GetModuleHandle(NULL).
14291         (gdk_window_set_cursor): Reworked to always copy the passed cursor
14292         with CopyCursor before setting it as the window-specific
14293         cursor. It is OK for the caller to destroy the GdkCursor (and thus
14294         also its Windows cursor) after calling this function. Destroy any
14295         previous window-specific cursor.
14296
14297 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
14298
14299         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
14300         font charset is iso8859-1, not iso-8859-1.
14301
14302 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
14303
14304         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
14305         Use g_get_charset() instead of g_get_codeset().
14306
14307         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
14308         Comment out some strdup'ing functions to keep timj
14309         happy until we finish fighting this out.
14310
14311 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
14312
14313         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
14314         <= width or height.
14315
14316         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
14317         from 1.2 for parent/child states.
14318
14319         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
14320         of typos.
14321
14322         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
14323         event structures, replace with a generic axes field. Replace 
14324         deviceid/sourec with GdkDevice *device.
14325
14326         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
14327         to extract particular axis use value from event. (Also
14328         can be used for normal X/Y.)
14329
14330         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
14331         allow for arbitrary number of axes, namespace everything
14332         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
14333         everywhere.
14334
14335         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
14336         Get rid of the gdk_input_vtable setup if favor of simply
14337         defining the functions in gdkinput-none/gxi/xfree.c in
14338         a similar fashion to the way that the port structure is 
14339         done.
14340
14341         * gtk/gtkdnd.c: Fix fields of synthesized button press event
14342         for new event structures. 
14343
14344         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
14345         new device interfaces.
14346
14347 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
14348
14349         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
14350         set the initial text.
14351
14352         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
14353         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
14354         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
14355         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
14356
14357         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
14358         pango_layout_set_font_description to simplify.
14359
14360 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
14361
14362         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
14363         pango_layout_set_font_description to simplify.
14364
14365 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
14366
14367         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
14368         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
14369         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
14370
14371         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
14372         PANGO_PIXELS() macro.
14373
14374 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
14375
14376         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
14377         that returns a PangoContext owned by the widget and updated to
14378         match future changes in the widget. Also, make 
14379         gtk_widget_create_pango_layout() use this context. If we ever
14380         add a ::changed signal to PangoContext, this will make things
14381         much more convenient. 
14382
14383         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
14384         in the appropriate places instead of destroying the layouts and
14385         creating new ones.
14386
14387         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
14388         in a few strategic places.
14389
14390 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
14391
14392         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
14393         gtk_widget_size_request() on reparented child, if one. Otherwise,
14394         queue_resize() on the child never results in it getting size-requested
14395         at all.
14396
14397         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
14398         in option menus, so that (with luck) people won't copy it into
14399         their apps in the future.
14400
14401         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
14402         to gtk_option_menu_calc_size. This isn't perfect, but should fix
14403         a lot of problems with changing the size of the menu's menu
14404         items after adding it to the option menu.
14405
14406         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
14407
14408         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
14409         the text direction for a widget changes.
14410
14411         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
14412         ::direction_changed to get rid of various hacks.
14413
14414 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
14415
14416         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
14417         name.
14418
14419 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
14420
14421         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
14422         flag to the structure. Do not call XFreePixmap on pixmaps created
14423         by gdk_pixmap_foreign_new().
14424
14425 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
14426
14427         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
14428         value using GdkRGB functionality given GdkColormap and GdkColor.
14429         (name not final, waiting for inspiration.)
14430         
14431         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
14432         set the foreground/background of a GC using the GC's colormap
14433         and GdkRGB. (name not final, waiting for inspiration.)
14434
14435         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
14436         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
14437
14438         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
14439         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
14440         purely a function of the corresponding colormap. Make
14441         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
14442
14443         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
14444         gdk_pixbuf_*create_from_xpm_* in terms of
14445         gdk_pixbuf_new_from_xpm_data(), move into platform independent
14446         code.
14447
14448         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
14449         advantage of the new draw_rgb_32_image_dithalign.
14450
14451         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
14452
14453         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
14454         on each created GC.
14455
14456         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
14457
14458         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
14459         which we initialize from the drawable when the GC is created,
14460         if the drawable has a colormap.
14461
14462         * gdk/x11/gdkgc-x11.c: include string.h for memset.
14463
14464         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
14465
14466         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
14467
14468 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
14469
14470         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
14471         actually returning expose events, make sure to set
14472         the count field properly.
14473
14474         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
14475         accidentally reintroced bug which always cleared
14476         the graphics_exposures value. 
14477
14478 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
14479
14480         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
14481
14482 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
14483
14484         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
14485
14486 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
14487
14488         * docs/faq/gtk-faq.sgml: Start of Section 6.
14489
14490 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
14491
14492         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
14493         
14494         (Fixes problem with drawing childless frames. Pointed out
14495         by and a first patch from Anders)
14496         
14497         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
14498         compute a child_allocation, even if we don't have a child.
14499
14500         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
14501         Always chain to the parent's impl, even if we don't have a child.
14502
14503 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
14504
14505         * gdk/gdkrgb.c: If possible, create only a single shm segment and
14506         use multiple parts of it instead of creating a bunch of separate
14507         segments, since the maximum number of segments per system is not
14508         large. (This might be worth backporting to GTK+-1.2.x if we make a
14509         new release )
14510
14511         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
14512         structure in preparation for per-colormap GdkRGB.
14513
14514         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
14515         to False when we get EINVAL from shmget so that the caller of
14516         gdk_image_new can retry with a smaller segment size.
14517
14518 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
14519
14520         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
14521
14522 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
14523
14524         * configure.in: make the current version number 1.3.1 (binary age 0,
14525         interface age 0).
14526         
14527         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
14528         gtkcompat.h is all we want.
14529
14530         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
14531         GLib primitive types. fixed g_type_register_fundamental() argument
14532         ordering.
14533
14534         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
14535         compiles.
14536
14537         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
14538         object code cleanup, comment trigraph fixes, etc...
14539
14540 2000-06-23  Havoc Pennington  <hp@redhat.com>
14541
14542         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
14543         instead of making up a bogus name for first_para_mark
14544
14545         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
14546         0 as a context ID
14547
14548 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
14549
14550         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
14551
14552 2000-06-21  Havoc Pennington  <hp@pobox.com>
14553
14554         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
14555         we didn't check window->bg_pixmap != GDK_NO_BG.
14556
14557         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
14558         gdk-pixbuf
14559
14560 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
14561
14562         * docs/faq/gtk-faq.sgm: Move file to here.
14563           TODO: Update Makfile.am 
14564
14565 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
14566
14567         * docs/gtk-faq.sgm: Add Section 2
14568
14569 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
14570
14571         * docs/gtk-faq.sgm: New file. Start of DocBook
14572           version of the FAQ.
14573
14574 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
14575
14576         * configure.in (GDK_PIXBUF_MAJOR): Define version
14577         numbers for GDK_PIXBUF_*, as they get substituted
14578         into a header file. Need to consider versioning
14579         for gdk-pixbuf more carefully later.
14580
14581 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
14582
14583         Work with srcdir != builddir.   
14584         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
14585         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
14586         * demos/testpixbuf.c: Likewise.
14587         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
14588         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
14589         <gdk/x11/gdkx.h>.
14590         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
14591         "gdk-pixbuf.h".
14592         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
14593
14594 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
14595
14596         * TODO.xml: Change 1.4 version numbers to 2.0.
14597
14598 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
14599
14600         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
14601         fixups to GTK+ standard.
14602
14603 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
14604
14605         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
14606         gdk-pixbuf.
14607
14608         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
14609         fixups for GObject.
14610
14611         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
14612         gdk-pixbuf with GDK dependencies moved into GDK.
14613         
14614         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
14615         move gdk-pixbuf-loader here until GObject has signals.
14616
14617         * demos/: New directory of demos. Move demos from
14618         gdk-pixbuf here.
14619
14620         * demos/pixbuf-init.c: Small bit of code to check for
14621         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
14622         set GDK_PIXBUF_MODULEDIR appropriately.
14623
14624         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
14625         define which no longer makes sense.
14626
14627 2000-06-21  Havoc Pennington  <hp@redhat.com>
14628
14629         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
14630         gtk_get_default_language
14631
14632         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
14633         new function to get the default language
14634
14635         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
14636         s/gtk_text_view_style_values/gtk_text_style_values/
14637
14638         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
14639         Add a "language" field to tags.
14640
14641         (gtk_text_tag_set_arg): Fix bug in setting
14642         "bg_full_height_set" tag.
14643
14644 2000-06-21  Havoc Pennington  <hp@redhat.com>
14645
14646         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
14647         in the interfaces
14648
14649         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
14650         stuff instead when possible.
14651
14652         * gtk/gtktexttypes.h: Delete some unused constants
14653
14654         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
14655         testtextbuffer.c: use glib instead of custom unicode routines
14656
14657 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
14658
14659         * docs/es/: Removed mistakenly added generated sgml
14660
14661         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
14662         Remove outdated info files.
14663
14664         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
14665         Moved tutorial files into subdir
14666
14667         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
14668         subdir.
14669
14670         * docs/man/gtk_button.pod: Remove. (contents will be
14671         integrated into gtk-reference button page.)
14672
14673         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
14674         docs/faq/Makefile.am: Adjust for new organization
14675
14676 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
14677
14678         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
14679         not $(MKINSTALLDIRS)
14680
14681 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
14682
14683         * gtk/testgtk.c (create_text): Finish the job Elliot started
14684         of removing font setting test for text widget. (Since text widget
14685         and GdkFont are not deprecated, and cause portability problems.)
14686
14687 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
14688
14689         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
14690         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
14691         Remove use of libunicode in favor of new GLib functions.
14692
14693         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
14694         nano-x, framebuffer. The X11 include is just a hack until we get
14695         the necessary functions in gdkcolor.h, so there is no reason to
14696         add other includes of platforms.
14697
14698         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
14699         window bigger than the screen change.
14700
14701         * gtk/testgtk.c: Revert some random changes from Elliot
14702         that had no particular point and were causing testgtkrc
14703         not to function correctly.
14704         
14705         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
14706         because GdkSegment and GdkRegionBox have the same fields,
14707         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
14708         results in clearer code.
14709
14710         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
14711         gdk_input_translate_coordinates): Fix missed GdkObjectification
14712
14713 2000-06-18  Elliot Lee  <sopwith@redhat.com>
14714
14715         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
14716         * gtk/gtk{plug,socket}.h: Missed commits from previous.
14717
14718 2000-06-20  Havoc Pennington  <hp@redhat.com>
14719
14720         * modules/linux-fb/Makefile.am: Make this compile
14721         without framebuffer enabled
14722
14723         * gdk/linux-fb/Makefile.am: Add conditional to not build
14724         framebuffer unless specified in configure
14725
14726         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
14727         the size of the target instead of source if -1 was passed for
14728         width/height
14729
14730         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
14731         width/height confusion.
14732
14733 2000-06-19  Havoc Pennington  <hp@redhat.com>
14734
14735         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
14736         GDK_DRAWABLE_XID. In the future, we probably want to make it
14737         faster with G_DISABLE_CHECKS turned on.
14738
14739 2000-06-14  Havoc Pennington  <hp@redhat.com>
14740
14741         * gdk/Makefile.am: add gdkpixmap.c
14742
14743         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
14744         s/gdk_image_init/_gdk_windowing_image_init
14745
14746         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
14747         ref/unref
14748
14749         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
14750
14751         * gdk/gdkcompat.h: remove GdkWindowType compat, since
14752         GdkWindowType is now non-deprecated; 
14753         change gdk_window_get_type() compat to be
14754         gdk_window_get_window_type().
14755
14756         * gdk/gdkdnd.h: make GdkDragContext a GObject.
14757
14758         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
14759         virtual GObject. Make all functions call into the vtable.
14760         Move gdk_image_put() guts in here. Remove GdkDrawableType
14761         and gdk_drawable_get_type(), these are now GdkWindow-specific.
14762         draw_image, get_depth, get_size, set_colormap, get_colormap,
14763         get_visual added to the vtable.
14764         
14765         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
14766         GObject. Virtualize everything. 
14767         (gdk_gc_new_with_values): remove check for destroyed window,
14768         because now GdkWindow::create_gc will check this.
14769         (gdk_gc_set_values): New function to set GC values, this 
14770         was already implemented but wasn't in the header
14771
14772         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
14773
14774         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
14775         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
14776         remove _gdk_window_class; add _gdk_window_impl_get_type() and
14777         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
14778         _gdk_windowing_window_init, rename gdk_image_init to
14779         _gdk_windowing_image_init.
14780         
14781         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
14782         (gdk_draw_layout): Remove check for destroyed window, 
14783         because all the drawable methods already check it.
14784         
14785         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
14786         Add gdkpixmap.c which contains implementation of GdkDrawable
14787         virtual table (by chaining to a platform-specific implementation
14788         object).
14789         
14790         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
14791         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
14792         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
14793         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
14794         GdkColormapPrivate. 
14795
14796         * gdk/gdktypes.h: #include <glib-object.h>
14797
14798         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
14799         Move most functionality to platform-specific implementation
14800         object. GdkWindow itself now handles the backing store, then
14801         chains to the platform-specific implementation.
14802         (gdk_window_get_window_type): return GdkWindowType of the window.
14803         (gdk_window_peek_children): New routine, returns the children of 
14804         a GdkWindow
14805         (gdk_window_get_children): Was in X11-specific code and did 
14806         XQueryTree. Changed to simply return a copy of window->children; 
14807         so it can go in cross-platform code.
14808         
14809         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
14810
14811         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
14812         GdkColormap; just changed to use the new private data instead
14813         of casting to GdkColormapPrivate.
14814
14815         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
14816         gdk_cursor_new().
14817
14818         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
14819         (private data member in the GObject). 
14820         (xdnd_manager_source_filter): Function had broken 
14821         error handling, fix it (use gdk_error_trap_push).
14822
14823         * gdk/x11/gdkdrawable-x11.c: This file now implements
14824         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
14825         base class is purely for the convenience of the X port,
14826         and not part of the interface to cross-platform GDK.
14827
14828         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
14829         
14830         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
14831         specific to X, and returned by the create_gc virtual method
14832         of GdkDrawableImplX11. 
14833         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
14834         rather than gchar, this was also changed in the GdkGC vtable.
14835         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
14836         mask is 0, return immediately, instead of checking every flag.
14837         This is faster, and keeps us from segfaulting if values is NULL
14838         and the mask contains some nonzero flags.
14839
14840         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
14841         GdkWindow.
14842
14843         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
14844         GdkWindowPrivate is gone.
14845
14846         * gdk/x11/gdkim-x11.c: rename things that got renamed.
14847
14848         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
14849         remove the image_put stuff that got transferred to GdkDrawable.
14850         
14851         * gdk/x11/gdkinput.c: renamings
14852
14853         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
14854
14855         * gdk/x11/gdkpixmap-x11.c: GObject conversion
14856
14857         * gdk/x11/gdkprivate-x11.h: indentation fixes
14858
14859         * gdk/x11/gdkproperty-x11.c: renamings
14860
14861         * gdk/x11/gdkselection-x11.c: renamings
14862
14863         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
14864         implements the platform-specific "impl" object.
14865         Moved gdk_window_get_children to gdk/gdkwindow.c
14866
14867         * gdk/x11/gdkx.h: Remove all the private structs and private datas
14868         that no longer exist. Add declaration of GdkGCX11 object here.
14869         Fix all the macros to still work. 
14870
14871         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
14872         GdkDragContext from the boxed types since they are now GObjects.
14873
14874         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
14875         moved xthickness/ythickness into the instance. GtkStyleClass
14876         functions are now in the standard vtable for GtkStyle, so you have
14877         to create a GObject subclass to write a theme engine.
14878         (gtk_style_copy): fixed a leaked PangoFontDescription
14879         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
14880         can be the standard GObject function.
14881         
14882         * Throughout GTK:
14883         s/style->klass->[xy]thickness/style->[xy]thickness
14884         s/pango_layout_unref/g_object_unref/
14885
14886         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
14887         
14888         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
14889         accessing GDK internals.
14890
14891         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
14892         accessing GDK internals.
14893
14894 2000-06-18  Elliot Lee  <sopwith@redhat.com>
14895
14896         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
14897
14898         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
14899         problem by calculating event position relative to the trough
14900         rather than the slider.
14901         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
14902
14903         * gdk/gdkgc.h: Add GDK_NOR.
14904
14905         * configure.in, Makefile.am: Add modules top level dir
14906         * configure.in: Only use pangox library if building x11 target.
14907         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
14908
14909 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
14910
14911         * gtk/gtkcolorsel.c: Change private class member to be named
14912         private_data throughout the file.
14913
14914         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
14915         private_data to avoid clashing with keyword.
14916
14917 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
14918
14919         * gdk/gdkdnd.h: Add comment to remove warning.
14920
14921 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
14922
14923         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
14924         Byelorussian language; changed the Makefile and file names 
14925         to reflect that.
14926
14927 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
14928
14929         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
14930         rather than gdk_window_hide; this makes things work
14931         correctly if the window is programmatically hidden while
14932         iconified.
14933
14934 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
14935
14936         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
14937         cut and paste typo where wrong pixmap was being
14938         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
14939
14940 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
14941
14942         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
14943         Add helper function to compute format / bytes 
14944         relationship. Use in a couple places to fix up
14945         errors which assume 8 * format.
14946
14947         * gtk/gtkselection.c (gtk_selection_request): Use 32
14948         rather than 8 * sizeof (GdkAtom), to work correctly
14949         on Alpha.
14950
14951 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
14952
14953         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
14954         libgtk.la
14955         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
14956         versions
14957
14958         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
14959         checking macros return NULL since the function has a return value.
14960
14961 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
14962
14963         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
14964         GTK+ from building at all.
14965
14966         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
14967
14968 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
14969
14970         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
14971         gtk/Makefile.am: make it possible to configure gtk for different
14972         targets on the same platform. The library name is now 
14973         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
14974         flag. Only the x11 target compiles right now.
14975         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
14976         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
14977         * gdk/nanox/gdk*generic*: delete generic region code.
14978         * gdk/linux-fb/gdk*generic*: delete generic region code.
14979         * README.nanox: update information.
14980         
14981 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
14982
14983         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
14984         prepend not append. (Pointed out by Brett Hall.)
14985
14986 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
14987
14988         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
14989
14990 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
14991
14992         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
14993         need this later, and this makes sure that the atexit for
14994         glib gets called after that for GDK, so atexits are
14995         properly ordered for object leak checking.
14996
14997         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
14998
14999         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
15000         pango_x_shutdown_display()
15001
15002         * gtk/simple.c (main): Close window on destroy.
15003
15004 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
15005
15006         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
15007         to treat initial creation different from setting with 
15008         regards to the graphics-exposures parameter, so add a parameter
15009         indicating whether this is initial or not.
15010
15011 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
15012
15013         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
15014         to sort of work by adding an extra return_exposes arg
15015         to gdk_event_translate() - it might be better to simply
15016         deprecate the function altogether and force people to rewrite
15017         without it. gdk_window_scroll() handles most of it, and where
15018         gdk_window_scroll() doesn't work, simply redrawing more does.
15019
15020         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
15021         assertion.
15022
15023         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
15024
15025         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
15026         bunch of pretty much useless /* Print debugging info */ comments 
15027         which had drifted away from the code they were commenting.
15028
15029 2000-06-02  Havoc Pennington  <hp@pobox.com>
15030
15031         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
15032         is in working order.
15033         
15034         * gtk/testtext.c: Change to reflect anonymous mark API
15035
15036         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
15037
15038         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
15039         field, which was unused.
15040
15041         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
15042         saves some typing.
15043
15044         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
15045
15046         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
15047         flag on the insertion point and selection bound
15048
15049         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
15050         make mark-manipulation functions take a GtkTextMark* instead of a
15051         mark name.
15052         
15053         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
15054         GtkTextMarkBody; will be used to detect attempts to delete
15055         the permanent marks (insert and selection bound)
15056
15057         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
15058
15059 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
15060
15061         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
15062         flag to on.
15063
15064         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
15065         Honor DOUBLE_BUFFRED_FLAG
15066
15067         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
15068         function to set the DOUBLE_BUFFERED flag.
15069
15070         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
15071         or not exposes done on the widget should be double-buffered.
15072
15073         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
15074         to be what would be expected. (Fixes problem with a
15075         g_return_if_fail() validating a TextDirection enumeration)
15076
15077 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
15078
15079         * gtk/gtkwidget.c: Remove all references to 
15080         offscreen flag which was no longer used.
15081
15082         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
15083
15084         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
15085         for non-null label_widget->parent.
15086
15087         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
15088         which no longer was used.
15089
15090         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
15091
15092         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
15093         for null arguments.
15094
15095         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
15096         check for destroyed windows.
15097
15098 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
15099
15100         * gtk/gtkimmulticontext.c: Add a finalize method and unref
15101         the slave context there.
15102
15103         * gtk/gtkinvisible.[ch]: Make reference counting behavior
15104         identical to GtkWindow.
15105
15106 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
15107
15108         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
15109         pangox to here, so we can write them independent of rendering
15110         system, using GDK primitives.
15111
15112         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
15113         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
15114         since we have a rendering-system independent implementation in
15115         terms of draw_glyphs().
15116         
15117         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
15118         function to render a single line.
15119
15120         * gdk/x11/gdkpango.c: Move the guts of this file mostly
15121         into ../gdkpango.c, which simplifies things, since we
15122         don't have to deal with raw X gc's.
15123
15124 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
15125
15126         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
15127         get the logical attributes for a given GtkTextLine.
15128
15129 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
15130
15131         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
15132         g_locale_get_codeset() to g_get_codeset() change.
15133
15134 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
15135
15136         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
15137         descriptions.
15138
15139         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
15140         the entry.
15141
15142         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
15143         redoing (vastly simplifying) for Pango. Still needs quite
15144         a bit of work. (Size selection is currently poor. List of 
15145         predefined sizes is not a good idea, since all of these
15146         sizes won't necessarily be distinct.)
15147
15148 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
15149
15150         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
15151         CODESET results for LANG=C.
15152
15153 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
15154
15155         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
15156         which takes a stringized pango font description;
15157         ignore the older 'font' and 'fontset' declarations.
15158
15159         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
15160         field with a GdkFont derived via gdk_font_from_description(),
15161         for compatibility. (Should we just remove it entirely?
15162         Probably too much compatibility breakage, but people
15163         should be migrating to the new Pango stuff as quickly
15164         as possible.)
15165
15166 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
15167
15168         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
15169
15170 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
15171
15172         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
15173         redoing; there are some bugs in size allocation right
15174         now, the semi-existant distinction between header / day
15175         fonts was removed, but, with Pango, could actually
15176         be made functional in a nice way.
15177         
15178         * gtk/testcalender: Move calender from examples into this
15179         directory as a test program. (We really need to restrcture
15180         testgtk into a whole directory full of tests for every
15181         widget or functionality group, separated into multiple .c
15182         files.)
15183
15184 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
15185
15186         * gtk/testgtk.c (file_exists): Fix stupid typo that
15187         was keeping RC file from being loaded.
15188
15189         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
15190         RC file font code.
15191
15192 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
15193
15194         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
15195         Add function to load a GdkFont from a PangoFontDescription.
15196
15197 2000-05-29  Tor Lillqvist  <tml@iki.fi>
15198
15199         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
15200         variable should be of type GdkEventPrivate.
15201
15202 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
15203
15204         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
15205         to have any widget for the label, use a GtkLabel widget
15206         to display the text. (Based partially on a patch from
15207         Anders Carlson.)
15208
15209         (Quite a bit of code reorganization - strip 90% of the
15210         guts out of gtkaspectframe and add a single virtual
15211         func to GtkFrameClass - compute_child_allocation.)
15212
15213 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
15214
15215         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
15216         (Removed clist->row_center_offset field because caching
15217         it wasn't saving time or code, added private function
15218         _gtk_clist_create_cell_layout()).
15219
15220 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
15221
15222         * gtk/gtkaccellabel.c: Pangoized.
15223
15224         * gtk/[hv]ruler.c: Pangoized
15225
15226 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
15227
15228         * gtk/gtkfilesel.c (gtk_file_selection_init):
15229         Use gtk_clist_set_column_auto_resize() to remove need
15230         need for manual column width computations.
15231
15232 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
15233
15234         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
15235         ensuring Pango correctness, and considerably simplifying the
15236         code.
15237         
15238         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
15239
15240         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
15241         getting of numbers of lines.
15242
15243         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
15244         to the actual requested width of the lable, not to the wrap
15245         width we set.
15246
15247         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
15248
15249         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
15250           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
15251
15252         * gtk/gtktextview.c: Fix structure inheritance.
15253
15254         * gtk/gtkprogressbar.c: Pangoize.
15255
15256 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
15257
15258         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
15259         in a function.
15260
15261         * gtk/gtktextlayout.c (find_display_line_above): Fixed
15262         bug with computing line tops.
15263
15264         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
15265
15266 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
15267
15268         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
15269         and y_offset coordinates to do what we need now. (The offset between
15270         buffer and layout coordinates has been reintroduced, but is a 
15271         bit different than before.)
15272
15273         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
15274         handle the adjustments ourselves, and scroll as necessary using
15275         the new gdk_window_scroll().
15276         
15277         The advantage of this is that when we are incrementally revalidating,
15278         we are essentially rearranging things around the visible portion
15279         of the screen. With the old setup, the visible portion of the
15280         screen was moved around in the layout, so scrolling and redrawing
15281         to track that caused jumping of the display. Since we now
15282         control the scrolling ourselves, we can suppress this and
15283         only redraw when things actually change.
15284
15285 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
15286
15287         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
15288         the region not just redisplay it after-all, since we store the
15289         cursors in the LineDisplay. (Ugly interactions here between
15290         GtkLayout and GtkTextBTree here.)
15291         
15292         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
15293
15294 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
15295
15296         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
15297         Added function to scroll contents of a window while keeping the
15298         window constant. Works by XCopyArea or guffaw-scrolling depending
15299         on the details of how the window is set up. (guffaw-scrolling
15300         still needs to be filled in.)
15301
15302 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
15303
15304         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
15305         move the debugging that was tied to a global variable
15306         to that.
15307
15308         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
15309
15310         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
15311         validated flag, in line data instead of setting height/width to
15312         -1. This allows us to perform operations with partially invalid
15313         buffer (using the old size for invalid lines) and thus to do
15314         incremental vaidation. Keep height/width aggregates up to date
15315         when deleting text and rebalancing the tree.
15316
15317         * gtk/gtktextbtree.[ch]: Add functions validate a line
15318         (gtk_text_btree_validate_line), and to validate up
15319         to a number of pixels (gtk_text_btree_validate).
15320
15321         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
15322         that indicates that something is changed and a revalidation
15323         pass is needed. Change ::need_repaint to ::changed, and
15324         make it take old and new yranges instead of a rectangle.
15325
15326         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
15327         the line_data_destroy() function from 
15328         gtk_text_btree_add_view() to a virtual function in 
15329         GtkTextLayout
15330
15331         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
15332         since we are handling partial repaints in a different fashion
15333         now.
15334
15335         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
15336         of the selection instead of queueing a repaint on the
15337         entire widget.
15338
15339         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
15340         get_selection_bounds() down to btree, make the function
15341         in buffer a wrapper around the btree function.
15342
15343         * gtk/gtktextlayout.[ch]: Add functions to check if the
15344         layout is valid and to recompute either a range of pixels
15345         aroudn a line or a certain total number of pixels.
15346
15347         * gtk/gtktextlayout.[ch]: Cache a single line display;
15348         now that we only redraw the needed portions, the hit rate
15349         for this cache is quite high.
15350         
15351         * gtk/gtktextview.[ch]: Keep track of the first paragraph
15352         on the screen so that when re-laying-out the buffer, we can
15353         keep the same place. This requires connecting to ::value_changed
15354         on the adjustments
15355
15356         * gtk/gtktextview.[ch]: Add idle functions to revalidate
15357         the buffer after we receive an ::invalidated signal.
15358         
15359 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
15360
15361         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
15362         to max of allocation and layout size, not just to the
15363         layout size.
15364
15365         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
15366         Invalidate window so it gets redrawn properly.
15367
15368         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
15369         to mean the entire window.
15370
15371         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
15372         into public header.
15373
15374 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
15375
15376         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
15377         to get the name of a mark.
15378
15379         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
15380         to find the paragraph from a y position.
15381
15382 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
15383
15384         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
15385         nodes have width/height >= 0, not > 0.
15386
15387 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
15388
15389         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
15390         Add a size_only flag, so when we only need the size, we don't create
15391         useless appearance attributes.
15392
15393         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
15394         duplicate setting of font description.
15395
15396         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
15397
15398 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
15399
15400         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
15401         EXTRA_DIST. It does not work well when the file that
15402         everything depends on is not in the tarball.
15403
15404 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
15405
15406         * gtk/testgtk.c: Some hacks and fixes so that it basically
15407         works when not sitting in the GTK+ build tree.
15408
15409 2000-05-03  Havoc Pennington  <hp@redhat.com>
15410
15411         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
15412         Properly determine the ordering of the tag root and the current
15413         line within the tree. Previous algorithm only worked if the tag
15414         root's immediate parent was the common root of both the current
15415         line and the tag root.
15416
15417 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
15418
15419         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
15420         alignment.
15421
15422         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
15423         the widget text directional dynamically.
15424
15425         * gtk/gtktextview.[ch]: Added functions to get and set default
15426         wrap mode.
15427
15428 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
15429
15430         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
15431         in cursor location computation.
15432
15433 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
15434
15435         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
15436         vadjusment values properly when layout gets smaller.
15437
15438         * gtk/gtktextview.c (need_repaint_handler): Areas being
15439         passed in are far completely inaccurate, and sometimes
15440         too small, so, for now, just queue a redraw on the
15441         whole visible region.
15442
15443 2000-04-25  Havoc Pennington  <hp@redhat.com>
15444
15445         * gtk/gtktextbtree.c (summary_destroy): new function to 
15446         destroy tag summary nodes
15447         (gtk_text_line_next_could_contain_tag): this function was 
15448         totally broken if the line passed in wasn't below the tag
15449         root. Fix it.
15450         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
15451         "wildcard" case, we have to do a linear scan. Blah.
15452         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
15453         we have to do the linear scan
15454         (tag_removed_cb): When a tag is removed from the tag table, 
15455         remove the GtkTextTagInfo node from the btree.
15456         (gtk_text_btree_spew): Implement the spew function, for 
15457         our debugging pleasure.
15458
15459 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
15460
15461         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
15462         a problem with referring to the wrong buffer.
15463
15464         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
15465
15466         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
15467         font description to gtk_style_new() - otherwise things
15468         don't work without a .gtkrc file.
15469
15470         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
15471         tags table if we create it ourself, too.
15472
15473         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
15474         it was conflicting with XKB modifiers.
15475
15476         * gtk/gtktextview.[ch]: Add simple support for 
15477         GtkIMContext.
15478
15479 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
15480
15481         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
15482         with deletion from last commit.
15483
15484 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
15485
15486         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
15487         in the context from the current locale.
15488         
15489         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
15490         context, not hardcoded value.
15491
15492         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
15493         not logical.
15494
15495 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
15496
15497         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
15498         attributes - that doesn't handle partial-glyph selection
15499         properly. Instead use new pango_layout_line_get_x_ranges()
15500         functionality to draw the selection.
15501
15502         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
15503         now properly handles out-of-range coordinates.
15504
15505         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
15506
15507         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
15508         public.
15509
15510         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
15511         for paragraphs opposite to the base direction of the widget.
15512
15513         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
15514
15515         * gtk/gtktextlayout.c: Don't split segments on marks, since that
15516         causes Arabic words to reshape as you cursor through.
15517
15518         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
15519         cursor position when moving vertically with the arrow keys and
15520         scrolling with page-up/page-down. (Arrow keys save only the X,
15521         scrolling saves both X and Y.)
15522
15523         This means you can line-up / line-down or page-up / page-down
15524         without losing your place, and also that moving vertically
15525         with the cursor keys keeps the same X position, not the same
15526         character count:
15527
15528         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
15529         arrow keys move by display lines, not paragraphs.
15530
15531 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
15532
15533         * gtk/gtklayout.c: Make sure that the bin window is at least
15534         as big as the allocation. (Should we also make sure that the
15535         bin window is big enough to completely cover widget->window?)
15536
15537         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
15538         function to get the onscreen rectangle.
15539
15540         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
15541         for offsets in window coordinates.
15542
15543 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
15544
15545         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
15546         confusion.
15547
15548         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
15549         from the widget direction.
15550
15551         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
15552         Add a "direction" attribute.
15553
15554         * gtk/gtktextview.c: global s/tkxt/text_view/.
15555
15556         * gtk/testtext.c: Added long block of text in Arabic, to test out
15557         the direction attributes. (Some problems with the shaping system
15558         for arabic become obvious - like the fact the cursor splits words
15559         into unjoined pieces.)
15560
15561 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
15562
15563         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
15564
15565         * gtk/gtktextlayout.c: Fix up alignment.
15566
15567         * gtk/testtext.c: Add some tests for centering, wrapping.
15568
15569 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
15570
15571         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
15572         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
15573         If we wrote GTK+-specific layout-render function this could just replace
15574         the draw_layout() operation in the vtable.
15575
15576         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
15577         pango_layout_get_cursor_pos() and use that function.
15578
15579         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
15580         is a non-static symbol.
15581
15582         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
15583         with gtk_text_btree_find_line_by_y()
15584
15585         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
15586         renderer that handles GtkTextAppearance attributes.
15587
15588         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
15589
15590           - Move the values in the style that don't affect geometry into a
15591             GtkTextAppearance structure.
15592           - Change underline to take a PangoUnderline and "font" a string
15593             representation of a font description
15594           - Add a "font_desc" attribute which takes a FontDescription structure.
15595
15596         * gtk/gtktextlayout.[ch]:
15597
15598           - Get rid of the display-line list per each line. Instead, we
15599             generate, on demand, a GtkTextLineDisplay structure which]
15600             contains a PangoLayout * and other necesary information
15601             (offsets, cursor locations) for displaying a paragraph.
15602           - Get rid of the code to wrap lines, create display chunks,
15603             etc. Instead, we just go through a paragraph and convert
15604             it into the necessary inputs to a PangoLayout.
15605           - Implement a new attribute type, GtkTextAttrAppearance. This
15606             holds a GtkTextAppearance, and is used to pass colors, 
15607             stipple, etc, through from the layout to the display without
15608             having to use lots and lots of individual attributes.
15609           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
15610             in terms of PangoLayout functions.
15611         
15612         * gtk/gtktextview.c: 
15613          
15614           - Handle passing the necessary PangoContext to the layout
15615           - Some fixups in painting to deal with the automatic backing store
15616             and offsetting of GTK+-1.4
15617           - Add a style_set handler so that the default style reacts
15618             properly to theme changes.
15619         
15620         * gtk/gtktext?*.[ch]: Random code-style fixes.
15621
15622         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
15623
15624 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
15625
15626         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
15627         in original form preparatory to Pango-ization and gdkimcontext-ization.
15628
15629 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
15630
15631         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
15632         so that we can derive from gtkimcontext in language bindings properly.
15633
15634 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
15635
15636         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
15637         Add a compose table including (almost) all the compose combinations
15638         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
15639         data in the XIM implementation.
15640
15641         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
15642         Moved functions to convert keyvalues from and to unicode here from
15643         the win32 port and made them public.
15644
15645 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
15646
15647         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
15648
15649 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
15650
15651         * gtk/gtkimcontext.[ch]: Base class for new input context system
15652
15653         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
15654         the real input context implementation to be loaded from modules
15655         and switched on the fly.
15656
15657         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
15658         context that just does direct keysymbol => unicode translation.
15659
15660         * gtk/gtkentry.[ch]: Start switching editing over to using
15661         GtkInputContext. (No handling of preedit yet.)
15662
15663 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
15664
15665         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
15666         many substitutions. (klass should not be subsituted.)
15667
15668 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
15669
15670         * configure.in: Add checks for Pango
15671
15672         * configure.in docs/Makefile.am: Add test for sgml2html
15673         and allow 'make dist' without building html, but print out
15674         warnings in that case. (For making snapshots)
15675
15676         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
15677         Add Pango libraries and C flags
15678
15679         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
15680         Add function (gdk_draw_layout) to draw a pango layout.
15681
15682         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
15683         for getting Pango contexts for GDK.
15684
15685         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
15686
15687         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
15688         editing.
15689
15690         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
15691         keysym => unicode translations. More languages can be added
15692         here, but real input-method support is needed.
15693
15694         * docs/Changes-1.4.txt: Added note about entry behavior.
15695         
15696         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
15697         to set the reading direction for a widget and the global direction.
15698         Add test which allows toggling the global direction. Two private
15699         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
15700
15701         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
15702           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
15703
15704         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
15705
15706         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
15707         underlining now handled by Pango.
15708
15709         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
15710         to RCStyle and Style. (Having both this and the old font name and GdkFont 
15711         is temporary.)
15712
15713         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
15714         convenience functions for creating contexts and layouts for widgets.
15715
15716         * gtk/testgtk.c: Enhance label tests with multilingual labels.
15717
15718 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
15719
15720         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
15721         titles to be active, even if they aren't visible.
15722         (gtk_clist_column_titles_passive):  Ditto.
15723
15724 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
15725
15726         * gtkmenu.c:
15727         * gtkmenu.h:
15728         * gtktypeutils.h: Spelling/grammar fixes in comments.
15729
15730 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
15731
15732         * gdk/nanox/*.h: add missing header files.
15733
15734 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
15735
15736         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
15737         send_event to TRUE.
15738         (gtk_drawing_area_size): queue a resize.
15739
15740 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
15741
15742         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
15743         the handlers, also invalidate them. bug nailed down by Karl Nelson
15744         <kenelson@ece.ucdavis.edu>.
15745
15746 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
15747
15748         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
15749         "(nil)" foundries, patch from Grigorios Magklis.
15750
15751         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
15752         on non-available fonts, based on a patch by Grigorios Magklis
15753         <maglis@cs.rochester.edu>.
15754
15755 2000-05-18  Elliot Lee  <sopwith@redhat.com>
15756
15757         * gdk/x11/gdkregion-generic.c: If a region does not have any
15758         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
15759         instead of GDK_OVERLAP_RECTANGLE_IN.
15760
15761 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
15762
15763         * gtk/gtklayout.c (gtk_layout_map): Remove references to
15764         OFFSCREEN, as it is no longer necessary.
15765
15766 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
15767
15768         * gtk/gtkcolorsel.c: Patch from David Santiago
15769         <mrcooger@cyberverse.com> to change things so that the 
15770         indicator of the active palette entry is done independently,
15771         not via the focus, since it should always be visible.
15772
15773 2000-05-17  Tor Lillqvist  <tml@iki.fi>
15774
15775         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
15776         refcount leaks as in the X11 backend.
15777
15778         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
15779         cosmetics.
15780
15781         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
15782         backend. Add _gdk_windowing_window_destroy().
15783
15784         * gtk/gtkcolorsel.c: Include correct backend-specific header.
15785         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
15786         either, but these probably do exist on nanox?)
15787         
15788         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
15789         which isn't necessarily defined by <math.h>.
15790
15791         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
15792         ancestry past GtkObject.
15793
15794         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
15795         from DLL on Win32.
15796
15797         * gtk/gtk.def: Update corresponding to recent changes.
15798
15799         * gtk/makefile.{cygwin,msc}: Updates.
15800
15801 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
15802
15803         * docs/Changes-1.4.txt: A bit of editing.
15804
15805         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
15806         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
15807         to clear the update area for the window, and clear it
15808         when hiding a window.
15809
15810         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
15811         if window destroyed.
15812
15813         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
15814
15815         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
15816         gdk_window_destroy() to the generic code, since there was a lot of 
15817         window-system-independent logic it in. Add a function:
15818         
15819          _gdk_window_destroy() 
15820
15821         to the internal API to destroy a window without unreferencing it.
15822         Add a function:
15823
15824          _gdk_windowing_window_destroy()
15825
15826         That does the windowing-system-dependent part of destroying 
15827         the window.
15828
15829 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
15830
15831         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
15832
15833 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
15834
15835         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
15836         Make gtk_widget_shape_combine_mask() keep a reference count on
15837         the pixmap since it keeps it around.
15838
15839 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
15840
15841         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
15842         leak.
15843
15844         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
15845         leak with event filters.
15846
15847 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
15848
15849         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
15850         signal handlers with the right data arguments. (Fixes
15851         some warnings when a widget was repeatedly set as a drag
15852         destination.)
15853
15854         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
15855         window so we can avoid avoid setting the DND properties on the
15856         toplevel window repeatedly.
15857
15858 2000-05-13  Tor Lillqvist  <tml@iki.fi>
15859
15860         * gdk/win32/gdkwin32.h: Define more message types missing from
15861         mingw headers.
15862
15863         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
15864         call gdk_window_destroy_notify(). It was never called. This
15865         probably meant that the GdkWindow was never freed. Thanks Owen for
15866         noticing (!).
15867
15868         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
15869         window as destroyed before calling DestroyWindow(). DestroyWindow()
15870         causes a call to the window procedure (gdk_WindowProc), which
15871         calls gdk_event_translate(), which calls
15872         gdk_window_destroy_notify(), which gets confused unless the window
15873         is set as destroyed.
15874
15875         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
15876         this function to indicate it's win32 only. Put inside #ifdef
15877         G_ENABLE_DEBUG.
15878
15879         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
15880         debugging function. (gdk_event_translate:) Add a default branch
15881         that uses the above function to print debug messages with all
15882         Windows messages symbolically.
15883
15884         * gdk/win32/gdkprivate-win32.h: Declare it, and
15885         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
15886
15887 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
15888
15889         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
15890         public header file.
15891
15892 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
15893
15894         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
15895
15896         * gtk/gtktext.c: made the adjustments no-construct args, simply
15897         provide default adjustments.
15898         (gtk_text_destroy): release adjustments.
15899
15900         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
15901         adjustment argument non-construct.
15902
15903         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
15904         instead of in finalize.
15905         (gtk_progress_get_text_from_value): 
15906         (gtk_progress_get_current_text): 
15907         (gtk_progress_set_value): 
15908         (gtk_progress_get_percentage_from_value): 
15909         (gtk_progress_get_current_percentage): 
15910         (gtk_progress_set_percentage): 
15911         (gtk_progress_configure): ensure an adjustment is present.
15912
15913 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
15914
15915         * gtk/gtkcolorsel.[hc]:
15916         * gtk/gtkcolorseldialog.[hc]:
15917         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
15918         their parent implementation, use bit fields for boolean values, don't
15919         create unused widgets, usage of glib types, braces go on their own
15920         lines, function argument alignment, #include directives etc. etc. etc..
15921
15922         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
15923
15924 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
15925
15926         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
15927
15928         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
15929         of NULL.
15930
15931         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
15932         to freed data.
15933         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
15934
15935         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
15936         to NULL when the toplevel is getting destroyed.
15937         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
15938         (gtk_menu_destroy): 
15939         (gtk_menu_init): store the information of whether we have to
15940         readd the initial child ref_count during destruction in a new
15941         GtkMenu field needs_destruction_ref_count.
15942
15943         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
15944         here, those reading: learn from my mistake! ;)
15945         in order for set_?adjustment to support a default adjustemnt if
15946         invoked with an adjustment pointer of NULL, the code read (pseudo):
15947         if (v->adjustment) unref (v->adjustment);
15948         if (!adjustment) adjustment = adjustment_new ();
15949         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
15950         now imagine the first unref to actually free the old adjustment and
15951         adjustment_new() creating a new adjustment from the very same memory
15952         portion. here, the latter comparision will unintendedly fail, and
15953         all hell breaks loose.
15954         (gtk_viewport_set_hadjustment):
15955         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
15956         after unreferencing it.
15957
15958         * gtk/gtkcontainer.[hc]: removed toplevel registration
15959         functions: gtk_container_register_toplevel(),
15960         gtk_container_unregister_toplevel() and
15961         gtk_container_get_toplevels() which had wrong semantics
15962         anyways: it didn't reference and copy the list.
15963
15964         * gtk/gtkwindow.c: we take over the container toplevel registration
15965         bussiness now. windows are registered across multiple destructions,
15966         untill they are finalized. the initial implicit reference count
15967         users are holding on windows is removed with the first destruction
15968         though.
15969         (gtk_window_init): ref & sink and set has_user_ref_count, got
15970         rid of gtk_container_register_toplevel() call. add window to
15971         toplevel_list.
15972         (gtk_window_destroy): unref the window if has_user_ref_count
15973         is still set, got rid of call to
15974         gtk_container_unregister_toplevel().
15975         (gtk_window_finalize): remove window from toplevel list.
15976         (gtk_window_list_toplevels): new function to return a newly
15977         created list with referenced toplevels.
15978         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
15979
15980         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
15981         adjustment a non-construct arg.
15982         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
15983         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
15984         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
15985
15986         * gtk/gtkrange.c: added some realized checks.
15987         (gtk_range_destroy): get rid of the h/v adjustments in the
15988         destroy handler instead of finalize. remove timer.
15989         (gtk_range_get_adjustment): demand create adjustment.
15990
15991         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
15992         we simply create them on demand now and get rid of them in
15993         the destroy handler.
15994         (gtk_viewport_destroy): get rid of the h/v adjustments in the
15995         destroy handler instead of finalize.
15996         (gtk_viewport_get_hadjustment): 
15997         (gtk_viewport_get_vadjustment): 
15998         (gtk_viewport_size_allocate): demand create h/v adjustment
15999         if required.
16000
16001         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
16002         gtk_widget_real_destroy () functionality.
16003         (gtk_widget_real_destroy): reinitialize with a new style, instead
16004         of setting widget->style to NULL.
16005
16006 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
16007
16008         * gtk/gtkcalendar.c:
16009         * gtk/gtkbutton.c: ported _get_type() implementation over to
16010         GType, either to preserve memchunks allocation facilities,
16011         or because Gtk+ 1.0 GtkTypeInfo was still being used.
16012
16013         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
16014         over. prepare for ::destroy to be emitted multiple times.
16015         removed reference tracer magic. chain into GObjectClass.shutdown()
16016         to emit ::destroy signal.
16017
16018         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
16019         fundamental.
16020
16021         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
16022         cludge.
16023
16024         * gtk/gtksocket.c:
16025         * gtk/gtkplug.c:
16026         * gtk/gtklayout.c:
16027         * gtk/gtklabel.c:
16028         * gtk/gtkargcollector.c:
16029         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
16030         not being a fundamental anymore, and to work with the new
16031         type system (nuked fundamental type varargs clutter).
16032
16033         * gtk/*.c: install finalize handlers in the GObjectClass
16034         part of the class structure.
16035         changed direct GTK_OBJECT()->klass accesses to
16036         GTK_*_GET_CLASS().
16037         changed direct object_class->type accesses to GTK_CLASS_TYPE().
16038
16039         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
16040         GType. made most of the GTK_*() type macros and Gtk* typedefs
16041         simple wrappers around macros and types provided by GType.
16042         most notably, a significant portion of the old API vanished:
16043         GTK_TYPE_MAKE(),
16044         GTK_TYPE_SEQNO(),
16045         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
16046         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
16047         GTK_TYPE_ARGS,
16048         GTK_TYPE_CALLBACK,
16049         GTK_TYPE_C_CALLBACK,
16050         GTK_TYPE_FOREIGN,
16051         GtkTypeQuery,
16052         gtk_type_query(),
16053         gtk_type_set_varargs_type(),
16054         gtk_type_get_varargs_type(),
16055         gtk_type_check_object_cast(),
16056         gtk_type_check_class_cast(),
16057         gtk_type_describe_tree(),
16058         gtk_type_describe_heritage(),
16059         gtk_type_free(),
16060         gtk_type_children_types(),
16061         gtk_type_set_chunk_alloc(),
16062         gtk_type_register_enum(),
16063         gtk_type_register_flags(),
16064         gtk_type_parent_class().
16065         replacements, where available are described in ../docs/Changes-1.4.txt.
16066         implemented compatibility functions for the remaining API.
16067
16068         * configure.in: depend on glib 1.3.1, use gobject module.
16069
16070 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
16071
16072         * TODO.xml: Various updates to current status.
16073
16074 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
16075
16076         * gtk.m4: Print out version when test succeeds.
16077
16078 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
16079
16080         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
16081         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
16082         
16083         (Original triangle color selector from Simon Budig
16084         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
16085         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
16086         Santiago <mrcooger@cyberverse.com>)
16087
16088         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
16089         out into a separate widget.
16090
16091         * gtk/testgtk.c: Add some checkbuttons for toggling palette
16092         and opacity controls.
16093
16094 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
16095
16096         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
16097         snuck in prematurely.
16098
16099 2000-05-07  Tor Lillqvist  <tml@iki.fi>
16100
16101         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
16102         had deleted a ! operator by mistake, which caused
16103         GDK_SELECTION_CLEAR events never to be generated, which caused
16104         only the first copy to the clipboard from an gtkeditable to
16105         actually cause a copy to the Windows clipboard.
16106
16107 2000-05-06  Tor Lillqvist  <tml@iki.fi>
16108
16109         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
16110         compilation, too. Current mingw gcc distributions include the
16111         necessary headers. Also the necessary IIDs are now in mingw
16112         headers/libraries, and own definitions unnecessary.
16113
16114         More hacking on OLE2 DND, still doesn't work though, and thus
16115         ifdeffed out.
16116
16117         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
16118         here, too.
16119
16120 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
16121
16122         * gdk/nanox/*: nano-X port work in progress.
16123         * gdk/simple.c: simple test for Gdk.
16124         * README.nanox: notes about the port: read this first!
16125         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
16126         with nano-X.
16127
16128 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
16129
16130         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
16131         gdk_window_clear() into common code, implement in terms of
16132         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
16133         not redirected to the backing rectangle.
16134
16135 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
16136
16137         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
16138         EXTRA_DIST. It does not work well when the file that
16139         everything depends on is not in the tarball.
16140
16141 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
16142
16143         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
16144         with recursion where process_updates() is called from
16145         an expose handler. (GtkTextView is highly broken in
16146         doing this, but it should work, so it is a nice test
16147         case.)
16148
16149 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
16150
16151         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
16152         handle the case where updates are queued during processing of
16153         updates.
16154
16155 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
16156
16157         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
16158         window is on gdk_display - use that instead of segfaulting.
16159
16160 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
16161
16162         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
16163         broken and require an empty arg, give it to them.
16164
16165 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
16166
16167         * gtk/gtklabel.h: indentation fixes.
16168
16169 2000-05-02  Tor Lillqvist  <tml@iki.fi>
16170
16171         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
16172         draw too narrow or too low arcs, they seem to fail, at least with
16173         some display drivers.
16174
16175         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
16176
16177         Large changes to the Win32 backend, partially made necessary by
16178         the changes to the backend-independent internal
16179         structures. Attempts to implement similar backing store stuff as
16180         on X11. The current (CVS) version of the Win32 backend is *not* as
16181         stable as it was before the no-flicker branch was merged. A
16182         zipfile with that version is available from
16183         http://www.gimp.org/win32/. That should be use by "production"
16184         code until this CVS version is usable. (But note, the Win32
16185         backend has never been claimed to be "production quality".)
16186
16187         * README.win32: Add the above comment about versions.
16188
16189         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
16190
16191         * gdk/gdk.def: Update.
16192
16193         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
16194         presumably be replaced by some more better mechanism as 1.4 gets
16195         closer to release shape.
16196
16197         * gdk/makefile.{cygwin,msc}: Update.
16198
16199         * gdk/win32/*.c: Correct inclusions of the backend-specific and
16200         internal headers. Change code according to changes in these. Use
16201         gdk_drawable_*, not gdk_window_* where necessary.
16202
16203         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
16204         our old DND.
16205
16206         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
16207         to interpret single characters as UTF-8. Thanks to Hans Breuer.
16208         Use correct function name in warning messages.
16209
16210         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
16211         GSourceFuncs gdk_event_prepare and gdk_event_check.
16212         (gdk_event_get_graphics_expose): Do implement, use
16213         PeekMessage. Thanks to Hans Breuer.
16214         (event_mask_string): Debugging function to print an GdkEventMask.
16215         (gdk_pointer_grab): Use it.
16216
16217         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
16218         (old) book I used claimed was Hangul actually is CJK Unified
16219         Ideographs Extension A. Also, Hangul Syllables were missing.
16220         Improve logging.
16221
16222         * gdk/win32/gdkgc-win32.c: Largish changes.
16223
16224         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
16225         g_win32_getlocale() from GLib, and not setlocale() to get current
16226         locale name.
16227
16228         * gdk/win32/gdkprivate-win32.h
16229         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
16230         gdkwin32.h, similarily as in the X11 backend.
16231
16232         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
16233         assignment was used instead of equals in if test. Thanks to Hans
16234         Breuer.
16235
16236         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
16237         the X11 version.
16238
16239         * gdk/win32/makefile.{cygwin,msc}
16240         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
16241         path to the Win32 headers that works also with the mingw compiler.
16242
16243         * gtk/gtkstyle.c: Include <string.h>.
16244
16245 2000-04-26  Havoc Pennington  <hp@redhat.com>
16246
16247         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
16248         replacing the broken gtk_label_get ()
16249
16250 2000-04-15  Havoc Pennington  <hp@pobox.com>
16251
16252         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
16253         this keeps scanner scripts from getting confused.
16254
16255         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
16256         data, rather than void
16257
16258 2000-04-15  Tor Lillqvist  <tml@iki.fi>
16259
16260         * gtk/gtkclist.c (gtk_clist_motion)
16261         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
16262         with is_hint FALSE, get x and y from the event. They used to be
16263         used uninitialised. The Win32 backend never sends motion events
16264         marked as hints. This for instance fixes the annoying file and
16265         font selector behaviour in the Win32 version.
16266
16267 2000-04-14  Tor Lillqvist  <tml@iki.fi>
16268
16269         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
16270         gtk_private_n_signals variables, they are used by some software,
16271         sigh.
16272
16273         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
16274         installation directory from the Registry, where the installer
16275         should have put it.
16276
16277 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
16278
16279         * gdk/x11/Makefile.am: Fix problem with installation directory for
16280         gdkx.h
16281
16282         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
16283         <mrcooger@cyberverse.com> so that when selecting menus with the
16284         mouse, the first item will not be selected, but when selecting
16285         with an accelerator, or navigating left-right on a menubar with
16286         the menus popped up, the first item will be selected.
16287
16288 2000-04-05  Dan Damian  <dand@dnttm.ro>
16289
16290         * configure.in: Added "ro" to ALL_LINGUAS.
16291
16292 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
16293
16294         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
16295         indentation.
16296
16297         * Makefile.am (EXTRA_DIST): Fix typo.
16298
16299         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
16300         to catch gdkconfig.h
16301
16302         * gtk/gtkitemfactory.c: Added FIXME.
16303
16304 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
16305
16306         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
16307         s/return_if_fail/return_val_if_fail/g and add a return value.
16308
16309 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
16310
16311         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
16312         merge slipup.
16313
16314         * gdk/gdkinput.h: Fix missing line from merge.
16315
16316 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
16317
16318         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
16319         instead of gdkprivate.h.
16320
16321 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
16322
16323         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
16324         parent class to correctly be GtkDialogClass.
16325
16326 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
16327
16328         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
16329         toplevel windows and their immediate children by their parents,
16330         since the size of toplevel windows is out of our immediate
16331         control and we don't get any real benefit from trying to track
16332         this size for clipping.
16333
16334         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
16335         for input_only windows.
16336
16337         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
16338         to fix some hacks and make sure that we don't try to set the
16339         background of input only windows.
16340
16341 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
16342
16343         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
16344         the _really_ internal stuff, and leave gdkprivate.h for the fake private
16345         stuff that we've traditionally exposed.
16346
16347         * gdk/**.c: Use gdkinternals.h where appropriate.
16348
16349         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
16350         not include gdkprivate-x11.h, move all stuff of conceivable public
16351         interest into gdkx.h; keep all really private stuff in
16352         uninstalled header gdkprivate-x11.h.
16353
16354         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
16355         image->image_put on windows through a new function _gdk_window_draw_image()
16356         to allow us to do backing store for images. (Sort of ugly)
16357
16358         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
16359         contexts locally so that we can offset them properly when drawing 
16360         onto backing pixmaps.
16361
16362         * gdk/gdkinput.h: Reindented
16363
16364         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
16365         pixmap or color for the window, so we can properly initialize
16366         our double-buffer pixmaps, and also so that we temporarily set
16367         a background of None while scrolling.
16368
16369         * gdk/gdkregion.h: Revise region boolean operators to have an
16370         interface that is actually convenient - switch from creating new
16371         regions on every op, to "methods" that modify existing regions
16372         (A = A OP B). 3 argument forms which allow dest == src, would also
16373         be possible, but the current interfaces seem to map nicely
16374         onto what needs to be done. (There is quite a lot of region
16375         code in GDK now.)
16376
16377         * gdk/gdkregion.h: Add constructor from rectangle and a copy
16378         operator.
16379
16380         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
16381         gdkpoly-generic.h: Copy region code from Xlib, switch it over
16382         to 32 bit coordinates, modify it to be mostly GTK+ style
16383         and to have interfaces that match gdkregion.h.
16384
16385         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
16386         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
16387         create a backing pixmap and redirect all drawing to
16388         that backing pixmap until a matching gdk_window_end_paint().
16389
16390         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
16391         Create a special drawable class for GtkWindow's that 
16392         redirects the drawing to the backing pixmap as necessary
16393         and then calls the real operations in _gdk_windowing_window_class.
16394
16395         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
16396         Store invalid region for each window. Generate expose events for invalid
16397         region in an idle. This replaces both the expose compression
16398         and the redrawing queuing in GTK+. It is both more efficient and
16399         simpler than either one individually and far more so then the
16400         combination.
16401
16402         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
16403         Emulate 32 bit coordinates for windows with 16 bit coordinates
16404         by offsetting drawing, guffaw scrolling techniques and
16405         mapping/unmapping child windows as necessary.
16406
16407         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
16408         where, when invalid regions are processed, the region is stored,
16409         and if expose events come in that are detectably duplicate
16410         the processed exposes (by comparison of event serial numbers),
16411         the stored region is subtracted out of those exposes.
16412
16413         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
16414         regions newly exposed when scrolling or resizing windows.
16415         This, combined with forcing processesing of queued invalidated
16416         regions, gives nice flicker-free scrolling.
16417
16418         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
16419         invalidated regions after every scroll.
16420
16421         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
16422         emulation in GDK. Its, for all practical purposes just a
16423         GtkViewport/GtkFixed hybrid now.
16424
16425         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
16426         (16-bit) structures as necessary instead of just casting.
16427
16428         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
16429         in terms of the structures from gdkregion-generic.c, using appropriate
16430         offsets from GDK to X11 coordinates. Cache clip mask and
16431         origin and ts origin locally and only flush to the server
16432         when drawing, to avoid constantly setting and resetting these
16433         values when offsetting GC's for scrolling and backing pixmaps.
16434
16435         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
16436
16437         * gtk/gtkcontainer.c: Call process_all_updates at end
16438         of resizing to reduce flicker. (Avoids having redraw
16439         lag arbitrarily behind resize under some circumstances)
16440
16441         * gtk/gtkentry.c: Remove old backing store code, and simply take
16442         advantage of the new backing store capabilities of GDK.
16443
16444         * gtk/gtkmain.c: Simple implementation of widget backing
16445         store - simply push a paint while handling each expose.
16446         (Should really be configurable widget for widget.)
16447         
16448         * gtk/gtkwidget.c: Remove all the old complicated redraw
16449         code, and simply invalidate the GDK windows from
16450         gdk_window_queue_clear(), etc. (Sigh, so much carefully
16451         debugged complexity ... gone to the winds.)
16452
16453         Remove all the code for suppressing expose events while
16454         resizes are pending; this isn't needed since the invalid
16455         areas won't be processed until after the resizes are
16456         processed, since they are in a lower priority idle.
16457
16458 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
16459
16460         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
16461         and height of dest rectangle for non-intersecting rectangles.
16462
16463 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
16464
16465         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
16466         for GdkRectangle.
16467
16468 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
16469
16470         * gdk/gdk{events,image,private,types,window}.h
16471          gdk/x11/gdkinputprivate.h: Change all coordinates
16472          from int16 to int. Also, Change width and height from
16473          unsigned to signed to avoid all the stupid C 
16474          signedness bugs.
16475
16476 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
16477
16478         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
16479         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
16480         Add some more detailed checking.
16481
16482         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
16483         New function to retrieve the depth of a drawable.
16484
16485         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
16486         field, reorder fields to save memory. 
16487
16488 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
16489
16490         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
16491         of the background image instead of scaling the background down to
16492         a line.
16493
16494         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
16495         which temporarily set slider to wrong size.
16496
16497         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
16498         queue_clear().
16499
16500 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
16501
16502 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
16503
16504         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
16505
16506 2000-03-17  Tor Lillqvist  <tml@iki.fi>
16507
16508         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
16509         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
16510
16511         * gdk/win32/gdkfont-win32.c
16512         * gdk/win32/gdkproperty-win32.c
16513         * gdk/win32/gdkselection-win32.c
16514         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
16515         now declared such.
16516
16517 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
16518
16519         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
16520
16521 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
16522
16523         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
16524         is called without trapping X errors.
16525
16526 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
16527
16528         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
16529         way into the fontset lists.
16530
16531 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
16532
16533         * gtk/gtkthemes.h: add extern "C" scope.
16534
16535 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
16536
16537         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
16538         to make appends to the list constant. (gtk-guy-990901-0.patch)
16539
16540 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
16541
16542         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
16543         for the typename hash table.
16544
16545 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
16546
16547         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
16548         to make sure we never divide by zero. 
16549         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
16550
16551 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
16552
16553         * gtk/gtkfontsel.c: Apply patch from
16554         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
16555         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
16556
16557         Also, some cleanups in atom handling.
16558
16559 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
16560
16561         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
16562         not GtkWidget.
16563
16564 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
16565
16566         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
16567         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
16568         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
16569         more guint wrap-around bugs before going to bed.
16570
16571 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
16572
16573         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
16574         guint wrap arounds in allocation.width.
16575
16576         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
16577         process untill we fit the allocation given.
16578
16579 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
16580
16581         * gtk/gtkwidget.c:
16582         (gtk_widget_unrealize): guard widget access with ref/unref
16583         around signal emission.
16584         (gtk_widget_hide): same here, but also check its destroyed
16585         state before queueing a resize.
16586
16587 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
16588
16589         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
16590         of gtk_default_insensitive_bg as insensitive base color.
16591
16592         * gtk/gtktext.c (gtk_text_style_set): set the background color according
16593         to the widget's state.
16594         (gtk_text_realize): same here.
16595         (gtk_text_state_changed): same here.
16596         (draw_bg_rect): compare background color against base[] from
16597         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
16598
16599 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
16600
16601         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
16602         grabs are active, unless a delete event is send to the toplevel
16603         of the currently grab holding widget.
16604
16605 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
16606
16607         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
16608         debugging g_print's.
16609
16610 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
16611
16612         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
16613         ever make the scrolled-window requisition ever depend on the 
16614         visibility state of the scrollbars for the AUTOMATIC policy. 
16615         This breaks the GTK+ requisition model, and causes loops.
16616
16617 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
16618
16619         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
16620         the default font to avoid problems with XFree86-4.0 where the
16621         default charset is iso10646-1, not iso8859-1.
16622
16623 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
16624
16625         * acinclude.m4
16626         * config.guess
16627         * config.sub
16628         * ltconfig
16629         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
16630
16631         * gtk/Makefile.am: minor cosmetic consistency tweak
16632
16633 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
16634
16635         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
16636         the activate_time to 0, so that we handle a quick
16637         press/release press/release properly and don't suppress
16638         the second release. (Red Hat bug #7545)
16639
16640 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
16641
16642         * gtk/gtkctree.c (row_delete):
16643         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
16644         bugs with destruction notifier, *always* update internal
16645         structures *before* calling user code.
16646
16647 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
16648
16649         A few more fixes for bug #5487, #2051, #2677.
16650         * gtk/gtkclist.c : 
16651         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
16652         not GDK_BUTTON_PRESS.
16653         (resync_selection): resync only if selection_mode is
16654         GTK_SELECTION_EXTENDED
16655         * gtk/gtkctree.c (resync_selection): same here
16656
16657 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
16658
16659         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
16660         gdk_drag_get_selection() and gtk_menu_detach().
16661
16662         [ From Jeroen Ruigrok/Asmodai ]
16663
16664 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
16665
16666         * gtk/gtknotebook.c (gtk_notebook_size_request): 
16667         page->tab_label can be NULL.
16668
16669 2000-01-25  Havoc Pennington  <hp@pobox.com>
16670         
16671         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
16672         arg is boolean
16673
16674         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
16675
16676         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
16677
16678         * gdk/gdkproperty.c (gdk_property_get): return boolean
16679
16680         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
16681
16682         * gdk/gdkim.c (gdk_im_ready): return boolean
16683
16684         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
16685
16686         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
16687         glib clash, should fix glib)
16688
16689         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
16690         (gdk_get_show_events): return gboolean, and canonicalize 
16691         to TRUE/FALSE
16692
16693         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
16694         colormap is private
16695         (gdk_colors_alloc): gboolean whether to be contiguous
16696         (gdk_color_equal): return gboolean since we are a predicate
16697         and not a qsort() (this looks semi-wrong due to glib breakage,
16698         IMO glib should be fixed)
16699         
16700         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
16701         (gdk_get_use_xshm): return gboolean
16702         (gdk_pointer_is_grabbed): return gboolean
16703
16704         * gdk/gdk.h: Change prototypes to match all the above changes,
16705         and re-run egtk-format-protos as required.
16706
16707 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
16708
16709         * gtk/gtkctree.c (resync_selection): 
16710         * gtk/gtkclist.c (resync_selection):
16711
16712         Return immediately if clist->drag_pos < 0. This is a workaround
16713         for the corrupt state that the clist gets into when a
16714         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
16715
16716         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
16717         
16718         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
16719         variable from recent commit.
16720
16721 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
16722
16723         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
16724
16725 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
16726
16727         * gtk/Makefile.am: prefix all autogenerated source that get build in
16728         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
16729         in builddir. since we subsequently cd into srcdir for autogeneration,
16730         the paths have to be stripped from the target file names, thusly we
16731         use $(@F) as target names now.
16732         put a comment about configure.in's --disable-rebuilds option,
16733         which can be used for non-writable source directories, for development
16734         setups though, srcdir has to be *writable*.
16735
16736 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
16737
16738         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
16739           Finish the job of allowing event to be NULL.
16740           (Fixes bug #4283, reported by Chris Blizzard)
16741
16742         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
16743           things so that the cursor appears on screen, properly
16744           take into account INNER_BORDER.
16745           (Fixes bug #4754, reported by Antonio Campos)
16746
16747 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
16748
16749         * gtk/gtknotebook.c (gtk_notebook_map): Don't
16750           show the tab_label unless it itself is visible.
16751
16752           gtk/gtknotebook.c (gtk_notebook_size_request):
16753           Do a better job of making sure that the visibility
16754           of the tab label corresponds to whether it should
16755           be mapped or not.
16756
16757 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
16758
16759         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
16760           Use the requisition, not the allocation, since the
16761           allocation has not necessarily been computed yet.
16762           (Pointed out by Eugene Osintsev)
16763
16764 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
16765
16766         * gtk/gtkstyle.c (gtk_style_new): Dont' set
16767           style/base[GTK_STATE_INSENSITIVE] both to
16768           gtk_default_insensitive_bg!
16769           (Bug #2187, reported by Jonathan Blandford)
16770
16771         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
16772           Add Alt_L, Alt_R to list of invalid accelerators.
16773           (Bug #3736, reported by Vlad Harchev)
16774
16775 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
16776
16777         * gtk/gtkfilesel.c (open_ref_dir): Fix several
16778         bugs which occured after an attempt to open 
16779         invalid home directory left cmpl_state->reference_dir == NULL.
16780
16781          - completion on files in home directory didn't work
16782          - completion on an empty string caused  segfault
16783
16784          (Bug #3678, reported by Steve Ratcliffe)
16785
16786         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
16787         cut and paste error that was causing scales to
16788         be incorrectly positioned.
16789         (Bug #2956,
16790          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
16791
16792 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
16793
16794         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
16795         when checking for dcgettext, if we've found we needed
16796         it for dgettext.
16797 +
16798 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
16799
16800         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
16801         queue_clear on NO_WINDOW widgets during a reparent,
16802         since at that point the window and widget heirarchies
16803         are out of sync. This stops crashing in some cases
16804         (the scrolled window reparent test, for instance), and
16805         _probably_ won't cause drawing errors.
16806
16807         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
16808         test do what it was supposed to do and be robust against
16809         window closings, etc. (Bug #2443)
16810
16811 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
16812
16813         * gtk/gtkentry.c: Fix return values on mouse events.
16814         (Bug #2686, Sky <seb_sky@yahoo.com>)
16815
16816         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
16817         (pointed out by George Lebl)
16818
16819         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
16820         (From Ettore Perazzoli  <ettore@helixcode.com>)
16821  
16822 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
16823
16824         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
16825         clicks between rows or outside calender area correctly.
16826         (Patch from Damon Chaplin)
16827
16828         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
16829         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
16830           Call destroy function when overwriting existing data. 
16831           (Pointed out by Damon Chaplin)
16832
16833 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
16834
16835         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
16836           which was causing problems on various systems with Xmu.
16837           This hasn't been needed for a very long time.
16838           (Fixes #1185 3167)
16839
16840 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
16841
16842         * gdk/gdki18n.h: Include <ctype.h> when defining
16843           gdk_isw* in terms of is* as a fallback.
16844           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
16845
16846 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
16847
16848         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
16849           realize the widget when it is size allocated!
16850           (old, old bug)
16851
16852         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
16853           Removed unused call to gdk_window_get_size() that
16854           showed up when the above was fixed.
16855
16856 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
16857
16858         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
16859           fix up widget->window when the widget is a
16860           NO_WINDOW container widget.
16861
16862 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
16863
16864         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
16865           to account for the fact that feof() does _not_ 
16866           return TRUE on errors, and thus avoid infinite loops
16867           when trying to use gdk_pixmap_create_from_xpm()
16868           on unreadable values.
16869
16870 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
16871
16872         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
16873
16874 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
16875
16876         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
16877           gdk_gc_set_dashes to take gint8 instead of gchar to
16878           make it clearer that it is _not_ a NULL terminated string.
16879
16880         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
16881           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
16882           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
16883           arguments.
16884
16885 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
16886
16887         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
16888         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
16889         background size relative to our allocation, guard against small
16890         allocations, we may have not yet been size allocated.
16891
16892 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
16893
16894         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
16895         not just version == 3. We implement all 3 + most of 4 - 
16896         (we don't support matching text/plain;charset=iso-8859-1
16897         to a dest that expects text/plain). We'll still advertise
16898         3 to be safe, but any client implementing version >= 3
16899         must interoperate with 3.
16900         
16901 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
16902
16903         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
16904         background and gc members, add a warning in gtk_tooltips_set_color()
16905         indicating that this function is deprecated.
16906
16907 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
16908
16909         * docs/gtkfaq.sgml: FAQ Update:
16910           - Minor cleanups (Emmanuel, me)
16911           - New questions:
16912                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
16913                 How can I retrieve the text from a GtkMenuItem? (timj)
16914                 How do I validate/limit/filter the input to a GtkEntry? (me)
16915                 Memory does not seem to be released when I free the list
16916                         nodes I've allocated (timj)
16917
16918 2000-03-07  Tor Lillqvist  <tml@iki.fi>
16919
16920         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
16921         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
16922         for which it is no use to call GetLastError onWin9x.
16923         (gdk_other_api_failed) New function, for general error
16924         reporting without calling GetLastError.
16925         (gdk_win32_api_failed) OTOH, this function always calls
16926         GetLastError. (gdk_win32_last_error_string) Remove this function,
16927         GLib has the equivalent now.
16928
16929         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
16930         call them with function name, file name and line number in the
16931         arguments.
16932
16933         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
16934         functions.
16935         
16936         * gtk/gtk.def: Add some missing entry points.
16937
16938         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
16939         gtk_paned_set_gutter_size, which don't exist any longer, as void.
16940         
16941         Fixes by Hans Breuer:
16942
16943         * gdk/makefile.msc: Update for debugging.
16944
16945         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
16946         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
16947         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
16948         in the dash_list.
16949
16950         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
16951         the x11 backend.
16952
16953         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
16954
16955         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
16956
16957 2000-03-04  Tor Lillqvist  <tml@iki.fi>
16958
16959         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
16960         just pixel value of background colour.
16961
16962         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
16963         containing code snippet previously duplicated in a couple of
16964         places.
16965         
16966         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
16967         gdk_colormap_color.
16968
16969         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
16970         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
16971         events for autorepeated Shift, Control and Alt keys. Use
16972         gdk_colormap_color.
16973
16974         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
16975         pointer is inside the window the cursor of which we are setting,
16976         call SetCursor immediately.
16977
16978         * gdk/win32/makefile.cygwin
16979         * gtk/makefile.cygwin: If we don't have the build number stamp
16980         file, use zero.
16981
16982         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
16983         gtk_paned_set_gutter_size as empty.
16984
16985         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
16986         
16987 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
16988
16989         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
16990           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
16991           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
16992           docs/gtk_tut.sgml docs/gtk.texi TODO:
16993
16994           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
16995
16996 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
16997
16998         * gtk/gtkcalendar.c: Implement num_marked_dates,
16999           and don't emit mutiple day_selected signals on
17000           month_prev.
17001
17002 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
17003
17004         * docs/make-todo (lineno): let title and logo be configurable so
17005         that GNOME can use this script too.
17006
17007         * TODO.xml: added logourl and a title
17008
17009 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
17010
17011         * TODO.xml: Added some UI items, and an explanatory
17012         comment at the top of the file.
17013
17014 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
17015
17016         * TODO.xml: some updates, added abunch of new entries.
17017         a note for those fiddeling with this file, when done
17018         with it, invoke:
17019         $ ./docs/make-todo TODO.xml >/dev/null
17020         and correct output errors before comitting changes.
17021
17022 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
17023
17024         * TODO.xml: Added XML-structured TODO file.
17025         * docs/make-todo: python script to turn TODO.xml into
17026           pretty XML output. 
17027
17028 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
17029
17030         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
17031         the function to let it draw the seven dots, instead of the old,
17032         much maligned, method.
17033         (draw_dot): New function to draw a dot.
17034
17035         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
17036         to draw the handle inside the border width as opposed to outside.
17037         Use paint function instead of gdk_draw_point.
17038
17039         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
17040         to draw the handle inside the border width as opposed to outside.
17041         Use paint function instead of gdk_draw_point.
17042
17043         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
17044         Change indenting to be more GTK like.
17045
17046 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
17047
17048         * docs/gtk_tut.sgml: New section on GtkCalendar
17049         * examples/calendar: Update example code
17050
17051 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
17052
17053         * docs/gtkfaq.sgml: FAQ Update
17054
17055 2000-02-19  Anders Carlsson  <andersca@gnu.org>
17056
17057         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
17058         to prevent the scroll event to be propagated upwards.
17059
17060 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
17061
17062         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
17063         OwnerGrabButtonMask from button entries for
17064         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
17065
17066         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
17067         to the event mask (which will result in button/press release
17068         being added to the event mask on Unix) so scrolling works
17069         for layouts in scroll windows.
17070
17071         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
17072
17073         Patch from Anders Carlsson  <andersca@gnu.org> to add
17074         a scroll event.
17075
17076         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
17077         scrolling to the "Test Scrolling" part of testgtk.
17078  
17079         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
17080  
17081         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
17082         it against GDK_SCROLL.
17083  
17084         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
17085         way of mouse wheel scrolling.
17086  
17087         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
17088  
17089         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
17090  
17091         * gtk/gtkmain.c: Removed previous mouse wheel hack.
17092  
17093         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
17094         gdk_event_mask_table.
17095  
17096         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
17097         GdkEventScroll handler.
17098  
17099         * gdk/gdkevents.h: Added GdkEventScroll structure.
17100  
17101 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
17102
17103         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
17104         and Anders Carlsson to change the Paned widgets so that they
17105         can be dragged from anywhere along the length. Also change
17106         the way that this is drawn to make this apparent.
17107
17108         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
17109         from George Lebl to check that option_menu->menu is present
17110         before getting history.
17111
17112 2000-02-14  Tor Lillqvist  <tml@iki.fi>
17113
17114         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
17115         before the assertion for non-NULL segment list.
17116
17117         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
17118         Seems that pattern brushes *must* be 8x8 pixels! At least on my
17119         machine, but it might be display driver dependent. Sigh, so make
17120         sure the stipple is that size. Does Windows suck or what?
17121
17122         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
17123         places.
17124
17125 2000-02-13  Havoc Pennington  <hp@pobox.com>
17126
17127         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
17128         refcount to 1
17129         (gdk_cursor_new): init refcount to 1
17130
17131         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
17132
17133 2000-02-13  Tor Lillqvist  <tml@iki.fi>
17134
17135         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
17136         so that we don't have to do unnecessary settings to the HDC.
17137
17138         * gdk/win32/gdkdrawable-win32.c
17139         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
17140         gdk_gc_predraw.
17141
17142         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
17143         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
17144         GDI paths, call WidenPath to get the outline of the stroken path,
17145         and then fill the outline (with the brush that was built from the
17146         stipple).
17147
17148         * gdk/win32/gdkgc-win32.c: Factor out common code from
17149         _gdk_win32_gc_new and gdk_win32_gc_set_values into
17150         gdk_win32_gc_values_to_win32values. Use correct colour for
17151         SetBkColor() (Until now the code actually used a random colour in
17152         the call to SetBkColor()... but that didn't show up as not many
17153         GDI APIs use the background colour. Pattern (opaque stippled)
17154         brushes do.)
17155
17156         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
17157         gdk_win32_api_failed): New functions for error logging.
17158
17159         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
17160         WIN32_API_FAILED to call them, passing function or file name and
17161         line number.
17162
17163         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
17164
17165         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
17166         GdkColor for foreground and background in GdkGCWin32Data.
17167
17168         * gdk/makefile.cygwin: Link in the resource object separately.
17169
17170         * gdk/win32/rc/gdk.rc
17171         * gtk/gtk.rc (New file)
17172         * gdk/win32/makefile.cygwin
17173         * gtk/makefile.cygwin: Update build number in DLLs automatically,
17174         as in GLib.
17175
17176 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
17177
17178         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
17179         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
17180         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
17181         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
17182         parameters given and cursor->ref_count. coding style fixups.
17183
17184         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
17185         not GtkWidget.
17186         
17187         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
17188         fix up widget macros and add _GET_CLASS() variant.
17189         
17190         * gtk/*.c: some GtkType fixups.
17191
17192 2000-02-09  Tor Lillqvist  <tml@iki.fi>
17193
17194         * gdk/win32/gdkproperty-win32.c
17195         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
17196         were reversed.
17197
17198 2000-02-04  Tor Lillqvist  <tml@iki.fi>
17199
17200         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
17201         g_filename_to_utf8 to convert the font names Windows gives us from
17202         whatever is the default codepage to UTF-8.
17203         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
17204         in the other direction.
17205
17206         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
17207         error in debugging output.
17208
17209 2000-02-02  Tor Lillqvist  <tml@iki.fi>
17210
17211         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
17212         and height parameters to gdk_window_clear_area(). Not minus one.
17213
17214 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
17215
17216         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
17217         checks if the widget passed to gtk_drag_get_data() was not the
17218         dest widget.
17219
17220 2000-02-01  Tor Lillqvist  <tml@iki.fi>
17221
17222         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
17223         g_filename_from_utf8 functions (which were added a moment ago to
17224         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
17225         size buffers.
17226
17227         gtk_file_selection_get_filename returns the filename in the C
17228         runtime encoding. It calls g_filename_from_utf8, but copies the
17229         returned string to a static buffer, which is returned. I think
17230         this is better than returning the result from g_filename_from_utf8
17231         directly, which would mean all apps that use it would have to free
17232         the return value. Or should this function care about this issue at
17233         all? Maybe a new function with clearly defined semantics.
17234
17235         * gtk/gtkfilesel.h: Add comment about
17236         gtk_file_selection_get_filename returning the filename in the C
17237         runtime's encoding.
17238
17239         * README.win32
17240         * gdk/gdk.def
17241         * gdk/makefile.{cygwin,msc}
17242         * gtk/gtk.def: Updates.
17243
17244         * gdk/gdkcursor-win32.c: Initialise refcount.
17245
17246 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
17247
17248         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
17249
17250 2000-01-30  Havoc Pennington  <hp@pobox.com>
17251
17252         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
17253         destroy
17254
17255         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
17256
17257         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
17258         implemented in platform-specific code
17259
17260         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
17261
17262         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
17263         underscore in front
17264
17265         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
17266         put an underscore in front
17267
17268         * gdk/gdkcursor.c: new file, implements
17269         gdk_cursor_ref/gdk_cursor_unref
17270
17271         * gdk/gdkcursor.h: Refcount GdkCursor
17272
17273         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
17274
17275 2000-01-29  Tor Lillqvist  <tml@iki.fi>
17276
17277         * gdk/gdkwindow.h
17278         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
17279
17280 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
17281
17282         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
17283         structures to properly inherit from GtkWidget not GtkBin.
17284
17285 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
17286
17287         * gtk+.spec.in: Added lib/gtk+/include/* to %files
17288         (bug #5178 - Peter Wainright)
17289         
17290         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
17291         so that it will be installed.
17292         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
17293
17294 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
17295
17296         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
17297         for the GtkStyleClass vtable const.
17298
17299         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
17300         take a const string argument like GtkTranslateFunc. This will
17301         require changes in use code.
17302
17303 2000-01-19  Tor Lillqvist  <tml@iki.fi>
17304
17305         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
17306         semantics (to mimic the X11 backend, which just calls XClearArea)
17307         is to check for zero width (and height), and in that case use the
17308         window's width minus x (height minus y). This fixes for instance
17309         some redraw problems with gtkclist, which were easily noticeable
17310         in the gtk file selection widget.
17311
17312         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
17313         windows.
17314
17315 2000-01-13  Tor Lillqvist  <tml@iki.fi>
17316
17317         * configure.in
17318         * gdk/Makefile.am
17319         * gdk/x11/Makefile.am
17320         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
17321         (bug #5177).
17322         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
17323         out later.
17324
17325 2000-01-09  Tor Lillqvist  <tml@iki.fi>
17326
17327         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
17328         WM_MOVE for iconified or invisible windows. This fixes various
17329         problems when minimising windows. Thanks to Bernd Herd.
17330
17331 2000-01-05  Tor Lillqvist  <tml@iki.fi>
17332
17333         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
17334         backend's draw_lines method, not draw_points.
17335
17336 2000-01-02  Tor Lillqvist  <tml@iki.fi>
17337
17338         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
17339         before Owen's reorganisation: Don't have queued_events and
17340         queued_tail statics in this file, but use gdk_queued_events and
17341         gdk_queued_tail. This makes exposure event compression work again.
17342
17343         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
17344         seem to be needed?
17345
17346 1999-12-30  Tor Lillqvist  <tml@iki.fi>
17347
17348         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
17349         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
17350         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
17351         doesn't do anything.
17352
17353         * gdk/gdk.def: Add gdk_xid_table_insert.
17354
17355         * gdk/win32/gdkprivate-win32.h
17356         * gdk/win32/gdkevents-win32.c
17357         * gdk/win32/gdkinput-win32.c
17358         
17359         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
17360         extension_events field in the GdkWindowWin32Data struct. Use only
17361         the extension_events field in GdkWindowPrivate. Previously one was
17362         set, and the other one tested, which broke tablet
17363         functionality. Thanks to Keishi Suenaga for pointing this out.
17364
17365 1999-12-18  Tor Lillqvist  <tml@iki.fi>
17366
17367         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
17368         When handling a single character (text length == 1), don't handle
17369         it as if it was UTF-8.
17370
17371 1999-12-11  Tor Lillqvist  <tml@iki.fi>
17372
17373         * Makefile.am: Distribute README.win32.
17374         
17375         * gdk/Makefile.am
17376         * gdk/win32/Makefile.am: Distribute Win32 files.
17377
17378         * gdk/makefile.msc: New file.
17379
17380         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
17381         after label).
17382
17383         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
17384         gdk_error_code as GDKVAR, as they are referred outside GDK.
17385
17386         * gdk/win32/makefile.msc: Update.
17387
17388         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
17389         tweaks. Check only if at least one of those Unicode subrange bits
17390         we care for is set. If no code page bits are set, guess (wildly)
17391         based on the charset.
17392
17393         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
17394
17395         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
17396         non-NULL.
17397
17398         * gtk/gtkdnd.c
17399         * gtk/gtklayout.c
17400         * gtk/gtkplug.c
17401         * gtk/gtkselection.c
17402         * gtk/gtksocket.c
17403         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
17404         appropriate. There must be a cleaner way to handle this?
17405
17406         * gtk/gtkrc.c: Must include windows.h on Win32.
17407
17408         * gtk/testgtk.c: No need to include gdkx.h.
17409
17410         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
17411
17412 1999-12-07  Tor Lillqvist  <tml@iki.fi>
17413
17414         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
17415         the rbearing is set to the same as the width, but this should be
17416         fixed.
17417
17418 1999-12-06  Tor Lillqvist  <tml@iki.fi>
17419
17420         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
17421         function. If Windows doesn't tell us what Unicode subranges a font
17422         covers, guesstimate based on the codepages it covers. This will
17423         hopefully help those Windows versions or fonts that don't give us
17424         any useful Unicode subrange information with GetTextCharsetInfo.
17425         Call this function in gdk_font_load_internal.
17426
17427         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
17428         minor changes.
17429
17430 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
17431
17432         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
17433         New function, long needed.
17434
17435 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
17436
17437         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
17438         only_if_exists argument of gdk_atom_intern to
17439         bool.
17440
17441 1999-11-25  Tor Lillqvist  <tml@iki.fi>
17442
17443         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
17444         Fix two copy&paste errors.
17445
17446         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
17447         win32 has changed.
17448
17449         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
17450         GdkWin32SingleFont struct.
17451
17452         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
17453         subranges of loaded fonts. Clear font signature first, in case
17454         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
17455         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
17456
17457         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
17458         Unoffset clip region.
17459
17460 1999-11-23  Tor Lillqvist  <tml@iki.fi>
17461
17462         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
17463         event->any.window before calling filter functions.
17464
17465 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
17466
17467         * gtk/gtkgamma.h: Adapt cast macros to standard.
17468
17469 [ Merges from 1.2 ]
17470
17471 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
17472
17473         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
17474         If translation does not include a '/', use entire
17475         translation instead of crashing.
17476
17477 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
17478
17479         * docs/gtk_tut.sgml:
17480         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
17481
17482 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
17483
17484         * gtk/gtkselection.c (gtk_target_list_remove): Use
17485         g_list_remove_link, not g_list_remove.
17486
17487         [ From Geert Bevin <gbevin@thunderstorms.org> ]
17488         
17489 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
17490
17491         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
17492         statement upon unselection (how the heck did that slip in?).
17493
17494 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
17495
17496         * gtk/gtktext.c (gtk_text_freeze): 
17497         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
17498         in frozen state (and aparently crashes). patch provided by Anders
17499         Melchiorsen <and@kampsax.dtu.dk>.
17500
17501 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
17502
17503         * fix insensitive default/focus widget activation,
17504         reported by Matt Goodall <mgg@isotek.co.uk>.
17505
17506         * gtk/gtkwindow.c (gtk_window_key_press_event): 
17507         (gtk_window_activate_default):
17508         (gtk_window_activate_focus):
17509         return handled=FALSE for actiavtion of insensitive default
17510         widgets. return handled=TRUE for activation of insensitive
17511         focus widgets. don't activate in either case.
17512
17513 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
17514
17515         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
17516         and $glib_cflags to match library order and in the
17517         theory that an old version of GLib is more likely to
17518         be in the include directory for X then vice-versa.
17519         (Bug #2776)
17520
17521 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
17522
17523         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
17524         to determine the locale for fontsets, not LC_MESSAGES;
17525         the user may want English messages with a handling
17526         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
17527         will still be broken) (Bug #2891)
17528
17529 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
17530
17531         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
17532
17533 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
17534
17535         * gtk/gtkrc.ko: Changed the Korean default fontset.
17536
17537 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
17538
17539         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
17540         where when scrolling to the left or top double exposes
17541         were done, causing major slowdowns.
17542
17543 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
17544
17545         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
17546         names to lowercase and alphanumeric, before looking
17547         them up.
17548
17549         * gtk/Makefile.am: Install codeset variant gtkrc files
17550         with normalized names.
17551
17552 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
17553
17554         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
17555         popup menus when the menu is already visible, but its parent
17556         is still hidden, (happens after tornoff window got hidden).
17557
17558 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
17559
17560         * gtk/Makefile.am (install-data-local): Fix
17561         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
17562         deleted, causing error messages on install.
17563
17564 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
17565
17566         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
17567         the handle as well, since we now sometimes ignore
17568         exposes on the handle while resizing.
17569
17570 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
17571
17572         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
17573         extra g_free introduced in one of the last one or two 
17574         commits.
17575
17576 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
17577
17578         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
17579         consistent, put each style that a gtkrc.* file creates
17580         in a unique namespace, remove old files before installing.
17581
17582 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
17583
17584         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
17585         gtk_rc_init is called multiple times. (Yes, people who
17586         do that have bugs in their code.)
17587
17588 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
17589
17590         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
17591         Remove it since it's generated by the Makefile anyway
17592
17593 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
17594
17595         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
17596         device->info.axes for core pointer.
17597
17598 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
17599
17600         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
17601         idle_id, to deal with obsolete, broken C libraries.
17602
17603 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
17604
17605         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
17606         allocation->x/y twice!
17607
17608         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
17609         consistent with gtk_vscale_pos_trough().
17610
17611 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
17612
17613         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
17614         be queueing a resize on a toplevel container between
17615         the time we show it and when we map it. So, we need
17616         to test GTK_WIDGET_VISIBLE() for toplevels, and only
17617         use GTK_WIDGET_DRAWABLE() for child windows.
17618
17619 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
17620
17621         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
17622         (fixes bug #2144)
17623
17624 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
17625
17626         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
17627         container DRAWABLE (instead of VISIBLE), so we don't queue
17628         resizes on non-toplevel containers.
17629
17630 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
17631
17632         * gtk/gtkselection.[ch]: Make the data argument
17633         const guchar *.
17634
17635 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
17636
17637         * gtk/gtkwindow.c: Try to behave sensibly if 
17638         the focus widget is the window itself. (Should
17639         we allow this at all?)
17640
17641 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
17642
17643         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
17644         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
17645         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
17646         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
17647         in prototypes and implementations consistent (Tomas Ogren).
17648
17649         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
17650         before the widget is unparented (reported by damon).
17651
17652         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
17653         since we provide unsigned data anyways.
17654
17655 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
17656
17657         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
17658         the call to gtk_tooltips_layout_text() until later.
17659
17660         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
17661         Call gtk_widget_ensure_style() before using the style.
17662
17663 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
17664
17665         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
17666         for old widgets that don't propagate draws to all
17667         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
17668
17669 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
17670
17671         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
17672         for a redraw but just the widget that requested the resize.
17673
17674 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
17675
17676         * gtk/gtkcontainer.c: added new widget level method
17677         gtk_container_set_reallocate_redraws() and a GtkContainer flag
17678         reallocate_redraws : 1 to reflect the setting, exported this through
17679         the argument system as a boolean ::reallocate_redraws.
17680
17681         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
17682         on the widget because the allocation changes, do so as well for
17683         widget->parent if the parent has reallocate_redraws set to TRUE.
17684         with that containers requesting reallocation redraws get automatically
17685         redrawn if their children changed allocation (this unfortunately
17686         affects also other children that didn't change allocation, but we
17687         cannot work around that before 1.3).
17688
17689 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
17690
17691         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
17692         _and_ height are >0 (not _or_).
17693
17694         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
17695         instead of gtk_container_queue_resize(), which is a core gtk internal
17696         function (must have been on crack when i queued that).
17697
17698         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
17699         we can check more reliably if we want to discard expose events.
17700         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
17701         flag.
17702         
17703         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
17704         we simply trust these events. for deciding whether to discard exposes,
17705         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
17706         
17707 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
17708
17709         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
17710         queues of areas that are completely off screen.
17711
17712         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
17713         logic for handleboxes.
17714
17715         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
17716         check on width/height.
17717
17718 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
17719
17720         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
17721         we are fine with using $@ the way we do (if we actually encounter
17722         brokeness with $@ in VPATH builds because of additional path prefixes,
17723         we need to use $(@F) actually).
17724
17725 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
17726
17727         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
17728         short lived bugs, that would allow language bindings to do surgeries
17729         to our guts.
17730
17731 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
17732
17733         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
17734         where comparison was being done against an uninitialized
17735         value causing intermittant results depending on
17736         compiler flags. Also make it clearer that we aren't
17737         ever initializing the child as 0x0 (though this will
17738         be caught in gtk_widget_size_allocate())
17739
17740 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
17741
17742         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
17743         gtk_window_unset_transient_for() call after we do checks
17744         involving the old transient parent.
17745         [ From Lance Capser <lmc@cyberhighway.net> ]
17746
17747 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
17748
17749         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
17750         an empty file.
17751
17752 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
17753
17754         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
17755         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
17756
17757 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
17758
17759         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
17760         `$@' is valid only in the build dir, not after we've done 
17761         `cd $srcdir'.  Also use `test -f' instead of less portable
17762         `test -e'.
17763
17764 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
17765
17766         * gtk/gtktext.c (correct_cache_insert): Rewrite
17767          for simplicity, and hopefully correctness.
17768          (Fixes bug #1322, which was a segfault when
17769           on some insertions with the properties around
17770           the insertion set up just wrong.)
17771
17772         * gtk/gtktext.c (gtk_text_adjustment): When we receive
17773          a "changed" signal, clamp the new value to the adjustment
17774          bounds to avoid segfaulting if someone tries to change
17775          the adjustment to a bogus value. (Bug #1795)
17776
17777 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
17778
17779         * gtk/gtkmain.c: Ignore unexpected destroy notifies
17780         for children, for toplevel windows handle them
17781         like delete_event.
17782
17783         * gtk/gtkplug.c: Add an unrealize handler so that
17784         we unref plug->socket_window when we are done
17785         with it.
17786
17787 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
17788
17789         * gtk/gtktext.c (clear_area): Fix stupid signedness
17790          problem that was causing background to sometimes
17791          be misaligned.
17792
17793 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
17794
17795         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
17796         
17797         * gtk/gtkmenu.c (gtk_menu_position): Make
17798          sure we never position menus with negative x, y,
17799          since gtk_widget_set_uposition() can't handle that.
17800
17801         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
17802          Modify the positioning code a bit so that we always
17803          put the top-left corner onscreen. (This is for
17804          UI reasons, gtk_menu_position() now takes care of
17805          gtk_widet_set_uposition() brokeness.)
17806
17807 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
17808
17809         * gtk/Makefile.am: fixed up things for -jx, x > 1.
17810
17811 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
17812
17813         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
17814           RC style that is passed in. The lack of the ref
17815           before was a bug. If people worked around this
17816           bug, this will introduce a slight memory leak
17817           in their code. The code should typically look like:
17818
17819             rc_style = gtk_rc_style_new ();
17820             [...]
17821             gtk_widget_modify_style (widget, rc_style);
17822             gtk_rc_style_unref (rc_style);
17823
17824         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
17825           the style if it was already set.
17826
17827         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
17828           style if it was set before.
17829
17830 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
17831
17832         * gtk/testgtk.c (main): Add a check to see if we
17833           are being run from the correct directory and
17834           to quit nicely if we are not.
17835
17836         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
17837           static.
17838
17839 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
17840
17841         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
17842
17843         * gtk/gtkwindow.c:
17844         queue resizes unconditionally (gtk_widget_queue_resize will figure
17845         what to do if the window is not realized).
17846         (gtk_window_move_resize): only recenter the window
17847         for GTK_WIN_POS_CENTER_ALWAYS.
17848         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
17849         the same way as GTK_WIN_POS_CENTER.
17850
17851 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
17852
17853         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
17854         with (!(info->last_flags & GDK_HINT_POS)) instead of
17855         (!info->last_flags & GDK_HINT_POS).
17856
17857         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
17858         new_height unconditionally, because we use these values even if
17859         !default_size_changed && !hints_changed.
17860         comented the (default_size_changed || hints_changed) case with
17861         respect to resize rejects from the window manager.
17862
17863         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
17864         in the zvt condition hack, since this includes the window hints, set
17865         the hints after the handling_resize case.
17866
17867         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
17868         window is initially shown with to the geometry.
17869
17870 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
17871
17872         * gtk/gtkwindow.c (gtk_window_move_resize):
17873         s/size_changed/default_size_changed/g so i know what's
17874         really going on (frying brain on smaller flame now).
17875
17876 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
17877
17878         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
17879         we have size_changed upon handling_resize. this is a gross
17880         workaround for the broken zvt widget and should be removed in
17881         1.3 again (search for FIXME).
17882         Owen provided an accurate comment for this:
17883
17884         /* We could be here for two reasons
17885          *  1) We coincidentally got a resize while handling
17886          *     another resize.
17887          *  2) Our computation of size_changed was completely
17888          *     screwed up, probably because one of our children
17889          *     is broken. It's probably a zvt widget.
17890          *
17891          * For 1), we could just go ahead and ask for the
17892          * new size right now, but doing that for 2)
17893          * might well be fighting the user (and can even
17894          * trigger a loop). Since we really don't want to
17895          * do that, we requeue a resize in hopes that
17896          * by the time it gets handled, the child has seen
17897          * the light and is willing to go along with the
17898          * new size. (this happens for the zvt widget, since
17899          * the size_allocate() above will have stored the
17900          * requisition corresponding to the new size in the
17901          * zvt widget)
17902          *
17903          * This doesn't buy us anything for 1), but it shouldn't
17904          * hurt us too badly, since it is what would have
17905          * happened if we had gotten the configure event before
17906          * the new size had been set.
17907          */
17908
17909 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
17910
17911         * gtk/gtkrc.c: deal properly with the fact that RC
17912           style lists may include rc styles more than once.
17913
17914         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
17915           unused static function.
17916
17917         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
17918           stack of directories of RC files currently being
17919           parsed and implicitely add them to pixmap path.
17920           
17921           This fixes a bug where the directory would get
17922           appended then overwritten by pixmap_path declarations.
17923
17924           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
17925
17926         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
17927           theme's exit function. (Patch from Peter Wainwright,
17928           bug #1454)
17929
17930         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
17931           Add a destroy() handler to take care of removing
17932           group for menu item. (Fixes bug #1197)
17933
17934         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
17935           in warning message.
17936
17937 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
17938
17939         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
17940         roundtrip to figure window's width and height, since we know that
17941         anyways from widget->allocation.
17942
17943 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
17944
17945         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
17946           the hints after we request the new size.
17947
17948 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
17949
17950         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
17951           GTK_WIDGET_REALIZED() assertion - we can compute the
17952           hints before we are realized.
17953
17954         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
17955           hint changing so that we have a value of hints_changed
17956           when we decide whether to constrain the window size.
17957
17958         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
17959
17960         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
17961         change back to G_MAXINT.
17962
17963 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
17964
17965         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
17966         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
17967         contain uncluttered values.
17968         (gtk_window_compute_hints): simply assert that window is realized
17969         and that geometry_info is valid, since we rely on this anyways.
17970         (gtk_window_constrain_size): major cleanups to the code.
17971         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
17972         for the base size, instead of the minimums. use 32767 as max width
17973         and height (like in gtkwindow.c) instead of G_MAXINT.
17974
17975 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
17976
17977         * cleaned up the GtkContainer.need_resize flag handling mess, we
17978         only need to force resize requests when we were prematurely
17979         realized, or our widget tree was modified when we were temporarily
17980         hidden. handling these cases directly upon showing the window (i.e.
17981         while the GdkWindow is still unmapped) avoids the need to wait for
17982         a configure event response and therefore makes the GUI more snappier
17983         and avoids blank windows during the roundtrip.
17984
17985         * gtk/gtkwidget.c:
17986         (gtk_widget_hide): 
17987         (gtk_widget_show): don't queue resizes on toplevels, they know how
17988         to deal with matters.
17989
17990         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
17991         flag directly for not visible resize containers and spare us unecessary
17992         signal emissions.
17993
17994         * gtk/gtkwindow.c:
17995         (gtk_window_realize): if we need to enforce premature size allocation,
17996         queue a container resize so we are correctly resized later on.
17997         (gtk_window_init):
17998         (gtk_window_size_request):
17999         don't freak around with the ->need_resize flag,
18000         gtk_container_queue_resize() will care about that.
18001         (gtk_window_show):
18002         handle initial resizing issues here, we can handle matters better in
18003         this place, especially since we know that our GdkWindow is still
18004         unmapped.
18005         (gtk_window_move_resize):
18006         don't care about ->need_resize at all.
18007         handle size changes properly that occoured while we waited for a
18008         configure event.
18009
18010 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
18011
18012         * gtk/gtkwidget.c (gtk_widget_set_uposition):
18013         * gtk/gtkwindow.[hc] (gtk_window_reposition):
18014         Move the hint setting code from gtk_widget_set_uposition
18015         to here; set the hints so that we respect any previously
18016         set geometry hints.
18017
18018         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
18019         change the window hints here or move the window here,
18020         let that happen in gtk_window_move_resize().
18021
18022 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
18023
18024         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
18025         to already queued resizes (and therefore redraws) on a widget, check
18026         its anchestry as well.
18027
18028         * gtk/gtkcontainer.c:
18029         (gtk_container_queue_resize): clear resize widgets for resize
18030         containers before aborting prematurely. this is especially important
18031         for toplevels which may need imemdiate processing or their resize
18032         handler to be queued.
18033         (gtk_container_dequeue_resize_handler): added new internal function for
18034         gtkwindow.c.
18035
18036         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
18037         configure event, take possible changes in window position into account
18038         as well.
18039         if we request a new window size, queue up a resize handler that will
18040         last until the configure event response arrives.
18041         combined the ->need_resize case (initial show) with the general size
18042         (hints) changed case and added even more comments.
18043         if !auto_shrink, only revert to the old allocation if the new size
18044         is smaller than the current allocation.
18045
18046 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
18047
18048         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
18049                            gtk_window_set_geometry_hints
18050                            gtk_window_set_default_size):
18051         When hints are set, queue a resize so that the hints will
18052         be eventually reset on the toplevel.
18053
18054         * gtk/gtkwindow.c (gtk_window_show): Use
18055         gtk_window_compute_default_size(). Clear the need_resize flag
18056         on the initail map so that we don't unnecessarily trigger the
18057         resize code.
18058
18059         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
18060         into separate functions. Compare the hints we are setting
18061         with what we set last time so that we can accurately
18062         tell when we need to reset the hints.
18063
18064         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
18065         function to figure out the size from requisition
18066         and default_size.
18067
18068         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
18069         from fvwm to constrain a size to the geometry hints.
18070
18071         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
18072         to compare two sets of geometry hints.
18073
18074         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
18075         from gtk_window_set_hints(), just compute the hints,
18076         don't set them.
18077
18078         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
18079         code from gtk_window_move_resize() to separate function,
18080         rationalize a bit.
18081
18082 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
18083
18084         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
18085         structure into a new private structure.
18086
18087         * gtkrc.c: Split GtkRcStyle into public/private.
18088         In the private part, add a list of pointers to the
18089         RcStyle lists this RcStyle participates in.
18090
18091         * gtkrc.c: When a RcStyle is free, remove all
18092         lists referencing it from the 
18093         realized_style_ht hash, and free those lists.
18094         
18095         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
18096         gtk_rc_init(), since that adds the default styles
18097         to the list of parsed RC files again.
18098
18099         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
18100         
18101 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
18102
18103         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
18104         checks that ensure that a widget's allocation is at least 1 in width
18105         and height. (GNOME note: this doesn't affect old panel code anymore,
18106         because GtkSocket will request width and height of at least 1 since
18107         Fri Jul 23).
18108
18109         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
18110         allocated yet (happens if the user realizes the window prematurely),
18111         size request and allocate it.
18112         (gtk_window_size_allocate): guard against guint underflows.
18113
18114 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
18115
18116         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
18117         in gtk_built_sources, so gtk.defs gets built prior to all other
18118         sources.
18119
18120 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
18121
18122         * gtk/Makefile.am:
18123         invoke indent on gtkmarshal.*. 
18124         rewrote source generation rules, use COPYING as oldest source tag for
18125         a piggyback rule to generate all sources from (don't touch it ;).
18126         major cleanups, strip spaces on build rules for GNU Make.
18127
18128         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
18129         source and target files from commandline arguments. don't invoke indent.
18130
18131 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
18132
18133         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
18134         notebook after switch to avoid drawing problems.
18135         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
18136         
18137         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
18138         show them instead. 
18139         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
18140
18141 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
18142
18143         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
18144         notebook after switch to avoid drawing problems.
18145         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
18146         
18147         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
18148         show them instead. 
18149         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
18150
18151 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
18152
18153         * gtk/gtkwindow.c:
18154         we use window->need_resize from configure_event now, to indicate that
18155         the gtkwindow should keep its allocation (e.g. because the user resized
18156         the window through window manager handles). resize_count is now reliably
18157         used to figure whether we got the allocation we requested from the
18158         window manager.
18159         configure events get queued as resizes now, the real stuff (size
18160         computation and allocation) now only goes on in gtk_window_move_resize().
18161         GtkWindow's requisition now contains its *real* requisition (like all
18162         other widgets), *not* taking usize into account.
18163         geometry_info->last_{width|height} is now updated from set_hints() only
18164         so it always contains the last hints we set for the window manager.
18165         made some event handlers return TRUE instead of FALSE.
18166         the overall code should be much more straight forward now, and the
18167         significant code portions are accompanied by comments now.
18168         (gtk_window_set_hints):
18169         removed requisition argument and made it
18170         fetch the requisition through gtk_widget_get_child_requisition.
18171         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
18172         does that now.
18173         (gtk_window_show):
18174         ensure that the widget is realized before calling 
18175         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
18176         ensure that we got properly size requested and allocated before
18177         realization.
18178         (gtk_window_configure_event):
18179         ignore plain window moves, or reallocate the widget tree through the
18180         resize queue otherwise.
18181         (gtk_window_move_resize):
18182         mostly rewrote this function to figure window manager hints more
18183         reliably, coalesce window moves and resizes to reduce configure events
18184         and do actuall size allocations.
18185
18186 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
18187
18188         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
18189         that have a resize pending, because a redraw is already queued for them.
18190
18191         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
18192         hack to clear resize_widgets.
18193
18194         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
18195         for resize containers prior to size allocation. (this is also a bit
18196         ugly, but avoids side effects for stopped emissions and is thus more
18197         reliable).
18198         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
18199
18200         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
18201         function from gtk_tooltips_expose, as we connect to ::expose_event
18202         *and* ::draw now.
18203
18204 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
18205
18206         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
18207         checks.
18208         (gtk_target_list_unref): Likewise.
18209
18210         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
18211
18212 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
18213
18214         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
18215         guard against division by zero. (Fixes bug #1339)
18216
18217 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
18218
18219         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
18220         Prevent the trivial leak of information of allowing
18221         word motion when the entry is not visible.
18222
18223 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
18224
18225         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
18226         modality to error dialog as well as confirmation dialogs.
18227         (Bug #1803, reported by Rosanna Wing Sze Yuen)
18228
18229 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
18230
18231         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
18232         tree->view_lines.
18233         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
18234
18235         * gtk/Makefile.am (install-data-local): Solaris apparently
18236         has various troubles with ln -f; use rm first instead.
18237         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
18238
18239 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
18240
18241         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
18242         use `cp' followed by `rm' (the `rm' was already there).
18243
18244 July 30, 1999 Elliot Lee <sopwith@redhat.com>
18245         
18246         * configure.in: Fix autoconf warnings about cross compilation by
18247         trying to provide sane defaults for AC_TRY_RUN.
18248         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
18249         put them into $(srcdir) when generated. Also add a dependency of
18250         gtksignal.h on gtkmarshal.h for -j builds. 
18251         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
18252
18253 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
18254
18255         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
18256         GDK_THREADS_{LEAVE,ENTER} pair.
18257         (From Paul Fisher <pnfisher@redhat.com>)
18258
18259 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
18260
18261         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
18262         width and height are always >0 (owen).
18263
18264 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
18265
18266         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
18267         change that assured that a widget's allocated with and height are
18268         always >1, since this breaks *buggy* panel code. unfortunately this
18269         back-breaks the gimp's color selector.
18270
18271         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
18272         allocation is always >0 in width and height, before sending the
18273         configure event; this is a *gross* hack to get the gimp back to work.
18274         
18275         * marked both cases with TODO-1.3
18276
18277 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
18278
18279         * gtk/gtktext.c: Don't display wrap indicators when
18280         text is not editable and word wrap is on.
18281
18282 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
18283
18284         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
18285         option menus here as they are not derived from menu shell, assure that
18286         the option menu has a menu we can add items to.
18287
18288 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
18289
18290         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
18291         width/height to (gint) before calculations and check against < 0 to
18292         avoid guint wraparounds.
18293
18294 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
18295
18296         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
18297         width and height is never zero. sanity check both dimensions against
18298         32767 and issue a warning if the allocation is greater than that.
18299
18300 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
18301
18302         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
18303         to g_main_pending() as well.
18304
18305 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
18306
18307         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
18308         call to g_main_iteration() - since that will regrab
18309         GTK+ lock to process events.
18310
18311 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
18312
18313         * gtk/gtkwindow.c
18314         - Regularize with the rest of GTK+ by making widget->requisition
18315           not reflect the set_usize()
18316         - Always recompute geometry hints, then check if they
18317           changed before sending them to the X server. The
18318           previous checks for changes would fail in a number
18319           of circumstances. 
18320
18321 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
18322
18323         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
18324
18325 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
18326
18327         * gtk/gtkdnd.c:
18328         - Code cleanups
18329         - Instantaneously update on modifier key presses
18330         - Allow cancellation of the drag with Escape.
18331
18332 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
18333
18334         * gtk/testgtk.c (create_handle_box): Set the policy
18335         to auto_shrink - otherwise the appearance is rather
18336         strange when flipping between horizontal and vertical.
18337
18338 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
18339
18340         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
18341         (gtk_window_set_default_size): don't change a value if it's < 0.
18342         queue a resize.
18343
18344 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
18345
18346         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
18347
18348 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
18349
18350         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
18351         add an extra "/" when concating "/" + filename.
18352         (From Matt Grossman <mattg@oz.net>)
18353
18354 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
18355
18356         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
18357         for fg_gc if we set it for drawing pixmap.
18358
18359 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
18360
18361         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
18362         
18363         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
18364         already set, call old engine's destroy function and
18365         unref the old engine.
18366
18367 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
18368
18369         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
18370
18371 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
18372
18373         * gtk/gtkaccelgroup.h: mark certain functions as internal.
18374
18375 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
18376
18377         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
18378         expand behaviour changed.
18379
18380         * gtk/gtklabel.c (gtk_label_set_pattern):
18381         (gtk_label_set_justify):
18382         (gtk_label_set_line_wrap):
18383         don't bother invoking queue_clear, the reallocation does
18384         that for us, always free_words so the upcoming resize will
18385         relayout the label's contents.
18386
18387 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
18388
18389         * applied argument implementation patches from Elena Devdariani
18390         <elena@cogent.ca>.
18391
18392         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
18393         ::space_style, ::relief
18394         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
18395         * gtk/gtkpreview.c: ::expand
18396         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
18397         * gtk/gtknotebook.c: ::homogeneous
18398         * gtk/gtklabel.c: ::wrap
18399         * gtk/gtklist.c: ::selection_mode
18400         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
18401         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
18402         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
18403         * gtk/gtkclist.c: ::sort_type
18404         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
18405         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
18406
18407 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
18408
18409         * gtk/gtkstyle.c: Removed ill-thought-out part of last
18410         comment.
18411
18412 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
18413
18414         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
18415         counting right when we have to attach a new style
18416         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
18417
18418         * gtk/gtkstyle.c: Documented the refcounting
18419         peculularities of gtk_style_attach.
18420
18421 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
18422
18423         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
18424         window types.
18425
18426         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
18427         of GTK_TOPLEVEL for creating the window.
18428
18429 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
18430
18431         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
18432         the last argument (reported by Per Winkvist).
18433         
18434 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
18435
18436         Fixes for invisible XOR lines (Frank Loemker
18437         <floemker@TechFak.Uni-Bielefeld.DE>)
18438         
18439         * gtk/gtkclist.c (gtk_clist_realize): Always use
18440         a non-zero pixel for GDK_XOR.
18441
18442         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
18443         Use GDK_INVERT instead of GDK_XOR.
18444
18445 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
18446
18447         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
18448         signals if h/voffsets differ from adjustment values.
18449         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
18450
18451 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
18452
18453         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
18454         ::selection-done emissions up to the topmost menu shell.
18455
18456 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
18457
18458         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
18459         the user data on the window before destroying it.
18460
18461         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
18462         unrealize handler to take care of destroying 
18463         notebook->panel properly. 
18464         (Bug #1198 - Morten Welinder <terra@diku.dk>)
18465
18466         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
18467         of g_new and g_realloc to stop memory leak. (Actually,
18468         we could just use g_realloc(), but I'm not 100% sure
18469         that is portable).
18470         (Bug #1196 - Morten Welinder <terra@diku.dk>)
18471
18472 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
18473
18474         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
18475
18476         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
18477         for fontsets.
18478
18479         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
18480         with bin/button confusion.
18481
18482 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
18483
18484         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
18485         and show how preselection of radio items is done.
18486
18487 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
18488
18489         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
18490         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
18491         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
18492         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
18493         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
18494         * gtk/gtktable.c (gtk_table_attach): 
18495         * gtk/gtklist.c (gtk_list_insert_items): 
18496         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
18497         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
18498         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
18499         * gtk/gtkbin.c (gtk_bin_add): 
18500         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
18501         * gtk/gtkfixed.c (gtk_fixed_put): 
18502         * gtk/gtklayout.c (gtk_layout_put):
18503         general fixups to container_add logic. always realize child if
18504         child->parent is realized, only map the child and queue a resize
18505         if child and child->parent are both visible.
18506
18507 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
18508
18509         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
18510         instead of gtk_container_foreach to walk and unrealize children, so
18511         composite children get also unrealized.
18512         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
18513         (gtk_widget_map): assert that the widget is visible (basic constrain).
18514         (gtk_widget_real_map): assert that the widget is realized (basic
18515         constrain).
18516
18517 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
18518
18519         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
18520
18521 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
18522
18523         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
18524         file for iso-8859-2 locales.
18525
18526         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
18527
18528 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
18529
18530         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
18531          (Pointed out by andy@rz.uni-karlsruhe.de and others).
18532          Remove some suspicious and useless lines. 
18533
18534 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
18535
18536         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
18537         width,height = 0, 0 to mean - here to edge of window,
18538         instead of -1, -1, since the former is all we support.
18539
18540 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
18541
18542         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
18543         when removing from quit_functions list.
18544
18545 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
18546
18547         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
18548
18549 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
18550
18551         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
18552          When redrawing characters on non-visible entry, use appropriate
18553          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
18554
18555 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
18556
18557         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
18558         from drag coordinates.
18559         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
18560         use drag_dest_cell.
18561
18562         * gtk/gtktree (drag_dest_cell)
18563         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
18564         (Bug #1129)
18565
18566 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
18567
18568         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
18569         translate_* fields.
18570         (gtk_item_factory_finalize): invoke translate_notify independant from
18571         translate_data.
18572         (gtk_item_factory_set_translate_func): likewise.
18573         (gtk_item_factory_destroy): only remove ifactory pointer from those
18574         widgets that belong to us (stupid me).
18575
18576 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
18577
18578         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
18579         rc_style list when lookup succeeeds.
18580
18581 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
18582
18583         * gtk/gtkctree.c (resync_selection): 
18584         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
18585         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
18586         bug.
18587
18588 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
18589
18590         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
18591         Add some missing GDK_THREADS_ENTER()/LEAVE around
18592         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
18593
18594 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
18595
18596         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
18597         rather than emit_by_name.
18598
18599         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
18600         on the widget across multiple signal emissions.
18601         (gtk_editable_delete_text): same here.
18602         (gtk_editable_class_init): set widget_class->activate_signal after
18603         editable_signals[ACTIVATE] has been created.
18604
18605 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
18606
18607         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
18608         position here prematurely -- we might not have the
18609         right ->min_position and ->max_position yet.
18610
18611 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
18612
18613         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
18614         Add error traps so if the other end of the connection
18615         dies, we survive.
18616
18617         * gtk/gtkselection.c (gtk_selection_notify): Clean
18618         up properly when selection property retrieval fails.
18619         
18620         * gtk/gtkselection.c (gtk_selection_request): Correctly
18621         reject SelectionRequest notifies where the handler
18622         returns no data.
18623
18624 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
18625
18626         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
18627         when we've previously highlighted.
18628
18629         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
18630         emit two "drag_leave" signals for Motif drops.
18631
18632         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
18633         back the correct status messages when dropping from
18634         Motif onto a proxy window that is rejecting the
18635         drop.
18636
18637 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
18638
18639         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
18640         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
18641         to compare two argument values. added gtk_arg_to_valueloc() to set a
18642         variable from an arg through its location (pointer).
18643
18644         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
18645         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
18646         as gfloat*, uchars are collected as guchar*, ints are collected as
18647         gint*, etc...
18648
18649 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
18650
18651         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
18652         Include <string.h> instead of <strings.h>.
18653
18654         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
18655         (actually, a lot more duplicate includes occur if
18656          you trace through the sequence of #include's)
18657         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
18658         
18659 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
18660
18661         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
18662         gtk-a-higuti-990322-[0-3]
18663
18664         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
18665         that was causing -DX_LOCALE not to work.
18666
18667         * gtk/gtkrc.c (gtk_rc_init):
18668         X_LOCALE will never have LC_MESSAGES defined
18669
18670 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
18671
18672         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
18673         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
18674
18675         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
18676         left/right as well (gtk-michael-980726-0.patch.gz).
18677
18678         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
18679         for pointer values, use gchar instead of char. fixed uline allocation
18680         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
18681         chunks instead of G_ALLOC_ONLY.
18682         (gtk_label_size_request): always alter requisition as passed and leave
18683         widget->requisition alone.
18684         (gtk_label_set_text): allow NULL strings.
18685         (gtk_label_new): likewise.
18686
18687 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
18688
18689         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
18690
18691 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
18692
18693         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
18694         *and* mapped (i.e. drawable).
18695         (gtk_bin_expose): only send exposes to drawable children.
18696
18697         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
18698         (gtk_box_expose): only send exposes to drawable children.
18699
18700         * gtk/gtkhscale.c (gtk_hscale_draw): 
18701         * gtk/gtkvscale.c (gtk_vscale_draw):
18702         hm, this is an ugly one. we first compute the size of our trough area
18703         here (window relative) and then check intersection with the draw_area
18704         which is parent relative because we're a NO_WINDOW widget, so we need
18705         to offset the trough area by allocation.x and allocation.y before the
18706         check. (this must not be done for the background area though, since
18707         that's already computed parent relative).
18708
18709 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
18710
18711         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
18712         unrealize title buttons.
18713
18714 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
18715
18716         * gtk/gtkclist.c (gtk_clist_column_title_passive)
18717         (gtk_clist_column_title_active): 
18718         only connect/disconnect to GtkWidgetClass::event to block mouse events.
18719
18720         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
18721         zero initialize event, removed superfluous gdk_window_get_pointer call
18722
18723         * gtk/gtklist.c (gtk_list_vertical_timeout)
18724         (gtk_list_horizontal_timeout): removed superfluous
18725         gdk_window_get_pointer call
18726
18727 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
18728
18729         * plugging problems reported by "Bruce Mitchener, Jr."
18730         <bruce@puremagic.com> due to a purify session.
18731
18732         * gtk/gtkstyle.c:
18733         (gtk_style_ref): 
18734         (gtk_style_unref): assert ref_count to be > 0.
18735
18736         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
18737         the requisition.
18738         (gtk_clist_set_shift): likewise.
18739
18740         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
18741         adjustments.
18742
18743         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
18744         event before sending it and set send_event to TRUE (which needs to
18745         be done for *all* synthesized events).
18746         (gtk_list_vertical_timeout): likewise.
18747
18748         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
18749         leaks.
18750
18751         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
18752         to TRUE when synthesizing events.
18753
18754 [ *** end of merges from 1.2 *** ]      
18755         
18756 1999-11-21  Tor Lillqvist  <tml@iki.fi>
18757
18758         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
18759         (or copied from gdkconfig.h.win32 on Win32, sigh).
18760
18761         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
18762
18763         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
18764
18765         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
18766
18767         * gdk/gdkconfig.h.win32: New file.
18768
18769         * gdk/win32/makefile.cygwin: Build just a static archive here.
18770
18771         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
18772         for the DLL from the static archive built above.
18773
18774         * gdk/gdk.def: Moved here from the win32 subdirectory.
18775
18776         * gdk/win32/*: Adapt for the changed private struct organisation.
18777
18778         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
18779
18780 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
18781
18782         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
18783         for wheel mice (buttons 4 and 5).
18784
18785 1999-11-18  Tor Lillqvist  <tml@iki.fi>
18786
18787         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
18788         drawables use just the pixel field in the foreground and
18789         background GdkColor of the GdkGC.
18790
18791         gdk_gc_set_{fore,back}ground() are called in the GIMP with
18792         GdkColors containing uninitialized (red,green,blue) fields, and
18793         just the pixel field filled in, and furthermore in the
18794         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
18795         It thus turns out that we really don't need to have the full
18796         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
18797         it later to have just the pixel values.
18798
18799 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
18800
18801         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
18802
18803 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
18804
18805         * docs/gtkfaq.sgml: threads example from Erik Mouw.
18806         New question on GtkLabel background colors.
18807
18808         * docs/gtk_tut.sgml:
18809           - Correct the example code callback
18810             function definitions.
18811           - Update the gtkdial example code, from Frans van Schaik.
18812           - Update setselection.c to current API.
18813
18814         * examples/Makefile examples/*/*.c: Update to code
18815         listed in tutorial.
18816
18817 1999-11-10  Tor Lillqvist  <tml@iki.fi>
18818
18819         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
18820         subrange table (from the "Developing International Software for
18821         WIndows 95 and Windows NT" book) was missing the Hangul syllable
18822         block... Get the loaded font's charset correctly.
18823
18824         (Note that this, and the other *-win32.c files, still really are
18825         the old ones, the win32 subdirectory is not ready for compilation
18826         yet after the reorg.)
18827
18828 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
18829
18830         * gtk/gtkclist.c: Fix off-by-one bug in parameter
18831         check.
18832
18833 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
18834
18835         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
18836         on results of XQueryDeviceState().
18837
18838 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
18839
18840         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
18841         we need to accesss only ->children. We need an accessor
18842         for the children.
18843
18844         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
18845         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
18846         to get rid of gdkx.h include.
18847         
18848         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
18849         and random references to 'None'.
18850
18851         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
18852         Get rid of unused #include <gdk/gdkx.h>
18853
18854         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
18855         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
18856         gdkconfig.h.
18857
18858 1999-11-08  Tor Lillqvist  <tml@iki.fi>
18859
18860         * gdk/win32/gdkdraw.c
18861         * gdk/win32/gdkfont.c
18862         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
18863         following yesterday's changes. (Unrelated to Owen's reorg.)
18864
18865 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
18866
18867         * gdk/x11/gdkinput-gxi.c: Add missing include,
18868           fix GdkWindowPrivate => GdkDrawablePrivate.
18869
18870         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
18871
18872         * gdk/x11/Makefile.am (xinput_sources): Add missing
18873         backslash to fix building with --with-xinput=none
18874
18875 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
18876
18877         Move all X specific code into the x11/ directory.
18878         Aside from shuffling things around, did the following:
18879
18880        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
18881          gdk_arg_context_* - a simple argument parsing system
18882          in the style of popt.
18883
18884        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
18885          gdk/x11/gdkprivate-x11.h:
18886          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
18887          add ->klass and ->klass_data fields. The klass_data
18888          field points to an auxilliary structure that is
18889          windowing system dependent.
18890
18891        * gdk/gdkfont.c: Make most of the measurement functions
18892          simply wrappers around gdk_text_extents().
18893
18894        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
18895          _gdk_font_strlen() function that hides the weird
18896          behavior in gtk+-1.[02] where a string is interpreted
18897          differently for 8-bit and 16-bit fonts.
18898
18899        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
18900          to store common code for synthesizing double/triple
18901          press events.
18902         
18903        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
18904          Make all the function that modify an existing GC
18905          simply wrappers around gdk_gc_set_values().
18906          
18907        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
18908          for throwing out later.
18909
18910        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
18911          GdkImagePrivate and GdkColormapPrivate to have a
18912          windowing system dependent part (GdkFontPrivateX etc.)
18913          that "derives" from the system-independent part.
18914
18915        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
18916          Got rid of the included-source-files for XInput in
18917          favor of automake conditionals. (Which didn't exist
18918          when XInput support was originally added.)
18919
18920        * gdk/gdkrgb.c: Remove the visual id from the debugging
18921          statements since that is X11 specific; print out
18922          type/depth info instead.
18923          
18924
18925 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
18926
18927         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
18928         loading duplicates of hashed fonts.
18929
18930         * gdk/gdk.c (gdk_keysym_convert_case): rename
18931         gdk_XConvertCase to gdk_keysym_convert_case, allow
18932         results to be NULL in the GTK+ style.
18933
18934         * gdk/gdkcompat.h: Started compatibility header
18935         for renames.
18936
18937 1999-11-07  Tor Lillqvist  <tml@iki.fi>
18938
18939         * gdk/win32/gdkprivate.h: New font private structures, related to
18940         fontsets.
18941
18942         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
18943         gdk_font_list_free(). On X11, will just be wrappers to
18944         XListFonts() and XFreeFontNames(). On Win32, the code previously
18945         in gtkfontsel.c is now here.
18946
18947         New function gdk_font_xlfd_create(). On X11 will get the FONT
18948         property of the font (for GDK_FONT_FONTs), or call
18949         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
18950         builds a XLFD style name from the font information in the LOGFONT
18951         struct(s).
18952
18953         New function gdk_font_xlfd_free(), which correspondingly frees the
18954         string returned by gdk_font_xlfd_create().
18955
18956         Implement fontsets on Win32. Add a function that iterates over a
18957         wide char string and calls a callback function for each substring
18958         of wide chars from the same Unicode subrange (and thus probably
18959         available in the same real font).
18960
18961         Improve the XLFD emulation a bit.
18962
18963         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
18964
18965         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
18966         Beta3, WM_IME_CHAR messages don't seem to contain the composed
18967         multi-byte char as with the Active IMM on Win9x. Oh well, handle
18968         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
18969         ImmGetCompositionStringW() to get the composed Unicode chars.
18970
18971         * gdk/win32/gdkgc.c
18972         * gdk/win32/gdkdraw.c: Changes needed because of the font private
18973         struct changes.
18974
18975         * gdk/win32/gdk.def: Add the new functions.
18976
18977 1999-11-04  Tor Lillqvist  <tml@iki.fi>
18978
18979         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
18980         get the Platform SDK to get <dimm.h>.
18981
18982         * gdk/win32/gdkevents.c: More event handling fixes and
18983         simplification. Never generate motion events with is_hint true. We
18984         used to do that on bogus grounds earlier. Windows sends
18985         WM_MOUSEMOVE messages on button events even if the mouse hasn't
18986         moved, ignore these.
18987
18988         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
18989
18990         * gdk/win32/gdkglobals.c
18991         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
18992         the TrackMouseEvent function, and use it.
18993
18994         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
18995         char before calling WideCharToMultiByte in order to get a string
18996         for the window title.
18997
18998         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
18999
19000         * gdk/win32/gdk.def: Remove obsolete functions.
19001
19002         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
19003         /nodefaultlib and /defaultlib switches.
19004
19005         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
19006
19007 1999-10-31  Tor Lillqvist  <tml@iki.fi>
19008
19009         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
19010         EuroSign).
19011
19012         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
19013         same type as GdkWChar, especially on Win32.
19014
19015         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
19016
19017         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
19018         before passing to Windows GDI for drawing etc. Convert to the
19019         system default codepage before passing to Windows as window
19020         titles.
19021
19022         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
19023         support changing input locale on the fly.
19024
19025         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
19026         on-the-fly changes. Convert incoming characters from the current
19027         codepage to Unicode (and then to a UTF-8 multi-byte string) based
19028         on the current input language. Use keysym<->Unicode mapping tables
19029         and functions borrowed from xterm sources.
19030
19031         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
19032         editions of Win9x, use the ActiveX-based Active IMM (Input Method
19033         Manager) if available. IMEs and the Active IMM are available under
19034         the disguise of Chinese, Korean and Japanese support for IE and
19035         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
19036         support is present in all editions (as long as you install it).
19037
19038         Call DispatchMessage from gdk_events_queue() (and thus
19039         gdk_WindowProc()), instead of duplicating the code in
19040         gdk_WindowProc().
19041
19042         Reworked the grab handling and propagation code, factored out
19043         duplicated code snippets into separate functions. Other cleanups,
19044         too.
19045
19046         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
19047         the <dimm.h> header describing the Active IMM.
19048
19049         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
19050         just do the same as for "single" fonts.
19051
19052         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
19053         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
19054         the new keysyms from gdkkeysyms.h.
19055
19056         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
19057         fontset, so that gtkentry uses wide characters.
19058
19059         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
19060         GTk+'s system directory "gtk+", not "gtk".
19061
19062 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
19063
19064         * docs/gtkfaq.sgml: FAQ update
19065
19066 1999-10-21  Tor Lillqvist  <tml@iki.fi>
19067
19068         * gdk/win32/gdkprivate.h: Add more font private data.
19069
19070         * gdk/win32/gdkfont.c
19071         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
19072         fonts and strings. Now works much better. You still have to
19073         have a correct font selected, though. No fontset emulation yet.
19074
19075 1999-10-19  Tor Lillqvist  <tml@iki.fi>
19076
19077         * gtk/maketypes.awk: Use G_OS_WIN32.
19078
19079         * gtk/gtk.def: Add some missing entry points. Also some non-public
19080         ones, but PyGTK porter claims to need them.
19081
19082         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
19083         built-in type generation.
19084
19085 1999-10-14  Tor Lillqvist  <tml@iki.fi>
19086
19087         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
19088         GDK_FONT_FONT fonts (which is all we have for now, we don't
19089         emulate fontsets). The X11 version uses plain XDrawString in that
19090         case, too. The string passed to gdk_draw_text_wc seems to be in
19091         fact (at least, when used by gtkentry and gtktext) either in a
19092         single-byte charset, or a DBCS. Not Unicode.
19093
19094         This fixes the problem in gtkfontsel, where even if you had
19095         selected a font with a non-Latin1 charset (windows-greek, for
19096         instance), the preview still used Latin-1 glyphs.
19097
19098         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
19099         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
19100         (gdk_font_load): Recognize the demibold etc weights, even if we
19101         don't have the corresponding constants in the headers.
19102         (gdk_font_hash_insert): Use same hash mechanism as in the X11
19103         version. Should save font resources a bit, when we don't have
19104         multiple HFONTs for the same font.
19105
19106         * gdk/win32/gdkprivate.h: Add the names field as in the X11
19107         version.
19108
19109 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
19110
19111         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
19112         X values
19113
19114 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
19115
19116         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
19117         layout support (as mentioned on
19118         http://www.jcinteractive.com/gnome-ui/software/widgets/)
19119
19120 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
19121
19122         * gtk/fnmatch.c
19123         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
19124
19125 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
19126
19127         * configure.in (ALL_LINGUAS): Added Galician (gl)
19128
19129 1999-10-05  Tor Lillqvist  <tml@iki.fi>
19130
19131         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
19132
19133         * gdk/win32/gdkcompat.c: New file, actually provide an
19134         implementation for the deprecated functions. (Just temporarily.)
19135
19136         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
19137
19138         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
19139
19140         * gdk/win32/gdk.def gtk/gtk.def: Updates.
19141
19142 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
19143
19144         * configure.in: Added "uk" to ALL_LINGUAS.
19145         
19146 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
19147
19148         * configure.in: correct checking for BeOS check
19149
19150         * gdk/gdktypes.h
19151         * gtk/fnmatch.c
19152         * gtk/gtkfilesel.c
19153         * gtk/gtkitemfactory.c
19154         * gtk/gtkmain.[ch]
19155         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
19156
19157 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
19158
19159         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
19160         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
19161         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
19162         by Bulgarian). 
19163
19164 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
19165
19166         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
19167         Fix a reference to window_private->destroyed.   
19168
19169         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
19170         (ugly) setting of an internal GdkWindow member to use
19171         a _slightly_ cleaner macro.
19172
19173         * gdk/gdkprivate.h: Split GdkWindowPrivate into
19174         GdkDrawablePrivate and GdkWindowPrivate.
19175         Add extra macros for accessing GDK_DRAWABLE_ components.
19176
19177         * *.[ch]: Massive adjustments for the above, use the
19178         new macros in a lot of places.
19179
19180 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
19181
19182         * gdk/gdktypes.h: Make GdkDrawable the base type,
19183         not GdkWindow.
19184
19185 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
19186
19187         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
19188
19189 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
19190
19191         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
19192
19193 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
19194
19195         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
19196         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
19197
19198         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
19199
19200         * docs/gtk-config.1: Now autogenerated.
19201         * docs/Changes-1.4.txt: started
19202         
19203 1999-10-03  Tor Lillqvist  <tml@iki.fi>
19204
19205         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
19206         to #ifdef also here.
19207
19208         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
19209         Owen did to the X11 backend.
19210
19211         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
19212         ScrollWindowEx when blitting inside a window, it can't be correct
19213         in the general case.
19214
19215         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
19216         WM_GETMINMAXINFO is easier.
19217
19218         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
19219         depth equal to the bitspixel value, not the visual's depth.
19220
19221         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
19222         to 24 even if the bitspixel value is 32.
19223
19224         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
19225         need to check for depth==32 when bpp==32, depth will always be 24.
19226
19227 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
19228
19229         * docs/Changes-1.4.txt: Started
19230         
19231         * gtk/Makefile.am (gdk_headers): Include all the new headers.
19232
19233         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
19234         
19235         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
19236         into C file.
19237         
19238         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
19239         header to gdkinputprivate.h.
19240
19241         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
19242         unused since before 1.2.
19243
19244 1999-09-30  Tor Lillqvist  <tml@iki.fi>
19245
19246         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
19247         expand possible hex escapes in the font family (put there by
19248         logfont_to_xlfd if the font name isn't a legal XLFD font family,
19249         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
19250         On Win32, add hex escapes here, too.
19251
19252 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
19253
19254         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
19255         to #ifdef GDK_WINDOWING_X11.
19256
19257 [ Merges from gtk-1-2 ]
19258
19259 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
19260
19261         * configure.in: fixed "GNU Make" check to pass with new make version
19262         3.77.95.
19263
19264 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
19265
19266         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
19267         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
19268         AM_PATH_GTK() macros don't get confused by the -pre1.
19269
19270 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
19271
19272         * configure.in (REBUILD): Change check for perl5
19273           to check explicitely for v >= 5.002. (5.001
19274           does not work with our scripts.)
19275
19276 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
19277
19278         * configure.in: evaluate $PERL for the perl version check. added
19279         --disable-rebuilds to give the user an option to completely disable
19280         any source autogeneration rules.
19281
19282 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
19283
19284         * configure.in: evaluate $ac_make when checking for GNU Make.
19285
19286 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
19287
19288         * docs/Makefile.am: added generation.txt.
19289
19290         * Makefile.am: require automake 1.4, build README from README.in and
19291         INSTALL from INSTALL.in in dist-hook.
19292         
19293         * README.in:
19294         * INSTALL.in: new files to autogenerate README and INSTALL from.
19295
19296         * configure.in: figure whether we have GNU Make
19297
19298         * docs/generation.txt: minor additions/corrections.
19299
19300 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
19301
19302         * docs/gtkfaq.sgml: FAQ Update
19303
19304 July 30, 1999 Elliot Lee <sopwith@redhat.com>
19305         
19306         * configure.in: Fix autoconf warnings about cross compilation by
19307         trying to provide sane defaults for AC_TRY_RUN.
19308
19309 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
19310
19311         * ltconfig
19312         * ltmain.sh: upgrade to libtool 1.3.3
19313
19314 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
19315
19316         * INSTALL: Indicate that the --with-glib= configure
19317         time flag is unsupported.
19318
19319 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
19320
19321         * docs/generation.txt: Added a file that gives
19322         documenation about the autogeneration process for
19323         various autogenerated files.
19324         
19325 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
19326
19327         * configure.in (LIBS): Look for libgmodule in the
19328         right location.
19329
19330 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
19331
19332         * docs/gtk_tut.sgml: Removed references to
19333         code examples in my directory on gtk.org as
19334         they should all be in the tutorial now.
19335
19336         * docs/gtk_tut.sgml: Added sources for dial-test
19337         and scribble-xinput programs that were previously
19338         missing.
19339
19340 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
19341
19342         * TODO: Added entry about menu keyboard navigation, removed
19343         some finished items.
19344
19345 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
19346
19347         * acinclude.m4: Standardize on func_dgettext
19348         not func_gettext, so that the checks for dgettext
19349         actually are paid attention to.
19350
19351 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
19352
19353         * configure.in (LIBS): Add $INTLLIBS into $LIBS
19354         directly, rather than repeating the checks for
19355         gettext.
19356
19357         * INSTALL: Added information about gettext and
19358         NLS support.
19359
19360         * acinclude.m4 (LIBM): Check for dgettext, not
19361         just gettext. This should hopefully fix things wrt
19362         systems with old versions of GNU gettext installed.
19363
19364 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
19365
19366         * configure.in (LIBS): Look for libgmodule in the
19367         right location.
19368
19369 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
19370
19371         * autogen.sh: add --enable-maintainer-mode
19372
19373         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19374
19375 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
19376
19377         * docs/gtk-config.1.in:
19378           docs/Makefile.am:
19379           configure.in: gtk-config is now generated.
19380
19381         * docs/gtk-config.1: Removed, now generated.
19382
19383 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
19384
19385         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
19386         handle CreateNotify itself, still put out a debuging message for
19387         --gdk-debug=events. made the ReparentNotify debugging message more
19388         verbose.
19389         wrap xcoords translation for ConfigureEvents into an error trap,
19390         a destroy event may already be pending, and in that case, the
19391         actuall coordinate values are not at all critical.
19392
19393 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
19394
19395         * gdk/gdkcc.c: Stop leaking the color_hash all over
19396         the place. Simplify and improve the logic.
19397
19398 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
19399
19400         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
19401         for prototypes and function implementations consistent (reported
19402         by Tomas Ogren).
19403
19404 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
19405
19406         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
19407         send_event set in debugging output.
19408         (gdk_compress_exposures): default initialize the event so we don't
19409         operate on bogus values (namely send_event).
19410
19411 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
19412
19413         * gdk/gdkwindow.c: When we receive an unexpected
19414         destroy notify on one of our windows, don't just
19415         warn about it, also mark our windows as destroyed.
19416
19417 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
19418
19419         * gdk/gdkfont.c (gdk_font_hash_insert): Add
19420           name => font and name => fontset hashes. The 
19421           name => fontset hash is a _big_ win since we
19422           weren't previously caching fontsets at all and loading
19423           fontsets is expensive. The name => font hash
19424           is less of a win, but it does save us from doing
19425           repeated XQueryFont calls on the same font.
19426
19427         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
19428           list so we can remove font/fontset from hash.
19429
19430 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
19431
19432         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
19433           and slightly confusing test. [ XInternAtom (,,TRUE)
19434           will never return None ].
19435
19436 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
19437
19438         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
19439           gdk/gdkwindow.c (gdk_window_set_hints):
19440
19441         Don't omit setting the properties if flags == 0 -
19442         there may be an existing set of properties there
19443         already. (Very old bug. Would it be better to
19444         delete the property instead?)
19445
19446         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
19447           spelling error in comment.
19448
19449 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
19450
19451         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
19452           to avoid stomping over gdk_error_warnings.
19453
19454         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
19455           as (bits_per_pixel + 7) / 8. This gives the same
19456           result as before for multiples of 8, but actually
19457           a "reasonable" value for 1bit or 4bit displays.
19458
19459 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
19460
19461         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
19462         GNU Make.
19463
19464 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
19465
19466         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
19467         discarding configure events.
19468
19469 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
19470
19471         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
19472         refcount is greater than zero.
19473
19474         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
19475
19476         * gdk/gdkfont.c (gdk_font_unref): Likewise.
19477
19478         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
19479
19480         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
19481
19482 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
19483
19484         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
19485         that format 32 => sizeof(item) == 4. It really is
19486         sizeof(long).
19487
19488 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
19489
19490         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
19491         core dump at all on X IO errors, only core dump
19492         if --enable-debug for X errors.
19493
19494 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
19495
19496         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
19497         unknown window:" message. disabled ConfigureNotify discarding code,
19498         because it led to events being processed out of order.
19499
19500 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
19501
19502         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
19503
19504         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
19505         we export this function, supress error warnings and don't reset the
19506         error code in the first half of this function.
19507
19508         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
19509         code (instead of just -1) so gdk_error_trap_pop() reveals something
19510         actually informative about the error that happened.
19511
19512         * gdk/*.c:
19513         don't rely on gdk_error_code being -1 if an error occoured, but just
19514         gdk_error_code != 0.
19515
19516 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
19517
19518         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
19519         pointer *before* invoking the filter function, so we at least don't
19520         crash if a filter is removed that is currently executed. window filters
19521         *really* need to be made truely reentrant at some point.
19522
19523 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
19524
19525         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
19526         PropertyNotify debug messages.
19527
19528 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
19529         
19530         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
19531         
19532         * gdk/gdkim.c: Fix cut-and-paste errors for 
19533         x/y and PreeditAttributes/StatusAttributes.
19534
19535 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
19536
19537         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
19538         G_MAXINT to 2^16 to alleviate overflow problems in
19539         various window managers.
19540
19541 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
19542
19543         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
19544         for fontsets.
19545
19546 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
19547
19548         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
19549         Initialize size_hints.x and size_hints.y because kwm
19550         brokenly pays attention to them.
19551         (Bug #1181 -  Lars Heete <hel@admin.de>)
19552
19553 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
19554
19555         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
19556         return value of gdk_list_visuals(). 
19557         (Bug #1193 - Morten Welinder <terra@diku.dk>)
19558
19559 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
19560
19561         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
19562         XSetIMValues to (void *) when comparing to NULL, to workaround
19563         the problem of some compilers barfing since older X headers don't
19564         have the prototype for it.
19565
19566 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
19567
19568         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
19569         for pseudocolor where colormap->colors was double
19570         allocated.
19571
19572         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
19573         color value in the hash table with the pixel filled
19574         in so when we do later hash table lookups, the color
19575         value is correct.
19576         
19577 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
19578
19579         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
19580         making the call
19581
19582 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
19583
19584         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
19585         pointed out by Morten Welinder <terra@diku.dk>.
19586
19587 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19588
19589         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19590           default filter from the list
19591
19592 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19593
19594         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19595           default filter from the list
19596
19597 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
19598
19599         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
19600
19601         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
19602         g_strdup_printf instead of calcing the length separately
19603
19604 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
19605
19606         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
19607         that we don't do in many other places. (Fixing duplicate 
19608         #include of config.h)
19609
19610         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
19611         Otherwise, #ifndef XINPUT_NONE check in the latter
19612         doesn't work. (Bug #546)
19613
19614 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
19615
19616         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
19617         "None" case insensitive.
19618
19619 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
19620
19621         * gdk/gdkselection.c: 
19622         Add error traps so if the other end of the connection
19623         dies, we survive.
19624
19625 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
19626
19627         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
19628         dest_xid field into two fields - one for the window
19629         to send in messages, one to indicate the last looked
19630         up window for caching purposes. This is needed, so
19631         that Leave messages get the correct window.
19632
19633 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
19634
19635         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
19636         Fix warning created by people mucking around
19637         with the gsource API.
19638
19639         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
19640         Change mapping between GIOCondition and GdkInputCondition
19641         to match the way the Linux kernel does it. This should
19642         fix problems where closed pipes were no longer signalling
19643         GDK_INPUT_READ on systems with a native poll().
19644
19645 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
19646
19647         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
19648         explicitly for the string "None" - it is in the XPM
19649         spec and some servers treat unknown colors in odd ways
19650         (like asking the user!)
19651
19652 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
19653
19654         * gdk/gdkevents.c: made "->" into a "." of previous change so
19655         it compiles
19656
19657 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
19658
19659         * gdk/gdkevents.c (gdk_compress_exposures): Set the
19660         window field of the event structure before calling
19661         user filters.
19662
19663 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
19664
19665         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
19666         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
19667
19668 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
19669
19670         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
19671         intermediate text property - prevents major memory
19672         leak when gdk_use_mb.
19673         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
19674
19675 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
19676
19677         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
19678         gtk-a-higuti-990322-[0-3]
19679
19680         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
19681         sizeof(wchar_t) != sizeof (GdkWChar)
19682
19683         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
19684         that was causing -DX_LOCALE not to work.
19685
19686         * gtk/gtkrc.c (gtk_rc_init):
19687         X_LOCALE will never have LC_MESSAGES defined
19688
19689         * gdk/gdk.c (gdk_init_check):
19690         Remove --xim-preedit and --xim-status from argv properly.
19691
19692         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
19693         that the client window is present on the X server
19694         before we pass it to the input method.
19695
19696 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
19697
19698         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
19699         if --display is specified on the command line, than
19700         the drag window will not be created on that display.
19701         
19702 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
19703
19704         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
19705         lookups with only_if_exists == TRUE were inserting
19706         bogus values into the atom cache.
19707
19708 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
19709
19710         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
19711         then reset it to NULL.
19712
19713         * gdk/gdkcolor.c:
19714         (gdk_colors_free): 
19715         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
19716         key for g_hash_table_remove() in both functions, this prevents us
19717         from accessing possibly uninitialized portions of a GdkColor structure
19718         where we are only interested in its pixel value.
19719
19720 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
19721
19722         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
19723         font hash table, if we have a GdkFontPrivate entry for this font
19724         already, simply increment its reference count, provided by Olaf Dietsche
19725         <olaf.dietsche+list.gtk@netcologne.de>.
19726
19727 1999-09-21  Tor Lillqvist  <tml@iki.fi>
19728
19729         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
19730         just to be sure.
19731
19732         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
19733         unused variables, leftovers from the X11 version.
19734
19735         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
19736
19737         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
19738         downcase fields on X11.
19739
19740 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
19741         
19742         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
19743         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
19744
19745 1999-09-17  Tor Lillqvist  <tml@iki.fi>
19746
19747         * gdk/win32/gdk.def: Add gdk_threads_mutex.
19748
19749         * gtk/makefile.msc: Correct path to libintl.
19750
19751         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
19752         use of gint vs. int, and gint vs. gboolean in headers and
19753         definitions. Use GtkType for the *_get_type functions. Note that
19754         these changes preserve binary compatibility.
19755
19756         * gdk/gdk.c
19757         * gdk/win32/gdk.c
19758         * gdk/gdk.h: Fix inconsistencies: gint vs int.
19759
19760         * gtk/gtkmain.c
19761         * gtk/gtkclist.c
19762         * gtk/gtkmenufactory.c
19763         * gtk/gtknotebook.c
19764         * gtk/gtkwidget.c: Fix inconsistencies, also gint
19765         vs. gboolean.
19766
19767         * gtk/gtkcolorsel.[ch]
19768         * gtk/gtkcombo.[ch]
19769         * gtk/gtkdrawingarea.[ch]
19770         * gtk/gtkgamma.[ch]
19771         * gtk/gtkhandlebox.[ch]
19772         * gtk/gtkhpaned.[ch]
19773         * gtk/gtkhruler.[ch]
19774         * gtk/gtkplug.[ch]
19775         * gtk/gtkpreview.[ch]
19776         * gtk/gtkruler.[ch]
19777         * gtk/gtksocket.[ch]
19778         * gtk/gtkstatusbar.[ch]
19779         * gtk/gtktoolbar.[ch]
19780         * gtk/gtkvbbox.[ch]
19781         * gtk/gtkvpaned.[ch]
19782         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
19783         functions.
19784
19785         * gtk/gtkgamma.h: Fix bug, missing () in call of
19786         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
19787
19788 1999-09-14  Tor Lillqvist  <tml@iki.fi>
19789
19790         * gdk/gdkcolor.c (gdk_colormap_new)
19791         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
19792         colormap->colors was allocated twice.
19793
19794         * gdk/win32/gdk.c: Remove some unused stuff.
19795
19796         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
19797         colormap.
19798
19799         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
19800         * gtk/gtklabel.h (gtk_label_get_type)
19801         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
19802         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
19803         in a couple of places, not guint.
19804
19805 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
19806
19807         * configure.in,po/et.po: added Estonian language file
19808
19809 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
19810
19811         * configure.in,po/da.po: added Danish file
19812
19813 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
19814
19815         * docs/gtkfaq.sgml: Minor FAQ Update
19816
19817 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
19818
19819         * docs/gtkfaq.sgml: FAQ update
19820
19821 1999-08-27  Tor Lillqvist  <tml@iki.fi>
19822
19823         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
19824         way to get window contents continually refreshed while resizing. I
19825         didn't like the effects myself, so it's not on by default.
19826
19827         * gdk/win32/gdkprivate.h: New flag variable
19828         gdk_event_func_from_window_proc, FALSE by default.
19829
19830         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
19831         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
19832         are passed --gdk-event-func-from-window-proc.
19833
19834         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
19835         and we have am event_func, call it instead of enqueing the event.
19836
19837 1999-08-23  Tor Lillqvist  <tml@iki.fi>
19838
19839         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
19840         Kelley: Set expose_count in GdkEventExposes correctly.
19841
19842         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
19843         MULTIPLE_WINDOW_CLASSES).
19844
19845         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
19846         for bug in NT, apparently NT *does* draw the end pixel, too, in
19847         LineTo with a one-pixel pen, so we don't have to do it ourselves.
19848
19849 1999-08-21  Tor Lillqvist  <tml@iki.fi>
19850
19851         Improvements by Hans Breuer: 
19852
19853         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
19854
19855         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
19856         CS_?REDRAW flags as they cause lots of (late) redraws when "show
19857         window contents while dragging" is turned on. Allocate at least
19858         one unique class for every GdkWindowType. If support for single
19859         window-specific icons is ever needed (eg. Dialog specific), every
19860         such window should get its own class.
19861
19862 1999-08-19  Tor Lillqvist  <tml@iki.fi>
19863
19864         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
19865         error that caused crashes.
19866
19867 1999-08-17  Tor Lillqvist  <tml@iki.fi>
19868
19869         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
19870         window, use ScrollWindowEx, and call UpdateWindow. This prevents
19871         bugs when for instance part of the window was outside the
19872         display. Thanks to Philippe Colantoni for finding and fixing this.
19873
19874 1999-08-16  Tor Lillqvist  <tml@iki.fi>
19875
19876         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
19877         endpoint calculations which were totally wrong. (A little RTFMing
19878         helps a lot ;-)
19879
19880         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
19881         from a separate directory, not from gettext, because of licensing
19882         issues (we want to use the LGPL version).
19883
19884         * README.win32: Mention the intl from glibc vs from gettext issue.
19885
19886 1999-08-13  Tor Lillqvist  <tml@iki.fi>
19887
19888         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
19889         in the key event handling: Now AltGr chars work again. Also,
19890         now Alt-digits are passed up as well as Control-digits.
19891         Pass keypad plus and minus as normal plus and minus.
19892
19893 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
19894
19895         * docs/gtkfaq.sgml: FAQ Update
19896
19897 1999-07-25  Tor Lillqvist  <tml@iki.fi>
19898
19899         * README.win32
19900         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
19901         the Wintab SDK.
19902
19903         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
19904         OK, but getting closer. Guard against bogus tilt data from Wacom
19905         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
19906         enable easier building without Wintab.
19907
19908         * gdk/win32/gdkinput.h
19909         * gdk/win32/gdkevents.c 
19910         * gdk/win32/gdkwindow.c: Minor changes related related to above.
19911         
19912         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
19913         code. As we have just one visual on Win32, no sense to have it in a
19914         table, and no need for the hash table.
19915
19916         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
19917         better on white background.
19918
19919 1999-07-21  Tor Lillqvist  <tml@iki.fi>
19920
19921         * README.win32: Update gcc build instructions. Mention gettext is
19922         GPL.
19923
19924         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
19925         supported cursor size with GetSystemMetrics.
19926
19927         * gdk/win32/gdkfont.c
19928         * gtk/gtkfontsel.c: Guard against some font weight and charset
19929         symbols being undefined (in mingw32 headers).
19930
19931         * gdk/win32/makefile.cygwin
19932         * gtk/makefile.cygwin
19933         * gtk/gtkthemes.c: No longer need to have differently named
19934         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
19935
19936 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
19937
19938         * docs/gtkfaq.sgml: Long awaited FAQ update.
19939
19940 1999-07-15  Tor Lillqvist  <tml@iki.fi>
19941
19942         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
19943         it. Obscure bit manipulation needed.
19944
19945         * gdk/win32/gdkevents.c: Logging.
19946         
19947         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
19948         style (file name include compiler name) for theme engines.
19949
19950 1999-07-13  Tor Lillqvist  <tml@iki.fi>
19951
19952         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
19953
19954         * gdk/win32/gdkevents.c: Fix long-standing bug in key
19955         events. The key.string wasn't zero-terminated, still we strdup'ed
19956         it in gdk_event_copy(). Synthesize crossing events for button
19957         events before possible propagation.
19958
19959         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
19960
19961         * gdk/win32/makefile.cygwin
19962         * gtk/makefile.cygwin: Use new DLL naming style for the
19963         GCC-compiled ones.
19964
19965         * gdk/win32/makefile.msc
19966         * gtk/makefile.msc: Cosmetics mostly.
19967
19968         * gtk/gtk.def: Add missing entry points.
19969
19970         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
19971
19972 1999-07-09  Tor Lillqvist  <tml@iki.fi>
19973
19974         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
19975         or height is zero. Don't print a warning if Pie or Arc fails, they
19976         always fail (?) for very narrow ellipses.
19977
19978         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
19979         the part or the destination window corresponding to source area
19980         outside of the source drawable's boundary.
19981
19982         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
19983         anything if less than two points.
19984
19985         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
19986         return NULL. Gtk cut-and-paste inside a single program works
19987         better this way. (It always gets the clipboard contents from
19988         Windows, not from its own copy, which is cleared anyway. I can't
19989         say I fully understand what happens... Emulating the X selection
19990         and property stuff is a bit of a mess.)
19991
19992         * gdk/win32/gdkevents.c
19993         * gdk/win32/gdkproperty.c: A bit more verbose logging.
19994
19995         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
19996         that never got deleted). Revamp gdk_region_shrink.
19997
19998         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
19999         after use.
20000
20001         * gtk/gtk.def: Add some missing entry points.
20002
20003         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
20004         component.
20005
20006 1999-07-04  Tor Lillqvist  <tml@iki.fi>
20007
20008         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
20009         Control-digits specially.
20010
20011 1999-07-03  Tor Lillqvist  <tml@iki.fi>
20012
20013         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
20014
20015 1999-06-28  Tor Lillqvist  <tml@iki.fi>
20016
20017         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
20018         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
20019         finding this.)
20020
20021 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
20022
20023         * gtk+.spec.in: Corrected some typos in files section.
20024         
20025 1999-06-15  Tor Lillqvist  <tml@iki.fi>
20026
20027         * README.win32: Mention using GNU gettext.
20028         * config.h.win32: Enable NLS stuff.
20029         * gtk/makefile.msc: Use GNU gettext.
20030         * gdk/win32/gdkdnd.c: Minor header reorg.
20031         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
20032         cosmetics.
20033         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
20034         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
20035
20036 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
20037
20038         * acinclude.m4
20039         * config.guess
20040         * config.status
20041         * ltconfig
20042         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
20043
20044 1999-05-30  Tor Lillqvist  <tml@iki.fi>
20045
20046         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
20047         SafeAdjustWindowRectEx. Don't override all calls to
20048         AdjustWindowRectEx by it, but use it only in two places: When
20049         creating a new top-level window and when moving a top-level
20050         window.
20051
20052         Use screen coordinate rectangle, not client rectangle, in
20053         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
20054         when we try to place a window so that the decoration (mainly,
20055         title bar) isn't visible.
20056
20057         These changes fix the bug that showed up for instance as the
20058         GIMP's saved top-level windows moving right and down (by an amount
20059         equal to the window decoration) for each session. This bug showed
20060         up also in testgtk's "Saved Position".
20061
20062         gdk_window_resize also redone a bit.
20063
20064 1999-05-25  Tor Lillqvist  <tml@iki.fi>
20065
20066         * gtk/testgtkrc: Add (commented out) Windows-style theme
20067         include line.
20068
20069         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
20070
20071 1999-05-18  Tor Lillqvist  <tml@iki.fi>
20072
20073         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
20074         gdkx.h to a gdk subdirectory, so that applications can include
20075         these with <gdk/*.h> without trouble.
20076
20077         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
20078         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
20079         have their bitmap destroyed.
20080
20081         * gdk/win32/gdk.def: Add gdk_root_parent.
20082
20083 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
20084
20085         * configure.in
20086           gtk-config.in
20087           ltconfig
20088           ltmain.sh     
20089           gtk/Makefile.am: changes to compile nicely (with xlib) 
20090           on BeOS
20091
20092 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
20093
20094         * acinclude.m4
20095         * config.guess
20096         * config.sub
20097         * ltconfig
20098         * ltmain.sh: upgrade to libtool 1.3
20099
20100 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
20101
20102         * gtk/gtkclist.c:
20103         * gtk/gtkctree.c: merges from gtk-1-2
20104
20105 1999-04-25  Tor Lillqvist  <tml@iki.fi>
20106
20107         Support added for building using a GNU toolchain on Win32,
20108         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
20109
20110         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
20111         * config.h.win32: Changes for gcc.
20112         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
20113         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
20114         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
20115         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
20116         Protect shl stuff unavaiilable with mingw32 headers.
20117         * gdk/win32/gdkevents.c: Fix typo.
20118         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
20119         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
20120         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
20121         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
20122         the mingw32 headers.
20123         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
20124         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
20125         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
20126         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
20127         Test for NATIVE_WIN32, not _MSC_VER.
20128         * gtk/gtkmain.c: No use warning about developer version on Win32,
20129         there aren't any non-developer versions anyhow.
20130         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
20131         * gtk/makefile.msc: Use pthread from another directory. Minor other
20132         changes. 
20133
20134 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
20135
20136         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
20137           default filter from the list
20138
20139 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
20140
20141         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
20142          when gtk_widget_grab_default() is called for a widget that
20143          is not within a GtkWindow.
20144
20145 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
20146
20147         * docs/gtk_tut.sgml, examples/clist.c: use a
20148           scrolled window in the clist example. Minor
20149           tutorial fixes.
20150
20151 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
20152
20153         * docs/gtk_tut.sgml: Style check from David King
20154           <dking@youvegotmail.net>
20155
20156 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
20157
20158         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
20159         compile with unknown value of GDK_WINDOWING
20160
20161 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
20162
20163         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
20164         after the rule is fired.
20165         (install-exec-local): Install gdkconfig.h only if the contents are
20166         different from the currently installed gdkconfig.h.
20167
20168 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
20169
20170         * gdk/Makefile.am (configexecincludedir): Rename from 
20171         configincludedir so that gdkconfig.h will be installed 
20172         as part of `make install-exec'. 
20173
20174 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
20175
20176         * acinclude.m4
20177         * config.guess
20178         * config.sub
20179         * ltconfig
20180         * ltmain.sh: upgrade to libtool 1.2f
20181
20182         * autogen.sh: libtool is not required to autogen gtk+
20183
20184         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
20185         needed)
20186
20187 1999-03-18  Tor Lillqvist  <tml@iki.fi>
20188
20189         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
20190         declaring gdk variables exported/imported from the DLL. New image
20191         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
20192         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
20193         GDK_DRAG_PROTO_OLE2.
20194
20195         * gdk/gdk.h: Merge in Win32 version: Two new functions,
20196         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
20197         declared only for the Win32 version, but could be in the X11
20198         version as well. (Needed for a Xlib-less gdk_imlib.)
20199         gdk_color_hash should have only one parameter. Declare
20200         gdk_threads_mutex with GDKVAR.
20201         
20202         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
20203         just one parameter.
20204
20205         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
20206         per pixel, not bits.
20207
20208         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
20209         Fetch bpp (which means bits-per-pixel here) from another place on
20210         Win32. Accept also depth==32 (which we might get on Win32) with
20211         bpp==32.
20212
20213         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
20214         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
20215         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
20216         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
20217         in the backend-dependent directory, not in the common gdk
20218         directory.
20219
20220         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
20221         headers.
20222
20223 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
20224
20225         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
20226         want to use the Gtk+ devel version (which is true, and yes - even i am
20227         currently working with the 1.2.x branch). so everyone reading this, you
20228         probably want to issue
20229         cvs checkout -r glib-1-2 glib
20230         and
20231         cvs checkout -r gtk-1-2 gtk+
20232         as your next two comands.
20233
20234 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
20235
20236         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
20237         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
20238
20239         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
20240         file. strongly deprecated the GTK_HAVE_* macros, we provide
20241         GTK_CHECK_VERSION() for people that need to check for certain
20242         Gtk+ versions.
20243
20244         * gtk/gtkcompat.h: removed this from CVS.
20245         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
20246         idea right from the start, it just didn't seem like that back then.
20247
20248 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
20249
20250         * merges from gtk-1-2:
20251
20252 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
20253
20254         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
20255         item factory class has been created.
20256         (gtk_item_factory_parse_rc): likewise.
20257
20258         * gtk/gtkmenu.c:
20259         keep proper references for old_active_menu_item.
20260         (gtk_menu_reparent): unset the usize of the new parent,
20261         so the menu can sanely be size requested and we don't get nasty screen
20262         artefacts upon next reparentation.
20263         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
20264         enter notify. only synthesize enter notifies if the pointer really is
20265         inside the event window.
20266         (gtk_menu_popdown): use gtk_menu_shell_deselect().
20267         (gtk_menu_popup): move the background setting stuff into
20268         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
20269
20270         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
20271         gtk_menu_shell_select_item() to select the new item.
20272         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
20273         do the right thing for deselection as well.
20274
20275 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
20276
20277         * gtk/gtkwidget.[hc]:
20278         (gtk_widget_accelerators_locked): return whether a widget's accelerators
20279         are locked.
20280
20281         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
20282         existing accelerators if the widget's accelerators are locked.
20283
20284 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
20285
20286         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
20287
20288         * gtk/gtkmenu.c: truely forward key press and key release events to
20289         the menu widget from the toplevel or tearoff window. we can't simply
20290         connect to that, we need to stop further processing of the events as
20291         well.
20292
20293 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
20294
20295         * gtk/gtkmenu.c:
20296         (gtk_menu_key_press): pass event->keyval, event->state to
20297         gtk_accelerator_valid, instead of event->keyval twice.
20298         refuse to install single letter accelerators for menus that use
20299         single letter shortcuts.
20300
20301         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
20302         gtk_menu_ensure_uline_accel_group().
20303
20304         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
20305         which will always return an uline accel group, made
20306         gtk_menu_get_uline_accel_group() return NULL if the group isn't
20307         yet created.
20308
20309 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
20310
20311         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
20312
20313         * gtk/gtkclist.c (gtk_clist_column_title_passive):
20314         Leave button sensitive, trap  button_press, button_release,
20315         motion_notify, enter_notify and leave_notify events instead.
20316         (gtk_clist_column_title_active): disconnect event handler.
20317         (gtk_clist_drag_data_get): fixed memory leak. Reported by
20318         Guillaume Laurent <glaurent@worldnet.fr>
20319
20320 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
20321
20322         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
20323         width/height mixups.
20324
20325         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
20326         if needed.
20327
20328 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
20329
20330         * gtk/testgtk.c (create_item_factory): unref the item factory after
20331         window's destruction.
20332
20333         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
20334         count on the menu shell around the menu item's activation, since the
20335         signal emission may cause menu shell destruction.
20336
20337         * gtk/gtkitemfactory.c:
20338         the previous code leaked one accel group per menu. we use
20339         gtk_menu_get_uline_accel_group() now to fix that, and with that
20340         also create the underline accelerator group of the menus only if
20341         required (i.e. an underline accelerator has been specified).
20342         (gtk_item_factory_construct):
20343         (gtk_item_factory_create_item): removed code that would create an
20344         extra accel group for the menu (and leak references).
20345         (gtk_item_factory_create_item): adapted the underline accelerator
20346         installation code to properly feature gtk_menu_get_uline_accel_group().
20347
20348         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
20349         menu->accel_group, this may return NULL if the accelerator group
20350         hasn't been set yet.
20351         added gtk_menu_get_uline_accel_group() to retrive the underline
20352         accelerator group of the menu, this will be created on demand
20353         and proper care is taken about its reference count.
20354
20355         * gtk/gtkitemfactory.h:
20356         * gtk/gtkitemfactory.c:
20357         dumped the approach of keeping a widgets by action list on the
20358         factory since the factory<->widget destroy negotiation didn't work
20359         and would be hard to get going at all. instead we keep a list of
20360         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
20361         persistant throughout a program's life time).
20362         also, i removed the static const gchar *key_* variables, and made
20363         them inline strings (they weren't actually used anyways).
20364         (gtk_item_factory_add_item): update ifactory->items.
20365         (gtk_item_factory_destroy): destroy ifactory->items (and remove
20366         the item factory pointer from the remaining ifactory widgets).
20367         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
20368         list to find the widget.
20369         (gtk_item_factory_get_item): new function that works around
20370         gtk_item_factory_get_widget() limitations, this function will only
20371         return menu items, even for <Branch> entries.
20372
20373 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
20374
20375         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
20376         font hash table, if we have a GdkFontPrivate entry for this font
20377         already, simply increment its reference count, provided by Olaf Dietsche
20378         <olaf.dietsche+list.gtk@netcologne.de>.
20379
20380         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
20381         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
20382
20383 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
20384
20385         * gtk/gtkcontainer.c:
20386         (gtk_container_add_with_args):
20387         (gtk_container_addv):
20388         (gtk_container_add): before adding a child to a conatiner, make sure
20389         it is (default) constructed, this is neccessary because under certain
20390         circumstances the child will get relized and mapped immediatedly, in
20391         which case it has to be constructed already.
20392
20393 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
20394
20395         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
20396         values > 1 as TRUE also.
20397
20398 1999-03-16  Tor Lillqvist  <tml@iki.fi>
20399
20400         * README.win32: New file.
20401                 
20402         * configure.in: Check for lstat.
20403
20404         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
20405         completeness.
20406
20407         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
20408
20409         * gtk/gtk.def: Removed CRs.
20410
20411         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
20412         ..\gdk\win32).
20413
20414         * gdk/win32/makefile.msc: Correct upwards relative paths.
20415         
20416 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
20417
20418         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
20419           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
20420           it was connecting a void function to expose_event and the int
20421           returning function to the draw signal
20422
20423 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
20424
20425         * configure.in:
20426         Use correct path to libgmodule.la when ref'ing uninstalled copy
20427         of glib.  (Already in stable branch, Bug #417)
20428
20429 1999-03-15  Tor Lillqvist  <tml@iki.fi>
20430
20431         Win32 merge and general portability stuff:
20432                 
20433         * acconfig.h,configure.in: Check for <sys/time.h>.
20434
20435         * gdk/win32: New directory (actually, been there for a while).
20436         
20437         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
20438         NATIVE_WIN32, and use these. Always case fold on Win32. No
20439         backslashed escapes on native Win32.
20440
20441         * gtk/{gtk.def,makefile.msc}: New files.
20442
20443         * gtk/Makefile.am: Add above new files.
20444         
20445         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
20446         instead of <strings.h>.
20447
20448         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
20449         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
20450         <unistd.h> appropriately.
20451
20452         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
20453         Use ABS() (from <glib.h>) instead of abs().
20454         
20455         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
20456         of gtk (and thus glib) headers, so that WIN32 will be
20457         defined. With MS C, include <direct.h> for mkdir prototype.
20458
20459         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
20460         some casts, needed by MS C.
20461
20462         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
20463         implemented).
20464
20465         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
20466         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
20467         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
20468
20469         * gtk/gtkmain.h: Mark variables for export/import on Win32.
20470                 
20471         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
20472         the event is not a hint, or its window is not the slider. Needed
20473         on Win32, at least.
20474
20475         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
20476         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
20477         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
20478         a subdirectory of the Windows directory as gtk system
20479         configuration directory.
20480
20481         * gtk/gtkselection.c: No chunks on Win32.
20482
20483         * gtk/gtksocket.c: Not implemented on Win32.
20484
20485         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
20486
20487         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
20488
20489         * gtk/maketypes.awk: Declare variables with a macro that expands to
20490         necessary export/import magic in the case of Win32.
20491                 
20492         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
20493
20494 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
20495
20496         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
20497         since those were meant only for gdki18n.h.  
20498         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
20499         for widechar tests.
20500         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
20501
20502 1999-03-13  Tor Lillqvist  <tml@iki.fi>
20503
20504         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
20505         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
20506
20507         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
20508         installed) to CFLAGS.
20509
20510         * gdk/Makefile.am: Add rules for gdkconfig.h.
20511
20512         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
20513         APIs.
20514
20515         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
20516         gdkx.h anyway when compiling for X11.
20517         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
20518         general): Merge in Win32 version.
20519         
20520         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
20521         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
20522         expansion (if we don't have HAVE_PWD_H), allow for drive
20523         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
20524         included code from Craig Setera's port to Win32 (the one that uses
20525         X11, and the cygwin dll), even if it probably will be abandoned.
20526
20527         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
20528         the user entered one herself.  This way one can complete *.h and
20529         don't get matches on any .help files, for instance.
20530         
20531 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
20532
20533         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
20534         font hash table, if we have a GdkFontPrivate entry for this font
20535         already, simply increment its reference count, provided by Olaf Dietsche
20536         <olaf.dietsche+list.gtk@netcologne.de>.
20537
20538         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
20539         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
20540
20541 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
20542
20543         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
20544         the number of calls to gdk_draw_point() (and thus to X) by
20545         clipping the points by hand.
20546
20547         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
20548         the clip parameter.
20549         (gtk_handle_box_paint): Only paint the handle if the expose area
20550         intersects it.
20551
20552 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
20553
20554         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
20555
20556 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
20557
20558         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
20559         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
20560
20561 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
20562
20563         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
20564          textmode (O_TEXT) for OS/2 version.
20565
20566 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
20567
20568         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
20569         GtkSpinButton, "input" and "output", to make the output more flexible.
20570         The user has to provide a mapping between adjustment->value and the
20571         output string (and vice versa, if the spin button is editable). 
20572         See testgtk for examples.
20573
20574 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
20575
20576         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
20577         new one.
20578         
20579         * configure.in: set gtk+ version to 1.3.0.