]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-2
Don't chain up to the container's expose event. Instead call
[~andy/gtk] / ChangeLog.pre-2-2
1 2002-02-13  Joe Shaw  <joe@ximian.com>
2
3         * gtk/gtktreeitem.c (gtk_tree_item_expose): Don't chain up to the
4         container's expose event.  Instead call
5         gtk_tree_item_expose_child() on each child.  Avoids a failed
6         g_assert() in gtk_container_propagate_expose().
7         (gtk_tree_item_expose_child): Added.  Synthesize an expose event
8         for our children.  Basically gtk_container_propagate_expose()
9         minus the g_assert().  (#71396)
10
11 2002-02-13  Tor Lillqvist  <tml@iki.fi>
12
13         * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
14         fine-grained debugging output (mainly used in the Win32 backend).
15
16         * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
17
18 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
19
20         * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
21         as toggle-tooltips-mode.
22
23         * gtk/gtktooltips.c: Remove parsing of tooltips style
24         string from here ... now in gtkrc.c.
25
26 Wed Feb 13 12:41:44 2002  Owen Taylor  <otaylor@redhat.com>
27
28         * gtk/gtkmain.c (gtk_init_check): g_warning() if setting
29         the local fails, like gdk_set_locale() did.
30
31         * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list): 
32         Don't free local_list if local_count == 0. (#71241, reported
33         by Kevin Vandersloot.)
34
35         * gdk/x11/gdkselection-x11.c (gdk_text_property_to_text_list): 
36         Clean up list == NULL handling and failure.
37
38 Wed Feb 13 11:27:31 2002  Owen Taylor  <otaylor@redhat.com>
39
40         * tests/testtreeview.c (typesystem_recurse): Cast GType
41         to long and use %ld to fix warning. (#71318, Morten Welinder)
42
43 Wed Feb 13 13:26:39 2002  Tim Janik  <timj@gtk.org>
44
45         * gtk/gtkmenu.c: fix figuring accel path and changing behaviour.
46
47 Wed Feb 13 06:42:37 2002  Tim Janik  <timj@gtk.org>
48
49         * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
50         my recent expanding change to not expand the table if all children
51         have not epxand behaviour. this fixes palette views which often
52         use homogeneous non-expanding tables.
53
54 Tue Feb 12 14:27:41 2002  Kristian Rietveld  <kris@gtk.org>
55
56         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
57         row_deleted before we start unreffing the nodes ourselves
58         (gtk_tree_model_sort_increment_stamp): always increment the stamp,
59         and not only if the stamp equals 0 (pointed out by Darin Adler)
60
61         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): we want
62         to continue the while loop and not the nested for loop.
63
64 Tue Feb 12 02:19:49 2002  Tim Janik  <timj@gtk.org>
65
66         * gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
67         the extra space allocated for the homogeneous case, as we don't
68         properly deal with readjusting table allocation within it. (for  this
69         purpose, a GtkAlignment can be used as table parent).
70
71 2002-02-11  Darin Adler  <darin@bentspoon.com>
72
73         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
74         Consider reordering the row even when there's no sort column, if
75         there's a default sort function.
76         (gtk_tree_model_sort_rows_reordered): Use symbolic constants.
77         (gtk_tree_model_sort_level_find_insert): Add code to handle the
78         case where there is no sort column, but a default sort function.
79         (gtk_tree_model_sort_insert_value): Add code to handle the case
80         where there is no sort column an no default sort function.
81         (gtk_tree_model_sort_set_model): Use symbolic constant.
82         (gtk_tree_model_sort_reset_default_sort_func): Use symbolic constant.
83
84 2002-02-11  Sven Neumann  <sven@gimp.org>
85
86         * gtk/gtkfilesel.c: converted the "Delete File" dialog to
87         GtkMessageDialog. Marked missing strings for translation.
88
89 Mon Feb 11 22:03:15 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
90
91         * gtk/gtkpaned.[ch]: Opaque resizing + prelighting for paned widget.
92         * gtk/gtkvpaned.c, gtk/gtkhpaned.c: move reszing logic to gtkpaned.c
93
94 Mon Feb 11 21:42:17 2002  Kristian Rietveld  <kris@gtk.org>
95
96         Implements DnD scrolling and fixes #71139
97
98         * gtk/gtktreeview.c (gtk_tree_view_vertical_autoscroll): new function,
99         (scroll_row_timeout): new function,
100         (gtk_tree_view_drag_motion): create scroll_timeout, so
101         scroll_row_timeout gets called
102
103 Mon Feb 11 17:54:46 2002  Kristian Rietveld  <kris@gtk.org>
104
105         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
106         member of hadjustment correct, so the hscrollbars of lists smaller
107         than 1 page (in width) are somewhat saner
108
109 2002-02-11  jacob berkman  <jacob@ximian.com>
110
111         * gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to
112         match implementation
113
114 Mon Feb 11 16:48:34 2002  Kristian Rietveld  <kris@gtk.org>
115
116         * gtk/gtkliststore.c (gtk_list_store_set_valist): set value of
117         func to NULL during initialization (we don't use func in the
118         !SORTED case, so we just silent the compiler here) (#71029)
119
120 Mon Feb 11 16:40:44 2002  Kristian Rietveld  <kris@gtk.org>
121
122         * gtk/gtktreeview.c (gtk_tree_view_set_model): install presize
123         handler, so the validate_rows_handler will always be run (#70997)
124
125 Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
126
127         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
128         value of new_location by one if cmp_a > 0 and we hit the end of
129         the list and pass NULL instead of a 'NULL-iter' with
130         _rows_reordered (#71060)
131
132 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
133
134         * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
135         imti-et.c} po/POTFILES.in: Add three Ethiopic input methods from
136         Daniel Yacob.
137
138 2002-02-10  Anders Carlsson  <andersca@gnu.org>
139
140         * gtk/gtkcalendar.c (gtk_calendar_class_init): Set finalize handler;
141         (gtk_calendar_finalize): Rename gtk_calendar_destroy to 
142         gtk_calendar_finalize since ::destroy can be called multiple times, 
143         resulting in double-freeing memory.
144
145 2002-02-10  Hans Breuer  <hans@breuer.org>
146
147         * gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
148         rect size by the scroll amount
149
150         * gdk/win32/gdkwindow-win32.c
151         * gdk/win32/gdkselection-win32.c : added some casts to
152         make it compile with msvc's strict type checking
153
154         * gtk/fnmatch.c : #include <ctype.h> again for tolower
155         prototype. The fnmatch() code assumes to be in the crt 
156         locale though it is feeded by utf8 strings from gtkfilesel.c
157
158         * gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
159         _CompletionDir instead of referencing already freed memory
160
161         * gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
162         gtk_rc_parse_string (theDefaultTooltipColor) once as it
163         was intended
164
165         * tests/makefile.msc : added more tests
166
167         * tests/testgtk.c (create_list) : don't try to load gtkenums.h
168         from the current directory use ../gtk/gtkenums.h instead
169
170 2002-02-10  Kjartan Maraas  <kmaraas@gnome.org>
171
172         * gtk/gtksizegroup.c: Fix a double «The» typo in a string.
173         
174 2002-02-09  Matthias Clasen  <matthias@local>
175
176         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Avoid segfault
177         for selectable tab labels (even without a segfault, they make the
178         notebook almost unusable, though).  (#69985)
179
180 2002-02-08  Matthias Clasen  <matthias@local>
181
182         * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Silently do 
183         nothing if the parent is not a menu.  (#66492)
184
185 2002-02-06  Matthias Clasen  <matthiasc@poet.de>
186
187         * gtk/gtkitemfactory.c (gtk_item_factory_from_widget,
188         gtk_item_factory_path_from_widget): Try fetching the return value 
189         from menu_item->submenu as a fallback.  (#69020)
190         
191 Sat Feb  9 22:57:43 2002  Kristian Rietveld  <kris@gtk.org>
192
193         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): convert
194         the iter to a child iter again, after doing _iter_children. It's
195         possible that _iter_children added some rows and updated the stamp.
196
197 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
198
199         * gtk/gtktextchild.c: Use == rather than = in sanity
200         checks.  Ouch!
201
202 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
203
204         * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
205         curled braces so that it doesn't always return.  Also indent
206         both CHECK_IN_BUFFER* macros properly, and make use of
207         G_STMT_START/G_STMT_END.
208
209 Sat Feb  9 13:27:14 2002  Owen Taylor  <otaylor@redhat.com>
210
211         * gtk/gtkbindings.h: Add prototype for
212         _gtk_binding_reset_parsed().
213
214 Sat Feb  9 13:19:20 2002  Owen Taylor  <otaylor@redhat.com>
215
216         * configure.in gtk/Makefile.am gtk/theme-bits/*: Add
217         tools and images used for creating the check/radio
218         button images in the default theme.
219
220 Sat Feb  9 13:58:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
221
222         * gtk/gtkpaned.[ch]: Keyboard navigation for GtkPaned
223         F6: cycle between panes.
224         F8: focus handle (#53584)
225         
226         * tests/testgtk.c: Add test cases for GtkPaned keyboard 
227         navigation.
228         
229 Sat Feb  9 00:16:31 2002  Owen Taylor  <otaylor@redhat.com>
230
231         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): 
232         XCopyArea with subwindow_mode = IncludeInferiors.
233         (#70999)
234
235         * demos/testpixbuf-save.c (configure_cb): Fix a minor
236         memory management problem.
237
238 Fri Feb  8 20:24:58 2002  Owen Taylor  <otaylor@redhat.com>
239         
240         * gtk/gtkbindings.c (binding_compose_params): Fix problem
241         with string-valued parameters (#70012, Johan Dahlin.)
242
243         * gtk/gtkentry.c (gtk_entry_delete_whitespace): Fix 
244         white space deletion.
245
246 Fri Feb  8 21:25:56 2002  Jonathan Blandford  <jrb@redhat.com>
247
248         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): fix
249         evil ref bug where the wrong row and a deleted row was unreffed.
250         Found by Darin Adler <darin@bentspoon.com>
251
252 Fri Feb  8 18:46:13 2002  Owen Taylor  <otaylor@redhat.com>
253
254         * gtk/gtkbindings.[ch] (_gtk_binding_reset_parsed): Add
255         a function to delete all bindings add by
256         gtk_binding_parse_binding() when rereading RC files.
257
258         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Reset
259         binding set content as well as RC content.
260
261         * gtk/gtkbindings.c (binding_compose_params): Fix 
262         various GValue handling problems.
263
264         * gtk/gtkentry.c (gtk_entry_class_init): Remove bindings 
265         for C-b, C-f, M-b, M-f, C-a, C-e, C-w, C-y, M-space, C-u,
266         C-k, M-\, M-d, C-d.
267
268         * gtk/gtktextview.c (gtk_text_view_class_init): Remove
269         same bindings as GtkEntry, plus C-n, C-p, C-space
270
271         * gtk/gtkrc.key.default gtk/gtkrc.key.emacs gtk/Makefile.am:
272         Add Emacs and Default key themes.
273         
274 2002-02-08  Darin Adler  <darin@bentspoon.com>
275
276         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
277         Remove a tiny bit more dead code.
278
279 2002-02-08  Darin Adler  <darin@bentspoon.com>
280
281         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
282         Fix stale pointer bug.
283
284 Fri Feb  8 14:30:14 2002  Owen Taylor  <otaylor@redhat.com>
285
286         * gtk/gtkclist.c (title_focus_in): Return FALSE if
287         not showing the titles. (#70959, Thomas Leonard)
288
289 2002-02-08  Darin Adler  <darin@bentspoon.com>
290
291         * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
292         * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
293         * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
294         * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
295         * gtk/fnmatch.c: Remove <ctype.h> include.
296         * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
297         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
298         g_unichar_toupper, toupper -> g_unichar_totile
299         * gtk/gtkbindings.c: Remove <ctype.h> include.
300         * gtk/gtkfontsel.c: Remove <ctype.h> include.
301         * gtk/gtkiconfactory.c: Remove <ctype.h> include.
302         * gtk/gtkinputdialog.c: Remove <ctype.h> include.
303         * gtk/gtklabel.c: Remove <ctype.h> include.
304         * gtk/gtkmain.c: Remove <ctype.h> include.
305         * gtk/gtkmenu.c: Remove <ctype.h> include.
306         * gtk/gtkoldeditable.c: Remove <ctype.h> include.
307         * gtk/gtkrc.c: Remove <ctype.h> include.
308         * gtk/gtktextbtree.c: Remove <ctype.h> include.
309         * gtk/gtktextiter.c: Remove <ctype.h> include.
310         * gtk/gtktextsegment.c: Remove <ctype.h> include.
311
312 2002-02-08  Sven Neumann  <sven@gimp.org>
313
314         * gtk/gtkfilesel.c
315         * gtk/gtkgamma.c
316         * gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
317
318 2002-02-08  Darin Adler  <darin@bentspoon.com>
319
320         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
321         (gtk_tree_model_sort_unref_node): Pass the ref_node and
322         unref_node calls through to the child model.
323
324 2002-02-08  Laszlo Peter  <laca@ireland.sun.com>
325
326         * gtk/gtktextchild.c: s/__FUNCTION__/G_GNUC_FUNCTION/
327         * gtk/gtktextview.c: ditto
328
329 2002-02-07  Havoc Pennington  <hp@pobox.com>
330
331         * gtk/gtkspinbutton.h (struct _GtkSpinButtonClass): add
332         change_value virtual function, to fix build
333
334         * gtk/gtkpixmap.c (gtk_pixmap_class_init): parent_class was 
335         from GtkWidget not GtkMisc. Not that it ever mattered.
336
337 Thu Feb  7 19:52:00 2002  Owen Taylor  <otaylor@redhat.com>
338
339         * gtk/gtknotebook.[ch]: Add ::move-focus-out signal
340         to handle Control[-Shift]-Tab and Control-arrow
341         bindings and implement bindings as per #53612.
342
343         * gtk/gtktextview.c (gtk_text_view_move_focus): Fix 
344         fetching the toplevel for plug-socket.
345
346         * gtk/gtknotebook.c (gtk_notebook_class_init): Remove
347         bindings for Return/Enter to select the page.
348
349         * gtk/gtknotebook.c (gtk_notebook_change_current_page):
350         Beep at ends.
351
352         * gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
353         and beep at ends.
354
355         * gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
356         the page with the arrow keys, focus the first widget,
357         not the directionally closest widget.
358
359 Thu Feb  7 19:00:10 2002  Owen Taylor  <otaylor@redhat.com>
360
361         * gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
362         to using  binding set for doing key bindings. (#62622,
363         Requested by Skip Montaro)
364
365         * gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
366         bindings as overrides along with control-tab bindings.
367
368         * gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
369         type for ::focus_tab signal.
370
371 Thu Feb  7 19:39:27 2002  Kristian Rietveld  <kris@gtk.org>
372
373         Fixes #70782 and some drag dest rectangle/line issues
374
375         * gtk/gtktreeview.c (gtk_tree_view_set_model): set
376         GTK_TREE_VIEW_IS_LIST flag (we can switch from a TreeStore to a
377         ListStore for example)
378         (gtk_tree_view_get_path_at_pos): revert previous change, we
379         shouldn't correct for the header, because we are taking bin_window
380         coordinates here
381         (gtk_tree_view_set_drag_dest_row): queue old drag_dest row and
382         upper/lower neighbors for draw, so the drag dest rectangle/line will
383         be cleared correctly
384         (gtk_tree_view_get_dest_row_at_pos): correct for treeview header
385         here, as drag_y is relative to the widget and _get_path_at_pos wants
386         coords relative to bin_window, draw black outline rectangle after
387         drawing the cells
388
389 Thu Feb  7 10:53:12 2002  Owen Taylor  <otaylor@redhat.com>
390
391         * gtk/gtkentry.c (gtk_entry_draw_text): Use layout text
392         (which may be affected by invisible char) to compute
393         selection bounds, not entry text. (#70733, Alex Larsson)
394
395 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
396
397         * gtk/gtkwidget.[ch]:
398         Change show_help signal to return gboolean instead of void. This
399         allows the keypress which invokes the signal to be propagated to the
400         focus widgets ancestors if not handled by the focus widget.
401         
402         * gtk/gtktoolips.[ch]
403         Change _gtk_tooltips_show_tip () to return a gboolean indicating
404         whether widget has tooltip to display.
405         
406 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
407
408         * gtk/gtkwidget.[ch]:
409         Change popup_menu signal to return gboolean instead of void. This
410         allows the keypress which invokes the signal to be propagated to the
411         focus widgets ancestors if not handled by the focus widget.
412
413         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtktextview.c:
414         Change signature of popup_menu signal handler to return gboolean
415         instead of void and return TRUE in the signal handler
416
417 2002-02-07  Anders Carlsson  <andersca@gnu.org>
418
419         * gdk/x11/xsettings-common.c (xsettings_setting_free): Free 
420         the setting name.
421
422 Wed Feb  6 23:28:39 2002  Kristian Rietveld  <kris@gtk.org>
423
424         Fixes #70708
425
426         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): we're dealing
427         with widget coordinates here, so take the header height into
428         account while converting
429         (gtk_tree_view_widget_to_tree_coords): take header height into
430         account
431         (gtk_tree_view_tree_to_widget_coords): ditto
432         (gtk_tree_view_get_dest_row_at_pos): we were passing coords
433         relative to the tree with _get_path_at_pos, while that function
434         wants coords relative to the widget
435
436 2002-02-06  Havoc Pennington  <hp@redhat.com>
437
438         * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
439         (gtk_text_view_get_window): add warning about how you
440         can't get the private window. #70683, and avoid default: in the
441         switch so we get "enum value unhandled" warnings
442
443 2002-02-06  Havoc Pennington  <hp@redhat.com>
444
445         * gtk/gtktextchild.c: Add warnings if you try to use a child
446         anchor that isn't inside a buffer. Really kind of lame; 
447         we should separate the anchor from the buffer. But not worth 
448         fixing for now. #70601
449
450 Wed Feb  6 18:25:24 2002  Kristian Rietveld  <kris@gtk.org>
451
452         * gtk/gtktreemodelsort.c: rip out all the debugging ifdefs, as
453         modelsort seems to be stable (and nobody complained :)
454
455 Tue Feb  5 19:13:42 2002  Owen Taylor  <otaylor@redhat.com>
456
457         * gdk/x11/gdkgeometry-x11.c (gdk_window_queue): Keep
458         the length of the anti-expose queue finite, by if
459         it gets too long, first doing a XSync() and checking
460         the event queue, and if that doesn't work, simply
461         discarding all anti-expose items in the queue.
462
463         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix ordering
464         on ConfigureNotify (#56349, Thomas Leonard)
465
466 2002-02-05  Havoc Pennington  <hp@redhat.com>
467
468         * gtk/gtkimage.c (gtk_image_expose): offset area being gotten from
469         pixmap by the align/padding offsets, so we don't get warnings
470         in gdk_pixbuf_get_from_drawable (and so it works, of course)
471
472 2002-02-05  Matthias Clasen  <matthiasc@poet.de>
473
474         * gtk/gtkrc.c (gtk_rc_parse_file): Remove a (now) misleading comment.
475
476 2002-02-05  Federico Mena Quintero  <federico@ximian.com>
477
478         * gdk/gdkwindow.h: Do not #include <gdk/gdkwindow.h>.
479
480 Tue Feb  5 22:54:16 2002  Kristian Rietveld  <kris@gtk.org>
481
482         * gtk/gtkliststore.c (gtk_list_store_insert_after): let's set the
483         path, which we're going to pass with the emission of row_inserted, to
484         the iter we inserted and not its sibling.
485
486 2002-02-04 Padraig O'Briain <padraig.obriain@sun.com>
487
488         * gtk/gtkmenu.c (gtk_menu_popup):
489         Fix leak of GdkEvent (#70519)
490
491 Mon Feb  4 10:40:28 2002  Owen Taylor  <otaylor@redhat.com>
492
493         * gtk/gtkstyle.c (gtk_default_draw_resize_grip):
494         Fix from Matthias Clasen to clear background appropriately
495         for theme by calling gtk_style_apply_default_background().
496         (#70449)
497
498 Mon Feb  4 10:06:49 2002  Owen Taylor  <otaylor@redhat.com>
499
500         * gdk/x11/gdkevents-x11.c: gtk-double-click-time,
501         not gtk-double-click-timeout. (#70501)
502
503 2002-02-04  Havoc Pennington  <hp@pobox.com>
504
505         * gtk/gtksignal.c (gtk_signal_connect_while_alive): 
506         (gtk_signal_connect_object_while_alive): rename 
507         "signal" arg to "name" to avoid compiler warnings
508         about shadowing signal(). #70453
509
510 2002-02-03  Anders Carlsson  <expander-master@gtk.org>
511
512         * gtk/gtkstyle.c (gtk_default_draw_expander): Add 
513         flipping support to the expanders.
514
515 Sat Feb  2 21:54:01 2002  Owen Taylor  <otaylor@redhat.com>
516
517         RC file lookup improvements (#68234, suggestions
518         from Matthias Clasen.)
519
520         * gtk/gtkrc.c (gtk_rc_parse_file): Look for the 
521         locale suffix variants (gtkrc.en_US, gtkrc.en) for
522         all RC files we parse, not just the default RC
523         files.
524
525         * gtk/gtkrc.c (gtk_rc_parse_default_files): Remove
526         support for charset specific RC files.
527
528 Sat Feb  2 20:16:04 2002  Owen Taylor  <otaylor@redhat.com>
529
530         * gtk/gtkmenushell.c (_gtk_menu_shell_select_first): 
531         Non-exported _gtk_menu_select_first() function that
532         selects the first item of the menu in a standard
533         way. (Skipping tearoffs.)
534
535         * gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
536         gtkmenuitem.c: Use _gtk_menu_shell_select_first().
537
538         * gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
539         if we are starting the timeout from a keypress so
540         we can set menushell->ignore_enter properly.
541
542         * gtk/gtknotebook.c (focus_child_in): Return something
543         meaningful if there are no children.
544
545         * gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
546         problem.
547
548 Sat Feb  2 19:15:42 2002  Owen Taylor  <otaylor@redhat.com>
549
550         * gtk/gtkmenu.c (gtk_menu_popup): Fix some bugs in
551         the determination of xgrab_shell.
552
553 Sat Feb  2 17:43:00 2002  Owen Taylor  <otaylor@redhat.com>
554
555         * gtk/gtkentry.c (gtk_entry_grab_focus): Add a GtkSetting
556         (gtk-entry-select-on-focus) controlling whether the
557         contents of an entry are selected on focus in.
558
559         * gtk/gtkmenu.c (gtk_menu_key_press): Add a GtkSetting
560         (gtk-can-change-accels) controlling whether accelerators can be
561         changed on the fly or not. (#51902)
562
563         * gtk/gtkmenu.c (gtk_menu_key_press): Allow unmodified
564         accelerators, now that accelerator changing can be turned
565         off for those who won't expect it. (#61285)
566
567         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow 
568         Backspace/Delete/KP_Delete as valid accelerators.
569
570         * gtk/gtkmenu.c (gtk_menu_key_press): Allow setting of
571         Delete/Backspace as accelerators by making them toggle
572         the menu item between empty and the pressed key.
573         (#58605)
574
575         * tests/testgtkrc: Remove the objectionably short cursor blink
576         time setting.
577
578 Sat Feb  2 16:43:31 2002  Owen Taylor  <otaylor@redhat.com>
579
580         * gtk/gtkmenu.c (gtk_menu_popup): To get around the fact
581         that we may have a owner_events = FALSE grab in effect
582         when we pop up a window, make a temporary grab on a
583         different window, then grab on the real window. Fixes
584         a problem where if a context menu popped up under the 
585         cursor, the first item would be stuck unselected.
586         (#59812, reported by Arnaud Charlet.)
587
588 2002-02-02  Peter Williams  <peterw@ximian.com>
589
590         * gtk/Makefile.am (install-data-local): Install gtkrc.default
591         from $(srcdir) for when $(builddir) is different.
592
593 Sat Feb  2 19:00:39 2002  Kristian Rietveld  <kris@gtk.org>
594
595         * gtk/Makefile.am: remove TESTGTK_RCFILE define
596
597 Sat Feb  2 11:37:21 2002  Owen Taylor  <otaylor@redhat.com>
598
599         * gtk/gtkmenu.c (gtk_menu_popup): Remove the 
600         "select first item if popped up from keypress" hack --
601         was causing more problems than it was worth 
602         (#53191, #68483)
603
604         * gtk/gtktextview.c (popup_targets_received): 
605          gtk/gtkentry.c (popup_targets_received): If activated
606         from keyboard, select first item of popup menu.
607
608 Sat Feb  2 18:07:51 2002  Kristian Rietveld  <kris@gtk.org>
609
610         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
611         of vadjustment correct, so the vscrollbars of lists smaller than
612         1 page are somewhat saner (#66905)
613
614         * gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
615         increment the stamp, liststore is a model with persisting iters
616
617 Fri Feb  1 23:54:00 2002  Owen Taylor  <otaylor@redhat.com>
618
619         * gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support 
620         engine "" {} to mean override to the default 
621         engine. (#70205)
622
623 Fri Feb  1 23:25:33 2002  Owen Taylor  <otaylor@redhat.com>
624
625         * gtk/gtktooltips.c (gtk_tooltips_init): Parse the
626         RC string here when the first object is created
627         rather than in the class_init to not break doc 
628         building. (#70341, Havoc Pennington.)
629
630         * gtk/gtkrc.c (parse_include_file): Use the directories
631         for the currently parsed files as the starting point
632         to look for include files. (#59975)
633
634 Fri Feb  1 20:21:56 2002  Manish Singh  <yosh@gimp.org>
635
636         * gtk/gtkinputdialog.c: use gtk_label_new_with_mnemonic for labels
637         that actually have mnemonics
638
639 Fri Feb  1 19:57:59 2002  Owen Taylor  <otaylor@redhat.com>
640
641         * configure.in: Fix use of ! in shell.
642
643         * gtk/gtktooltips.c (gtk_tooltips_class_init) gtkrc.default: 
644         Move the setting of default tooltips colors to gtktooltips.c
645         from gtkrc.default. (Use default priority so themes will
646         override.) (#58542)
647
648 Fri Feb  1 17:48:51 2002  Owen Taylor  <otaylor@redhat.com>
649
650         * gtk/gtkrc.c (gtk_rc_get_style): Fix ordering of
651         priorities so that priorities take precendence over
652         the ordering by type. (#70205)
653
654         * test/testgtkrc tests/testgtk.c (create_rc_file): Add 
655         some labels to test priorities in testgtkrc.
656
657 Fri Feb  1 00:37:49 2002  Kristian Rietveld  <kris@gtk.org>
658
659         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): use
660         y coordinate relative to the tree and not the treeview window
661         (fixes the PgDn/PgUp brokenness)
662
663 Fri Feb  1 23:40:31 2002  Kristian Rietveld  <kris@gtk.org>
664
665         * gtk/gtktreeview.c (gtk_tree_view_button_press): adjust
666         cell_area and background_area for possible treeview scroll
667         (fixes #70283, #70065)
668
669 Fri Feb  1 22:20:13 2002  Kristian Rietveld  <kris@gtk.org>
670
671         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): use
672         height - page_size not height - allocation->height (fixes #66269)
673
674 Fri Feb  1 15:22:23 2002  Owen Taylor  <otaylor@redhat.com>
675
676         * gtk/gtkimage.c (gtk_image_class_init): Fix typo
677         in property description. (Christian Rose.)
678
679 Fri Feb  1 14:50:36 2002  Owen Taylor  <otaylor@redhat.com>
680
681         * gtk/gtkrc.c (gtk_rc_parse_string): Handle reparsing
682         any strings if the theme changes. (#69465)
683
684         * tests/testgtk.c: Add a test for gtk_rc_parse_string().
685
686 Fri Feb  1 20:50:29 2002  Kristian Rietveld  <kris@gtk.org>
687
688         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): set tree to
689         NULL if tree_view->priv->tree is NULL (#70152, patch by John Harper).
690
691 Fri Feb  1 12:51:20 2002  Owen Taylor  <otaylor@redhat.com>
692
693         * gtk/gtknotebook.c (focus_child_in): Catch the
694         cur_page == NULL (no children) case. (#70287,
695         Paolo Maggi.)
696
697 Fri Feb  1 12:12:12 2002  Owen Taylor  <otaylor@redhat.com>
698
699         * gtk/gtkfilesel.c (attempt_file_completion): 
700         s/directory/folder/ in all labels and messages.
701
702 Fri Feb  1 08:57:38 2002  Owen Taylor  <otaylor@redhat.com>
703
704         * gtk/gtkmain.c (gtk_exit_func): Remove this useless
705         atexit handler. (existance pointed out by Stefan Kost)
706
707         * gtk/gtkmain.c (gtk_init_check): Warning fixes.
708
709 Thu Jan 31 18:46:10 2002  Jonathan Blandford  <jrb@redhat.com>
710
711         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): unref the
712         model after the last use, not before.
713
714 Thu Jan 31 14:50:16 2002  Owen Taylor  <otaylor@redhat.com>
715
716         * gtk/gtkrc.default gtk/Makefile.am: Install a Default
717         RC file that sets the tooltips color to yellow. (#58542)
718
719         * gtk/gtksettings.c (gtk_settings_class_init): make 
720         the default theme "Default", not NULL.
721
722 Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
723
724         * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
725         another missing static.
726
727         * gtk/gtkimmodule.c (n_loaded_contexts): And another.
728
729         * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
730         build gxid sources at all except in the vanishingly
731         rare case of --with-xinput=xfree.
732
733 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
734
735         * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
736
737         * gdk/x11/gdkimage-x11.c: (get_full_image): ditto.
738
739         * gdk/x11/gxid_lib.[ch]: (_gxid_claim_device), (_gxid_release_device):
740         renamed from gxid_(claim|release)_device.
741
742         * gdk/x11/gdkinput-gxi.c: (_gdk_input_enable_window),
743         (_gdk_input_disable_window): upd for gxid change.
744
745         * gtk/gtkimage.c: (animation_timeout): make static.
746
747         * gtk/gtkstyle.c: (draw_thin_shadow), (draw_spin_entry_shadow): make
748         static.
749
750         * gtk/gtktextutil.c: (bidi_menu_entries): make static.
751
752 Thu Jan 31 10:21:05 2002  Owen Taylor  <otaylor@redhat.com>
753
754         * gtk/gtkplug.c (gtk_plug_focus): Handle the case where
755         bin->child is NULL. (#70153, Padraig O'Briain)
756
757         * gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): 
758         Actually call gettext() on the labels; previously they
759         were marked with N_() but we never called gettext().
760
761 Wed Jan 30 20:15:49 2002  Jonathan Blandford  <jrb@redhat.com>
762
763         * gtk/gtktreestore.c (gtk_tree_store_set_valist): save last minute
764         changes before committing.
765
766         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
767
768 Wed Jan 30 18:46:14 2002  Jonathan Blandford  <jrb@redhat.com>
769
770         * gtk/gtkliststore.c (gtk_list_store_set_valist): only emit the
771         signal if an interesting column changes.
772
773         * gtk/gtktreestore.c: ditto.
774
775         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): change behavior so
776         that it no longer grabs 
777
778 2002-01-30  Manish Singh  <yosh@gimp.org>
779
780         * gtk/gtkhandlebox.c (gtk_handle_box_destroy): remove unused
781         variable.
782
783         * gtk/gtkwindow.c (gtk_window_get_icon): function returns a value,
784         so return NULL with g_return_val_if_fail instead of g_return_if_fail.
785
786 2002-01-30  Matthias Clasen  <matthiasc@poet.de>
787
788         * gtk/*.c: Remove excess g_return_if_fail calls from static
789         and virtual functions.  (#57615)
790         
791 2002-01-30  Anders Carlsson  <andersca@gnu.org>
792
793         * gtk/gtkstyle.c (gtk_default_render_icon): Allow a -1 icon size.
794
795 Wed Jan 30 20:29:01 2002  Tim Janik  <timj@gtk.org>
796
797         * gtk/gtkscale.c (gtk_scale_set_digits): fix revrted bug fix.
798         (use a define for max digits).
799
800 Wed Jan 30 13:55:59 2002  Owen Taylor  <otaylor@redhat.com>
801
802         * gtk/gtkwindow.c (gtk_window_show): Try to make
803         sure that we have some focused widget on map. (#50339)
804
805         * gtk/gtkdialog.c (gtk_dialog_map): Handling picking
806         a focus widget here differently so that if a
807         response button gets picked, it's the default one.
808
809         * tests/testgtk.c (make_message_dialog): Set the 
810         default response for the dialogs.
811
812 Tue Jan 29 22:52:36 2002  Owen Taylor  <otaylor@redhat.com>
813
814         * Released 1.3.13
815
816         * configure.in: Micro version 13, interface, binary
817         age 0. Require GLIB-1.3.13, Pango 0.24.
818
819         * docs/Makefile.am (EXTRA_DIST): Add widget_geometry.txt,
820         sizing-test.txt, tree-column-sizing.txt
821
822         * docs/Makefile.am (EXTRA_DIST): Don't distribute
823         Changes-1.2.txt, Changes-2.0.txt, README.linux-fb,
824         since they are no longer canonical.
825
826         * gtk/gtk.def: Convert spaces to tabs in front of
827         gtk_widget_set_accel_path in case it matters.
828
829         * NEWS: Updated for 1.3.13.
830
831 Tue Jan 29 22:31:07 2002  Owen Taylor  <otaylor@redhat.com>
832
833         * gtk/gtkwidget.[ch] gtkmenuitem.c gtkitemfactory.c: Export 
834         gtk_widget_set_accel_path().
835
836         * gtk/gtk.def: Add gtk_widget_set_accel_path.
837
838 Tue Jan 29 21:50:28 2002  Owen Taylor  <otaylor@redhat.com>
839
840         * gtk/gtkaccelmap.[ch] gtk/gtkbindings.[ch] gtk/gtkwidget.[ch]:
841         Consistently use GdkModifierType. (#66950, Mark Patton)
842
843         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
844         For consistency with gtk_button_new_from_stock(), fall back
845         to gtk_image_menu_item_new_with_mnemnonic(). (#65944,
846         Havoc Pennington)
847         
848         * gtk/gtkitemfactory.[ch] (gtk_item_factory_path_from_widget): 
849         Make G_CONST_RETURN. (#68527, Matt Wilson)
850
851 Tue Jan 29 20:56:13 2002  Owen Taylor  <otaylor@redhat.com>
852
853         * gtk/gtk[vh]scale.c (gtk_[vh]scale_new_with_range): Document
854         that the end points are included in the range. (#69783,
855         Jeffrey Baker)
856
857 Tue Jan 29 20:38:04 2002  Owen Taylor  <otaylor@redhat.com>
858
859         * gtk/gtkscale.[ch]: Revert the last changes to make the
860         number of digits only effect drawing, instead, don't
861         round unless we are in the 'draw_value' mode -- this
862         is the behavior of GTK+-1.2, and keeps the behavior that
863         if the user sees a displayed value, it is the correct value.
864
865 Tue Jan 29 19:51:05 2002  Owen Taylor  <otaylor@redhat.com>
866
867         * gtk/gtkenums.h: Deprecate GtkPreviewType,
868         GtkSignalRunType, GtkSideType, GtkSubmenuPlacement, GtkSubmenuDirection
869         (#68183, Matthias Clasen)
870
871         * gtk/gtkmenuitem.h: Remove _gtk_menu_item_set_placement() from
872         the public header to avoid having to use GtkSubmenuPlacement.
873
874         * gtk/{gtkmenuitem.c,gtkmenubar.c,gtkmenushell.c}: #define
875         GTK_MENU_INTERNALS to preserve access to GtkSubmenu*.
876
877         * gdk/gdki18n.h: Deprecate contents. (Darin Adler.)
878
879 Tue Jan 29 19:32:47 2002  Owen Taylor  <otaylor@redhat.com>
880
881         * gtk/gtktextview.c (gtk_text_view_get/set_property): 
882         Fix wrong usage of g_value_set/get_object for PROP_TABS
883         and memory leak in getter for PROP_TABS. (Jeff Franks)
884
885 Tue Jan 29 19:04:41 2002  Owen Taylor  <otaylor@redhat.com>
886
887         * gtk/gtkstyle.c (gtk_style_render_icon): Document that
888         a size of (GtkIconSize)-1 means don't scale.
889
890         * gtk/gtkstyle.c (gtk_default_render_icon): Obey the
891         -1 convention.
892
893         * gtk/gtkimage.c (gtk_image_expose): Pass in -1 to
894         gtk_style_render_icon() to make sure that we catch it
895         obviously if the style's render function tries to
896         scale.
897
898 Tue Jan 29 18:50:59 2002  Owen Taylor  <otaylor@redhat.com>
899
900         * gtk/gtkimage.c (gtk_image_expose): Optimize exposes of
901         partial insensitive images.
902
903 2002-01-24  Havoc Pennington  <hp@redhat.com>
904
905         * gtk/gtkimage.c (gtk_image_expose): create insensitive version of
906         the image regardless of storage type, #63305
907
908         * demos/gtk-demo/images.c: add toggle button to demonstrate that
909         GtkImage makes its contents insensitive
910
911 Tue Jan 29 17:40:02 2002  Owen Taylor  <otaylor@redhat.com>
912
913         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
914         Call _gdk_draw_pixbuf(), thus enabling using this function
915         for pixbufs with alpha. (#68801)
916
917         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Move
918         implementation of gdk_pixbuf_render_to_drawable()
919         to here.
920
921 Tue Jan 29 17:16:17 2002  Owen Taylor  <otaylor@redhat.com>
922
923         * gtk/gtklayout.c: Patch from Jacob Berkman to fix problem
924         when the height/width of a layout was set before the
925         adjustments were added. (#66294)
926
927         * gtk/gtktreeview.c: Warning cleanups.
928
929 Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
930
931         * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
932         fix to size of torn off window (#60271, Detlef Reichl)
933
934         * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
935         by Ross Burton)
936
937 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
938
939         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
940         cursor_path after usage
941         (gtk_tree_view_real_start_interactive_search): use new g_signal
942         and g_object calls
943         (gtk_tree_view_search_dialog_destroy): use g_object calls and free
944         selected_iter if set
945         (gtk_tree_view_search_position_func): rework so it will never ever
946         appear offscreen (#68492)
947         (gtk_tree_view_search_move): use new g_object calls
948         (gtk_tree_view_search_init): free selected_iter if set, use new
949         g_object calls
950         (gtk_tree_view_leave_notify): don't destroy interactive search
951         dialog
952
953 Tue Jan 29 23:07:03 2002  Kristian Rietveld  <kris@gtk.org>
954
955         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
956         send focus in event
957         (gtk_tree_view_search_dialog_destroy): send focus out event (#66466)
958
959 2002-01-29  Anders Carlsson  <andersca@gnu.org>
960
961         * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
962         size in the size entry.
963
964 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
965
966         * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
967         gtk_tree_view_set_cursor() instead of gtk_tree_selection_select_iter().
968
969         * gtk/gtkfontsel.c (gtk_font_selection_init): Add mnemonic to
970         preview field. (#52433, patch from Anders Carlsson)
971         
972         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Remove the 
973         dialog separator. (#69558, Alex Larsson, patch from Anders Carlsson)
974
975 Tue Jan 29 15:24:59 2002  Owen Taylor  <otaylor@redhat.com>
976
977         * gtk/gtkfontsel.[ch]: Switch over to GtkTreeView from
978         GtkCList. Remove the entries above the font/face lists 
979         since they were a little confusing. (Not sure about this 
980         change, so the code is still there the entries are
981         just hidden.) (#68890)
982
983         * gtk/gtkfilesel.c: Switch over to GtkTreeView from
984         GtkCList. Add mnemonics for fileops. Allow Control/Shift
985         Tab to focus out.
986
987         * gtk/gtkfilesel.c: Make fileop dialogs transient-for
988         the fileselector. (#69336, patch from Melvin Hadasht)
989
990         * gtk/gtkgamma.c (button_clicked_callback): Fix handling
991         of gamma dialog a bit. (#69336, Matthias Clasen.)
992
993 Tue Jan 29 14:56:28 2002  Owen Taylor  <otaylor@redhat.com>
994
995         * gtk/gtksocket.c (toplevel_focus_out_handler): Return boolean
996         (and FALSE from focus_in / focus_out handlers. (#69528,
997         Padraig O'Briain)
998
999 Tue Jan 29 14:47:54 2002  Owen Taylor  <otaylor@redhat.com>
1000
1001         * gtk/gtkmain.c (gtk_init_check): Remove the scary startup
1002         warning. (#69480)
1003
1004 Tue Jan 29 14:24:49 2002  Owen Taylor  <otaylor@redhat.com>
1005
1006         * gtk/gtkwindow.c (gtk_window_class_init): Add <Control>Tab
1007         bindings for "move-focus" so that Control-Tab to escape from
1008         something that eats Tab just works if not otherwise overriden.
1009
1010         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range) 
1011         * gtk/gtkvscale.c (gtk_vscale_new_with_range)
1012         * gtk/gtkhscale.c (gtk_hscale_new_with_range): Use a page_size
1013         of zero for the adjustment, since at times we think that the range
1014         is lower to upper - page_size. A page size equally to the 
1015         step_increment is, in any case, not meaningful.
1016
1017 2002-01-29  Tor Lillqvist  <tml@iki.fi>
1018
1019         * README.win32: Add comment about gtk-1-3-win32-production branch
1020         currently being ahead in functionality and code cleanliness (in
1021         gdk/win32). Just in case somebody looks at the code in gdk/win32
1022         here and starts fixing it, when it is going to change soonish
1023         anyway.
1024
1025 2002-01-29  Sven Neumann  <sven@gimp.org>
1026
1027         * gtk/gtkrc.c: don't install an empty icon_set if none of the image
1028         files could be found in the pixmap_path (bug #69398).
1029         
1030 2002-01-29  Sven Neumann  <sven@gimp.org>
1031
1032         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
1033         that showed up when using the color picker.
1034
1035 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
1036
1037         * gtk/gtkscale.[hc]: fix default value for ::digits property,
1038         leave as 1 as per havoc's request.
1039         don't apply the draw_digits value to range->round_digits,
1040         so we don't perform gross quantization by default.
1041
1042 2002-01-25  Havoc Pennington  <hp@redhat.com>
1043
1044         * gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion
1045         failure by creating the line data, but not validating it at this
1046         stage. Also, remove old code related to the "bogus newline" mess
1047         that removed all tags from the last char in the buffer if you
1048         tried to delete it.
1049         (_gtk_text_line_data_new): put this here and prepend underscore,
1050         remove from gtktextlayout.c
1051
1052 Mon Jan 28 19:57:39 2002  Owen Taylor  <otaylor@redhat.com>
1053
1054         * modules/input/imhangul.c modules/input/imhangul-defs.h
1055         po/POTFILES.in. Add port of Emacs korean-hangul input
1056         method from Yusuke Tabata (#67665)
1057
1058 Mon Jan 28 18:25:10 2002  Owen Taylor  <otaylor@redhat.com>
1059
1060         * gtk/gtkentry.c (gtk_entry_draw_frame): Paint shadow
1061         before focus to give theme engines a bit morea
1062         flexibility. (#69857)
1063
1064 Mon Jan 28 16:23:20 2002  Jonathan Blandford  <jrb@redhat.com>
1065
1066         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
1067         g_assert.
1068
1069 2002-01-28  Jon Trowbridge  <trow@gnu.org>
1070
1071         * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
1072         GtkTreeView's model, set prelight_node, prelight_tree,
1073         button_pressed_node and button_pressed_tree to NULL. (#69603)
1074
1075 2002-01-28 Bill Haneman <bill.haneman@sun.com>
1076
1077         * gtk/gtkstyle.c:
1078         Make sure that the default expanders are drawn with
1079         an outline thickness appropriate to the size of the
1080         expanders (RINT expander_size/7).
1081         Added static gtk_style_draw_polygon_with_gc(), to
1082         reduce code duplication.
1083
1084         * gtk/gtktreeview.c: (gtk_tree_view_bin_expose):
1085         Use focus_line_thickness when drawing focus lines.
1086
1087         * gtk/gtktreeviewcolumn.c:(gtk_tree_view_column_cell_get_size):
1088         Adjust requested width to include focus line thickness.
1089         (gtk_tree_view_column_cell_render_or_focus):
1090         Calculate a focus line rectangle which gets larger as the focus
1091         line thickness increases, to avoid overwriting cell content.
1092         Render left-aligned content at x+focus_line_width.
1093         (gtk_tree_view_column_cell_draw_focus):
1094         Don't draw a focus line around an editable text cell, since the
1095         text caret already indicates keyboard focus.
1096         Pass a GtkStateType appropriate to the focussed cell's state
1097         to gtk_paint_focus.
1098
1099 Mon Jan 28 14:44:40 2002  Jonathan Blandford  <jrb@redhat.com>
1100
1101         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
1102         activate/edit the row if shift is not pressed, #69248
1103
1104 2002-01-28  Anders Carlsson  <andersca@gnu.org>
1105
1106         * gtk/gtkcurve.c (gtk_curve_set_vector): Fix build.
1107
1108 2002-01-28  Matthias Clasen  <matthiasc@poet.de>
1109
1110         * gtk/{gtkalignment.c,gtkaspectframe.c,gtkbutton.c,
1111         gtkcellrenderer.c,gtkcellrendererpixbuf.c,gtkcombo.c,
1112         gtkcontainer.c,gtkcurve.c,gtkframe.c,gtklabel.c,
1113         gtkmessagedialog.c,gtknotebook.c,gtkspinbutton.c,gtktable.c,
1114         gtktext.c,gtktextview.c,gtktreeview.c,gtktreeviewcolumn.c,
1115         gtkviewport.c,gtkwidget.c}: General property notification 
1116         cleanup. (#69066)
1117
1118 2002-01-28  Anders Carlsson  <andersca@gnu.org>
1119
1120         * gtk/gtkaccelgroup.c (gtk_accel_groups_activate): & with the
1121         default mod mask so accels work when numlock is on.
1122
1123 Sun Jan 27 23:23:23 2002  Kristian Rietveld  <kris@gtk.org>
1124
1125         * gtk/gtkrbtree.[ch]: add _gtk_rbtree_mark_invalid (my previous
1126         commit already needed this ...)
1127
1128 Sun Jan 27 22:13:02 2002  Kristian Rietveld  <kris@gtk.org>
1129
1130         Fix for bug #69586
1131
1132         * gtk/gtktreeprivate.h: get rid of tab_offset, introduce
1133         expander_size
1134
1135         * gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
1136         expander_size caching (from style), fix CELL_HEIGHT macro,
1137         use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
1138         row height calculation, added style_set callback
1139
1140 2002-01-27  Anders Carlsson  <andersca@gnu.org>
1141
1142         * gtk/gtklabel.c (gtk_label_create_window): Set the cursor to
1143         GDK_XTERM.
1144
1145         * gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.
1146
1147         * gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.
1148
1149         * gtk/gtktextview.c (set_invisible_cursor): New function.
1150         (gtk_text_view_obscure_mouse_cursor): Likewise.
1151         (gtk_text_view_key_press_event): Call obscure_cursor if text 
1152         has been inserted.
1153         (gtk_text_view_motion_event): Restore the mouse cursor.
1154
1155         * gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
1156         (set_invisible_cursor): New function.
1157         (gtk_entry_obscure_mouse_cursor): Likewise.
1158         (gtk_entry_key_press): call obscure_cursor if text has been inserted.
1159         (gtk_entry_motion_notify): Restore the mouse cursor.
1160
1161 2002-01-27  Sven Neumann  <sven@gimp.org>
1162
1163         * gtk/gtkstyle.c (sanitize_size): removed unused return value.
1164
1165 Sat Jan 26 19:27:23 2002  Owen Taylor  <otaylor@redhat.com>
1166
1167         * gtk/gtksocket.c (gtk_socket_grab_notify): Don't
1168         send MODALITY_ON/OFF if socket->same_app (More fixes for #69735)
1169
1170 Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>
1171
1172         * gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
1173         in the grab_widget == NULL case. (Bug reported by 
1174         Padraig O'Briain, #69735)
1175
1176         * gtk/gtkplug.c (handle_modality_on): Realize the modality
1177         window so gtk_widget_event() doesn't complain :-((((.
1178
1179 2002-01-25  Federico Mena Quintero  <federico@ximian.com>
1180
1181         Merge from gdk-pixbuf stable.
1182
1183         * gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
1184         conversion --- swap the individual 16 bit values instead of taking
1185         everying as a 32 bit value.
1186         (rgb565lsb): Likewise.
1187         (rgb555lsb): Likewise.
1188         (rgb555msb): Likewise.
1189
1190 2002-01-25  Alex Larsson  <alexl@redhat.com>
1191
1192         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_drawable_impl_fb_class_init):
1193         Implement copy_to_image instead of get_image
1194         
1195         * gdk/linux-fb/gdkimage-fb.c:
1196         Implement _gdk_image_new_for_depth, _gdk_windowing_get_bits_for_depth and
1197         _gdk_fb_copy_to_image.
1198         Based in part on patch from Mathieu Lacage <mathieu_lacage@realmagic.fr>
1199
1200         * gdk/linux-fb/gdkmain-fb.c:
1201         Make ENABLE_FB_MANAGER region larger.
1202
1203         * gdk/linux-fb/gdkprivate-fb.h:
1204         Change _gdk_fb_get_image to _gdk_fb_copy_to_image.
1205
1206 2002-01-25  Sven Neumann  <sven@gimp.org>
1207
1208         * gtk/gtkwindow.c (gtk_window_get_size): changed the comment so
1209         that gtk-doc doesn't get confused.
1210
1211 Fri Jan 25 14:03:36 2002  Tim Janik  <timj@gtk.org>
1212
1213         * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
1214         that the passed in arrow is always _UP or _DOWN, this catches
1215         false invocations which lead to drawing artefacts.
1216         (start_spinning): likewise, i.e. sanity check the passed in arrow.
1217         (gtk_spin_button_button_release): fix arrow redrawing.
1218         (gtk_spin_button_button_press): must set click_child for
1219         button3 even if we don't take spinning action right away.
1220
1221         * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
1222         valid values for click_child.
1223
1224 Thu Jan 24 23:03:24 2002  Kristian Rietveld  <kris@gtk.org>
1225
1226         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
1227         return current FALSE if x is smaller than the current visible area,
1228         not than the requested area, don't correct y coordinate,
1229         TREE_WINDOW_Y_TO_RBTREE_Y will do that. Fixes #67477.
1230
1231 Thu Jan 24 15:41:08 2002  Jonathan Blandford  <jrb@redhat.com>
1232
1233         * gtk/gtktreeview.c
1234          (gtk_tree_view_motion_draw_column_motion_arrow): fix column
1235          reordering fully.
1236          (gtk_tree_view_size_allocate): fix evil bug.
1237
1238 Thu Jan 24 11:53:19 2002  Owen Taylor  <otaylor@redhat.com>
1239
1240         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't clear
1241         the model until we clean up all the other objects
1242         that might refer to the object.
1243
1244 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
1245
1246         * gtk/gtkaccessible.h: include gtk/gtkwidget.h
1247
1248 Wed Jan 23 20:28:59 2002  Owen Taylor  <otaylor@redhat.com>
1249
1250         * gtk/gtknotebook.c (gtk_notebook_draw_arrow): 
1251         Use insensitive state for insensitive arrows, not
1252         just an "etched state". (#67172, Adrian Custer)
1253
1254 2002-01-23  Manish Singh  <yosh@gimp.org>
1255
1256         * gtk/gtkentry.c (gtk_entry_set_text): use a variable that's actually
1257         been declared.
1258
1259 2002-01-23  Damon Chaplin  <damon@ximian.com>
1260
1261         * configure.in (gtk_doc_min_version): set minimum gtk-doc version to
1262         0.9, since we need to use the new --type-init-func argument for
1263         gtkdoc-scangobj.
1264
1265 2002-01-23  Matthias Clasen  <matthiasc@poet.de>
1266
1267         * gtk/gtkentry.c, gtk/gtkwidget.c: Remove excessive
1268         g_return_if_fail() calls. (#57615)
1269
1270         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries): Make
1271         it work for paths with underline accelerators. (#69247)
1272
1273 Wed Jan 23 15:12:16 2002  Owen Taylor  <otaylor@redhat.com>
1274
1275         * gtk/gtkspinbutton.c (gtk_spin_button_state_changed): 
1276         Stop spinning if widget becomes insensitive. (#56248)
1277
1278 Wed Jan 23 14:44:12 2002  Owen Taylor  <otaylor@redhat.com>
1279
1280         * gtk/gtkspinbutton.c (EPSILON): Decrease value since
1281         we now use doubles.
1282
1283 Tue Jan 22 16:58:37 2002  Jonathan Blandford  <jrb@redhat.com>
1284
1285         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Fix sizing bug
1286         I introduced accidentally, #69358
1287
1288 2002-01-22 Padraig O'Briain <padraig.obriain@sun.com>
1289
1290         * gtk/gtktreestore.c (gtk_tree_store_iter_children):
1291         Update last change to prevent core dump
1292
1293 Mon Jan 21 01:21:54 2002  Kristian Rietveld  <kris@gtk.org>
1294
1295         * gtk/gtktreestore.c: add some more stamp checks (pointed out
1296         by Anders Carlsson)
1297
1298         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
1299         assume _row_changed will insert sort (because _row_changed doesn't
1300         need to follow this signal), so apply insert sort here
1301         (gtk_tree_model_sort_level_find_insert): header doesn't need to be
1302         set here, so use a return instead of g_return_val_if_fail.
1303
1304 Mon Jan 21 18:28:17 2002  Jonathan Blandford  <jrb@redhat.com>
1305
1306         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update
1307         top_row.  Remove extraneous print statements.
1308
1309 2002-01-21  Matthias Clasen  <matthiasc@poet.de>
1310
1311         * gtk/gtkitemfactory.c (gtk_item_factory_popup, 
1312         gtk_item_factory_popup_with_data): Document allowed values
1313         for ifactory.
1314
1315         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make 
1316         it work for paths with underline accelerators.
1317
1318 Fri Jan 18 16:31:21 2002  Jonathan Blandford  <jrb@redhat.com>
1319
1320         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
1321         window.
1322
1323 Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
1324
1325         * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
1326         case where there is no default widget and the entry
1327         is the focus widget, since this also causes infinite
1328         recursion. (#69158)
1329
1330 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
1331
1332         * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
1333         rather than lazilygdk_get_program_class(), since we don't want
1334         -name to override it. (#69123, Ryan Lovett)
1335
1336 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
1337
1338         * gdk/gdk.c: Fix wrong types for command line arguments 
1339         (#69124, Ryan Lovett)
1340
1341         * gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
1342         parsing '--arg VALUE'.
1343
1344         * gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
1345
1346 2002-01-21  Havoc Pennington  <hp@pobox.com>
1347
1348         * gdk/gdkwindow.c (gdk_window_add_filter): mention that window 
1349         arg can be NULL
1350
1351 Sat Jan 19 20:49:41 2002  Kristian Rietveld  <kris@gtk.org>
1352
1353         * demos/gtk-demo/editable_cells.c: fix a load of open line ends
1354         (cell_edited): modified patch from German Poo Caaman~o
1355         to fix up old_text declaration and free the memory
1356         (do_editable_cells): unref the model after creating the treeview
1357
1358         * demos/gtk-demo/list_store.c: fix a load of open line ends,
1359         (add_columns): set the sort column id, so we can sort
1360
1361         * demos/gtk-demo/tree_store.c: fix a load of open line ends,
1362         (do_tree_store): unref the model after creating the treeview
1363
1364 2002-01-19  Havoc Pennington  <hp@pobox.com>
1365
1366         * gtk/gtkwindow.c: link to new X11 section in a lot of places when
1367         mentioning the window manager.
1368
1369         * gtk/gtkwidget.c (gtk_widget_hide_on_delete): don't mention
1370         window manager since we're portable.
1371
1372 Sat Jan 19 08:47:41 2002  Jeff Garzik  <jgarzik@mandrakesoft.com>
1373
1374         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
1375         Wrap case values in GPOINTER_TO_UINT().  Fixes build with gcc 3.x.
1376
1377         * gtk/gtkmain.c:  Include sys/types.h if G_OS_UNIX.
1378         Fixes build with gcc 3.x and -ansi.
1379
1380 Fri Jan 18 23:01:37 2002  Owen Taylor  <otaylor@redhat.com>
1381
1382         * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
1383         an engine declaration occurs in a reopened style, and
1384         g_free() of objects when errors occur.
1385
1386 2002-01-18  Matthias Clasen  <matthiasc@poet.de>
1387
1388         * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
1389         Clarify documentation. (#69026)
1390
1391         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
1392         missing initialization of adjustment. (#69025)
1393
1394 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
1395
1396         Simplify Makefiles. 
1397         <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
1398         * gdk/Makefile.am: Remove use of automake conditionals to pick
1399         library to build.
1400         * gtk/Makefile.am: Likewise.
1401         
1402         * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
1403         * gtk/Makefile.am (LDFLAGS): Likewise.
1404
1405 Thu Jan 17 20:13:14 2002  Owen Taylor  <otaylor@redhat.com>
1406
1407         * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
1408         missing allocation.x/y offsets. (#68962, Jacob
1409         Berkman)
1410
1411         * gtk/gtknotebook.c (gtk_notebook_size_allocate):
1412         Queue a redraw on the entire widget if we hide
1413         the last page or show the first. (Also #68962)
1414         
1415 2002-01-17  Havoc Pennington  <hp@redhat.com>
1416
1417         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
1418         GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
1419         starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
1420         as in the keynav spec, though it makes the interpretation of
1421         GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
1422         of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
1423         any sense anyhow.
1424
1425 Thu Jan 17 16:34:55 2002  Jonathan Blandford  <jrb@redhat.com>
1426
1427         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
1428         some reason, I was activating a row while just selecting it.
1429         Reported by andersca.
1430         (gtk_tree_view_size_request): add a
1431         validate_rows_handler to give us a rough width of the widget.
1432
1433         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
1434         Queue a resize here just in case.  It's needed in over half the
1435         cases, and I don't want to do a diff to figure out exactly when
1436         it's needed.
1437
1438 2002-01-17  Matthias Clasen  <matthiasc@poet.de>
1439
1440         * gtk/gtkinputdialog.c,
1441         gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
1442         Mark children as composite. (#66360)
1443
1444         * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
1445         composite children some more. (#66360)
1446
1447 2002-01-17  Havoc Pennington  <hp@redhat.com>
1448
1449         * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
1450         function (which I then decided not to use but I think it's needed
1451         to fix #68963
1452
1453         * gtk/gtktextview.c: add page_horizontally action signal and
1454         implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig, 
1455         hackily modified to avoid adding GTK_MOVEMENT_ API. Part of 
1456         #53934
1457
1458         * gtk/gtkmarshalers.list: add NONE:INT,BOOL
1459
1460 Thu Jan 17 17:02:38 2002  Owen Taylor  <otaylor@redhat.com>
1461
1462         * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
1463         gtk_selection_remove_all() here, not in destroy/
1464         finalize. (#66636, Sergey Vlasov)
1465
1466         * gtk/gtkselection.c (gtk_selection_request): Fix
1467         reentrancy problem with multiple conversions.
1468
1469         * gtk/gtkselection.c (gtk_selection_remove_all): 
1470         Don't remove incrs, we don't need the widget for
1471         maintain the incr.
1472
1473         * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
1474         the widget field from here, we don't need it.
1475
1476 Thu Jan 17 13:08:34 2002  Owen Taylor  <otaylor@redhat.com>
1477
1478         * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
1479         here, and save/restore the X error handler to allow
1480         people using GTK+ to set the X error handler to something
1481         custom without disturbing the operation of GDK.
1482
1483         * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push) 
1484         * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
1485         dummy implementations.
1486
1487         * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c 
1488         gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
1489         for all error trapping.
1490
1491         * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
1492
1493         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
1494         problem where we would add the results anyways,
1495         and then add it again if no error occurred, and problem
1496         where we could leave _gdk_error_warnings() unset.
1497
1498 Wed Jan 16 20:28:38 2002  Owen Taylor  <otaylor@redhat.com>
1499
1500         * gtk/gtkfilesel.c: Fix "deleting" filename by adding
1501         another boolean parameter to file_selection_populate() -
1502         whether to clear the entry. Also, never fill in the
1503         entry when the user clicks on something in the 
1504         directory list. (#6791, Reported by Jos Dehaes and many,
1505         many, many others.)
1506
1507 2002-01-16  Havoc Pennington  <hp@redhat.com>
1508
1509         * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
1510         cursor_y_pos with clamped delta rather than theoretical delta
1511         (#68788). Also, if we can't page up/down further then jump 
1512         to top/bottom of the document.
1513
1514 Wed Jan 16 19:33:41 2002  Owen Taylor  <otaylor@redhat.com>
1515
1516         * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
1517         the dialog on map. (#52877, inspired by request from
1518         Murray Cumming)
1519
1520 Wed Jan 16 19:23:04 2002  Owen Taylor  <otaylor@redhat.com>
1521
1522         * gtk/gtkbindings.c (gtk_binding_entry_activate): 
1523         Support "optional" bindings. If a binding signal
1524         has a boolean return value, and returns FALSE it
1525         is as if it didn't exist all.
1526
1527         * gtk/gtkbindings.c (binding_compose_params): Switch
1528         over to GValue.
1529
1530         * gtk/gtknotebook.[ch]: Make the select_page() and
1531         change_current_page() signals only take effect when
1532         the focus is on the tab area so that key presses
1533         in children pass up to the toplevel correctly.
1534
1535 Wed Jan 16 12:16:37 2002  Owen Taylor  <otaylor@redhat.com>
1536
1537         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix 
1538         calculation error in the (shouldn't happen) case where
1539         option_menu->height < child_requisition.height. (Patch
1540         from Jacob Berkman, #66969)
1541
1542 2002-01-15  Matthias Clasen  <matthiasc@poet.de>
1543
1544         * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
1545
1546         * gtk/gtkscale.h (gtk_scale_value_width): Remove useless 
1547         compatibility macro. (#67730) 
1548
1549 Wed Jan 16 10:54:38 2002  Owen Taylor  <otaylor@redhat.com>
1550
1551         * configure.in: Fix typo in --help output.
1552         (Arnaud Charlet).
1553
1554 Wed Jan 16 10:18:42 2002  Owen Taylor  <otaylor@redhat.com>
1555
1556         * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add 
1557         gtkstockpixbufs.h.
1558
1559         * configure.in: Make TIFF, JPEG, PNG loaders mandatory
1560         unless you configure with --without-libtiff, etc.
1561         (#54045, Brian Cameron)
1562
1563 2002-01-16  Padraig O'Briain <padraig.obriain@sun.com>
1564
1565         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
1566         Avoid unexpected warning message when navigating menu (#68517)
1567
1568 2002-01-15  Jody Goldberg <jody@gnome.org>
1569
1570         * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
1571         GtkLayout may have been scrolled _before_ it was realized.
1572
1573 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
1574
1575         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
1576         the timer on destroy, or when we are notified that we are
1577         shadowed by a modal dialog.
1578
1579         * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
1580         not needed any more.
1581
1582         * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
1583         weren't sent out for the default grab group.
1584
1585         * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
1586         were getting events because they were part of the previous grab.
1587
1588 Tue Jan 15 12:23:33 2002  Owen Taylor  <otaylor@redhat.com>
1589
1590         * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page): 
1591         focus the activated tab, not the page. (#53612)
1592
1593         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
1594         the last focus descendant of the page.
1595
1596         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
1597         was on the previous page, move it to the last focused widget /
1598         first element on the new page, if possible, or if not, to the 
1599         notebook itself. (#68224, reported by Jonathan Blandford)
1600
1601         * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
1602         tabs aren't visible. (#65462, Damon Chaplin, fixed based 
1603         on patch from Anders Carlsson)
1604
1605 2002-01-15            Vitaly Tishkov       <tvv@sparc.spb.su>
1606
1607         * gtk/gtkstyle.c
1608         a misprint in documentation for gtk_style_render_icon () is fixed
1609
1610 Mon Jan 14 23:21:47 2002  Tim Janik  <timj@gtk.org>
1611
1612         * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
1613         mapping child, so we don't loose events.
1614
1615 2002-01-15  Sven Neumann  <sven@gimp.org>
1616
1617         * gtk/gtkaccellabel.h
1618         * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
1619         names used in headers and code.
1620
1621 2002-01-14  jacob berkman  <jacob@ximian.com>
1622
1623         * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
1624
1625 Tue Jan 15 01:13:51 2002  Kristian Rietveld  <kris@gtk.org>
1626
1627         * gtk/gtktreemodelsort.c: fix a load of open line ends,
1628         (gtk_tree_model_sort_set_model): only free root level if it's
1629         !NULL
1630
1631 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
1632
1633         * gtk/gtkoldeditable.c, gtk/gtkrc.c, 
1634         gtk/gtkstyle.c: Documentation additions.
1635
1636         * gtk/gtkmenu.c (gtk_menu_set_accel_path),
1637         gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path), 
1638         gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
1639
1640         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
1641
1642         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
1643
1644 Mon Jan 14 17:14:13 2002  Owen Taylor  <otaylor@redhat.com>
1645
1646         * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
1647         mangle sequences of consecutive \n or \r.
1648
1649 Mon Jan 14 17:42:28 2002  Jonathan Blandford  <jrb@redhat.com>
1650
1651         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
1652         happen.
1653
1654         * gtk/gtktreeview.c (install_presize_handler): only install the
1655         handler if we're realized, #68056
1656
1657 Mon Jan 14 16:35:58 2002  Owen Taylor  <otaylor@redhat.com>
1658
1659         * gtk/gtkwindow.c (gtk_window_move_resize): Unset 
1660         initial_pos_set after the first configure request.
1661
1662 2002-01-13  Jody Goldberg <jody@gnome.org>
1663
1664         * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
1665           and will use a mem_chunk to do it.  Avoid an unnecessary copy, a
1666           leak, and confusion.
1667
1668 Sun Jan 13 23:23:22 2002  Owen Taylor  <otaylor@redhat.com>
1669
1670         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
1671         widget->requisition was being used instead of
1672         gtk_widget_get_child_requisition (), causing geometry widgets
1673         with usizes to misbehave.
1674
1675 2002-01-14  Sven Neumann  <sven@gimp.org>
1676
1677         * gtk/gtkrc.c: g_getenv() returns a const string.
1678
1679 2002-01-14  Hasbullah Bin Pit  <sebol@ikhlas.com>
1680
1681         * configure.in: Added ms at ALL_LINGUAS.
1682         * po/ms.po: Added Malay Translation.
1683
1684 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
1685
1686         * gtk/gtkitemfactory.c: Documentation.
1687
1688 2002-01-13  Sven Neumann  <sven@gimp.org>
1689
1690         * gdk/gdkwindow.c: documentation cleanups.
1691
1692 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
1693
1694         * gtk/gtktreemodelsort.c: various cleanups,
1695         (get_child_iter_from_elt): removed,
1696         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
1697         and especially faster,
1698         (gtk_tree_model_convert_iter_to_child_iter): use
1699         gtk_tree_model_sort_elt_get_path
1700
1701 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
1702
1703         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1704         revert Owen's change (using a strdupped string as object data), so
1705         the interactive search works again
1706
1707 2002-01-11  Havoc Pennington  <hp@pobox.com>
1708
1709         * gtk/gtklabel.c: put in more links to Pango markup format docs
1710         (gtk_label_set_justify): mention gtk_misc_set_alignment
1711
1712 2002-01-12  Tor Lillqvist  <tml@iki.fi>
1713
1714         Fixes contributed by Archaeopteryx Software: This is a first small
1715         part of their changes. Will commit more later.
1716         
1717         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
1718         call fails, don't use bogus values.
1719
1720          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
1721         memory leak: g_free() the AND and XOR bitmaps after use.
1722         (_gdk_cursor_destroy): If we are destroying the current Windows
1723         cursor, set the Windows cursor to none first.
1724
1725         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
1726         brush that was in the DC, like the win32-production branch does. I
1727         guess this plugs a resource leak? With the HDC cache, the old
1728         brush might be something we created ourselves, and not a stock
1729         brush. And it doesn't do any harm to call DeleteObject on stock
1730         brushes.
1731
1732         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
1733         the window has a cursor which is the current Windows cursor,
1734         before destroying it set the current Windows cursor to none.
1735         (gdk_window_set_cursor): Also here, if destroying the current
1736         Windows cursor, set the current Windows cursor to none first.
1737         (gdk_window_get_pointer): Revamp logic.
1738         
1739 2002-01-10  jacob berkman  <jacob@ximian.com>
1740
1741         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
1742         through the list rather than infinitely loop
1743
1744 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
1745
1746         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
1747         reset_rc_styles_recurse(). (#68084)
1748
1749 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
1750         * gtk/gtkimage.c
1751         * gtk/gtkimcontext.c
1752         * gtk/gtktreemodel.c
1753         * gtk/gtktreemodelsort.c
1754         * gtk/gtkwindow.c
1755         fix docs        
1756
1757 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
1758
1759         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
1760         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
1761
1762 2002-01-10  Tor Lillqvist  <tml@iki.fi>
1763
1764         Apply the same fixes and improvements as to the
1765         gtk-1-3-win32-production branch: Bug fixes and cleanup of
1766         selection and DND functionality. Still doesn't work as well as the
1767         win32-production branch, though, but getting closer.
1768
1769         After this, need to add Archaeopteryx Software's OLE2 DND support.
1770
1771         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
1772         gdk_selection_send_notify, generate_selection_notify): Don't use
1773         SendMessage() to generate events for the same app, instead use
1774         gdk_event_put().
1775
1776         * gdk/win32/gdkprivate-win32.h
1777         * gdk/win32/gdkglobals-win32.c
1778         * gdk/win32/gdkmain-win32.c
1779         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
1780         initialisation and handling of gdk_selection_notify_msg,
1781         gdk_selection_request_msg and gdk_selection_clear_msg. 
1782
1783         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
1784         gdk_free_text_list, gdk_string_to_compound_text,
1785         gdk_free_compound_text): Implement trivially, witrh a text_list
1786         always having a single element, and a compound text always
1787         consisting of just a single (UTF-8!) string. Let's see how well
1788         this works.
1789
1790         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
1791         non-ASCII paste from the clipboard: Try getting the same formats
1792         from the Windows clipboard that gdk_property_change() puts there:
1793         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
1794
1795         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
1796         storing text on the clipboard, handle non-ASCII text
1797         correctly. The logic is as follows:
1798
1799         If we have only ASCII characters, use CF_TEXT.
1800
1801         Else, if we are on NT, use CF_UNICODETEXT.
1802
1803         Else (we are on Win9x), if all the characters are present in the
1804         code page of some installed locale, use CF_TEXT and also set
1805         CF_LOCALE to that locale.
1806
1807         Else (still on Win9x) store as RTF. We use a very simple RTF
1808         string, just the text, no fonts or other crap, with the non-ASCII
1809         characters as Unicode \uN keywords. Additionally, also store the
1810         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
1811         can also paste from the Clipboard what it has copied there. (Thus
1812         no need to implement any RTF parser.)
1813         
1814         (find_common_locale): New function, implements the search for a
1815         locale for case 3 above.
1816
1817         * gdk/win32/gdkglobals-win32.c: New global variables
1818         compound_text, text_uri_list, utf8_string, cf_rtf and
1819         cf_utf8_string.
1820
1821         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
1822         converts from a wchar_t string to UTF-8.
1823         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
1824         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
1825
1826         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
1827         _gdk_ucs2_to_utf8().
1828
1829         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
1830
1831         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
1832         gdk_drag_context_ref() was called unnecessarily in a couple of
1833         places, meaning drag contexts were never freed. The same memory
1834         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
1835
1836         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
1837         stored file list.
1838
1839         * gdk/win32/gdkselection-win32.c: Clarify the use of the
1840         sel_prop_table. Now it is used only for storing the GDK_SELECTION
1841         "properties".
1842
1843         The file names dropped with WM_DROPFILES -style DND is stored
1844         temporarily (between the drop and the target picking them up) in a
1845         separate place.
1846
1847         Have a separate hash table to map selection atoms to owner
1848         windows. This used to be quite mixed up.
1849
1850         (_gdk_dropfiles_store): New function, to store the dropped file
1851         list for the drop target to possibly fetch, and clear it
1852         afterwards, from gdk_drop_reply().
1853
1854         (gdk_selection_owner_get): Much simplified now.
1855
1856 2002-01-09  jacob berkman  <jacob@ximian.com>
1857
1858         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
1859         our bin window also (fixes #58957)
1860
1861 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
1862
1863         * gtk/gtktreeselection.c
1864         (_gtk_tree_selection_internal_select_node): Now we test we can
1865         unselect nodes before selecting new ones.
1866         (gtk_tree_selection_real_select_node): be careful comparing booleans.
1867
1868 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
1869
1870         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
1871         gtk_tree_model_rows_reordered and not an iter with user_data
1872         set to NULL (which is an invalid liststore iter, so
1873         iter_n_children failed, etc)
1874
1875 2002-01-09  Sven Neumann  <sven@gimp.org>
1876
1877         * tests/prop-editor.c: declared internal functions static.
1878         
1879 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
1880
1881         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
1882         Fix problem with menus without accel groups, such as the
1883         menus for option menus.
1884
1885         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
1886         drawing of handle on whether both children are visible,
1887         not the drawing of the other child!. (#68325, Diego Gonzalez)
1888
1889 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
1890
1891         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
1892         RENDER before trying to use it... XRenderFindFormat() prints
1893         warnings if called when extension isn't present.
1894
1895 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
1896
1897         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
1898         path upon parent changes.
1899
1900 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
1901
1902         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
1903         fix to force vadjustments at size_alocate time from Xavier Ordoquy
1904         <mcarkan@users.sourceforge.net>.
1905
1906 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
1907
1908         * gtk/gtklayout.c (gtk_layout_get_property): 
1909         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
1910         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
1911         * gtk/gtkwidget.c (gtk_widget_get_property): 
1912         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
1913         * gtk/gtkrange.c (gtk_range_get_property):
1914         * gtk/gtkviewport.c (gtk_viewport_get_property):
1915         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
1916         possible NULL pointer.
1917
1918 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
1919
1920         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
1921         * gtk/gtktreednd.h : ditto.
1922         * gtk/gtktreemodel.h : ditto.
1923         * gtk/gtktreesortable.h : ditto.
1924         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
1925
1926 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
1927
1928         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
1929         than XIDs in the docs.
1930
1931         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
1932
1933 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
1934
1935         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
1936         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
1937
1938 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
1939
1940         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
1941         Handle TOGGLE/RADIOBUTTON as well. (#68201,
1942         Damon Chaplin.)
1943
1944         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
1945         bug, just introduced.
1946
1947 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
1948
1949         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
1950         translations, once and for all.
1951
1952         * gtk/gtktextbuffer.c (paste_from_buffer): Free
1953         the ClipboardRequest structure. (#66198, HideToshi
1954         Tajima)
1955
1956 2002-01-08  jacob berkman  <jacob@ximian.com>
1957
1958         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
1959         the child rather than the layout. see bug #68263
1960
1961 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
1962
1963         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
1964         the handle if we aren't showing both children.
1965         (#68135, Diego Gonzalez)
1966
1967 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
1968
1969         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
1970         leak of result of gtk_container_get_children().
1971
1972 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
1973
1974         * gtk/gtktoolbar.c: Fix leaks of results of
1975         gtk_container_get_children(). (#68199, Damon Chaplin)
1976
1977 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
1978
1979         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
1980         Fix problem where child->requisition was accessed
1981         directly instead of calling get_child_requisition()
1982         (#68199, Damon Chaplin)
1983
1984 2001-01-08  James Henstridge  <james@daa.com.au>
1985
1986         * gtk/gtkstyle.c: add trailing */ on doc comment.
1987
1988 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
1989
1990         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
1991         problem where were the offset into the image was passed
1992         into convert_to_format() wrong.
1993
1994         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
1995         gdk_x11_drawable_update_picture_clip () before using
1996         the picture; allow update_picture_clip() to take a NULL gc
1997         to mean no clipping.
1998
1999 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
2000
2001         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
2002
2003         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
2004
2005         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
2006
2007         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
2008
2009         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
2010         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
2011         gtk_widget_push_composite_child), gtk/gtkdialog.c 
2012         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
2013         from messing up the indentation of inline examples.     
2014
2015         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
2016         instead of getenv().
2017
2018         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
2019         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
2020         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
2021
2022         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
2023         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
2024         Document.
2025
2026 2002-01-07  Anders Carlsson  <andersca@gnu.org>
2027
2028         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
2029         unused pixels and rowstride variables.
2030         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
2031
2032 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
2033
2034         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
2035         the pointer by x/y_offset into the new window when we found
2036         the drag destination.
2037
2038         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
2039         for simulation when the entry already contains the required
2040         accel key and mod.
2041
2042 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
2043  
2044         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
2045         G_DISABLE_CAST_CHECKS.
2046
2047         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
2048         gtk_accel_group_query, gtk_accel_group_find,
2049         gtk_accel_groups_from_object): Document.
2050
2051         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
2052
2053 2002-01-04  Hans Breuer  <hans@breuer.org>
2054
2055         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
2056         need to cast image->mem away from void* to avoid 
2057         'error C2036: 'void *' : unknown size'. Doing pointer 
2058         arithmetics on void pointers is a GCCism afaik.
2059
2060         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
2061         _gdk_draw_pixbuf ()
2062
2063         * gdk/makefile.msc gdk/win32/makefile.msc 
2064         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
2065
2066         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
2067         and take care of image->visual possibly NULL.
2068
2069         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
2070         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
2071         Again take care of image->visual possibly NULL.
2072
2073         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
2074
2075         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
2076         instead of private field access
2077
2078         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
2079         colormap setting to the gdk-X behaviour
2080
2081 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
2082
2083         * gtk/gtkwidget.c: Documentation additions.
2084
2085 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
2086
2087         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
2088
2089         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
2090
2091 2002-01-04  Havoc Pennington  <hp@pobox.com>
2092
2093         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
2094         
2095 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
2096
2097         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
2098         don't infinite loop if the widget and window heirarchies
2099         don't correspond.
2100
2101         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
2102         in heirarchy in ::drag_motion, ::drag_drop callbacks
2103         by referencing child widget lists. (Patch from Tim)
2104
2105         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
2106         with widgets where window.x != widget->allocation.x
2107
2108 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
2109
2110         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
2111         a little bit. (More for consistency than because it
2112         makes much of a difference.)
2113
2114 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
2115
2116         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
2117         (_gdk_x11_have_render): Private function to tell if we have RENDER
2118         extension.
2119
2120         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
2121         None if we don't have RENDER extension.
2122
2123         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
2124         use Xft unless we have render extension.
2125
2126         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
2127         Handle missing render extension.
2128
2129         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
2130         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
2131         to the GdkDrawable vtable that extends get_image() to allow
2132         copying onto existing images.  Make the default implementation of
2133         get_image() use this so that backends don't have to implement
2134         both. Add private wrapper _gdk_drawable_copy_to_image().
2135
2136         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
2137         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
2138         copy_to_image() semantics, speed up by using ShmPixmaps and
2139         XCopyArea when possible, XFlush() after ungrabbing the server,
2140         generally redo the logic once again.
2141
2142         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
2143         _gdk_windowing_bits_per_depth(): Function to convert from depth to
2144         bits-per-pixel. (We assume only one bpp per depth - X requires
2145         this.)
2146
2147         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
2148         scratch image code into a generic _gdk_image_get_scratch() chunk
2149         of code that we can use other places we need scratch images.
2150
2151         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
2152         Add _gdk_image_new_for_depth() as the backend 
2153         to _gdk_image_new() to allowing creating images with
2154         a depth and no visual.
2155
2156         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
2157         parts of images not at 0,0 actually works.
2158
2159         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
2160         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
2161          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
2162           _gdk_draw_pixbuf() [ will be made public later ], to allow 
2163           backends to accelerate drawing pixbufs. 
2164          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
2165            to be the default implementation. 
2166          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
2167          - Optimize the default implementation by using 
2168            _gdk_image_copy_to_pixmap() and scratch shared images, and
2169            special casing the compositing.
2170
2171         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
2172         with alpha using the RENDER extension.
2173
2174         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
2175         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
2176
2177         * tests/testrgb.c: Add test for speed of alpha composition,
2178         reduce the number of iterations since alpha composition
2179         can be a bit slow.
2180
2181         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
2182         Private function to get a ShmPixmap for an image, if possible.
2183
2184 2002-01-04  Anders Carlsson  <andersca@gnu.org>
2185
2186         * tests/testtreesort.c: Add my cool list of integers.
2187
2188 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
2189
2190         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
2191         problem where retrieved atoms weren't properly returned.
2192
2193 2002-01-03  Anders Carlsson  <andersca@gnu.org>
2194
2195         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
2196         tab is pressed and the text view isn't editable, 
2197         move the focus instead.
2198
2199         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
2200         necessary.
2201
2202         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
2203
2204         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
2205
2206         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
2207         if it's NULL.
2208
2209         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
2210         _gtk_tree_view_queue_draw_node.
2211         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
2212
2213         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
2214         sort_column_id can be 0.
2215
2216         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
2217         Only redraw one the node being selected.
2218
2219         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
2220         
2221 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
2222
2223         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
2224         realized but visible && !mapped resize containers (which is
2225         possible with unset CHILD_VISIBLE now).
2226
2227 2002-01-02  jacob berkman  <jacob@ximian.com>
2228
2229         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
2230         libsomething_la_LDFLAGS, so fix the build again
2231
2232 2002-01-01  Havoc Pennington  <hp@pobox.com>
2233
2234         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
2235         exposes to no window children not in the buffer window.
2236         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
2237         - is this the right way to do it?
2238         (gtk_text_view_focus): add focus method, just chains up for now, 
2239         I'm not sure why the GtkContainer implementation doesn't work
2240
2241         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
2242         in the text line for the child anchor segment
2243
2244         * tests/testtext.c (do_add_focus_children): add another test
2245         example (to put focusable buttons into the widget)
2246
2247 2002-01-01  Havoc Pennington  <hp@pobox.com>
2248
2249         * docs/README.linux-fb: note that this file is obsolete
2250
2251         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
2252         files that they should not be edited and look in the reference 
2253         manual instead. Probably these files should just be replaced by 
2254         the note, and their main contents deleted.
2255
2256         * gtk/gtktextview.c: docs
2257
2258         * gtk/gtktextmark.c: docs
2259
2260         * gtk/gtktextchild.c: docs
2261
2262         * gtk/gtktextbuffer.c: docs stuff
2263
2264         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
2265         give people more leads in sorting out PRIMARY vs. CLIPBOARD
2266
2267 2002-01-01  Tor Lillqvist  <tml@iki.fi>
2268
2269         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
2270         ../gdk-pixbuf/gdk-pixbuf-csource.
2271
2272 2001-12-31  Tor Lillqvist  <tml@iki.fi>
2273
2274         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
2275         handling.
2276         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
2277
2278         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
2279         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
2280         one more place.
2281
2282         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
2283         -Wall.
2284
2285         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
2286
2287 2002-01-01  Havoc Pennington  <hp@pobox.com>
2288
2289         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
2290         fix
2291         
2292 2002-01-01  Havoc Pennington  <hp@pobox.com>
2293
2294         * gtk/gtktextview.c (changed_handler): Replace call to
2295         gtk_widget_size_request() that expected to actually compute the
2296         request with a direct use of widget_class->size_request, so we get
2297         our size request right; fixes remaining part of #63065 reported by
2298         Matthias Clasen
2299
2300 2001-12-31  Havoc Pennington  <hp@pobox.com>
2301
2302         * tests/testtext.c (do_insert_and_scroll): remove backward_char
2303         since we no longer have bogus newline
2304         (dialog_response_callback): remove another backward_char horkage, 
2305         reported by Matthias Clasen #63065
2306
2307 2001-12-31  Havoc Pennington  <hp@pobox.com>
2308
2309         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
2310         fix an incorrect assertion that the "valid" flag is always correct
2311         in a node and add explanatory comment. This keeps me from 
2312         reproducing #59101, but I'm remembering that 59101 was actually 
2313         about incorrect pixel totals, so I'm not sure 59101 is actually 
2314         fixed. May just have stopped happening due to some change in 
2315         how C-k works.
2316
2317 2001-12-31  Havoc Pennington  <hp@pobox.com>
2318
2319         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
2320         selection if shift is down, bug #50939
2321         (gtk_text_view_button_press_event): add double/triple click
2322         selection to the current selection if shift is down
2323
2324 2001-12-31  Havoc Pennington  <hp@pobox.com>
2325
2326         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
2327         to use ensure_byte_offsets not ensure_char_offsets, patch 
2328         from Padraig O'Briain bug #67356
2329         
2330 2001-12-30  Havoc Pennington  <hp@pobox.com>
2331
2332         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
2333         the right values, reported by Jeff Franks
2334
2335 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
2336
2337         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
2338
2339 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
2340
2341         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
2342         Minor documentation tweaks.
2343
2344 2001-12-28  Tor Lillqvist  <tml@iki.fi>
2345
2346         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
2347         (unicode_classify): Don't return -1 on encountering an
2348         unclassified character, but play it safe and return U_BASIC_LATIN.
2349
2350 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
2351
2352         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
2353         of misc->xpad/ypad consistent with GtkLabel. Do 
2354         directional flipping when interpreting misc->xalign/yalign.
2355         Fix off-by-one error for negative x,y. (#67472, reported
2356         by Mathieu Lacage)
2357
2358 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
2359
2360         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
2361         Remove optimization that was causing problems because
2362         we called gtk_widget_size_request() before we called
2363         gtk_widget_queue_resize() so RESIZE_NEEDED was not
2364         set. Optimization shouldn't mattter now that we
2365         are smart about needlessly size requesting or allocating
2366         widgets. (#67598, reported by Jacob Berkman)
2367
2368 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
2369
2370         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
2371         Call gdk_window_get_pointer() on menu->bin_window not
2372         menu->window, so we get the correct window for the
2373         menu item. (#65213, Guillermo S. Romero)
2374
2375 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
2376
2377         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
2378         the title by setting to NULL. Move docs inline. 
2379         Update the title if the tearoff window already
2380         exists. Code cleanup. (Fixes #65190, reported by
2381         Vitaly Tishkov.)
2382
2383 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
2384
2385         * gtk/gtksocket.c (gtk_socket_key_press_event): 
2386         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
2387         special handling of key presses unless we are doing 
2388         iter-app embedding. (Fixes #67590, Anders Carlsson)
2389
2390 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
2391
2392         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
2393         (gtk_tree_model_sort_sort_level),
2394         (gtk_tree_model_sort_insert_value): fix a few places where
2395         I was confused between modelsort iters and other iters. This was
2396         really going to happen someday ;)
2397
2398 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
2399
2400         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
2401         we are unprelighted before reordering
2402
2403         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
2404         need to break out of the for loop, not return (this fixed
2405         the 'selection freeze' bug).
2406
2407         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
2408         be pretty stable now, though it still needs some more code
2409         cleanups.
2410
2411 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
2412
2413         * docs/Changes-2.0.txt: Document the fact that
2414         gtk_paned_set_handle_size() has been removed.
2415
2416         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
2417         since it pointed to gtk_paned_set_handle_size(), which
2418         was removed. (#66760, Matt Wilson)
2419
2420 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
2421
2422         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
2423         gtk_drag_hightlight_expose _after_, so it works with
2424         widgets that paint there entire background. (#66735)
2425
2426 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
2427
2428         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
2429         allocation to widget->allocation. (Fixes #67290,
2430         Chris Phelps.)
2431
2432 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
2433
2434         (#67542, reported by Anders Carlsson)
2435         
2436         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
2437         rc_style->font_desc with defaul style instead of replacing
2438         it.
2439
2440         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
2441         font descriptions in RC styles by calling
2442         pango_font_description_merge(). 
2443
2444 2001-12-24  James Henstridge  <james@daa.com.au>
2445
2446         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
2447         valid with both SGML and XML.
2448
2449 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
2450
2451         * configure.in: 1.3.12, interface, binary age 0.
2452
2453         * configure.in: Require new versions of Glib, Pango, ATK.
2454
2455         * NEWS: Updated.
2456
2457         * configure.in: Make explicit what libtool we are executing.
2458         (Tomas Ogren)
2459
2460         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
2461
2462         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
2463         parameter names for docs.
2464
2465 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
2466
2467         * gtk/gtkwindow.c (gtk_window_realize) 
2468           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
2469
2470         * gtk/gtkentry.c (gtk_entry_key_release)
2471           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
2472         key release events to the input method.
2473
2474         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
2475         Handle release of Control/Shift to end hex sequence.
2476
2477         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
2478         Handle key releases as well as presses.
2479
2480 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
2481
2482         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
2483
2484         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
2485         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
2486         documentation about underscores and mnemonics. (#66380)
2487
2488         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
2489         cyclic reference in docs.
2490
2491         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
2492         of default value. (#65402)
2493
2494         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
2495         Markup fixes.
2496
2497 2001-12-20  Anders Carlsson  <andersca@gnu.org>
2498
2499         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
2500         map here.
2501
2502 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
2503
2504         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
2505         (reported by Jeff Franks.)
2506
2507 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
2508
2509         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
2510         prototype for direction_changed. (Reported by
2511         Jeff Franks.)
2512
2513 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
2514
2515         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
2516         Fix typo (list->data becomes list->next)
2517
2518 2001-12-06  Havoc Pennington  <hp@redhat.com>
2519
2520         Add Unicode control char menu, based on patch from Dov.
2521         Bug #63495
2522         
2523         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
2524         gtk_entry_enter_text
2525         (gtk_entry_enter_text): function to do "typing in text"
2526         (popup_targets_received): add the Unicode menu items
2527
2528         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
2529         on Input Methods item, and add the unicode menu items.
2530
2531         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
2532         used in GtkEntry and GtkTextView - may become public later.     
2533
2534 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
2535
2536         * gtk/gtkprogressbar.c: Fix a typo.
2537         * gtk/gtkpaned.c: Fix a typo.
2538         
2539 2001-12-15  Darin Adler  <darin@bentspoon.com>
2540
2541         Fix some warnings.
2542
2543         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
2544         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
2545         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
2546         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
2547         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
2548         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
2549         Restructure loop to get rid of uninitialized variable warning. Also
2550         gives a tiny efficiency gain.
2551
2552 2001-12-15  Murray Cumming  <murrayc@usa.net>
2553
2554         * Fixed first arg type of GtkScale's "format_value" signal's
2555         function pointer.
2556
2557 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
2558         docs/reference/gtk/tmpl/gtkcelleditable.sgml
2559                 gtkcelleditable -> GtkCellEditable
2560         docs/reference/gtk/tmpl/gtktreesortable.sgml
2561                 gtktreesortable -> GtkTreeSortable
2562
2563 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2564
2565         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
2566         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
2567         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
2568         resp.
2569
2570 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
2571
2572         * gtk/gtktreeview.c (validate_visible_area): free path
2573         at the end
2574
2575 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
2576
2577         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
2578
2579 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
2580
2581         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
2582         to find the clicked node in the tree when tree == NULL
2583
2584 2001-12-13  Anders Carlsson  <andersca@gnu.org>
2585
2586         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
2587         event->state with the default mod mask. 
2588
2589 2001-12-12  jacob berkman  <jacob@ximian.com>
2590
2591         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
2592
2593 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
2594
2595         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
2596         Reset the existing slave before removing it to give
2597         it a chance to commit and emit "preedit_changed" 
2598         in case there was still a preedit string.
2599
2600 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
2601         
2602         * gtk/gtktextlayout.c: Typo fixes
2603         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
2604
2605         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
2606         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
2607
2608         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
2609
2610 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
2611
2612         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
2613         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
2614
2615 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
2616
2617         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
2618         "prepainting" the menu before realizing other than
2619         via gtk_style_set_background() - this was broken when
2620         we added menu scroll support.
2621
2622         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
2623         window in the expose event -- fixes problem with border
2624         flashing during scrolling.
2625
2626 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
2627
2628         * gtk/gtksettings.c (gtk_settings_get_property): Support
2629         using names/nicks for the gdk_settings values for enum valued
2630         types. (#57678, reported by Anders Carlsson)
2631
2632 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
2633
2634         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
2635         with insert_page_menu.  Code duplication is bad.
2636
2637         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
2638         wrong fix yesterday.
2639
2640 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
2641
2642         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
2643         modifiers.
2644
2645 2001-12-12  James Henstridge  <james@daa.com.au>
2646
2647         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
2648         (menu_item)->accel_path first when looking up the accel path.
2649
2650 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
2651
2652         * tests/testgtk.c (layout_expose_handler): Only draw
2653         for events on the bin window.
2654
2655 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
2656
2657         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
2658         mnemonics work with notebooks.
2659
2660 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
2661
2662         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
2663         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
2664         Makes some flicker while scrolling go away.
2665
2666 2001-12-11  Michael Natterer  <mitch@gimp.org>
2667
2668         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
2669         adds alpha to the pixbuf; re-load the saved pixbuf and
2670         pixel-by-pixel compare it with the original one.
2671
2672 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
2673
2674         * ChangeLog: Fix wrong ChangeLog entry
2675         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
2676         right corner
2677
2678 2001-12-10  jacob berkman  <jacob@ximian.com>
2679
2680         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
2681         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
2682         (gdk_keyboard_grab): do not grab things if the nograb debug flag
2683         is set
2684
2685         * gdk/gdkinternals.h: 
2686         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
2687         keyboard / mouse
2688
2689 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
2690
2691         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
2692         didn't reset the timer.
2693
2694 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
2695
2696         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
2697
2698 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
2699
2700         * gtk/gtkviewport.c: Add docs.
2701
2702 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
2703
2704         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
2705         RBTree corruption bug--
2706
2707 2001-12-10  Anders Carlsson  <andersca@gnu.org>
2708
2709         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
2710         if edited_column is NULL, also grab focus before removing
2711         the cell_editable.
2712
2713 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
2714
2715         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
2716           denominator in the horizontal case just like we do in the vertical
2717           case (why I didn't notice that there were two cases the first time
2718           around is beyond me:).  Also fix indentation in the vertical case.
2719
2720 2001-12-09  Anders Carlsson  <andersca@gnu.org>
2721
2722         * gdk/x11/gdkevents-x11.c: Update xsettings name.
2723
2724         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
2725         gtk-dnd-drag-threshold GtkSetting.
2726
2727         * gtk/gtksettings.c (gtk_settings_class_init): Add 
2728         setting for dnd drag threshold.
2729
2730 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
2731
2732         * gtk/gtkcontainer.c: Add docs.
2733
2734 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
2735
2736         * gtk/gtkwidget.c: Doc markup fix. 
2737
2738         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
2739
2740         * gtk/gtktreestore.c: Typo fixes. (#66445)
2741
2742         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
2743
2744         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
2745         to gtk_clipboard_set_with_owner(). (#66424)
2746  
2747 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
2748
2749         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
2750         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
2751         Fabrice Bellet <fabrice@gnu.org>, #54127).
2752
2753 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
2754
2755         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
2756         of places, so that people with crashy trees can just run their
2757         program with GTK_DEBUG=TREE.
2758
2759 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
2760
2761         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
2762         per jrb's request
2763
2764 2001-12-08  Anders Carlsson  <andersca@gnu.org>
2765
2766         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
2767         since then the default GtkLayout expose handler won't be called.
2768
2769 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
2770
2771         * gtk/gtktreeview.c (validate_rows_handler): remove
2772         g_return_if_fail.
2773
2774         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
2775         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
2776         empty model.
2777
2778 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
2779
2780         * gtk/gtktreeview.c (validate_visible_area): get logic right,
2781         #66249
2782
2783         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
2784         removing a node ended up with a corrupt tree.  Really really nasty
2785         bug.
2786         (_gtk_rbtree_debug_spew): new debug helper function
2787         (_fixup_validation): new inline function to clean up code
2788         readability a lot. 
2789
2790 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
2791
2792         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
2793         Close comment.
2794
2795 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
2796
2797         * gtk/gtkstyle.h: Typo fixes.
2798
2799         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
2800
2801         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
2802
2803 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
2804
2805         * modules/input/gtkimcontextxim.c: Display the XIM
2806         status callbacks with a popup window. (Patch from
2807         HideToshi Tajima, #50628, somewhat modified.)
2808
2809 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
2810
2811         * gtk/Makefile.am: each source generation rule needs to use its own
2812         temporary file, to avoid clashes for parallel builds. fixed rules
2813         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
2814
2815 2001-12-07  Havoc Pennington  <hp@pobox.com>
2816
2817         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
2818         "cursors that are actually useful" in gdk_cursor_new() docs
2819
2820 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
2821
2822         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
2823         in computing the size of the second child.
2824
2825 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
2826
2827         * gtk/gtkrange.c: Make button 1 clicks on the trough
2828         do pages, button 3 steps. (Patch from Hans Breuer
2829         #63735)
2830
2831 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
2832
2833         * gtk/gtklabel.c: Fix docs. (#66383)
2834
2835         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
2836         (#66278, #66280)
2837         
2838         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
2839         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
2840
2841         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
2842         Don't emit a g_warning() about being deprecated. (#66208)       
2843
2844         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
2845
2846         * gtk/gtkcontainer.c: Doc fixes.
2847         
2848         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
2849
2850         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
2851
2852 2001-12-05  Sven Neumann  <sven@gimp.org>
2853
2854         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
2855
2856         * gtk/queryimmodules.c: g_dir_read_name() returns const.
2857
2858 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
2859
2860         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
2861         #66225
2862         
2863 2001-12-04  Manish Singh  <yosh@gimp.org>
2864
2865         * gtk/gtkmain.c
2866         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
2867         a gpointer.
2868
2869         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
2870         correction to docs.
2871
2872         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
2873
2874 2001-12-04  Havoc Pennington  <hp@redhat.com>
2875
2876         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
2877         g_assert_not_reached() that was bogus, since we demand-create the
2878         tag info. reported by Chris Phelps
2879
2880         Jump through assorted hoops to fix bug from Chris Phelps where 
2881         removing tags from the table resulted in btree trying to 
2882         access tag->table
2883         
2884         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
2885         ourselves to the tag table
2886
2887         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
2888         (_gtk_text_tag_table_remove_buffer): private cruft to 
2889         let us notify buffer of disappearing tags
2890
2891         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
2892         header, put it in tagprivate    
2893
2894         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
2895         tag_removed; it's emitted too late.
2896         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
2897         this
2898
2899         Padding for ABI-compat expansion
2900         
2901         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
2902         (struct _GtkTextAppearance): one pad in here too
2903
2904         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
2905
2906         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
2907         since action signals etc. seem pretty likely
2908
2909         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
2910
2911         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
2912
2913         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
2914
2915 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
2916
2917         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
2918
2919         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
2920
2921         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
2922
2923 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
2924
2925         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
2926         #62084.
2927
2928 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
2929
2930         * demos/gtk-demo/main.c: (create_tree): Minor fix.
2931
2932         * docs/tree-column-sizing.txt: Update
2933
2934         * gtk/gtkrbtree.[ch]: Massive work to support validation.
2935
2936         * gtk/gtktreemodel.c: Doc fixes.
2937
2938         * gtk/gtktreeview.c: Incremental reflow added.
2939         * gtk/gtktreeviewcolumn.c: ditto
2940         * gtk/gtktreeviewcolumn.h: ditto
2941
2942 2001-12-04  Havoc Pennington  <hp@redhat.com>
2943         
2944         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
2945         "invisible" property, #65999
2946
2947 2001-12-04  Matt Wilson  <msw@redhat.com>
2948
2949         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
2950
2951 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
2952
2953         * gtk/gtksettings.c (gtk_settings_set_property_value):
2954         Simplify, make more efficient and fix memory leak
2955         when turning quark into a string. (#66103, HideToshi
2956         Tajima)
2957
2958         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
2959         init() and unref priv->tooltips in destroy rather
2960         than calling gtk_object_destroy() which has no
2961         effect on memory management. (#66104, HideToshi
2962         Tajima)
2963
2964         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
2965         so we free the when the object is freed. (Fixes memory
2966         leak, #66096, HideToshi Tajima)
2967
2968         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
2969         a full GdkEvent structure to avoid reads of uninitialized/
2970         invalid memory in gdk_event_put() (#65877, patch
2971         from Hidetoshi Tajima)
2972
2973 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
2974
2975         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
2976         toggle-size-request doesn't take a requisition.
2977
2978         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
2979         reference to marshaler that no longer exists.
2980
2981 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
2982
2983         Patch from Bill Haneman (with many modifications) to make
2984         the focus color work on dark themes and to make the
2985         focus line width configurable. (#61079, #63074)
2986
2987         * gtk/gtkwidget.c: Add style properties, 
2988         ::focus-widget, ::focus-line-width, and ::focus-padding.
2989
2990         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
2991         state argument as well so we can use fg[STATE] to
2992         draw instead of always drawing with black. 
2993         Cange paint_focus() to respect GtkWidget::focus-width
2994         and GtkWidget::focus-line-pattern. Fix continuity
2995         problem where the default 1-1 stipple had a blob
2996         in one corner and a gap in the other. Change the
2997         interpretation of x/y/width/height to be the bounding
2998         box of the focus rect instead of the rectangle
2999         passed to gdk_draw_rectangle.
3000
3001         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
3002         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
3003         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
3004         and ::focus-line-padding.
3005
3006         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
3007         and remove duplicated code; fix drawing of focus rectangle
3008         when interior-focus = FALSE. (#63072, #63073)
3009
3010         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
3011         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
3012         Range and TreeViewColumn will need more extensive fixing.
3013
3014         * gtk/gtkcolorsel.c: Honor focus line attributes when
3015         drawing the focus on the color swatches. (#63071)
3016
3017         * gtk/gtkhsv.c: Honor focus line attributes when
3018         drawing the focus for the ring and triangle.
3019
3020         * docs/widget_geometry.txt: Start at documenting how 
3021         various widgets are drawn.
3022
3023         * gtk/gtkbutton.c (_gtk_button_paint): Export 
3024         _gtk_button_paint() librarywide, so we don't have 
3025         duplicate a bunch of code in gtktogglebutton.c.
3026
3027         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
3028
3029 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
3030
3031         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
3032         NONE:POINTER.
3033
3034 2001-12-03  Alex Larsson  <alexl@redhat.com>
3035
3036         * gtk/gtkaccellabel.c:
3037         * gtk/gtkarrow.c:
3038         * gtk/gtkcolorsel.c:
3039         * gtk/gtkcontainer.c:
3040         * gtk/gtklabel.c:
3041         * gtk/gtktextview.c:
3042         * gtk/gtktogglebutton.c:
3043         * gtk/gtktreeview.c:
3044         * gtk/gtkwindow.c:
3045         Return FALSE from expose handlers.
3046
3047 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
3048
3049         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
3050         we use pointers, we should free the previous pointer first (if
3051         it exists), before we set a new pointer. (#64726)
3052
3053         * gtk/gtktreeprivate.h: get rid of cursor_drag
3054
3055         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
3056         for cursor_drag
3057         (gtk_tree_view_bin_expose): don't directly return in the while
3058         loop
3059         (gtk_tree_view_class_init): indentend expanders by default
3060         (gtk_tree_view_header_focus): only give the button focus
3061         if it's clickable, visible and the column is reorderable
3062         (#65539)
3063
3064         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
3065         create and free cursor
3066
3067 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
3068
3069         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
3070         some bugs with size requisition. (From Bill Haneman)
3071
3072         * gtk/gtkcalendar.c: Draw headers and selection in 
3073         base/text[SELECTED] instead of fg/bg[SELECTED].
3074
3075         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
3076         code and formatting.
3077
3078 2001-12-03  Havoc Pennington  <hp@pobox.com>
3079
3080         * gtk/gtktextview.c (set_window_height): 
3081         (set_window_width): Hmm, setter functions normally assign the new
3082         value to the object field. Reported by Chris Phelps.
3083
3084 2001-11-30  jacob berkman  <jacob@ximian.com>
3085
3086         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
3087         signal id to 0 after we disconnect from it
3088
3089 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
3090
3091         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
3092         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
3093         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
3094         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
3095
3096         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
3097         GTK_DISABLE_DEPRECATED.
3098
3099         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
3100         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
3101
3102 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
3103
3104         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
3105         move/resize code, removing various bad, non-functional
3106         hacks. (Fixes #65048, reported by Damon Chaplin.)
3107
3108 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
3109
3110         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
3111         bad match error when target drawable is not the 
3112         same depth as the root window. (#65841)
3113
3114         * HACKING: Update.
3115
3116 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
3117
3118         * gdk/gdkwindow.c: Typo fix.
3119
3120 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
3121
3122         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
3123         empty menu items to behave like insensitive items (#59456)
3124
3125         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
3126         next item if the first item in the menu is a tear off item
3127         (#59456-2, suggestion by Matthias Clasen)
3128
3129         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
3130         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
3131         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
3132         (gtk_real_menu_shell_activate_current): add check, so empty
3133         menu items behave like insensitive items (#59456)
3134         
3135         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
3136         the checks more readable ...
3137         
3138         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
3139         (gtk_menu_shell_button_release): causes the menu to dropdown if the
3140         caption is clicked again (#64977)
3141
3142 2001-11-29  Havoc Pennington  <hp@redhat.com>
3143
3144         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3145         assertion here that we were at the end iterator was not correct;
3146         change code to move us to the end iterator. bug #65731
3147
3148 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
3149
3150         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
3151         improper use of g_locale_to_utf8() to convert from
3152         latin-1, and do it the easy way by building the string
3153         correctly in the first place.
3154
3155 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
3156
3157         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
3158         Convert atoms to and from atoms for properties of type XA_ATOM.
3159         (#65555, patch from Hidetoshi Tajima)
3160
3161 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
3162
3163         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
3164         to avoid problems with Objective C.
3165
3166 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
3167         
3168         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
3169
3170         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
3171         Fix docs. (#65505)
3172
3173         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
3174
3175 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
3176
3177         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
3178         accounting of menu->tearoff_scrollbar width to here
3179         and make sure we have the correct requisition.
3180
3181         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
3182         by using gtk_window_move().
3183
3184         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
3185         the requisition to be updated by calling
3186         gtk_widget_size_request() (#65440)
3187
3188         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
3189         queue resize before calling gtk_menu_set_tearoff_state().
3190
3191 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
3192
3193         * demos/gtk-demo/editable_cells.c: fix typo
3194
3195         * demos/gtk-demo/list_store.c (add_columns): remove call to
3196         gtk_tree_view_column_set_clickable which didn't make sense
3197
3198 2001-11-28  Havoc Pennington  <hp@redhat.com>
3199
3200         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
3201         explaining the validation error in front of the G_BREAKPOINT
3202
3203         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
3204         process updates with include_children = FALSE instead of TRUE, so
3205         we redraw the range only, not the whole darn window.  Making
3206         GtkRange a NO_WINDOW widget had weirdly caused the text widget
3207         Trace/breakpoint trap bug to become much easier to trigger.
3208
3209 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
3210
3211         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
3212         to gdkcursors.h.
3213
3214 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
3215
3216         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
3217
3218         * gdk/gdkcursor.h: Directly include the contents
3219         of gdkcursors.h in the GdkCursorType enum.
3220
3221         * gdk/gdkcursors.h: Deleted.
3222
3223         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
3224         header boilerplate.
3225
3226         * gdk/Makefile.am: Remove the X-derived-headers rule.
3227
3228 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
3229
3230         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
3231         Notify on the ::active property _here_, not in
3232         gtk_check_menu_item_set_active.
3233
3234 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
3235
3236         * gtk/gtkcellrendererpixbuf.c
3237         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
3238         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
3239
3240 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
3241
3242         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
3243         comment about what is going on in this file.
3244
3245         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
3246         x/y problem.
3247
3248 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
3249
3250         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
3251         Calculate size based on the _child_ of the menu item,
3252         not the menuitem. (#65005, Damon Chaplin)
3253
3254         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
3255         some extra vertical padding to the label widget ... restores
3256         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
3257
3258 2001-11-26  Tor Lillqvist  <tml@iki.fi>
3259
3260         * demos/pixbuf-demo.c
3261         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
3262
3263         * demos/gtk-demo/main.c (read_line): No flockfile() or
3264         getc_unlocked() on Win32.
3265
3266 2001-11-25  Tor Lillqvist  <tml@iki.fi>
3267
3268         * configure.in
3269         * acconfig.h: As we now use GDir, no need to check for dirent.h.
3270
3271 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
3272
3273         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
3274         when finished (#65266)
3275
3276 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
3277
3278         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
3279         data after we set the property. (#65264)
3280
3281 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
3282
3283         * gtk/gtkbutton.c: add destroy method so label_text gets freed
3284         if it has been allocated (#65268)
3285
3286 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
3287
3288         * gdk/linux-fb/gdkdrawable-fb2.c
3289         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
3290
3291         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
3292
3293         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
3294         set_family
3295         
3296         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
3297
3298 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
3299
3300         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
3301         deactivate menu when menu_item isn't sensitive (#61389)
3302
3303 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
3304
3305         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
3306         we return (in case of a failure here)
3307
3308 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
3309
3310         * gtk/gtknotebook.c: Handle events in windows other
3311         than widget->event_window properly. (#65079, reported
3312         by Damon Chaplin)
3313
3314         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
3315
3316 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
3317
3318         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
3319         the image at the top. (#65020, request from Seth Nickell)
3320
3321 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
3322
3323         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
3324         arithmetic that was resulting in rows being drawn too low.
3325         (#65001, reported by Damon Chaplin)
3326
3327 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
3328
3329         * gtk/gtkrange.c (gtk_range_button_press): Offset 
3330         invalidated range correctly.
3331
3332         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
3333         of title window. (#65001, reported by Damon Chaplin)
3334
3335         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
3336         horrible hack with use of ::event_after.
3337
3338 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
3339
3340         * Version 1.3.11
3341
3342         * configure.in (ATK_REQUIRED_VERSION): Require
3343         GLib-1.3.11, Pango-0.22, ATK-0.7.
3344
3345         * tests/prop-editor.c (property_widget): Restore
3346         to working as well as it did before.
3347
3348         * gtk/gtklistitem.h: Mark deprecated since it is
3349         an integral part of GtkList.
3350
3351         * demos/gtk-demo/demo-common.h: New header file,
3352         for a common functions not important to the meat
3353         of the demos.
3354         
3355         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
3356         function to search for a file used by the demo.
3357
3358         * demos/*.c: Use demo_find_file.
3359
3360 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
3361
3362         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
3363         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
3364         fixes already mentioned in ChangeLog entry on 2001-11-14.
3365
3366         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
3367
3368 2001-11-23  Hans Breuer  <hans@breuer.org>
3369
3370         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
3371         reflect Pango API change
3372
3373         * gtk/gtk.def : updated externals
3374
3375         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
3376         g_return_val_if_fail() to avoid 'function must return a value'
3377
3378         * gtk/gtkrc.c : added spaces to fix small coding style issues
3379         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
3380         'static correctness'
3381
3382         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
3383         because they only can be build on win32 after applying my patch
3384
3385 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
3386
3387         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
3388         children, in order for the input pnly window to stay *above*
3389         children.
3390
3391 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
3392
3393         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
3394         type walks againts G_TYPE_FUNDAMENTAL_MAX.
3395         
3396         * tests/prop-editor.c: disable type hackery.
3397
3398 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
3399
3400         * gdk/gdkimage.c (gdk_image_get): Fix problem with
3401         lost parameter.
3402
3403 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
3404
3405         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
3406         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
3407         trailing commas in enum declarations.
3408
3409 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
3410
3411         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
3412         interface, binary age 0.
3413
3414         * NEWS: Updates
3415
3416         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
3417         fixes in docs.
3418
3419         * gtk/gtkmain.h: Remove unused and misnamespaced
3420         get_gtk_win32_directory() prototype.
3421
3422         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
3423         to match header.
3424
3425         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
3426         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
3427         to match docs.
3428
3429         * gdk/gdkevents.c (gdk_event_get_coords)
3430           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
3431           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
3432         Fix parameter names in docs.
3433         
3434         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
3435         (#64961, Akira Tagoh)
3436
3437 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
3438
3439         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
3440
3441         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
3442
3443         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
3444
3445         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
3446         back to gtk_accel_groups_from_object(), change @acceleratable
3447         parameter to gtk_accel_groups_activate() accordingly.
3448
3449         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
3450         left-over comment about quark return.
3451
3452         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
3453
3454         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
3455         (Patch from Matt Wilson)
3456
3457         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
3458         object is finalized.
3459
3460 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
3461
3462         * applied patch from owen to get rid of accel map notifiers.
3463         changed things to fix reentrancy and API as discussed on gtk-devel.
3464
3465         * gtk/gtkaccelgroup.[hc]:
3466         (gtk_accel_group_finalize): unregister this accel group from all
3467         accel map paths.
3468         (accel_closure_invalidate): handle invalidation of closures by
3469         disconnecting their accelerators.
3470         (quick_accel_add): move closure connection and changed notification
3471         into this function to reduce code duplication. don't emit change
3472         notification on closurers without accelerators.
3473         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
3474         for a GtkAccelGroupEntry.
3475         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
3476         (gtk_accel_group_connect_by_path): new function to add accelerators
3477         with an accel path.
3478         (gtk_accel_group_disconnect_closure): new function, disconnect a
3479         closure from of an accel group.
3480         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
3481         accel_mods pair and remove them.
3482         (_gtk_accel_group_reconnect): new function that basically does
3483         gtk_accel_group_disconnect_closure() and
3484         gtk_accel_group_connect_by_path() once an accel path changed.
3485         (gtk_accel_groups_disconnect_closure): remove this, there's
3486         gtk_accel_group_disconnect_closure().
3487         
3488         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
3489         nuke notifiers.
3490         (_gtk_accel_path_is_valid): make this non-static for
3491         gtkwidget.c and gtkaccelgroup.c assertions.
3492         (gtk_accel_map_add_notifer): removed this function.
3493         (gtk_accel_map_remove_notifer): same.
3494         (_gtk_accel_map_add_group):
3495         (_gtk_accel_map_remove_group): (un-)register accel groups, with
3496         accel paths for correct propagation.
3497         (gtk_accel_map_add_entry): return void.
3498         (gtk_accel_map_lookup): return gboolean instead of GQuark.
3499         
3500         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
3501         set accel_path on widgets.
3502         
3503         * gtk/gtkwidget.[hc]:
3504         (accel_path_changed): got rid of this, changes are handled by
3505         accel maps internally now.
3506         (_gtk_widget_set_accel_path): get things to work without notifiers.
3507         (gtk_widget_list_accel_closures): list accel closures of a widget.
3508         
3509         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
3510
3511 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
3512
3513         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
3514
3515 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
3516
3517         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
3518         replace gboolean free_last in the function parameters with
3519         gint depth. Changes to reflect new situation.
3520
3521         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3522         replace gboolean free_last, with gint depth, add gint current_depth.
3523         Changes to reflect new situation.
3524
3525         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
3526         to reflect new situation
3527
3528         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
3529
3530 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
3531
3532         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
3533         where notebook gap was double shifted by allocation.x/y
3534
3535         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
3536         to unmap children.
3537
3538 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
3539
3540         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
3541         allocation to be relative to paned->allocation, now
3542         that this is a NO_WINDOW widget.
3543         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
3544
3545         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
3546         needs to be a boxed property.
3547
3548 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
3549
3550         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
3551         Use the widget's state when drawing the indicator, as
3552         in GtkCheckButton. This gives us color changes for
3553         un-prelighted checkbuttons. (#63308, Matt Wilson)
3554
3555 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
3556
3557         (Fixes related to #64428, Michael Meeks)
3558
3559         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
3560         widget, so it gets mapped again properly when we
3561         add to a parent.
3562
3563         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
3564         plug->socket_window. 
3565
3566         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
3567         socket_window to NULL, not FALSE.
3568
3569         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
3570         socket->same_app to TRUE. (#64612)
3571
3572 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
3573
3574         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
3575         gtk_fixed_set/get_has_window() to remove criticism
3576         about GTK_WIDGET_SET_FLAGS() hacks.
3577
3578 2001-11-19  Michael Natterer  <mitch@gimp.org>
3579
3580         * gtk/gtknotebook.c: show notebook->event_window with
3581         gdk_window_show_unraised(), so it doesn't catch the events which
3582         should go to the tab widgets first.
3583
3584 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
3585
3586         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
3587         "resizable" property, to get rid of the
3588         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
3589         (gtk_tree_view_column_set_resizable): New function to set resizable.
3590         (gtk_tree_view_column_set_resizable): getter.
3591
3592         * tests/testtreecolumns.c (add_clicked): modify for above change.
3593
3594         * Makefile.am (install-data-hook): remove old .pc files before
3595         installing the new one.  We used to symlink this, and it will
3596         break old installs.
3597
3598 2001-11-19  Havoc Pennington  <hp@pobox.com>
3599
3600         * tests/testtext.c (fill_example_buffer): put in a test for
3601         negative indentation values
3602
3603 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
3604
3605         * gtk/gtklabel.c (gtk_label_init): Change default for
3606         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
3607         labels are most often wrapped labels, this gives better
3608         compatibility with GTK+-1.2, where justification was
3609         ignored for wrapped labesl and is a more sensible
3610         default in any case. (#64489)
3611
3612         * gtk/gtklabel.c (gtk_label_class_init): Fix default
3613         for wrap property to FALSE.
3614
3615 2001-11-19  jacob berkman  <jacob@ximian.com>
3616
3617         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
3618
3619 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
3620
3621         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
3622         RevertToParent, not RevertToNone. (#64613, 
3623         Matthias Clasen)
3624
3625 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
3626
3627         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
3628         and label_yalign need to be float properties to
3629         correspond to GTK+-1.2, to gtk_frame_set_label_align,
3630         and to the types of the xalign and yalign properties of GtkMisc.
3631         (#63484, Vitaly Tishkov)
3632
3633 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
3634
3635         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
3636         of plug_added vfunc. (#64408, Jeff Franks)
3637
3638 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
3639
3640         * configure.in (deps): Undef HAVE_STDLIB_H before
3641         checking for jpeg, because jconfig.h has this
3642         in it too (%#$@!). Fix from Matthias Clasen, #64500.
3643
3644 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
3645
3646         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
3647         memory leak when retrieving atom names. (Michael Meeks,
3648         #64508)
3649
3650 2001-11-18  Alex Larsson  <alexl@redhat.com>
3651
3652         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
3653         Update to new Pango API.
3654         
3655 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
3656
3657         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
3658         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
3659         GTK_OBJECT_DESTROYED() check macro.
3660
3661         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
3662         instances of GTK_OBJECT_DESTROYED() that weren't
3663         needed any more.
3664
3665         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
3666         for a connection to ::destroy.
3667
3668 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
3669
3670         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
3671         have been since the beginning, but as special hack,
3672         allow clearing the NO_WINDOW flag to get a window widget.
3673
3674 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
3675
3676         * gtk/gtktreestore.c: return TRUE when value changed, so
3677         row_changed is being emitted
3678
3679 2001-11-18  Hans Breuer  <hans@breuer.org>
3680
3681         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
3682         no label without op, even if it's a no-op.
3683
3684         * gtk/gtk.def :
3685         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
3686
3687         * config.h.win32.in : remove definition of HAVE_DIRENT_H
3688         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
3689         required anymore, replace it.
3690         * gtk/queryimmodules.c : DIR -> GDir replacement, also
3691         getcwd() -> g_get_current_dir()
3692
3693         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
3694         Even 'noisy laugh' scolling appears to work, though I still can't
3695         claim to have fully understood what it is supposed to do ...
3696
3697 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
3698
3699         * gtk/gtkenums.h: Include glib-object.h instead of
3700         gobject/gsignal.h
3701
3702         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
3703           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
3704         argument to the window_at_pointer() field of
3705         GdkPointerHooks. (Patch from Erwann Chenede)
3706
3707         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
3708         to 6 pointers.
3709
3710 2001-11-17  Matt Wilson  <msw@redhat.com>
3711
3712         * gtk/gtkenums.h: must include glib-object.h only
3713
3714 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
3715
3716         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
3717         key bindings in order of visibility - mnemonics, then 
3718         accelerators, then send key to the focus widget, then
3719         bindings on the GtkWindow.
3720
3721         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
3722         Removed the xoffset, yoffset fields of GtkLayout which were
3723         identically zero for compat with 1.2, but were no longer 
3724         compatible with all uses of these fields in 1.2.
3725
3726         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
3727         unused variable.
3728
3729 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
3730
3731         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
3732         We no longer need to create the signals here ... they
3733         come from the interface.
3734
3735         * gtk/maketypes.awk: Use GType, not GtkType in output.
3736
3737         * gtk/gtktypeutils.h: Mark virtually all of this
3738         file deprecated.
3739
3740         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
3741         the only use of this function is the GtkArg using
3742         GtkCallbackMarshal, since destroy notification is
3743         silly here.
3744
3745 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
3746
3747         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
3748         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
3749         only for compatibility with GTK+-1.2; and deprecate it; 
3750         put all marshalers we actually use into gtkmarshalers.list 
3751         and use the _gtk_marshal_ prefix for these marshalers.
3752
3753 2001-11-17  Murray Cumming  <murrayc@usa.net>
3754
3755         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
3756         The first parameters of the signals are now registered as
3757         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
3758         
3759 2001-11-17  Tor Lillqvist  <tml@iki.fi>
3760
3761         * gtk-zip.sh.in: Build separate runtime and developer
3762         packages.
3763
3764         * gtk/gtk.def: Reflect recent accelerator-related changes.
3765
3766 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
3767
3768         * gtk/gtkwindow.c (gtk_window_set_default): Move 
3769         notification of "has_default" to here, so it
3770         is safe to call gtk_window_set_default() instead
3771         of gtk_widget_grab_default().
3772
3773         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
3774         gtk_widget_grab_focus(), which then calls 
3775         _gtk_widget_internal_set_focus(). This makes 
3776         gtk_window_set_focus() a safe way of both setting
3777         and unsetting the focus widget.
3778
3779         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
3780         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
3781         to find the toplevel.
3782
3783         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
3784         from the "internal functions" section.
3785
3786 2001-11-16  jacob berkman  <jacob@ximian.com>
3787
3788         * tests/testgtk.c (create_radio_buttons): add some no-indicator
3789         radio buttons
3790
3791         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
3792         initially active, also initially be depressed
3793         (gtk_radio_button_clicked): also update our depressed state
3794
3795 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
3796
3797         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
3798         key press events not just to focus/window but also to
3799         intermediate widgets.
3800
3801         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
3802         to switch pages. (Needs some work on handling focus
3803         when switching pages.)
3804
3805 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
3806
3807         * gtk/gtknotebook.c: Fix child allocations to be relative to 
3808         widget position and some drawing bugs.
3809
3810         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
3811         with reading uninitialized variable.
3812
3813 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
3814
3815         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
3816         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
3817         NO_WINDOW widgets.
3818
3819         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
3820         cleanup.
3821
3822         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
3823         we are drawing in a window when drawing the paned handle.
3824
3825 2001-11-16  Sven Neumann  <sven@gimp.org>
3826
3827         * demos/gtk-demo/appwindow.c
3828         * demos/gtk-demo/menus.c: reduce compiler warnings
3829
3830 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
3831
3832         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
3833         unused callback to make things compile with 
3834         gtk_tree_view_path_at_pos_change().
3835
3836 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
3837
3838         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
3839
3840 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
3841
3842         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
3843  
3844 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
3845
3846         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
3847         to get a GdkWindow to compare event->window to.
3848
3849         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
3850         the signal for lateral motion too, #64361
3851
3852         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
3853         arg as it is useless, #64137
3854
3855 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
3856
3857         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
3858
3859 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
3860  
3861         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
3862         gdk_window_invalidate_maybe_recurse() for recursion.
3863         (Soeren Sandmann)
3864
3865         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
3866  
3867         * gtk/gtkcontainer.c (gtk_container_expose): Call
3868         gtk_container_forall() not _foreach() to propagate,
3869         since we need to propagate exposes to internal children
3870         as well.
3871
3872         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
3873         Remove the restriction of only being able to call these
3874         on window widgets, since we have lots of NO_WINDOW widgets
3875         with windows now; for add events, recurse over the children
3876         of widget->window to find one owned by the widget.
3877
3878         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
3879         window to catch events.
3880
3881         * gtk/gtktogglebutton.[ch]: Remove the code for switching
3882         between NO_WINDOW and WINDOW widgets based on the mode.
3883
3884         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
3885         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
3886
3887         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
3888
3889         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
3890         change for range.
3891
3892         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
3893  
3894         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
3895
3896 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
3897
3898         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
3899         "message_type" and "buttons" CONSTRUCT properties. (#64069)
3900
3901         * tests/testsocket.c: Expand tests to add a "local passive
3902         child" (Test case for #64428)
3903
3904 2001-11-14  jacob berkman  <jacob@ximian.com>
3905
3906         * gtk/gtkgamma.c (button_clicked_callback): create the label with
3907         a mnemonic
3908
3909 2001-11-15  Sven Neumann  <sven@gimp.org>
3910
3911         * tests/testgtk.c: make it compile without warnings.
3912
3913 2001-11-14  Alex Larsson  <alexl@redhat.com>
3914
3915         * gtk/gtklabel.c:
3916         Don't recalculate the layout on each gkt_label_ensure_layout () for
3917         wrapped labels.
3918
3919 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
3920
3921         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
3922         the currently selected column when we get the column, #64380
3923
3924         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
3925         to cancel CellRendererText editting, #63613
3926
3927         * gtk/gtkcellrenderertext.c: ditto
3928
3929         * gtk/gtkcellrenderertext.h: formatting changes
3930
3931 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
3932
3933         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
3934
3935         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
3936
3937         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
3938
3939         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
3940
3941         * gtk/gtklabel.c: Documentation fixes (#64452)
3942
3943 2001-11-14  Daniel Egger  <degger@fhm.edu>
3944
3945         * gdk-pixbuf/io-xpm.c: 
3946         (xpm_skip_whitespaces): Remove unused static function.
3947         (xpm_skip_string): Dito.        
3948         (xpm_extract_color): Declare const variable const to avoid warnings. 
3949
3950         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
3951         
3952         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
3953         
3954         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
3955         a long.
3956
3957 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
3958
3959         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
3960         out accidental commit of debugging timing code.
3961
3962 2001-11-14  Havoc Pennington  <hp@redhat.com>
3963
3964         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
3965         it doesn't move to a new line each time you press it
3966
3967         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
3968         return value, #62987
3969
3970 2001-11-14  Havoc Pennington  <hp@redhat.com>
3971
3972         * tests/testtextbuffer.c (main): bulk of the tests were commented
3973         out, oops.
3974
3975         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
3976         function work, should resolve #63426
3977         (gtk_text_iter_ends_line): return TRUE for the end iterator
3978
3979         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
3980         a couple things that might get cached in here.
3981
3982 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
3983
3984         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
3985         "model" construct property for language bindings.
3986
3987         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
3988         function to let you set the column types of a GtkTreeStore for
3989         language bindings.
3990
3991         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
3992
3993 2001-11-13  Havoc Pennington  <hp@redhat.com>
3994
3995         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
3996         including reference to bugzilla bug about how we should have 
3997         a better way of positioning children
3998
3999         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
4000
4001         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
4002         size to side rects if they don't exist, #63438
4003
4004 2001-11-13  Havoc Pennington  <hp@redhat.com>
4005
4006         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
4007         properly replace selection with Return or Tab
4008
4009         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
4010         that didn't locate the end of the line correctly, should fix #63800
4011
4012 2001-11-13  Havoc Pennington  <hp@redhat.com>
4013
4014         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
4015         to requisition, request non-anchored children
4016         (gtk_text_view_size_allocate): handle border width, allocate
4017         non-anchored children
4018         (text_view_child_new_window): set the child as object data
4019         (gtk_text_view_move_child): allow children at negative
4020         coordinates, no reason why not
4021         (gtk_text_view_forall): make it copy the list of children before
4022         walking it, to avoid reentrancy issues  
4023         (gtk_text_view_move_child): short-circuit if position is unchanged
4024         (changed_handler): only queue_resize if requisition has changed
4025         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
4026         a better job of invalidation ourselves
4027
4028         * tests/testtext.c: add tests for the fixed-position children
4029
4030 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
4031
4032         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
4033         with gdk threads macro.
4034
4035 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
4036
4037         * gtk/maketypes.awk: fix type utils generation on unix.
4038
4039         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
4040         registry.
4041
4042         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
4043         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
4044         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
4045         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
4046         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
4047         introduced ::accel_changed signal for change notification, and
4048         gtk_accel_group_connect/disconnect to connect closures to accel groups.
4049         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
4050         functions.
4051         deprecated gtk_accel_group_ref/unref.
4052
4053         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
4054         to accel group changed notification and basically operate on closures.
4055         removed gtk_accel_label_get_accel_object and
4056         gtk_accel_label_set_accel_object.
4057         introduced gtk_accel_label_set_accel_closure, and for convenience,
4058         gtk_accel_label_set_accel_widget.
4059
4060         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
4061         which mostly moved into gtkaccelmap.[hc].
4062         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
4063         and gtk_item_factory_print_func.
4064
4065         * gtk/gtkmain.c: call _gtk_accel_map_init().
4066
4067         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
4068         that associates an accelerator path with menu items, through which
4069         persistent accelerator settings on menu items are enabled.
4070
4071         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
4072         paths of menu item can be default constructed to allow installation
4073         of accelerators on menu items that don't come with an accelerator
4074         binding by default.
4075
4076         * gtk/gtksettings.c: fix STRING type rc settings by special casing
4077         them appropriately in the parser.
4078
4079         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
4080         gtk_signal_newv().
4081
4082         * gtk/gtkwidget.[hc]: accelerator API revamp.
4083         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
4084         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
4085         gtk_widget_(un)lock_accelerators.
4086         accelerators maintained through gtk_widget_add/remove_accelerator()
4087         are not runtime changable now, the correct sequence to setup a
4088         widget for runtime changable accelerators is now:
4089           gtk_accel_map_add_entry(accel_path, key, mods);
4090           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
4091
4092         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
4093         group changes (as well as mnemonic changes) through the new signal
4094         ::accels_changed.
4095
4096 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
4097
4098         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
4099         GString->string conversions.
4100
4101 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
4102
4103         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
4104         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
4105
4106 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
4107
4108         * gtk/gtktreeview.c: Documentation fixes. (#64377)
4109         
4110         * gtk/gtktreestore.c: Documentation fixes. (#64376)
4111
4112 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
4113
4114         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
4115         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
4116         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
4117         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
4118
4119 2001-11-10  Hans Breuer  <hans@breuer.org>
4120
4121         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
4122         we know what we are talking about when asked for MINMAXINFO.
4123         Also some cleaning for !HAVE_DIMM_H etc.
4124
4125 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
4126
4127         * gtk/gtktreeviewcolumn.c: Fix docs for 
4128         gtk_tree_view_column_set_sort_order. (#62647)
4129         
4130         * gtk/gtkcontainer.c: Fix docs for 
4131         gtk_container_set_border_width. (#64139)
4132
4133         * gtk/gtkcolorsel.c: Documentation fixes.
4134
4135 2001-11-10  Hans Breuer  <hans@breuer.org>
4136
4137         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
4138         don't have strcasecmp()
4139
4140         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
4141         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
4142         code duplication wrap it in its own function and use it in 
4143         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
4144
4145         * gdk/win32/gdkdrawable-win32.c : implement the finalize
4146         method like the X11 version does, allow to set_colormap NULL
4147         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
4148         set_colormap, also some adaption to X11 version :
4149         (gdk_window_hide) call _gdk_window_clear_update_area
4150         (gdk_window_reparent) call _gdk_window_init_position
4151
4152         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
4153         call gdk_window_resize() after all hints are set, because the
4154         window resizing process (WM_GETMINMAXINFO) takes all of them into 
4155         account
4156
4157         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
4158
4159         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
4160         sizeof (GdkVisualPrivate)
4161
4162         * gdk/gdk.def gtk/gtk.def : upated externals
4163
4164         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
4165           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
4166         from now on use make.msc from $(TOP)/glib/build/win32
4167
4168         * gtk/stock-icons/makefile.msc : add stock_missing_image
4169
4170 2001-11-08  Tor Lillqvist  <tml@iki.fi>
4171
4172         * README.win32: Add headers. Add section about ActiveIMM.
4173
4174         * configure.in: Add --with-ie55 flag to specify the location of
4175         the "IE55 libs and headers" package downloadable from Microsoft,
4176         which contains, among other things, the Active IMM header dimm.h
4177         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
4178         Require GLib 1.3.10.
4179         
4180         * config.h.win32.in: New version, produced by merging two
4181         configure-generated ones (for gcc and MSVC). Hopefully #defines
4182         the same flags that the previous, hand-written one, did.
4183
4184         * gdk/Makefile.am
4185         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
4186
4187         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
4188         stuff. Remove unused GdkIOClosure.
4189
4190         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
4191         available).
4192
4193         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
4194         for uuid.lib. (Does it really have to be this hard to use an
4195         existing library with libtool? Probably I am missing something.)
4196
4197 2001-11-08  Darin Adler  <darin@bentspoon.com>
4198
4199         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
4200         typo where it says LEFT instead of CENTER.
4201
4202 2001-11-07  Darin Adler  <darin@bentspoon.com>
4203
4204         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
4205         (gtk_dialog_set_default_response): Add g_return_if_fail.
4206
4207 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
4208
4209         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
4210         Add row_draggable() vfunc, and wrapper function.
4211
4212         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
4213         row_drop_possible take a GtkSelectionData, rather than
4214         model/row pair.
4215
4216         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
4217         new DND interfaces.
4218
4219         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
4220         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
4221         and rename them to enable_model_drag_source/dest.
4222
4223         * gtk/treeviewcolumn.c: Add DND of columns between rows.
4224         Still can't drop _to_ the left tree, but other places
4225         work.
4226
4227         * gtk/gtktreeview.c (unset_reorderable): Unset the
4228         reorderable property if unset/enable_model_drag_source/dest
4229         are called manually.
4230
4231         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
4232         Correct for change in depth count handling.
4233
4234         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
4235         Pass in a expose area to gtk_tree_view_column_cell_render()
4236
4237 2001-11-06  Havoc Pennington  <hp@redhat.com>
4238
4239         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
4240
4241 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
4242
4243         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
4244
4245 2001-11-05  Havoc Pennington  <hp@redhat.com>
4246
4247         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
4248         widgets in here
4249         (gtk_text_view_realize): set parent window of child widgets
4250         (gtk_text_view_size_request): use child req to decide whether
4251         to invalidate layout, not widget->requisition
4252
4253         * gtk/gtktextdisplay.c (render_layout_line): set
4254         shaped_width_pixels for NULL shape objects, so that we properly
4255         draw the "missing pixbuf/widget" thing
4256         (render_layout_line): don't draw the widget here
4257         (gtk_text_layout_draw): pass out a list of widgets that need exposing
4258
4259         * demos/gtk-demo/textview.c (insert_text): add demo of child
4260         widgets
4261
4262         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
4263
4264         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
4265
4266         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
4267         scroll offsets
4268         (gtk_text_view_value_changed): poke new X and Y into child allocations
4269
4270 2001-11-06  Tor Lillqvist  <tml@iki.fi>
4271
4272         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
4273         -specific directory on Windows, too (#63759).
4274
4275 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
4276
4277         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
4278         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
4279         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
4280         directly to Picture objects instead of using XftDraw.
4281         This fixes the problem where we weren't able to 
4282         properly destroy XftDraw objects before destroying
4283         the accompanying windows, and probably improves
4284         efficiency a bit too. (#50214)
4285
4286 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
4287
4288         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
4289         Clamp max window width/height to 32767, not 32768 since
4290         we have to be able to deal with a dx/y of -32768 without
4291         getting a width of 65536 when guffaw scrolling.
4292
4293         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
4294         for the guffaw scrolling case, fixing some problems with
4295         copy-area case as well. Fix BadValue bug with moving windows
4296         by large amounts.
4297
4298         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
4299         clip in window structue before calling gdk_window_invalidate_region
4300         since that trims new invalidations to the window's visible
4301         region.
4302
4303         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
4304         Really set the static window gravity on the children, not
4305         repeatedly on the window.
4306
4307         * gtk/testgtk.c: Add a torture test for big windows and 
4308         gdk_window_scroll().
4309
4310 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
4311
4312         * acconfig.h configure.in: sigsetjmp is macroized in some places,
4313         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
4314
4315 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
4316
4317         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
4318         in terms of pango_color_parse().
4319
4320         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
4321         gdk_color_parse() implementations.
4322
4323 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
4324
4325         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
4326         queue_resize_on_group with both the old and new mode, not
4327         just the new mode. (#60171, Nicolas Setton). Also, notify
4328         the "mode" property.
4329         
4330 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
4331
4332         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
4333         for use in "shallow invalidation" of a widget. (Windows belonging
4334         to the widget, but not to the widget's children)
4335
4336         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
4337         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
4338         up on ancestors up to the resize container on queue_resize. Size
4339         requests only actually take place if GTK_REQUEST_NEEDED, size
4340         allocations only take place if GTK_ALLOC_NEEDED or the size
4341         changed.
4342
4343         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
4344         container->resize_widgets and the RESIZE_NEEDED flag since the
4345         above flags are sufficient to figure out what needs to be
4346         resized/reallocated. Remove code manipulating
4347         container->resize_widget.
4348
4349         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
4350         allows widgets to turn off being automatically invalidated is when
4351         they are resized.
4352
4353         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
4354         a widget is resized or moved is "shallow" as described above -
4355         only the windows that need to be invalidated are invalidated.
4356
4357         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
4358         Make these widget's init functions call 
4359         gtk_widget_set_redraw_on_allocate(widget,FALSE).
4360
4361         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
4362         _gtk_container_queue_resize(), since we don't want
4363         redrawing. (Probably could be done for other 
4364         calls to gtk_widget_queue_resize() in gtkwindow.c,
4365         but this is the most important one.)
4366
4367         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
4368         gtk_widget_queue_draw() - size_allocate() handles
4369         that as appropriate.
4370
4371         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
4372         of queue_clear() to avoid invalidating children.
4373
4374 2001-11-04  jacob berkman  <jacob@ximian.com>
4375
4376         * gtk/gtkmain.c (find_module): don't free the module name until
4377         after we load the module
4378
4379 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
4380  
4381         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
4382         derivation instead of boxed derivation.
4383  
4384         * gtk/gtkmarshal.list: Remove some now unused marshallers.
4385  
4386 2001-11-04  Tor Lillqvist  <tml@iki.fi>
4387
4388         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
4389         include yesterday, without really thinking), as that defeats the
4390         working of correct_libdir_prefix() (it becomes a no-op.). Add
4391         comment mentioning that. Thanks to Hans Breuer for noticing.
4392         
4393 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
4394
4395         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
4396         signal argument (was GtkWidget*).
4397
4398         * gtk/gtkwindow.c (gtk_window_frame_event),
4399           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
4400         Fixed argument types as above, removed GTK_WINDOW casts and
4401         added some GTK_WIDGET casts instead.
4402
4403 2001-11-03  Hans Breuer  <hans@breuer.org>
4404
4405         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
4406         finalize to parent class to get removed from the toplevel_list.
4407         Should fix 'random' crashes of #63474.
4408
4409         * gtk/gtktreemodelsort.c : chain finalize() to parent class
4410
4411 2001-11-03  Tor Lillqvist  <tml@iki.fi>
4412
4413         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
4414         for .dll or .so as appropriate as module suffix.
4415
4416         * gtk-zip.sh.in: Use correct import library names.
4417
4418         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
4419
4420         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
4421         Windows to turn build-time paths from a gtk.immodules distributed
4422         as part of a binary package into runtime ones in the
4423         end-user-chosen installation directory.
4424         (gtk_im_module_init): Use it for module path and domain
4425         directory.
4426
4427 2001-11-02  Tor Lillqvist  <tml@iki.fi>
4428
4429         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
4430         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
4431         Windows.
4432
4433 2001-10-30  Tor Lillqvist  <tml@iki.fi>
4434
4435         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
4436         files. Configure on Win32 (running on Cygwin) thinks symlinks
4437         exist, but pkg-config is not necesarily a Cygwin program, and
4438         doesn't understand them.
4439
4440 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
4441
4442         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
4443         a bit.  I don't think it's completely correct yet, but it's
4444         getting there.
4445
4446 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
4447
4448         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
4449         random + 5 for width and height. If people want padding,
4450         they should add padding. (Note the +5 isn't padding
4451         that will always appear - it just appears in the case
4452         where the widget is allocated it's requisition.)
4453         (#51018, Janet Davis)
4454
4455 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
4456
4457         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
4458         the structure for future expansion.
4459
4460 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
4461
4462         Patch from HideToshi Tajima (#51922)
4463         
4464         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
4465
4466         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
4467         set_use_preedit().
4468         
4469         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
4470         to destroy the input context because we change the
4471         client window or use_preedit, make sure we empty
4472         the preedit string.
4473
4474 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
4475
4476         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
4477         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
4478         proposed ordering of buttons with [OK] in the lower
4479         right hand corner. Patch from Gregory Merchan,
4480         #56331.
4481
4482 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
4483
4484         * gtk/gtklabel.c (gtk_label_select_region_index): remove
4485         extraneous gtk_label_clear_layout (label)
4486
4487 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4488
4489         * tests/makefile.msc, gtk/makefile.msc.in: Removed
4490         -DGTK_DISABLE_COMPAT_H.
4491
4492         * docs/Changes-2.0.txt:
4493         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
4494
4495         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
4496
4497 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
4498
4499         * examples/**/Makefile.am: Convert to use pkg-config
4500         rather than gtk-config. (#53375, Skip Montanaro)
4501
4502 2001-11-02  Matt Wilson  <msw@redhat.com>
4503
4504         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
4505         broken unused, non-compiling, static function.
4506
4507 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
4508
4509         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
4510         Iterate through children of the action area, not of
4511         the vbox. (#58278, Sergey Kuzminov)
4512
4513 2001-11-01  Havoc Pennington  <hp@pobox.com>
4514
4515         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
4516         order to remove a workaround in Nautilus that forced
4517         GTK_ENABLE_BROKEN
4518
4519         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
4520
4521 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
4522
4523         * gtk/gtkrange.c: Patch from George Lebl to 
4524         fix division by zero for full scroll bars. (#62114)
4525
4526 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
4527
4528         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
4529         around gtk_widget_event() if we are going to
4530         set a flag afterwards. (#63464)
4531
4532 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
4533
4534         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
4535         Actually add the missing/broken image icon as the
4536         image for the "missing image" stock icon.
4537
4538 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
4539
4540         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
4541         Set a reasonable default height for the window.
4542
4543         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
4544         bug where subsequent '-' weren't converted to '_'.
4545         (#59550, Matthias Clasen)
4546
4547         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
4548         justify the Help menu - just include a comment on
4549         how to do it. (#63539,  Marius Andreiana)
4550
4551         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
4552         list GTK_ICON_SIZE_INVALID.
4553
4554         * demos/gtk-demo/stock_browser.c: Show the biggest available
4555         size, not a fixed size. (Often reported, including #63539, 
4556         Marius Andreiana)
4557
4558 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
4559
4560         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
4561         #59583
4562
4563         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
4564         warning.
4565
4566 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
4567
4568         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
4569         (Daniel Elstner).
4570
4571 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
4572
4573         * gtk/gtkimcontext.[ch]: Add:
4574           - A ::retrieve_surrounding signal that asks the widget for
4575             context around the insertion point.
4576           - A ::delete_surrounding signal that asks the widget to 
4577             delete context aroudn the insertion point.
4578           - gtk_im_context_set_context() for widgets to set context
4579             around the insertion point in response to ::retrieve_context.
4580           - gtk_im_context_get_context() for context to get context
4581             around the insertion point
4582
4583         * gtkmarshal.list: Add BOOL:INT,INT
4584
4585         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
4586         set_surrounding() methods, and the ::retrieve_surrounding /
4587         ::delete_surrounding signals.
4588
4589         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
4590         GtkIMContext::retrieve_surrounding / ::delete_surrounding
4591         signals.
4592
4593 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
4594
4595         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
4596         it's amazing how well things work sometimes, even when they're
4597         completely wrong.
4598
4599         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
4600         where you could try to collapse a node w/o it having children.
4601
4602         (gtk_tree_view_class_init): remove Shift L<->R as they already
4603         existed for expand/collapse.
4604
4605 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
4606
4607         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
4608         found by Matt Wilson.
4609
4610 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
4611
4612         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
4613         Control, and Shift|Control L<->R, #63475
4614
4615 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
4616
4617         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
4618         infinite loop noticed by yosh.
4619
4620 2001-11-01  Michael Meeks  <michael@ximian.com>
4621
4622         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
4623         GTK_REALIZED flag so we don't re-enter when we are
4624         destroyed from the plug side.
4625
4626 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
4627
4628         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
4629         Add a "menu" property and notify on it. (#62798,
4630         Padraig O'Briain)
4631
4632         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
4633         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
4634         Fix set_text to take a gchar, not a guchar, and to have 
4635         a len argument.
4636
4637 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
4638
4639         * gtk/gtkstock.c: fix typo to make it compile
4640
4641 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
4642
4643         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
4644         the widget is insensitive, draw the text insensitively, #63306
4645
4646 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
4647
4648         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
4649
4650 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
4651
4652         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
4653         gtk_selection_data_set_tree_row, #60218
4654         (gtk_tree_get_row_drag_data): rename
4655         gtk_selection_data_get_tree_row, #60218
4656
4657         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
4658         get this right, after the third try, #63122.
4659
4660 2001-10-31  jacob berkman  <jacob@ximian.com>
4661
4662         * gdk/gdkselection.h (GDK_TARGET_STRING): 
4663         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
4664         for Xatoms (and not using the XA_* macros)!
4665
4666 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
4667
4668         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
4669         gtk_window_get_focus() getter to determine the currently
4670         focused widget within the window. (#63145, request
4671         from Damian Ivereigh)
4672
4673 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
4674
4675         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
4676
4677         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
4678         GTK_SELECTION_NONE enum.
4679         (_gtk_tree_selection_internal_select_node): ditto
4680
4681         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
4682         constness.
4683
4684         * gtk/gtkcellrenderertoggle.c: more yummy constness.
4685
4686         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
4687         if mode == GTK_SELECTION_NONE
4688
4689 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
4690
4691         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
4692         "cursor_changed" signal, #62850.
4693
4694 2001-10-31  Matt Wilson  <msw@redhat.com>
4695
4696         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
4697         allocating the treedatalist, zero it to make sure the values are
4698         cleared from any garbage that was in this chunk.
4699
4700 2001-10-31  Murray Cumming  <murrayc@usa.net>
4701
4702         * gtk/cellrenderertext.h: "edited" default signal handler
4703         gchar* args are now const.
4704         gtk/cellrenderertoggle.h: "toggled" default signal handler
4705         gchar* arg is now const.
4706         Also changed other signal handlers for "edited" and "toggled" to
4707         have the same signature.
4708
4709 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
4710
4711         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
4712         rewrite.  Static models now totally work.  I'm not 100% sure about
4713         row_inserted and row_changed, but I'll get those later.
4714
4715 2001-10-30  Sven Neumann  <sven@gimp.org>
4716
4717         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
4718         output for configure --help.
4719
4720 2001-10-30  Havoc Pennington  <hp@pobox.com>
4721
4722         * gtk/gtktextview.c (changed_handler): Update the IM spot location
4723         here, if text was invalidated in the visible area, because the
4724         scroll offset doesn't normally change in that case, and the mark
4725         isn't set, just implicitly moved over as text is added/removed
4726         
4727 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
4728
4729         * gtk/gtkseparatormenuitem.c: Code cleanup.
4730         (gtk_separator_menu_item_class_init): Fix bugs in this code.
4731
4732 2001-10-29  jacob berkman  <jacob@ximian.com>
4733
4734         * gdk/Makefile.am (LDFLAGS): 
4735         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
4736         LDFLAGS, so put win32 flags in here
4737
4738 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
4739
4740         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
4741         I can't believe this took this long to fix.
4742
4743 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
4744
4745         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
4746         reordered signal.
4747
4748 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
4749
4750         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
4751         the focus to the fileop entry for create dir / rename
4752         file. (#62838)
4753
4754 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
4755
4756         * configure.in: Don't use AC_CHECK_FILE to check for a 
4757         file since it always spits warnings about cross compilation,
4758         use -f instead. It's not like we cross compile properly
4759         anyways.
4760
4761         * configure.in (gtktargetlib): Move call to AC_PROG_CC
4762         to suppress autoconf warning.
4763
4764         * acconfig.h: Add some missing #undefs from recent
4765         Win32 additions.
4766
4767 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
4768
4769         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
4770         when we didn't find it. (#62944, Eric Lemings)
4771
4772         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
4773         sign in assignment. (#63209, Arkadiusz Miskiewicz)
4774
4775 2001-10-29  Anders Carlsson  <andersca@gnu.org>
4776
4777         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
4778         the buttons size request before using it. Fixes #61696.
4779
4780 2001-10-29  Tor Lillqvist  <tml@iki.fi>
4781
4782         * README.win32: Updates.
4783
4784         * gtk-zip.sh.in: New file, used to build distribution package for
4785         Windows.
4786
4787         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
4788         applicable with GDKVAR.
4789
4790         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
4791         Wintab library.
4792
4793         * gdk/win32/gdkwin32.h
4794         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
4795         X11 headers better, and to enable gdkwin32.h to be installed and
4796         included from applications, but not the *-win32.h headers.
4797
4798         * gdk/win32/*.c: Corresponding small changes, simplifications of
4799         #includes.
4800         
4801         * gdk/win32/gdkregion-win32.c: Remove.
4802
4803         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
4804
4805         * gdk/win32/gdkfont-win32.c
4806         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
4807
4808         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
4809         GDK_NONE values into hash table.
4810
4811         * gtk/gtk.def: Update.
4812
4813         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
4814         gethostname().
4815
4816         * gtk/gtkmain.c 
4817         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
4818         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
4819         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
4820         g_win32_get_package_installation_subdirectory() with the actual
4821         DLL name saved above. Redefine above directory name macros to call
4822         these functions. Remove some ifdefs.
4823
4824         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
4825         variable for export on Win32) also to the _vars file.
4826
4827         Changes for autoconfiscated build on Win32, and addition of Win32
4828         backend to the related files:
4829         
4830         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
4831         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
4832         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
4833         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
4834         win32 target, using pangowin32. Don't use the
4835         -export-symbols-regex option on Win32, we use .def files to list
4836         exported symbols. Check <winsock.h> (for gethostname() in
4837         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
4838         prevent premature m4 expansion.
4839
4840         * acconfig.h: Add HAVE_WINTAB.
4841
4842         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
4843         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
4844         MS_LIB_AVAILABLE, build MS import library. Install the import
4845         libraries. If HAVE_WINTAB, link with the Wintab library.
4846
4847         * gdk/win32/Makefile.am: Actually enable building the win32
4848         objects here, not just list all files in EXTRA_DIST. Link in the
4849         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
4850         copy the Wintab library into the .libs directory. 
4851
4852         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
4853         name of the GDK DLL when fetching the icon. Use the HMODULE saved
4854         in gdk_dll_hinstance by DllMain.
4855
4856         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
4857         build/win32/lt-compile-resource script.
4858
4859         * gdk/win32/rc/gdk.rc.in
4860         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
4861
4862         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
4863         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
4864         file. Install import libraries.
4865
4866 2001-10-29  Anders Carlsson  <andersca@gnu.org>
4867
4868         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
4869
4870 2001-10-28  Hans Breuer  <hans@breuer.org>
4871
4872         * gdk/gdk.c gdk/gdkevents.c
4873           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
4874           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
4875           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
4876           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
4877           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
4878           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
4879           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
4880         static correct-ness, underscore prefixing of library internal 
4881         functions
4882         (applied the undisputed and the win32 part. Of the latter 
4883          I'm probably the one who will change it back again, if Owen
4884          decides that the Gdk*Impl types should not be private to Gdk)
4885
4886         * gdk/gdk.def : added the remaining exported functions
4887
4888 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
4889
4890         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
4891         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
4892         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
4893
4894 2001-10-28  jacob berkman  <jacob@ximian.com>
4895
4896         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
4897         gtk_settings_get_default() here as that requires an X connection
4898         (which breaks doc building with no X connection) and is not
4899         multihead safe
4900         (gtk_color_selection_init): delay palette loading until realize
4901         time
4902         (gtk_color_selection_realize): load the palette, and initialize
4903         the global palette if it hasn't been already
4904
4905         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
4906         visual/cmap fields of klass->info since they are gone
4907         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
4908         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
4909         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
4910
4911         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
4912         cmap fields
4913         (gtk_preview_get_visual):
4914         (gtk_preview_get_cmap): mark as deprecated
4915
4916         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
4917         changes
4918
4919 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
4920
4921         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
4922         structure to have GObject not GtkObject as
4923         parent_instance. (Jeff Franks.)
4924
4925 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
4926
4927         * gdk/x11/gdkinput.c: Typo fix.
4928
4929 2001-10-26  Havoc Pennington  <hp@pobox.com>
4930
4931         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
4932         update_im_spot_location here explicitly
4933         (gtk_text_view_reset_im_context): don't update the spot location
4934         here
4935
4936 2001-10-27  Anders Carlsson  <andersca@gnu.org>
4937
4938         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
4939         This fixes #62942.
4940
4941         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
4942         Clarify that we're returning a spin button in the _new function.
4943         This fixes #54097.
4944         
4945 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
4946
4947         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
4948         Unfortunately, people apparently erroneously connect
4949         to ::clicked for GtkToggleButton and expect
4950         they know what happened in the default signal handler
4951         instead of appropriately connecting to notification
4952         signal ::toggled. When the revolution comes, such
4953         people will be first against the wall.
4954
4955         We'll just have to go back to the old less-reliable
4956         set-it-back hacks for handling model-view check
4957         buttons and radio buttons. :-(. 
4958
4959 2001-10-27  Hans Breuer  <hans@breuer.org>
4960
4961         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
4962           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
4963           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
4964           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
4965           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
4966           gtk/gtktreestore.c gtk/gtkvbbox.c : 
4967         to simplify parsing for exported functions:
4968         - made implementation signature static, when the local 
4969           prototype already was
4970         - put the functions return value on it's own line
4971         - added as space between the function name and the 
4972           opening bracket
4973
4974         * gtk/gtk.def : added the remaining exported functions
4975
4976 2001-10-27  Anders Carlsson  <andersca@gnu.org>
4977
4978         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
4979         Add note about width having to be greater than 0. This fixes
4980         #55574. 
4981
4982         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
4983         Fix docs to say previous instead of next.
4984         (gtk_text_iter_backward_word_start): Likewise.
4985         This fixes bug #62980.
4986
4987         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
4988         that the valid width is in range 0-65535 pixels. Fixes bug 
4989         #56754.
4990
4991         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
4992         a dot in the documentation. Fixes bug #62632.
4993
4994         * gdk/x11/gdkmain-x11.c: Replace int and guint with
4995         long and gulong in some places to make the code 64-bit
4996         clean.
4997         (_gdk_windowing_init_check): Replace gint with gulong.
4998         This patch was made by George Lebl and fixes bug #62113.
4999
5000         * tests/testgtk.c (create_range_controls): Don't set a 
5001         fixed height on the hscale widget. This fixes "bug" 
5002         #55840.
5003         (create_window_states): Set up destroy signals so that
5004         all windows will be destroyed when one is. This fixes 
5005         bug #58133.
5006
5007 2001-10-26  Anders Carlsson  <andersca@gnu.org>
5008
5009         * gtk/gtktreeview.c: 
5010         (gtk_tree_view_class_init): Create new "indent_expander"
5011         style property.
5012
5013         (gtk_tree_view_get_arrow_xrange): Add a tree argument
5014         to the function since the xrange can change depending
5015         on where in the tree we are. 
5016         
5017         (coords_are_over_arrow): Update function call to
5018         gtk_tree_view_get_arrow_xrange.
5019         (gtk_tree_view_draw_arrow): Likewise.
5020         
5021         (gtk_tree_view_real_expand_collapse_cursor_row):
5022         Call real_{expand|collapse}_row, so that we'll have an
5023         animation.
5024
5025 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
5026
5027         * tests/Makefile.am: fixed a small typo
5028
5029 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
5030
5031         * demos/gtk-demo/list_store.c (create_model): Anders
5032         Carlsson suggested to use G_N_ELEMENTS here
5033
5034 2001-10-26  Sven Neumann  <sven@gimp.org>
5035
5036         * gtk/gtkbutton.[ch]
5037         * gtk/gtkdnd.c: fixed inline comments
5038         
5039         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
5040
5041 2001-10-26  Hans Breuer  <hans@breuer.org>
5042
5043         * gdk-pixbuf/gdk_pixbuf.def : 
5044         * gdk/gdk.def : 
5045         * gtk/gtk.def : updated externals
5046
5047         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
5048         gdk_window_lookup implementation. It already was in
5049         gdk/win32/gdkwindow-win32.c
5050
5051         * gdk/win32/gdkproperty-win32.c : made it compile again
5052         after GdkAtom API change
5053
5054         * gtk/gtk/makefile.msc.in : updated
5055
5056 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
5057
5058         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
5059         require GLib 1.3.10.
5060
5061         * NEWS: updates.
5062
5063 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
5064
5065         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
5066         invalid nodes.
5067          (_gtk_rbnode_rotate_right): Ditto.
5068          (_gtk_rbtree_node_mark_invalid): New function.
5069          (_gtk_rbtree_node_mark_valid): New function.
5070
5071         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
5072         GObject, not a GtkObject.
5073         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
5074         correct.
5075         (gtk_tree_model_sort_row_deleted): ditto.
5076         (gtk_tree_model_sort_{un,}ref_node): Fix.
5077
5078         * gtk/gtktreeview.c: Protean incremental reflow support (commented
5079         out)
5080
5081         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
5082         to const char *key.
5083
5084         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
5085         Important 1 line fix to fix a lot of refcounting woes.
5086
5087 2001-10-25  Matt Wilson  <msw@redhat.com>
5088
5089         * gtk/gtktextview.c (gtk_text_view_destroy): call
5090         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
5091         now invalidates) so that we remove our idle functions.
5092         (gtk_text_view_destroy_layout): remove the first_validate_idle as
5093         well.
5094
5095         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
5096         the 'indent' property is G_MININT to G_MAXINT.  Don't use
5097         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
5098         instead.
5099
5100 2001-10-24  Anders Carlsson  <andersca@gnu.org>
5101
5102         * gtk/gtktreeview.c: 
5103         (gtk_tree_view_real_expand_row): add an animate argument
5104         (gtk_tree_view_real_collapse_row): likewise
5105         
5106         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
5107         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
5108         (gtk_tree_view_collapse_row): update functions that call
5109         real_{expand|collapse}_row to set the animate argument 
5110         accordingly.
5111         
5112 2001-10-24  Alex Larsson  <alexl@redhat.com>
5113
5114         * gdk/linux-fb/gdkfont-fb.c:
5115         Update to new Pango APIs
5116
5117         * gdk/linux-fb/gdkproperty-fb.c:
5118         Update to new GdkAtom APIs
5119
5120         * gdk/linux-fb/gdkwindow-fb.c:
5121         Remove warnings
5122
5123 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
5124
5125         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
5126
5127 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
5128
5129         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
5130         s_path as a child path
5131
5132 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
5133
5134         * gtk/gtktreemodelsort.c: more changes in an attempt to get
5135         it right. It's not yet ready for general consumption.
5136
5137         * tests/treestoretest.c: add a button and entry for the new
5138         iter_change function
5139         (iter_change): new function, to test
5140         the row_changed signal implementation of the GtkTreeModelSort
5141
5142         * tests/testtreesort.c: cleanups, changes to test more features
5143         of the GtkTreeModelSort at once
5144
5145 2001-10-24  Havoc Pennington  <hp@redhat.com>
5146
5147         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
5148         remove hack to strip off the bogus newline, since we killed the
5149         bogus newline; fixes #61779
5150
5151 2001-10-24  Havoc Pennington  <hp@redhat.com>
5152
5153         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
5154         create layout if we didn't have one
5155         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
5156         as appropriate, avoids blanking the screen 
5157         (gtk_text_view_invalidate): new function to do invalidation,
5158         containing old guts of invalidated_handler
5159
5160 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
5161
5162         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
5163         dreadful tooltips.
5164
5165 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
5166
5167         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
5168         set window->parent (except or the root window itself); if 
5169         the window's parent is not a GdkWindow, or is a window of 
5170         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
5171
5172         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
5173         windows of type GDK_WINDOW_FOREIGN.
5174
5175 2001-10-24  Havoc Pennington  <hp@pobox.com>
5176
5177         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
5178         the front of a segment, use the "slow" technique for moving
5179         backward, so we don't mess up the any_segment field in the iter. 
5180         Fixes #57707
5181
5182         * tests/testtextbuffer.c: add code to detect #57707, to avoid
5183         regression
5184
5185 2001-10-23  Havoc Pennington  <hp@redhat.com>
5186
5187         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
5188         if selection contains some editable text, #60975
5189         (gtk_text_view_scroll_to_iter): remove warning about scrolling
5190         prior to map; it should actually be OK to do so in many cases, 
5191         it would be nice to warn about scrolling when many lines have
5192         height 0, but I don't know what to do about that. Perhaps 
5193         move part of flush_scroll into this function? comment added 
5194         to consider this.
5195
5196 2001-10-23  Havoc Pennington  <hp@redhat.com>
5197
5198         * gtk/gtktextview.c (changed_handler): Correctly keep the same
5199         text on the top of the screen, considering that the changed region
5200         may have overlapped the first paragraph. Should fix msw's "text
5201         widget scrolled to wrong place on map" bug, and probably some
5202         other scrolling cases as well.
5203         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
5204         instead of some random value
5205
5206         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
5207         grab_focus, so #59708 is really fixed
5208
5209 2001-10-24  Anders Carlsson  <andersca@gnu.org>
5210
5211         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
5212         (popup_targets_received): Call append_action_signal with stock items
5213         
5214         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
5215         (gtk_label_do_popup): Call append_action_signal with stock items
5216         
5217         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
5218         (popup_targets_received): Call append_action_signal with stock items
5219
5220 2001-10-23  Havoc Pennington  <hp@redhat.com>
5221
5222         * gtk/gtktextview.c (changed_handler): queue a resize here; will
5223         temporarily slow down the widget a lot, until we figure out how to
5224         optimize to avoid full redraw everytime we queue a resize.
5225
5226 2001-10-23  Havoc Pennington  <hp@redhat.com>
5227
5228         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
5229         0 and char_len == 0, bug #61729
5230
5231 2001-10-23  Havoc Pennington  <hp@redhat.com>
5232
5233         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
5234         return value, #61714 (Vitaly Tishkov)
5235         (gtk_text_iter_backward_sentence_starts): ditto
5236         (gtk_text_iter_backward_word_starts): ditto
5237         (gtk_text_iter_forward_word_ends): ditto
5238         (gtk_text_iter_forward_sentence_ends): ditto
5239         (gtk_text_iter_backward_cursor_positions): ditto
5240
5241 2001-10-23  Havoc Pennington  <hp@redhat.com>
5242
5243         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
5244         fix from Dov Grobgeld, #61858
5245
5246 2001-10-23  Havoc Pennington  <hp@redhat.com>
5247
5248         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
5249         Update IM spot location at appropriate times, #50626
5250         (Hidetoshi Tajima)
5251
5252 2001-10-23  Havoc Pennington  <hp@redhat.com>
5253
5254         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
5255         on grab focus, unless it's caused by button click, #59708
5256
5257 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
5258
5259         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
5260
5261         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
5262         G_CONST_RETURN. (Murray Cumming)        
5263
5264         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
5265         Make G_CONST_RETURN.
5266
5267         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
5268         results of g_get_home_dir().
5269
5270         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
5271         copy. Storing the return from gtk_entry_get_text() is evil.
5272
5273         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
5274         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
5275         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
5276         gtk/gtksignal.c: Add const.
5277
5278         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
5279
5280         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
5281         if we are setting them on private widgets.
5282
5283         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
5284         Duplicate entry->text before setting it as object data.
5285
5286 2001-10-22  Havoc Pennington  <hp@redhat.com>
5287
5288         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
5289         up a char from the end iterator, fixes #61859 ("can't put cursor
5290         at the end of the buffer")
5291
5292         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
5293         to work with delimiters other than newline.
5294
5295         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
5296         get_bytes_in_line
5297
5298         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
5299         last line, since the newline is no longer counted.
5300         (gtk_text_iter_get_bytes_in_line): ditto
5301
5302 2001-10-22  Havoc Pennington  <hp@redhat.com>
5303
5304         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
5305         #58290 would trigger if it reappeared, I think
5306
5307 2001-10-22  Havoc Pennington  <hp@redhat.com>
5308
5309         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
5310         add temporary code to dump btree contents on assertion failure
5311         described in #62656
5312         
5313         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
5314         assertions that we're getting the right end iter segment
5315
5316         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
5317         verify that we aren't on the end iterator after moving 
5318         forward one segment - fixes return value in an obscure case. 
5319         Also, some trivial code cleanup/rearranging.
5320         
5321 2001-10-22  Havoc Pennington  <hp@redhat.com>
5322
5323         * gtk/gtktextlayout.h: add a #error unless you define
5324         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
5325
5326         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
5327         
5328 2001-10-22  Havoc Pennington  <hp@redhat.com>
5329
5330         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
5331         #62365
5332
5333 2001-10-22  Havoc Pennington  <hp@redhat.com>
5334
5335         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
5336         #62436
5337
5338 2001-10-22  Havoc Pennington  <hp@redhat.com>
5339
5340         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
5341         #62366
5342
5343 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
5344
5345         * gtk/gtklabel.c: Add cursor-position, selection-bound 
5346         properties. (#62148, reported by Padraig O'Briain)
5347
5348         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
5349         to cursor_position. (1.3.x addition, text_position is an awful
5350         name.) Make cursor_position read-only to avoid sticky questions
5351         of interaction with selection_bound. (#62636, reported by
5352         Padraig O'Briain)
5353
5354 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
5355
5356         Fixing popup menus to have "Paste" sensitized correctly. Original
5357         patches from Damian Ivereigh, much mangled.
5358
5359         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
5360         gtk_selection_data_targets_include_text(). (#60854)
5361
5362         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
5363         the clipboard has text" function gtk_clipboard_wait_is_text_available.
5364         (#60854)
5365
5366         * gtk/gtkentry.c: Only enable the paste item if the clipboard
5367         contains text. (#60973)
5368
5369         * gtk/gtktextview.c: Only enable the paste item if the clipboard
5370         contains text. (#60975)
5371
5372 2001-10-22  Havoc Pennington  <hp@redhat.com>
5373
5374         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
5375         "height_lines" and "width_columns" properties, it doesn't make
5376         sense to set the size request on a text view really. #62103
5377
5378 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
5379
5380         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
5381         g_node_depth is broken, and that it's not worth being consistent
5382         with it.
5383
5384 2001-10-22  Havoc Pennington  <hp@redhat.com>
5385
5386         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
5387         docs, #61777
5388         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
5389         change the two boolean args to a flags field, so we can extend 
5390         to add case insensitive, regexp searches later. #61852
5391
5392 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
5393
5394         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
5395         reflect reality, #62810
5396
5397 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
5398
5399         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
5400
5401         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
5402         system.  Instead of having a window the size of the tree, we have
5403         a window the size of widget->allocation, and simply draw with the
5404         offset.
5405         (coords_are_over_arrow): ditto.  Move to window coordinates.
5406         (do_prelight): ditto
5407         (do_unprelight): ditto
5408
5409         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
5410         Minor fix from Kristian Rietveld to fix unsorted case.
5411
5412 2001-10-22  jacob berkman  <jacob@ximian.com>
5413
5414         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
5415         a PIXMAP cell (fixes crash when using PIXTEXT cells)
5416
5417 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
5418
5419         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
5420         (#58768, Vitaly Tishkov)
5421         
5422         * gtk/gtkobject.h: Deprecate with abandon. 
5423         (#61942, Vitaly Tishkov, Matthias Clasen)
5424
5425         * gtk/gtksignal.h: Deprecate everything.
5426
5427         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
5428         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
5429         (#61942, Matthias Clasen)
5430
5431         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
5432         Havoc Pennington)
5433
5434         * gtk/gtkitemfactory.h: Deprecate compat functions
5435         for GtkMenuFactory code. (#62071)
5436
5437         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
5438         gdk_draw_text,gdk_draw_text_wc. (#62071)
5439
5440 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
5441
5442         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
5443         g_thread_init(), we don't want to link to -lgthread if we don't
5444         have to.
5445
5446 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
5447
5448         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
5449         Add a function, gdk_threads_init() that must be explicitely 
5450         called to enable the GDK thread mutex.
5451
5452 2001-10-22  Jakub Steiner <jimmac@ximian.com>
5453
5454         * gtk/stock-icons/stock_stop.png: no body parts
5455         
5456 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
5457
5458         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
5459         problem with g_return_if_fail return value.
5460
5461         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
5462         virtual atom code from the gdk-multihead branch, removing the per-display
5463         part. Virtualizing atoms needs to be done now to prevent compat
5464         breakage in direct Xlib accessing code in the future. (#62208)
5465  
5466         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
5467         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
5468  
5469         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
5470         an opaque pointer type so the compiler catches attempts
5471         to mingle it with X atoms.
5472
5473         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
5474           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
5475           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
5476           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
5477           tests/testdnd.c,tests/testselection.c: 
5478         Fix up for above atom changes.
5479
5480         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
5481         now have the ability to add custom predefines.
5482
5483         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
5484         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
5485         to gtk_clipboard_get().
5486
5487         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
5488         for GdkAtom => pointer change.
5489
5490         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
5491         atoms, fix for GdkAtom => pointer change.
5492
5493 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
5494
5495         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
5496         new function spin_button_get_arrow_size() instead.
5497
5498         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
5499         arrow was hardcoded, it's now variable.
5500
5501         Fixes bug #50200
5502
5503 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
5504
5505         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
5506         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
5507         for those
5508
5509 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
5510
5511         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
5512         in favor of g_signal_*, gtk_object_* in favor of 
5513         g_object_*.
5514
5515 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
5516
5517         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
5518         from GObject now, we have to use the g_object_* functions, not
5519         gtk_object_*.
5520
5521 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
5522
5523         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
5524         nailed down now (this code is not yet ready for general consumption)
5525
5526 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
5527
5528         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
5529         for use_align
5530
5531 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
5532
5533         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
5534
5535 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
5536
5537         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
5538         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
5539         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
5540         GObject, not GtkObject. (#62621)
5541
5542 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
5543
5544         * tests/testsocket.c: Remove now useless include of unistd.h,
5545         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
5546         
5547 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
5548
5549         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
5550         Pango font API. #61933. (Untested, even for compilation.)
5551
5552 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
5553
5554         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
5555         export gtk_disable_setlocale(). (Caught by Sven Neumann)
5556
5557 2001-10-18  Havoc Pennington  <hp@redhat.com>
5558
5559         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
5560
5561 2001-10-18  Havoc Pennington  <hp@redhat.com>
5562
5563         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
5564         to GTK_RUN_LAST, #50239
5565
5566 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
5567
5568         * gtk/gtkimmodule.c (match_locale):
5569         Support "*" for all locales with least priority
5570         when to select default im module, #58201
5571
5572 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
5573
5574         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
5575         Fix docs. (#61976)
5576  
5577         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
5578
5579         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
5580
5581         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
5582         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
5583         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
5584         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
5585         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
5586         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
5587         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
5588
5589         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
5590
5591         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
5592         Don't restrict the width of the spinbutton entry field 
5593         to 10 digits. (#58681)
5594
5595 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
5596
5597         * tests/testtreeflow.c: new test program for the tree.
5598
5599 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
5600
5601         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
5602         reported by (Oleg Maiboroda), #62600
5603
5604 2001-10-18  Michael Meeks  <michael@ximian.com>
5605
5606         * gtk/gtkentry.c (gtk_entry_set_property),
5607         (gtk_entry_get_property): impl 'text'
5608         (gtk_entry_class_init): add the 'text' prop.
5609         (gtk_entry_insert_text): notify 'text' changed.
5610         (gtk_entry_delete_text): ditto.
5611
5612 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
5613
5614         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
5615         Documentation updates.
5616
5617 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
5618
5619         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
5620         in truncating length of text to MAX_SIZE. (Found by 
5621         Padraig O'Briain, #62055)
5622
5623 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
5624
5625         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
5626         MNEMONIC_ACTIVATE; signal was changed a long time
5627         ago.
5628
5629         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
5630         Fix wrong return statement. (Reported by HideToshi
5631         Tajima and others.)
5632
5633         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
5634         left over select_all vfunc.
5635
5636 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
5637
5638         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
5639         a utility function to translate coordinates relative to
5640         one widget's allocation to coordinates relative to another
5641         widget's allocation.
5642
5643         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
5644         that:
5645          - only accepts external focus if there is no active
5646            member of the group or the button is active.
5647          - makes arrow keys move the active button as well
5648            as the focus
5649          - make tab tab out directly.
5650         This makes a radio button group act as a single focus location.
5651         (#53577).
5652         
5653         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
5654         it was only a small optimization that didn't matter and made
5655         things more complicated.
5656
5657         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
5658         sorter for FOCUS_TAB as we did for the other focus directions,
5659         sort by center of widgets, not upper-left corner. (Shouldn't
5660         matter in general.)
5661
5662         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
5663         from the different types of focusing: encapsulate sorting the
5664         widgets for the focus direction into one routine
5665         (gtk_container_focus_sort()) and then share the work of moving the
5666         focus between the different focus directions.
5667
5668         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
5669         work correctly with focus chains containing non-immediate
5670         children. Sorting was being done using allocation coordinates for
5671         each widget in the focus chain, and if there were intermediate
5672         window-widgets, these allocations would not be in the same
5673         coordinate system.
5674
5675 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
5676
5677         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
5678         mnemonic_activate function to option menu.
5679
5680 2001-10-15  Murray Cumming <murrayc@usa.net>
5681
5682         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
5683           Corrected the type names used in some calls to g_signal_new().
5684         
5685 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
5686
5687         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
5688         specs, use g_pattern_spec_equal() instead of direct field accesses.
5689         upon compressing two equal paths of the same type, the resulting
5690         priority has to be the maximum.
5691         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
5692         GtkPathPriorityType enum and make it a macro.
5693
5694 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
5695
5696         * gtk/gtkwidget.c: Fix some doc comments.
5697
5698 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
5699
5700         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
5701         on empty models.
5702
5703 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
5704
5705         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
5706         Remove stale gdk backend includes.
5707  
5708 2001-10-10  Michael Meeks  <michael@ximian.com>
5709
5710         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
5711         and value_in_list properties.
5712         (gtk_combo_set_value_in_list): notify change.
5713         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
5714
5715 2001-10-11  James Henstridge  <james@daa.com.au>
5716
5717         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
5718         that gtk+ can be built with automake 1.5 while not breaking
5719         things for automake 1.4.
5720
5721 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
5722
5723         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
5724         (#60606)
5725
5726         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
5727         to disable calling setlocale (LC_ALL, "").
5728
5729         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
5730         docs that this function is not typically useful.
5731
5732         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
5733         Automatically initialize GDK for the current locale
5734         on gdk_init(). Don't reset locale to C when
5735         XSupportsLocale() fails.
5736
5737         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
5738         useless checks for UTF-8 locale breakage that mattered
5739         only for X.
5740
5741         * examples/calendar/calendar.c
5742         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
5743         gtk_set_locale().
5744
5745         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
5746         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
5747
5748 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
5749
5750         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
5751
5752         Fixes bug #61904
5753
5754 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
5755
5756         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
5757         new function, #61923
5758         (gtk_tree_selection_path_is_selected): Ditto
5759
5760 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
5761
5762         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
5763         not a GtkObject.  Thanks andersca.
5764
5765         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
5766
5767 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
5768
5769         * gtk/gtktreeviewcolumn.c
5770         (gtk_tree_view_model_sort_column_changed): fix broken code.
5771
5772 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
5773
5774         * gtk/gtkselection.c: s/succesfully/successfully/g
5775
5776 2001-10-08  Havoc Pennington  <hp@pobox.com>
5777
5778         * demos/gtk-demo/stock_browser.c: remove unused enum
5779
5780         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
5781         pass the current selection state of the node in to the user
5782         selection func
5783
5784 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
5785
5786         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
5787         non-existent function gdk_x11_cursor_get_xid 
5788         by gdk_x11_cursor_get_xcursor.
5789
5790 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
5791
5792         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
5793         warning.
5794
5795         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
5796         unref nodes, #okay61676
5797
5798         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
5799         to the property; no need to clear the other columns.  Also, we go
5800         to 'unsorted' if the model supports it.
5801
5802 2001-10-05  Sven Neumann  <sven@gimp.org>
5803
5804         * demos/testpixbuf-save.c
5805         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
5806         feature.
5807
5808 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
5809
5810         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
5811         destroy the search dialog
5812
5813         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
5814         added check to prevent creation of a search dialog if there's
5815         already one around
5816
5817         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
5818         it instead of "search-dialog" (when getting/setting the search dialog
5819         widget).
5820
5821 2001-10-05  Jakub Steiner <jimmac@ximian.com>
5822
5823         * gtk/stock-icons/stock_broken_image.png: broken images icon
5824
5825 2001-10-04  Havoc Pennington  <hp@pobox.com>
5826
5827         Fix #56586
5828         
5829         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
5830         accelerator setting here...
5831
5832         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
5833         because we try to use it when a menu bar hasn't necessarily been 
5834         initialized.
5835
5836 2001-10-03  Havoc Pennington  <hp@redhat.com>
5837
5838         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
5839         it previously verified incorrect behavior
5840
5841         Fixes for #61565
5842         
5843         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
5844         off the end
5845         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
5846         the end
5847         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
5848         the end
5849         (gtk_text_iter_forward_lines): if on the last line, move to end of
5850         it
5851
5852         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
5853         don't return a line off the end
5854
5855 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
5856
5857         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
5858         functions to do_insert_text and do_delete_text, add signals
5859         insert_text, delete_text and changed
5860
5861         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
5862         and changed. Updates to match new situation.
5863
5864         * gtk/gtkspinbutton.c: updates to match new situation
5865
5866         * gtk/gtkoldeditable.h: remove signals changed, insert_text
5867         and delete_text
5868
5869         * gtk/gtkoldeditable.c: updates to match new situation
5870
5871         * gtk/gtktext.c: updates to match new situation
5872
5873         Fixes bug #59803
5874
5875 2001-10-03  Havoc Pennington  <hp@redhat.com>
5876
5877         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
5878         position
5879
5880         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
5881         changes
5882
5883         * tests/testtextbuffer.c (logical_motion_tests): updates
5884
5885 2001-10-03  jacob berkman  <jacob@ximian.com>
5886
5887         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
5888         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
5889         * gtk/gtksettings.c (apply_queued_setting): 
5890         * gtk/gtkmain.c (gtk_init_check): 
5891         * gtk/gtkcontainer.c (gtk_container_child_get_property):
5892         s/retrive/retrieve/
5893
5894 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
5895
5896         * gtk/gtktreemodelsort.[ch]: preparation for surgery
5897         * tests/testtreesort.c: ditto
5898
5899 2001-10-02  Havoc Pennington  <hp@redhat.com>
5900
5901         Throughout: assorted docs
5902         
5903         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
5904         gdk_window_set_geometry_hints() should be used instead.
5905
5906         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
5907         document them
5908
5909         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
5910         seem to exist in any .c files
5911
5912         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
5913         g_return_if_fail (pixel < colormap->size).
5914
5915 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
5916
5917         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
5918         NULL for @target_list to mean, use
5919         gtk_drag_dest_get_target_list (widget).
5920
5921         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
5922         drop could hang when calling gtk_drag_finish with 
5923         success == FALSE and del == TRUE.
5924
5925         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
5926         drops without a matching target found would propagate
5927         to the parent widget rather than being rejected.
5928
5929         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
5930         Use text_view->dnd_mark instead of mark name to be
5931         consistent with the rest of the code.
5932
5933         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
5934         pendantically correct for a drop-only-in-some-places
5935         widget. (Check whether you can insert in drag_drop,
5936         not just in drag_motion ... matters in theory, and
5937         for Motif drag and drop in practice.)
5938
5939         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
5940         Damian Ivereigh to not allow drops on non-editable
5941         entries. (#61124)
5942
5943         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
5944         text to be moved from a non-editable entry.
5945         
5946 2001-10-03  James Henstridge  <james@daa.com.au>
5947
5948         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
5949         s/width/fixed_width/ in order to get things to compile.
5950
5951 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
5952
5953         * gtk/gtkcelleditable.c: docs
5954
5955         * gtk/gtktreemodel.h: more docs.
5956
5957 2001-10-02  Havoc Pennington  <hp@redhat.com>
5958
5959         * gdk/x11/gdkwindow-x11.c: docs
5960
5961         * tests/testtextbuffer.c (logical_motion_tests): add sentence
5962         boundary tests
5963
5964 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
5965
5966         * demos/gtk-demo/Makefile.am: add editable_cells.c,
5967         list_store.c and tree_store.c
5968
5969         * demos/gtk-demo/appwindow.c: remove tearoff item from
5970         File menu, put menubar and toolbar in handle boxes.
5971
5972         * demos/gtk-demo/genincude.pl: various changes to support trees
5973
5974         * demos/gtk-demo/main.c: various changes to support trees
5975
5976         * demos/gtk-demo/stock_browser.c: changed name of demo
5977         to Stock Item and Icon Browser, so geninclude.pl doesn't see
5978         it as child
5979
5980         * demos/gtk-demo/editable_cells.c: new file/demo
5981         * demos/gtk-demo/list_store.c: new file/demo
5982         * demos/gtk-demo/tree_store.c: new file/demo
5983
5984 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
5985
5986         * gtk/gtkrc.c gtk/gtksettings.c: 
5987         g_string_printfa => g_string_append_printf.
5988
5989 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
5990
5991         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
5992         and destroy handler.
5993
5994         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
5995
5996         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
5997         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
5998         Singh <yosh@gimp.org>.
5999
6000 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
6001
6002         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
6003         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
6004
6005         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
6006
6007 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
6008
6009         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
6010         scroll_to_cell delayed code to happen in size_allocate.
6011
6012         * gtk/gtkstyle.c (gtk_default_draw_expander): change
6013         prelight/normal arrow drawing.
6014
6015         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
6016
6017         * gtk/gtktreestore.c: refactor.
6018
6019 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
6020
6021         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
6022         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
6023         centers the child in relation to the to indicator height.
6024
6025 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
6026
6027         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
6028         correct
6029
6030 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
6031
6032         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
6033         property code using g_param_spec_int and changed from
6034         g_value_get_enum to g_value_get_int instead. Probably a better way
6035         to fix the problem :-)
6036
6037 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
6038
6039     * gtk/gtkcellrenderertext.c changed "weight" property type from 
6040       g_param_spec_int to g_param_spec_enum.
6041
6042 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
6043
6044         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
6045         fix: s/Wether/Whether/ in reorderable property description
6046
6047 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
6048
6049         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
6050         start editing when you select with a keyboard.
6051
6052         (gtk_tree_view_button_press_event): much more graceful now.
6053
6054         * gtk/gtkstyle.c: Draw togglebutton better.
6055
6056 2001-09-26  Havoc Pennington  <hp@redhat.com>
6057
6058         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
6059         of passing non-stock label in to gtk_dialog_new_with_buttons
6060
6061         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
6062         debugging updates
6063
6064         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
6065         are private
6066
6067         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
6068         exist, fall back to mnemonic label, not plain label, bug #61184
6069         
6070 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
6071
6072         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
6073         stupid and emitting the signal every time.
6074
6075         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
6076
6077 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
6078
6079        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
6080
6081        * contrib/gdk-pixbuf-xlib/Makefile.am: install
6082        gdk-pixbuf-xlib-2.0.pc.
6083
6084 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
6085
6086         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
6087         problem where menmonic wasn't removed properly when
6088         setting a label when there already is a label.
6089         Also, handle setting the tab label back to the same
6090         value. (#61160, #61161)
6091
6092         * gtk/gtkentry.c (paste_received): Patch from 
6093         Damian Ivereigh to replace selection if there is 
6094         one. (#61121)
6095
6096 2001-09-25  Darin Adler  <darin@bentspoon.com>
6097
6098         * tests/.cvsignore: Ignore new test program.
6099
6100 2001-09-25  Havoc Pennington  <hp@redhat.com>
6101
6102         * gtk/gtktextview.c: fix for #50317
6103         
6104 2001-09-25  Havoc Pennington  <hp@redhat.com>
6105
6106         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
6107         gtk_text_iter_can_insert
6108         
6109         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
6110
6111         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
6112          (gtk_text_iter_can_insert): new function to fix #60282, should
6113         also fix msw's "can paste into empty buffer" bug.
6114
6115         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
6116         "event object,"  #59091
6117
6118         * gtk/gtktextbtree.c: indentation fixes
6119
6120         * gtk/gtktextiter.c (find_by_log_attrs): fixes
6121
6122 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
6123
6124         * configure.in: Version 1.3.9, interface age 0, binary age 0.
6125
6126         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
6127
6128         * NEWS: Updates.
6129
6130 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
6131
6132         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
6133         function for drawing cursors between gtkentry/gtklabel/gtktextview.
6134         Should this be public? It has a bit of an odd interface, but
6135         custom editing widgets probably should be using it.
6136         Function will draw with wider width for taller cursors, and
6137         draws a little indicator arrow to indicate directoin for split 
6138         cursors.
6139
6140         * gtk/gtktextview.c: Add a "cursor_color" property.
6141
6142         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
6143         gtk_text_layout_draw().
6144
6145         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
6146         _gtk_draw_insertion_cursor().
6147
6148 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
6149
6150         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
6151         the behavior where you could turn family_set (etc) back on
6152         and get back the values you had before.
6153
6154         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
6155         g_string_ascii_up() rather than looping through the
6156         string ourself.
6157
6158 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
6159
6160         * gtk/gtktreeviewcolumn.c
6161         (gtk_tree_view_column_set_cell_renderer): Removed
6162         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
6163
6164         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
6165         Patch from Detlef Reichl
6166
6167 2001-09-25  Havoc Pennington  <hp@redhat.com>
6168
6169         * tests/testtextbuffer.c (line_separator_tests): Add tests for
6170         line separators, addresses bug #57428
6171
6172 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
6173
6174         * gtk/gtkentry.c: Make a GtkCellEditable
6175         (get_widget_window_size): Change to let it honor size_allocate
6176         when a CellEditable.
6177
6178         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
6179         editable changes.
6180         (gtk_tree_view_set_cursor): Now you can set the cursor
6181         horizontally, as well as start editing.
6182
6183         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
6184         code to look more like the other check buttons.
6185
6186         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
6187         Change the way we calculate cell size.
6188
6189         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
6190
6191         * demos/gtk-demo/sizegroup.c: Add mnemonics.
6192
6193         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
6194         Fix logic.
6195
6196         * gtk/gtkcellrenderertext.c: Change to be editable.
6197
6198         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
6199
6200         * test/testtreesort.c: Fix misspelling
6201
6202         * test/testreecolumns.c: Add mnemonics.
6203
6204         * test/testreeedit.c: New test program.
6205
6206 2001-09-25  Havoc Pennington  <hp@pobox.com>
6207
6208         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
6209         etc. docs about how these are not going to do what you want for 
6210         the X/win32 ports. Futile attempt to avoid a FAQ...
6211
6212 2001-09-24  James Henstridge  <james@daa.com.au>
6213
6214         * gtk/gtkmarshal.list (VOID): add marshal function types.
6215
6216         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
6217         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
6218         GTK_TYPE_POINTER.
6219         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
6220         with no-op copy/free functions.
6221
6222         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
6223         GtkCTreeNode get_type function.
6224
6225 2001-09-24  Havoc Pennington  <hp@redhat.com>
6226
6227         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
6228         gtktextlayout.c:
6229         Get rid of the newline-that-could-not-be-deleted; buffers may 
6230         now be zero-length. Much easier to fix than expected, once 
6231         I figured out the right way to do it. However, there are 
6232         various subtle bugs introduced by this that will have to get 
6233         sorted out. Please use bugzilla.
6234
6235 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
6236
6237         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
6238         response back from the window manager if our size hasn't changed 
6239         since we won't get a response back from the window manager;
6240         there was code in there to do this, but it was in the wrong
6241         place so if the hints change and the size didn't we'd expect
6242         a response.
6243
6244         Also, optimize the position-only-changed case by running
6245         the resize queue immediately, and clean up some comments
6246         for the changes.
6247
6248 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
6249
6250         * gtk/gtknotebook.h: Add a compat macro that got lost.
6251
6252         * gtk/gtktreestore.c: Doc fixes.
6253
6254         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
6255         leak for windows that receive events after being destroyed.
6256         (#60863, Joshua N. Pritikin)
6257
6258         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
6259         rather than gtk_container_queue_resize().
6260
6261         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
6262         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
6263         gtk_container_child_composite_name. (#60217.)
6264
6265 2001-09-22  Hans Breuer  <hans@breuer.org>
6266
6267         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
6268
6269 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
6270
6271         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
6272         weight value should be an int
6273
6274 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
6275
6276         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
6277         to gtk_menu_scroll_item_visible(). Only call
6278         gtk_menu_scroll_item_visible() if the menu widget has been
6279         realized. Fixes bug #55310.
6280
6281 2001-09-21  Havoc Pennington  <hp@redhat.com>
6282
6283         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
6284         key press to IM context if cursor isn't in an editable location;
6285         bug #58425, patch from Hidetoshi Tajima
6286
6287 2001-09-21  Havoc Pennington  <hp@redhat.com>
6288
6289         Bug #60862
6290         
6291         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
6292         (_gtk_text_btree_unref): fix up mark memory management
6293
6294         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
6295
6296 2001-09-20  Havoc Pennington  <hp@redhat.com>
6297
6298         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
6299         try to handle alignment here, because it's done by PangoLayout
6300         after we set the layout width. Fix from Dov.
6301
6302 2001-09-21  Hans Breuer  <hans@breuer.org>
6303
6304         * gdk/gdk.def :
6305         * gtk/gtk.def : updated externals
6306
6307         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
6308         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
6309         Also handle that Win32 pathes cann't be hard-coded      
6310
6311         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
6312         module, themes etc directory calculations
6313
6314         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
6315         >16 bit right. The size limit within Win9x appears _not_ to be 32767
6316         but slightly smaller ...
6317
6318         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
6319         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
6320
6321         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
6322
6323         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
6324         handling. I'm not sure if it is better now, but at least not worse
6325
6326         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
6327
6328         * gdk/win32/gdkwin32.h : reflect recent API restrictions
6329
6330 2001-09-21  Matt Wilson  <msw@redhat.com>
6331
6332         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
6333         radio_menu_item->group to NULL after removing it from the list, as
6334         it is no longer in the group. (#60869)
6335
6336         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
6337
6338 2001-09-20  Havoc Pennington  <hp@pobox.com>
6339
6340         * configure.in (PANGO_REQUIRED_VERSION)
6341         (ATK_REQUIRED_VERSION): add variables and checks for specific 
6342         versions of dependencies. Previously we didn't verify the 
6343         Pango or ATk versions.
6344
6345 2001-09-09  Havoc Pennington  <hp@pobox.com>
6346
6347         * gtk/gtktextiter.c: fool with indentation
6348         (gtk_text_iter_in_range): add g_return_if_fail
6349
6350 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
6351
6352         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
6353         ref count on new tag to be 1.  Update doc.  (#60836)
6354
6355 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
6356
6357         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
6358         call to gdk_image_new_bitmap(). (#59094, reported by
6359         by Sven Neumann)
6360
6361 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
6362
6363         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
6364         day, as well as the current month and year.
6365         (#59047, reported by Vitaly Tishkov)
6366
6367 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
6368
6369         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
6370         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
6371         
6372 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
6373
6374         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
6375
6376         (build_option_menu): add func argument, connect ::changed
6377         signal to option menu instead of connecting the ::activate
6378         signal to the menu items,
6379
6380         (toplevel): get rid of RADIOMENUTOGGLED macro,
6381
6382         (list_toggle_sel_mode), (clist_toggle_sel_mode),
6383         (ctree_toggle_line_style), (ctree_toggle_expander_style),
6384         (ctree_toggle_justify), (ctree_toggle_sel_mode),
6385         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
6386         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
6387
6388         (notebook_type_changed): merged standard_notebook(),
6389         notabs_notebook(), scrollable_notebook() and borderless_notebook()
6390         into notebook_type_changed()
6391
6392         (create_list), (create_ctree), (create_notebook),
6393         (create_progress_bar): changed OptionMenuItem arrays into
6394         gchar * arrays. Removed "Extended" item where used.
6395
6396         Fixes bug #59885
6397
6398 2001-09-20  Sven Neumann  <sven@gimp.org>
6399
6400         * configure.in
6401         * gdk/Makefile.am
6402         * gtk/Makefile.am
6403         * gtk/gtkselection.c
6404         * gtk/gtktreeview.c
6405         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
6406
6407 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
6408
6409         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
6410         a missing pango_layout_iter_free ().
6411
6412 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
6413
6414         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
6415         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
6416
6417         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
6418         the function definition so we don't accidentally rely on
6419         the compat #define from gtk_radio_menu_item_group.
6420         (#60782, Jeff Franks)
6421
6422 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
6423
6424         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
6425         incorrect values for top, right and bottom due to cut-and-paste
6426         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
6427
6428 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
6429
6430         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
6431         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
6432         window, not just on the client leader. (#58463)
6433
6434 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
6435
6436         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
6437
6438         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
6439         non-public _gtk_menu_item_set_placement.
6440
6441         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
6442
6443 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
6444
6445         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
6446           gdk/linux-fb/gdkcolor-fb.c:
6447         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
6448         (#59723)
6449
6450 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
6451
6452         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
6453         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
6454         #59723)
6455
6456 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
6457
6458         Patch from Frank Belew #59037 for Solaris compilation.
6459
6460         * gtk/maketypes.awk: Change syntax slightly for a call
6461         to sub(), apparently making awk on Solaris happier.
6462
6463         * gtk/gtktreeview.c: Remove C++ comments.
6464
6465 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
6466
6467         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
6468         to handle '99% of the time. (#60473, reported by Christian Rose)
6469
6470         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
6471         which no longer exists. (#60379, reported by Vitaly Tishkov)
6472
6473 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
6474
6475         * Released 1.3.8.
6476
6477         * gdk/Makefile.am: kill EXTRA_DIST clearing.
6478         
6479 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
6480
6481         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
6482         as its broken in automake 1.4, add explicit object rule to
6483         generate this.
6484         
6485         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
6486         get rid of uneccessary stamps, group stuff more logically, and build
6487         sources due to object rules. fix srcdir!=builddir.
6488
6489 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
6490
6491         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
6492         incorrect parameter to compute_double_length
6493         (#58680, patch from Matthias Clasen)
6494
6495         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
6496
6497         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
6498
6499         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
6500         for GDK_RELEASE_MASK to avoid warnings with Forte.
6501
6502         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
6503         break; statements.
6504
6505 2001-09-18  Alex Larsson  <alexl@redhat.com>
6506
6507         * gtk/gtkcheckbutton.c:
6508         * gtk/gtkradiobutton.c:
6509         Don't draw with GTK_STATE_ACTIVE.
6510
6511         * gtk/gtkclist.c:
6512         * gtk/gtkctree.c:
6513         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
6514
6515         * gtk/gtktextdisplay.c:
6516         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6517         unfocused with base_gc [GTK_STATE_ACTIVE].
6518         
6519         * gtk/gtkentry.c:
6520         Add select all menu-item.
6521         Default cursor color is red.
6522         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6523         unfocused with base_gc [GTK_STATE_ACTIVE].
6524
6525         * gtk/gtklabel.[ch]:
6526         Add keynav + menu to selectable lables.
6527         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6528         unfocused with base_gc [GTK_STATE_ACTIVE].
6529
6530         * gtk/gtkfilesel.c:
6531         Add drag and drop support.
6532
6533         * gtk/gtkstyle.c:
6534         (This was checked in earlier)
6535         New default values for text/base SELECTED and ACTIVE
6536         
6537 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
6538
6539         * configure.in: up version to 1.3.8, interface age 0,
6540         binary age 0, depend on glib 1.3.8.
6541
6542         * NEWS: 1.3.8 updates.
6543
6544 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
6545
6546         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
6547         the editing code
6548
6549         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
6550         reason to call it beyond emiting the two signals.
6551
6552         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
6553         to GtkEntry.
6554
6555 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
6556
6557         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
6558           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
6559         PangoFontDescription.
6560
6561         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
6562         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
6563         structure.
6564   
6565         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
6566
6567         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
6568         direct access to style->font. Deprecate gtk_style_ref/unref.
6569   
6570         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
6571         Remove gtk_style_ref/unref with g_object_ref/unref.
6572   
6573         * gtk/gtkcalendar.c: Remove leftover macros accessing
6574         style->font.
6575   
6576         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
6577         variable.
6578   
6579         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
6580         style->font.
6581
6582 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
6583
6584         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
6585         "can_activate" properties in favor of
6586         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
6587         and GTK_CELL_RENDERER_MODE_EDITABLE
6588
6589 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
6590
6591         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
6592         editable widgets.  This function is private, and should only be
6593         used by GtkTreeView.
6594
6595 2001-09-18  Matt Wilson  <msw@redhat.com>
6596
6597         * docs/Makefile.am (EXTRA_DIST): don't use += before =
6598
6599         * docs/faq/Makefile.am (EXTRA_DIST): likewise
6600
6601         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
6602         
6603         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
6604         (EXTRA_HEADERS): likewise
6605
6606         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
6607         (EXTRA_HEADERS): likewise
6608         (EXTRA_DIST): likewise
6609         (CLEANFILES): likewise
6610
6611         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
6612
6613         * tests/Makefile.am (EXTRA_DIST): likewise
6614         
6615         * Makefile.am (install-data-local): changed to use
6616         install-data-hook, which runs after install-pkgconfigDATA, so that
6617         the pkgconfigdir will have been created and populated first.
6618
6619 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
6620
6621         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
6622         be the last big GtkTreeView API change.
6623
6624         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
6625         replace with "activate" and "start_editing".  Also, added a
6626         "can_activate" and "can_edit" property.
6627
6628         * gtk/gtktreeviewcolumn.c: modify to use above.
6629
6630 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
6631
6632         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
6633
6634 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
6635
6636         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
6637         icon instead of one with ugly white background.
6638
6639 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
6640
6641         * demos/gtk-demo/stock_browser.c (id_to_macro): make
6642         the uppercasing work. (#59550)
6643
6644 2001-09-14  Jakub Steiner <jimmac@ximian.com>
6645
6646         * gtk/stock-icons/dialog_error.png:
6647         * gtk/stock-icons/dialog_question.png: more road signs
6648
6649 2001-09-13  Jakub Steiner <jimmac@ximian.com>
6650
6651         * gtk/stock-icons/dialog_question.png:
6652         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
6653           like a road sign.
6654
6655 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
6656
6657         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
6658         signals to make them more clear.  Also, change ::range_changed to
6659         ::row_changed.
6660         * gtk/gtktreemodel.c: Adjust to interface change
6661         * gtk/gtktreemodel.h: ditto
6662         * gtk/gtktreemodelsort.c: ditto
6663         * gtk/gtktreestore.c: ditto
6664         * gtk/gtkliststore.c: ditto
6665         * gtk/gtktreeview.c: ditto
6666         * tests/testtreecolumns.c: ditto
6667         * gtk/gtkmarshal.list: Actually remove a marshaller!
6668
6669 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
6670
6671         * gtk/gtktextview.c
6672         Add support for Ctrl+Up/Down arrow to move cursor to beginning
6673         of previous/next paragraph. If within a paragraph cursor moves to
6674         beginning of that paragraph.
6675
6676 2001-09-12  Jakub Steiner <jimmac@ximian.com>
6677
6678         * gtk/stock-icons/dialog_question.png: replacing the shaky
6679           question mark with a sans-serif one.
6680         * gtk/stock-icons/stock_top.png, stock_bottom.png,
6681      stock_first.png, stock_last.png: using the new style arrows
6682         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
6683      colors.
6684         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
6685      color.
6686         * gtk/stock-icons/stock_zoom*: anti-aliased
6687         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
6688      '-' with a '_', removed the wrong files
6689
6690 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
6691  
6692         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
6693  
6694         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
6695         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
6696         than in gtk-2.0/major.minor.micro/<type>/. This
6697         works better for a search path for modules.
6698  
6699         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
6700         gtk_binary_version variable holding major.minor.(micro-binary_age).
6701  
6702         * modules/input/Makefile.am (moduledir): Fix installation
6703         directory to match change in lookup location.
6704  
6705         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
6706         suffixes. Needs to be handled in g_module_build_path().
6707
6708         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
6709         appropriate.
6710  
6711 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
6712
6713         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
6714         causing RC properties not to work.
6715
6716 2001-09-11  Jakub Steiner <jimmac@ximian.com>
6717
6718         * gtk/stock-icons/dialog-error.png: less drastic
6719         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
6720           "STOP" is international enough.
6721         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
6722         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
6723
6724 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
6725
6726         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
6727         (add|remove)_selection_clipboard symmetric. (bug #59836)
6728
6729         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
6730         Avoid SEGV for empty tree. (bug #60243)
6731
6732 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
6733
6734         * tests/testgtk.c (create_idle_test): slight fix for
6735         g_object_set() not usable for nesting anymore.
6736
6737         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
6738         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
6739         properties, supply ::shadow_type properties instead as most
6740         other widgets do.
6741
6742 2001-09-10  Alex Larsson  <alexl@redhat.com>
6743
6744         * demos/gtk-demo/stock_browser.c:
6745         * gdk/gdkcolor.c:
6746         * gdk/gdkfont.c:
6747         * gdk/gdkcursor.c:
6748         * gdk/gdkevents.c:
6749         * gdk/gdkrectangle.c:
6750         * gtk/gtktypeutils.c:
6751         Update to use the new g_boxed_type_register_static API.
6752
6753 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
6754
6755         * gtk/gtktreestore.c:
6756         Fix looping in gtk_tree_store_init() waiting for zero random int.
6757
6758 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
6759
6760         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
6761         behaviour which havoc broke. they have to default to 1.0 for
6762         expand behaviour.
6763
6764         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
6765
6766 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
6767
6768         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
6769         Amend previous change to avoid runtime error in g_param_spec_ref()
6770
6771 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
6772
6773         * gtk/gtkrc.c (insert_rc_property): Fix blank line
6774         in the wrong place.
6775
6776 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
6777
6778         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
6779         do a lookup immediately after creating style->property_cache,
6780         since bsearch crashes on zero length for Solaris.
6781         (Found by Padraig O'Briain.)
6782
6783 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
6784
6785         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
6786         Really return NULL if not set.
6787         (gtk_widget_init): Remove unused varaible.
6788         
6789 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
6790
6791         * configure.in:
6792         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
6793         in cvs.
6794
6795 2001-09-08  Havoc Pennington  <hp@pobox.com>
6796
6797         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
6798         people might want to use
6799
6800 2001-09-08  Havoc Pennington  <hp@pobox.com>
6801
6802         * gtk/gtkalignment.c (gtk_alignment_class_init): default
6803         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
6804
6805         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
6806
6807         * gtk/gtktextiter.c: fix docs
6808         (gtk_text_iter_spew): get rid of this
6809
6810         * gtk/gtklayout.c: docs
6811
6812         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
6813         to center image and label together, instead of having image on
6814         left and label centered, patch/suggestion from Jacob
6815
6816         * gtk/gtkdialog.c: docs
6817
6818 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
6819
6820         * gtk/gtkliststore.c: Write documentation
6821         * gtk/gtktreestore.c: Write documentation
6822
6823 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
6824
6825         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
6826         with GArray and bsearch(), to remove dependency on a still
6827         evolving interface that we want to keep private to glib/gobject. 
6828
6829 2001-09-08  Havoc Pennington  <hp@pobox.com>
6830
6831         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
6832         docs fixes
6833
6834         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
6835
6836         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
6837
6838         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
6839
6840         * gtk/gtkscrolledwindow.h: docs fixes
6841
6842         * gtk/gtkimage.c (gtk_image_new): docs fixes
6843
6844 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
6845
6846         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
6847         false alarm  constness warning with a cast.
6848
6849         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
6850         for the inside-gdk case.
6851
6852 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
6853
6854         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
6855         remove g_print.
6856
6857         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
6858         change models, #59899
6859
6860 2001-09-07  Havoc Pennington  <hp@pobox.com>
6861
6862         * gtk/gtkmain.c: move some docs inline
6863
6864 2001-09-07  Havoc Pennington  <hp@pobox.com>
6865
6866         * gtk/gtk.h: tsk tsk, jrb broke the build
6867
6868 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
6869
6870         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
6871         Removed 'fill' attribute.  It was silly b/c that was a property of
6872         the cell renderer, anyway.
6873         (gtk_tree_view_column_render): Actually render the packed
6874         renderers.
6875         * doc/tree-column-sizing.txt: initial devel documentation.
6876         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
6877         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
6878
6879         * tests/testtreefocus.c: fix up to reflect above changes.
6880         * tests/testtreeview.c: ditto
6881         * demos/gtk-demo/stock_browser.c: ditto
6882
6883 2001-09-07  Alex Larsson  <alexl@redhat.com>
6884
6885         * gdk/linux-fb/gdkcolor-fb.c:
6886         Removed unused function.
6887         
6888         * gdk/linux-fb/gdkdrawable-fb2.c
6889         * gdk/linux-fb/gdkfont-fb.c:
6890         Use PangoLanguage functions.
6891
6892         * gdk/linux-fb/gdkinput.c:
6893         * gdk/linux-fb/gdkselection-fb.c:
6894         Fix const warnings.
6895         
6896         * gdk/linux-fb/gdkwindow-fb.c:
6897         Fix warning. Implement gdk_window_set_icon_list() and
6898         gdk_window_get_frame_extents(). (No icon support yet though.)
6899
6900         * gtk/gtkwindow.c (gtk_window_get_position):
6901         If window->frame is set get the extents of it instead.
6902         
6903 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
6904
6905         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
6906         Make the default default colormap the GdkRGB colormap,
6907         not the system colormap.
6908
6909         * gtk/gtkinvisible.c (gtk_invisible_init) 
6910           gtk/gtkwindow.c (gtk_window_init): Set the current
6911         colormap, as returned by _gtk_widget_peek_colormap()
6912         on the widget.
6913
6914         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
6915         to GTK+. Make it return %NULL instead of the default
6916         colormap if no colormap has explicitely been pushed.
6917
6918         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
6919         colormaps on ancestral widgets before defaulting the
6920         the system default colormap.
6921
6922         * docs/Changes-2.0.txt: explain colormap changes.
6923
6924 2001-09-07  Havoc Pennington  <hp@redhat.com>
6925
6926         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
6927         #57424
6928
6929 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
6930
6931         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
6932         make gdk_set_use_xshm a noop. Remove --no-xshm command line
6933         option. If we aren't autodetecting properly, we need
6934         to fix the problem, or at least make it an environment
6935         variable setting, to avoid problems with propagating
6936         to embedded children, plugins, etc.
6937
6938         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
6939
6940         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
6941         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
6942         New function to render a pixmap and mask for a particular colormap.
6943
6944         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
6945         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
6946         of internal implementation of the same.
6947
6948 2001-09-07  Havoc Pennington  <hp@redhat.com>
6949
6950         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
6951         debug code that seems to have caused a breakpoint in valid cases
6952         
6953         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
6954         pointer on the first view when adding the second view, fixes
6955         crash when closing gtk-demo text test with active selection
6956
6957         * gtk/gtktextbuffer.c
6958         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
6959         clipboards in the list of clipboards - probably fixes #59836
6960
6961 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
6962
6963       Make gdkx.h the only installed header from gdk/x11.
6964       All structures in gdk/x11 are opaque.
6965
6966         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
6967         Don't install gdk{drawable,pixmap,window}-x11.h.
6968
6969         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
6970         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
6971         GdkVisualClass into C files.
6972
6973         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
6974
6975         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
6976         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
6977         Add public functions to replace previously exported direct
6978         structure access.
6979         gdk_x11_colormap_get_{xdisplay,xcolormap} 
6980         gdk_x11_cursor_get_{xdisplay,xcursor},
6981         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
6982         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
6983         gdk_x11_gc_get_{xdisplay,ximage}
6984         
6985         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
6986         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
6987
6988       Fix a number of variables and functions that were exported
6989       "accidentally" from GDK.
6990
6991         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
6992         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
6993         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
6994         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
6995         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
6996         gdk_event_queue_find_first, gdk_event_queue_remove_link,
6997         gdk_event_queue_append, gdk_event_button_generate,
6998         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
6999
7000         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
7001            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
7002         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
7003         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
7004         gdk_use_xshm, gdk_input_ignore_core.
7005
7006         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
7007         #defines to namespace functions into the private _gdk_ 
7008         namespace.
7009
7010         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
7011         to replace gdk_parent_root exported variable. Adjust and
7012         deprecate GDK_ROOT_PARENT().
7013
7014         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
7015         GDK_ROOT_PARENT usage, remove includes of port-specific
7016         headers.
7017
7018         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
7019         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
7020         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
7021
7022         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
7023         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
7024         gdk_wm_delete_window functions, gdk_wm_take_focus, 
7025         use gdk_atom_intern() instead.
7026
7027         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
7028           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
7029           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
7030           gtk/gtkselection.c 
7031         Unexport gdk_selection_property, just use 
7032         gdk_atom_intern ("GDK_SELECTION").
7033
7034         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
7035         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
7036         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
7037         GdkVisualprivate, gdk_x11_gc_flush.
7038
7039       Make a number of public exports of variables into functions
7040       to increase encapsulation.
7041
7042         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
7043         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
7044         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
7045
7046         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
7047         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
7048         gdk_error_warnings.
7049
7050         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
7051           docs/Changes-2.0.txt: 
7052         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
7053         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
7054         Add gdk_x11_get_default_xdisplay().
7055
7056         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
7057         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
7058         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
7059         Don't export gdk_progclass, move --class command line
7060         option and handling to common portion of GDK.
7061
7062       Miscellaneous fixes:
7063
7064         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
7065         g_return_val_if_fail that should have been g_return_if_fail.
7066
7067         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
7068         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
7069
7070         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
7071         X11 dependency.
7072
7073         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
7074         Remove unused gdk_key_repeat_disable/restore.
7075
7076         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
7077         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
7078         Remove unused gdk_null_window_warnings variable.
7079
7080         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
7081         it can be retrieved from the repository; it is too far
7082         from functional to be worth having people check out;
7083         it would be easier to start from scratch, I suspect.
7084
7085         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
7086
7087         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
7088         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
7089         Fix some accidentally global variables and unused global variables.
7090
7091         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
7092         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
7093         Fix some accidentally global variables and unused global variables.
7094
7095       Add some space for future expansion to multihead.
7096
7097         * gdk/gdkdrawable.h: Add four reserved function pointers
7098         for future expansion of GdkDrawableClass.
7099
7100         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
7101         where we can put a GdkScreen * later.
7102
7103 2001-09-07  Havoc Pennington  <hp@redhat.com>
7104
7105         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
7106         adjustments after validating destination yrange; fixes #53918
7107         (This may cause other issues, but I hope it won't)
7108         
7109 2001-09-05  Havoc Pennington  <hp@redhat.com>
7110
7111         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
7112         line into start line, update the character counts in parent nodes; 
7113         caused a bug when end and start line had different parent nodes.
7114
7115 2001-08-30  Havoc Pennington  <hp@redhat.com>
7116         
7117         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
7118         assertion that tag is in a table
7119
7120 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
7121
7122         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
7123         g_strcasecmp on NULL strings. (#59058)
7124
7125 2001-09-06  Alex Larsson  <alexl@redhat.com>
7126
7127         * gtk/gtkbin.c:
7128         * gtk/gtkfontsel.c:
7129         * gtk/gtkspinbutton.c:
7130         * gtk/gtktipsquery.c:
7131         Use GtkType/GType instead of uint.
7132
7133 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
7134
7135         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
7136         sort column.
7137
7138         * gtk/gtktreestore.c (gtk_list_store_init): ditto
7139
7140         * gtk/gtktreesortable.c: add docs.
7141
7142 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
7143
7144         * Version 1.3.7
7145
7146         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
7147         docs for gtk-config
7148
7149         * modules/input/Makefile.am (install-data-local): Don't
7150         run gtk-query-immodules if DESTDIR is set.
7151
7152         * NEWS: Various additions.
7153
7154 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
7155
7156         * NEWS: updates for 1.3.7 release.
7157
7158 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
7159
7160         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
7161         handle default sort feature
7162
7163         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
7164         new function to handle default sort.
7165         (gtk_tree_sortable_has_default_sort_func): check if default sort
7166         is set.
7167
7168         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
7169         handle default sort feature
7170
7171 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
7172
7173         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
7174         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
7175         #59731
7176
7177 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
7178
7179         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
7180         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
7181         time, #59727
7182
7183         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
7184         correctly.
7185
7186 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
7187
7188         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
7189         so that we don't eternally update the keymap after we
7190         get a change notification.
7191
7192         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
7193         incorrect cast.
7194
7195 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
7196
7197         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
7198         it working. It mostly works now, although there're still a few issues
7199         to be worked out.
7200
7201         * tests/testtreesort.c (main): changes to have a better test
7202         application for the GtkTreeModelSort.
7203
7204 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
7205
7206         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
7207         fix for bug #59222.
7208
7209         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
7210         gpointer search_data argument to function definition and
7211         prototype, to match GtkTreeViewSearchEqualFunc typedef.
7212
7213 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
7214
7215         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
7216         per jrb's request.
7217
7218 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
7219
7220         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
7221
7222         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
7223
7224 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
7225
7226         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
7227         Instead of always mirroring the selection to a single PRIMARY
7228         selection, allow it to be mirrored to any number of clipboards.
7229
7230         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
7231         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
7232
7233         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
7234         GtkClipboard argument, and for paste_clipboard, the
7235         @override_location argument from @paste_primary.
7236
7237         * gtk/gtktextview.c: Adapt to above change.
7238         
7239 2001-08-30  Havoc Pennington  <hp@redhat.com>
7240
7241         * gtk/gtktextview.c (invalidated_handler): put validate idle at
7242         resize - 2 just for flexibility
7243
7244 2001-08-30  Havoc Pennington  <hp@redhat.com>
7245
7246         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
7247         object from the empty-child-anchor case by drawing a little box.
7248         
7249         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
7250         if the child anchor has no anchored widgets - fixes #59328.
7251
7252         Also, remove bizarre deletion of preedit string that seems to have
7253         gotten in here somehow.
7254
7255 2001-08-30  Havoc Pennington  <hp@redhat.com>
7256
7257         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
7258         to #58420 from Hidetoshi Tajima and Matthias Clasen
7259
7260 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
7261
7262         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7263         change color when the GtkTreeView loses focus.
7264
7265         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
7266         ditto.
7267         
7268         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
7269
7270 2001-08-28  Havoc Pennington  <hp@pobox.com>
7271
7272         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
7273
7274 2001-08-28  Havoc Pennington  <hp@pobox.com>
7275
7276         * demos/gtk-demo/main.c (setup_default_icon): add default icon
7277
7278         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
7279         warning fix
7280         (gtk_radio_button_new_with_label): warning fix
7281
7282         * gtk/gtkdnd.c: used some random GtkImage private structs, 
7283         update to reflect GtkImage changes
7284
7285         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
7286         whether the hint is supported, just always set the icon. A task
7287         list might want to use it even if the WM doesn't, and the WM may
7288         change over time. Also, XDeleteProperty() if list == NULL.
7289
7290         * gtk/gtkwindow.c (gtk_window_set_icon_list)
7291         (gtk_window_get_icon_list)
7292         (gtk_window_set_icon)
7293         (gtk_window_get_icon)
7294         (gtk_window_set_default_icon_list)
7295         (gtk_window_get_default_icon_list):
7296         new functions
7297
7298         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
7299
7300         * gtk/gtkimage.c: Implement property support, bug #59408
7301
7302         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
7303         on reparent-without-removing-first a bit more helpful.
7304         Let's just destroy this FAQ.
7305
7306 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
7307
7308         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
7309         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
7310
7311 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
7312
7313         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
7314         of use_text_format to the end of the function. (#56447)
7315
7316 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
7317
7318         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
7319         only in response to an area_prepared signal.
7320
7321 2001-08-28  Alex Larsson  <alexl@redhat.com>
7322
7323         * gtk/gtkwidget.c (gtk_widget_class_init):
7324         Make unrealize GTK_RUN_LAST.
7325
7326 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
7327
7328         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
7329         with_label and with_mnemonic should create radio buttons, not
7330         check buttons
7331
7332 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
7333
7334         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
7335         * tests/treestoretest.c (make_window): ditto
7336         * demos/gtk-demo/main.c (create_tree): ditto
7337         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
7338
7339 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
7340
7341         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
7342         GTK selection types rather than GtkTreeSelectionMode.
7343
7344         * docs/Changes-2.0: Add comment about selection change.
7345
7346 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
7347
7348         * gtk/gtkenums.h (GtkSelectionMode): deprecate
7349         GTK_SELECTION_EXTENDED.
7350
7351         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
7352         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
7353
7354         * gtk/gtkctree.c: ditto
7355
7356         * gtk/gtklist.c: ditto
7357
7358         * gtk/gtktree.c: ditto
7359
7360 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
7361
7362         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
7363         of typos in compat macros. (#59624, Skip Montaro)
7364
7365 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
7366
7367         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
7368         macro.
7369
7370          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
7371  
7372         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
7373         interface to be a standard setter from gtk_menu_item_right_justify.
7374         (gtk_menu_item_get_right_justified): a getter to go with the setter
7375
7376         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
7377         gtk_menu_item_right_justify.
7378
7379         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
7380         gtk_menu_item_set_right_justified.
7381  
7382 2001-08-27  Jens Finke <jens@gnome.org>
7383
7384         * gtk+.spec.in: Updated to match gpp requirements, reworked the
7385         files section to make it work with 1.3.x releases.
7386
7387 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
7388
7389         * gtk/gtkbutton.[ch]:
7390         Add properties for labels, mnemonics and stock items.
7391         Added C accessor functions for the properties.
7392         Removed deprecated button->child.
7393
7394         * gtk/gtkradiobutton.c:
7395         * gtk/gtktogglebutton.c:
7396         Update to use the functions in GtkButton.
7397
7398         * gtk/gtkcheckbutton.c:
7399         Update to use the functions in GtkButton.
7400         Changed size allocation of child. Now only gets as much
7401         space as it requests.
7402
7403         * gtk/gtkclist.c:
7404         Don't use GtkButton->child
7405
7406         * gtk/gtklabel.c:
7407         Fixed typo in docs
7408         
7409 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
7410
7411         * tests/testgtk.c:
7412         * tests/Makefile.am:
7413         Ressurect the properties test.
7414         I don't care if it is inferior, I just want to test my property code.
7415
7416 2001-08-25  Chema Celorio  <chema@celorio.com>
7417
7418         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
7419         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
7420         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
7421
7422 2001-08-24  Havoc Pennington  <hp@pobox.com>
7423
7424         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
7425         these are already in gtkmenu.h, and the copies
7426         here were broken.
7427
7428         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
7429
7430         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
7431         special-case bitmaps to allow no colormap
7432         (bitmap1): implement no-colormap bitmap-getting
7433         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
7434         alpha
7435         (rgb8): indentation
7436         (rgb1a, rgb1): change the way we read the data out of the image, 
7437         old way didn't seem to work quite right.
7438
7439         I'm pretty sure a lot of the rgbconvert code is still broken.
7440         
7441         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
7442         above position constraint (I really intended to do this before,
7443         don't know what's up with that)
7444         (gtk_XParseGeometry): shut up gcc
7445
7446         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
7447         and "0" should have been. remove the attempted 4-bytes-at-once
7448         optimization, it was totally broken.
7449
7450 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
7451
7452         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
7453         on push to buttons (based on patch from Soeren Sandmann, #54720)
7454
7455           - Add child_displacement_x/y style properties to control how far the
7456             child moves when the button is depressed.
7457
7458           - Add non-exported function _gtk_button_set_depressed to clean
7459             up the handling of the in/out shadow and separate it frmo
7460             widget->state.
7461
7462           - Lots of code cleanup and simplification of state handling
7463             for GtkButton/GtkToggleButton.
7464  
7465         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
7466         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
7467
7468 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
7469
7470         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
7471         and make gtk_image_new() take no arguments. The compiler will
7472         catch it, and it is vastly more useful than having
7473         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
7474
7475         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
7476         to add tearoff-title property (#51319, Lee Mallabone)
7477
7478 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
7479
7480         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
7481         gtk_menu_item_configure(). (#58925)
7482
7483 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
7484
7485         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
7486         "use_align" to give people the option to just make a cell visible.
7487
7488         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
7489         we were scrolling past the end of the tree.
7490
7491         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
7492         rename gtk_tree_view_column_pack_start_cell_renderer to
7493         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
7494
7495 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
7496
7497         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
7498         a stray g_object_ref() left over from gtk_object_ref/sink.
7499         (Pointed out by Josh Pritikin.)
7500
7501 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
7502
7503         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
7504         to gtk_container_get_children. Added deprecated compatibility
7505         macro. (Suggested by Vitaly Tishkov, #59051)
7506
7507         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
7508         calls.
7509
7510 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
7511
7512         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
7513         gtk_menu_bar_append/prepend/insert, forgot to do this
7514         when we deprecated gtk_menu_append/prepend/insert.
7515
7516         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
7517         compat macros.
7518
7519         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
7520         renamed by compat macro.
7521
7522         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
7523         gtk_font_selection_dialog_get_font(). (Suggested by
7524         Vitaly Tishkov, #59383)
7525
7526 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
7527
7528         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
7529         Rename from gtk_text_tag_table_size(). (#59366)
7530
7531 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
7532
7533         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
7534         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
7535         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
7536         (#59173).
7537
7538 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
7539
7540         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
7541         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
7542         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
7543
7544 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
7545
7546         [ Patch from Sebastian Wilhelmi, 52790 ]
7547
7548         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
7549
7550         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
7551         Move compatibility macros from g[dt]kcompat.h to within 
7552         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
7553
7554         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
7555
7556         * demos/Makefile.am demos/gtk-demo/Makefile.am 
7557           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
7558           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
7559
7560         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
7561                  testpixbuf.c}: Fix usages of deprecated functions.
7562
7563 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
7564
7565         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
7566         when changing models.
7567
7568 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
7569
7570         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
7571         We check the current event for modifiers rather than try to trap
7572         all presses.
7573
7574 2001-08-22  Anders Carlsson  <andersca@gnu.org>
7575
7576         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
7577         It's LIST_STORE, not LISTSTORE.
7578
7579 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
7580
7581         * gtk/gtk.h: Remove commented out gtkpacker reference.
7582
7583 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7584
7585         * configure.in (all_loaders): Add tga loader, 
7586         patch by Nicola Girardi. (#56067)
7587
7588 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
7589
7590         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
7591         a little.  More needs to be done tomorrow.
7592
7593 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
7594
7595         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
7596
7597 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
7598
7599         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
7600         reported by Kristian Rietveld <kristian@planet.nl> to handle row
7601         == NULL.
7602         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
7603         <kristian@planet.nl> to change destroy order.
7604
7605 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
7606
7607         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
7608         correct marshaller.
7609
7610 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
7611
7612         * gtk/gtkliststore.c: Fix up warnings, #58928.
7613
7614         * gtk/gtktreeselection.h: Change signal prototype, #58647
7615
7616         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
7617         #59221.
7618
7619         * gtk/gtkstyle.c: Actually prelight arrow, #50981
7620         
7621 2001-08-18  Hans Breuer  <hans@breuer.org>
7622
7623         * gdk/gdk.def : updated externals
7624
7625         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
7626         is required to get (at least) visible in entry fields. Some selections
7627         are really handled now - even on win32 - but copying via middle
7628         mouse button into a different app needs to wait ... 
7629
7630         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
7631         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
7632
7633         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
7634         handling. I'm not sure if it is better now, but at least not worse
7635
7636         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
7637         with SetWindowPos () which allows more fine-tuning backing-store wise
7638
7639         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
7640         Also changed move/resize to be more like the X version.
7641
7642         * gtk/gtk.def : updated externals
7643
7644 2001-08-19  Sven Neumann  <sven@gimp.org>
7645
7646         * gtk/gtktooltips.c
7647         * tests/testtreesort.c
7648         * tests/treestoretest.c: inserted some casts to get rid of compiler
7649         warnings.
7650
7651 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
7652
7653         * gtk/gtktreeviewcolumn.c
7654         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
7655
7656         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
7657         (_gtk_tree_view_find_node): If *node is NULL,
7658         *tree should be NULL too.
7659
7660         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
7661         column/renderers.
7662         * tests/testtreecolumns.c: ditto
7663         * tests/testtreefocus.c: ditto
7664         * tests/testtreesort.c: ditto
7665         * tests/testtreeview.c: ditto
7666         * tests/treestoretest.c: ditto
7667
7668 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
7669
7670         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
7671         signals; is_expander/is_expanded.
7672
7673         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
7674         pixbufs.
7675
7676         * gtk/gtktreeview.c: set above properties.
7677
7678 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
7679
7680         * gtk/gtkwidget.h: Really remove set_default_style().
7681
7682         * docs/Changes-2.0.txt: added a note about
7683         gtk_widget_push/pop/set_default_style.
7684
7685 2001-08-18  Havoc Pennington  <hp@pobox.com>
7686
7687         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
7688         hints_changed in addition to the other cases.
7689         (gtk_window_move_resize): include last position from configure
7690         notify in debug spew
7691
7692 2001-08-18  James Henstridge  <james@daa.com.au>
7693
7694         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
7695         second argument to the weak ref notify, cleaning up some uglyness.
7696         (gtk_accel_group_attach): remove and add the weak notifier when
7697         changing the accel groups slist.
7698         (gtk_accel_group_detach): same here.
7699
7700 2001-08-17  Darin Adler  <darin@bentspoon.com>
7701
7702         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
7703         missing parameters to utf8 functions to make it compile.
7704
7705 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
7706
7707         * gtk/gtktreeprivate.h:
7708         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
7709         (gtk_tree_view_init), (gtk_tree_view_set_property),
7710         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
7711         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
7712         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
7713         (gtk_tree_view_set_destroy_count_func),
7714         (gtk_tree_view_set_enable_search),
7715         (gtk_tree_view_get_enable_search),
7716         (gtk_tree_view_get_search_column),
7717         (gtk_tree_view_set_search_column),
7718         (gtk_tree_view_get_search_equal_func),
7719         (gtk_tree_view_set_search_equal_func),
7720         (gtk_tree_view_search_dialog_destroy),
7721         (gtk_tree_view_search_position_func),
7722         (gtk_tree_view_interactive_search),
7723         (gtk_tree_view_search_delete_event),
7724         (gtk_tree_view_search_button_press_event),
7725         (gtk_tree_view_search_key_press_event),
7726         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
7727         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
7728         * gtk/gtktreeview.h:
7729         Add heavily modified patch from Kristian Rietveld to handle
7730         interactive searching.
7731
7732 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
7733
7734         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
7735         string parameter.
7736
7737         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
7738         GtkMenuShell::selection_done, now that we have it, instead of 
7739         ::deactivate so we're not tearing the menu apart and notify
7740         the user prematurely.
7741
7742 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
7743
7744         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
7745         window, clear window->need_default_position to avoid infinite loops.
7746         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
7747
7748 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
7749
7750         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
7751         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
7752         (gtk_tree_view_set_property): don't cast possible NULL objects.
7753         (gtk_tree_view_destroy): reset the model to NULL.
7754
7755         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
7756         parent_class handler.
7757
7758 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7759
7760         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
7761
7762 2001-08-17  Anders Carlsson  <andersca@gnu.org>
7763
7764         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
7765         point numbers so that the result will be floating point.
7766
7767 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7768
7769         * tests/testgtk.c (create_handle_box): 
7770         (create_toolbar): Replace gtk_window_set_policy calls by
7771         gtk_window_set_resizable.
7772
7773 2001-08-16  Jakub Steiner <jimmac@ximian.com>
7774
7775         * gtk/stock-icons/dialog_info.png: new style bulb
7776         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
7777         * gtk/stock-icons/dialog_warning.png: need a hand?
7778         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
7779           the aa border gets chopped off ok
7780         * gtk/stock-icons/stock_colorselector.png: using the new hand
7781         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
7782           this one is for, but the old icon was butt ugly.
7783         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
7784         * gtk/stock-icons/stock*_insert_object.png: "
7785         * gtk/stock-icons/stock_index.png: using new hand icon
7786         * gtk/stock-icons/stock*_new.png: the document template being used 
7787           elsewhere too
7788         * gtk/stock-icons/stock*_print*.png: new print and print preview 
7789           icons (panel/menu)  
7790         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
7791           icons based on Tuomas' floppy image.
7792         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
7793         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
7794         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
7795         * gtk/stock-icons/stock*_undelete.png: "
7796         * gtk/stock-icons/stock_preferences.png: I have a version with a 
7797           document base if the sliders are no good.
7798         * gtk/stock-icons/stock_properties.png: properties 
7799         
7800
7801         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
7802           (tigert@ximian.com) clipboard icons
7803         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
7804         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
7805         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
7806           little bigger IMHO
7807
7808 2001-08-16  Sven Neumann  <sven@gimp.org>
7809
7810         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
7811
7812 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
7813
7814         * gtk/gtkcellrenderertext.c:
7815         Avoid warning when specifying NULL for "attributes" property
7816
7817 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7818
7819         * docs/debugging.txt: Add a warning about --enable-debug=no,
7820         some editorial changes.
7821
7822 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7823
7824         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
7825         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
7826         debugging info, remove unused debug flags. (#58330)
7827
7828 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
7829
7830         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
7831         (gtk_tree_selection_select_all): Remove strict checking for rows.
7832
7833 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7834         
7835         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
7836         Don't remove the tooltip window when the tip text changes. (#15891)
7837
7838 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
7839
7840         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
7841         $(srcdir).
7842
7843 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
7844
7845         * Makefile.am (EXTRA_DIST): Fix problem with trying to
7846         dist files from intl/, which is no longer there.
7847
7848 2001-08-11  Hans Breuer  <hans@breuer.org>
7849
7850         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
7851           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
7852           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
7853           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
7854           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
7855           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
7856
7857         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
7858           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
7859         GDK_TYPE_EVENT signals
7860
7861         * gtk/gtkalignment.c : removed 'direct allocation bug',
7862         which Tim discovered while reading the patch
7863
7864 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
7865
7866         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
7867         compat macros for push/pop/set_visual that were supposed
7868         to be added a long time ago, but got dropped. 
7869
7870 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
7871
7872         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
7873         property notifies.
7874
7875 2001-08-07  Havoc Pennington  <hp@pobox.com>
7876
7877         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
7878
7879         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
7880         some fixage is needed here, but nothing simple. Owen understands
7881         it. ;-)
7882
7883         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
7884         sizing and positioning.  Also, fix bug in compute_geometry_hints
7885         (width/height confusion for setting min size). 
7886         (gtk_window_move): new function
7887         (gtk_window_resize): new function
7888         (gtk_window_get_size): new function
7889         (gtk_window_get_position): new function
7890         (gtk_window_parse_geometry): new function
7891         
7892         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
7893         (gtk_widget_get_size_request): new function
7894         (gtk_widget_get_usize): delete, that was a short-lived function
7895         ;-)
7896         (gtk_widget_set_usize): deprecate
7897         (gtk_widget_set_uposition): deprecate, make it a trivial 
7898         gtk_window_move() wrapper
7899         (gtk_widget_class_init): remove x/y/width/height properties,
7900         add width_request height_request
7901         
7902         * demos/*: update to avoid deprecated functions
7903         
7904         * gtk/gtklayout.c: add x/y child properties
7905
7906         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
7907         uses of "gint16"
7908
7909         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
7910         sizing test
7911
7912         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
7913         configure events on toplevel windows are always in root window
7914         coordinates, following ICCCM spec that all synthetic events 
7915         are in root window coords already, while real events are 
7916         in parent window coords. Previously the code assumed that 
7917         coords of 0,0 were parent window coords, which was 
7918         really broken.
7919   
7920         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
7921         warning
7922  
7923         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
7924         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
7925         hints in gtk_window_parse_geometry()
7926  
7927         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
7928         new USER_POS USER_SIZE hints    
7929
7930 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7931
7932         * tests/prop-editor.c (properties_from_type): Use 
7933         g_object_class_list_properties to get the param specs 
7934         for a given type. (#58609)
7935
7936 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7937
7938         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
7939         free the text_aa parts. (#57549)
7940
7941 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7942
7943         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
7944         not the foreground color. (#57621)
7945
7946 2001-08-09  Alexander Larsson <alexl@redhat.com>
7947
7948         * gdk/win32/gdkfont-win32.c:
7949         Update to the new pango win32 api.
7950
7951 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
7952
7953         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
7954         COMPOUND_TEXT instead of TEXT
7955         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
7956         interpret the return value of g_string_to_compound_text()
7957         (#55152)
7958
7959 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7960
7961         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
7962         fail if iter is NULL. (#58347)
7963
7964 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7965
7966         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
7967         some off-by-one issues, fixing selection of line-ends. (#50323)
7968
7969 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7970
7971         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
7972         functions in order to make mouse operation work again in the
7973         color wheel. (#58604)
7974
7975 2001-08-07  James Henstridge  <james@daa.com.au>
7976
7977         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
7978         the accelerator when the accel object is changed.  Fixes bug
7979         #58628.
7980
7981 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
7982
7983         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
7984         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
7985         (gnome bugzilla #58202)
7986
7987 2001-08-06  Havoc Pennington  <hp@pobox.com>
7988  
7989         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
7990         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
7991         it was expecting a GdkWindow, not a GdkWindowImplX11.
7992  
7993         Also, we were getting the window rect in screen coords 
7994         and the screen rect in window coords then intersecting 
7995         them; instead, get window rect in window coords.
7996  
7997         Finally, there were codepaths that resulted in a stuck server grab
7998         (when the window was fully onscreen, or on gdk_image_new()
7999         failure); make the server ungrab thing a bit more
8000         robust/consistent.
8001
8002 2001-08-06  Sven Neumann  <sven@gimp.org>
8003
8004         * gdk/gdkpango.c (gdk_pango_context_destroy): 
8005         check if info->colormap != NULL before unref'ing it. It might have
8006         been set to NULL using gdk_pango_context_set_colormap().
8007
8008 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
8009
8010         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
8011         Fix conversion from float to int so that we don't get
8012         skew in the int => float => int roundtrip. 
8013         (#58120, reported by Vitaly Tishkov). Also fix problem
8014         where if no alpha was set, the returned alpha
8015         from (say) set_current_alpha() was returned as 1, not 65535.
8016
8017 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
8018
8019         * gtk/gtklist.c (gtk_list_clear_items): Fix
8020         problem with selecting a new focus child.
8021
8022         * gtk/gtklist.c (gtk_list_clear_items): Clear 
8023         list->undo/list_focus_child after unparenting
8024         child, since unparenting the child can result
8025         in list->last_focus_child being set. (#58024)
8026
8027         * Makefile.am (SUBDIRS): Add target specific pc
8028         files to DISTCLEANFILES.
8029
8030         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
8031         (58327, Matthias Clasen)
8032
8033 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
8034
8035         * tests/testgtk.c: Patch from Hans (with various modifications),
8036         to add the ability to use testgtk as a rough-and-ready
8037         benchmark. Try, 'testgtk --bench all:5' (if you want decent
8038         numbers, run without a window manager)
8039
8040 2001-08-04 Alexander Larsson <alexl@redhat.com>
8041
8042         * gdk/win32/gdkinput.c:
8043         Add #ifdef HAVE_WINTAB around wintab.h include.
8044
8045         * gtk/gtk.def:
8046         Removed marshals that have been moved to glib.
8047         Commented out plug and socket. They didn't compile for me 
8048         on win32.
8049
8050 2001-08-04  Hans Breuer  <hans@breuer.org>
8051
8052         * gtk/stocks-icons/makefile.msc : new file
8053         * gtk/makefile.msc.in : use it
8054
8055         * gtk/gtkstyle.c : not all platforms do provide M_PI and
8056         friends, but luckily there is G_PI
8057
8058         * gtk/gtk.def : updated
8059
8060         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
8061         windows WS_POPUP, but only those without a parent. This fixes the 
8062         mis-alignment between the selectable (temp, input only) window and 
8063         the window text of GtkLabel.
8064
8065         (gdk_window_show) : respect private->state when actually showing
8066         the window.
8067
8068         (gdk_window_set_transient_for) : Implementation from Wolfgang 
8069         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
8070         error handling. Should fix #50586.
8071
8072         * gdk/win32/gdkevents-win32.c : beautify log output
8073
8074 2001-08-04  Michael Natterer  <mitch@gimp.org>
8075
8076         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
8077         Need to show the image after adding it to the GtkImageMenuItem.
8078         This used to work without in testgtk because of the
8079         gtk_widget_show_all() at the end of the function.
8080         (Closes #54978).
8081
8082 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
8083
8084         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
8085         (gtk_notebook_set_child_property): fix finding of child's page,
8086         since we have to validly deal with labels and menus here as well.
8087         (gtk_notebook_get_child_property): fix warning.
8088         (gtk_notebook_class_init): property tab_pack is of type
8089         GTK_TYPE_PACK_TYPE (enum) not boolean.
8090         (gtk_notebook_find_child): don't always warn, we might be looking
8091         for a label or menu child.
8092         (gtk_notebook_map): fix mapping of panel.
8093
8094         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
8095         widget's mapped state, regardless of the value being set equals
8096         old settings, since things like REALIZED(parent) or MAPPED(parent)
8097         may have changed since the old value was set. make it an error to
8098         invoke this function on a toplevel widget.
8099
8100 2001-07-31  Darin Adler  <darin@bentspoon.com>
8101
8102         * gdk/gdkprivate.h:
8103         * gdk/x11/gdkx.h:
8104         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
8105
8106         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
8107         GTK_OBJECT.
8108
8109 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
8110
8111         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
8112         scoping error pointed out by matthiasc@poet.de.
8113
8114 2001-07-31  Sven Neumann  <sven@gimp.org>
8115
8116         * demos/gtk-demo/appwindow.c
8117         * demos/gtk-demo/item_factory.c
8118         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
8119
8120 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
8121
8122         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
8123         argument order for g_signal_has_handler_pending.
8124
8125 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
8126
8127         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
8128         instead of long deprecated g_scanner_stat_mode().
8129
8130 2001-07-29  Hans Breuer  <hans@breuer.org>
8131
8132         * gdk/makefile.msc : build in the backend dir after
8133         auto-generating files
8134
8135         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
8136         with code from win32-production-branch.
8137
8138         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
8139         before calling DestroyWindow, which indirectly calls 
8140         gdk_window_destroy_notify ()
8141
8142         (performance patch merged from win32-production-branch)
8143         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
8144         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
8145         R2_COPYPEN rop). It is claimed to be much faster.
8146
8147 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
8148
8149         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
8150         add an "attributes" property to the text renderer for ATK.
8151
8152 2001-07-26  Alex Larsson  <alexl@redhat.com>
8153
8154         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8155         Initialize image->bits_per_pixel from the drawable, not from
8156         the root window.
8157
8158         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
8159         Fix cast. argument is an IMPL already.
8160
8161 2001-07-15  James Henstridge  <james@daa.com.au>
8162
8163         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
8164         (gtk_window_remove_accel_group): same here.
8165         (gtk_window_key_press_event): same here.
8166
8167         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
8168         (gtk_widget_remove_accelerator): same here.
8169         (gtk_widget_remove_accelerators): same here.
8170
8171         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
8172
8173         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
8174         instead of GtkObject.
8175
8176         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
8177         now takes GObjects.
8178
8179         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
8180         pass a GObject to gtk_accel_group_entries_from_object.
8181         (gtk_item_factory_create_item): s/accel_widget/accel_object/
8182
8183         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
8184
8185         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
8186
8187         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
8188         GObjects can have accelerators set now.  Add compatibility
8189         defines.
8190
8191         * gtk/gtkmarshal.list: add missing marshallers.
8192
8193         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
8194         accelerators on plain GObjects.  gtk_accel_group_object_destroy
8195         has been converted into a weak reference, and
8196         gtk_accel_group_delete_entries is now a destroy notify for that
8197         piece of data.
8198
8199 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
8200
8201         * gdk/gdkdraw.c: Added a check on the colormap depth to
8202         gdk_drawable_set_colormap()
8203         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
8204         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
8205         for pixmaps without visuals (more specifically, bitmaps)
8206         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
8207         doesn't set a colormap with the wrong depth
8208
8209
8210 2001-07-22  Anders Carlsson  <andersca@gnome.org>
8211
8212         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
8213         expander_height and expander_width properties with a single
8214         property, expander_size.
8215         (gtk_tree_view_init): Set the tab_offset to expander_size
8216         plus some padding.
8217         (gtk_tree_view_unrealize): Remove the expand/collapse
8218         timeout if it exists.
8219         (coords_are_over_arrow): Fix a small bug.
8220         (gtk_tree_view_motion_draw_column_motion_arrow): Use
8221         expander_size.
8222         (gtk_tree_view_draw_focus): Use "treeview" instead of
8223         "add-mode" as detail when drawing the focus.
8224         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
8225         instead of "add-mode" as detail when drawing the focus.
8226         (gtk_tree_view_deleted): If we have a node currently being
8227         expanded or collapsed, remove the timeout and set the node 
8228         to NULL.
8229         (gtk_tree_view_queue_draw_arrow): New function that just
8230         redraws the arrow of a node.
8231         (gtk_tree_view_draw_arrow): Use expander_size instead of
8232         expander_width/expander_height, also pass a different
8233         expander_style to gtk_paint_expander depending on the 
8234         state of the node being drawn.
8235         (expand_collapse_timeout): New function for expanding 
8236         or collapsing a node depending on the previous state.
8237         (gtk_tree_view_real_expand_row): Add timeout and set 
8238         correct state for node being expanded.
8239         (gtk_tree_view_real_collapse_row): Add timeout and set
8240         correct state for node being collapsed.
8241
8242         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
8243         information about the node currently being expanded or
8244         collapsed, and also a timeout id.
8245
8246         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
8247         with expander_style for draw_expander.
8248
8249         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
8250         expander_style.
8251         (create_expander_affine): New function for creating an 
8252         expander affine.
8253         (apply_affine_on_point): New function for applying an 
8254         affine to a point.
8255         (gtk_default_draw_expander): Modified to take expander_style
8256         instead of is_open, and to draw the rectangle rotated differently
8257         depending on the expander style.
8258         (gtk_paint_expander): Replace is_open with expander_style.
8259
8260         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
8261
8262         * gtk/gtkenums.h: Add expander style enum.
8263
8264 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
8265
8266         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
8267         value from gtk_tree_model_get_iter, the model might be empty.
8268
8269 2001-07-20  Hans Breuer  <hans@breuer.org>
8270
8271         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
8272         gdk/gdkinput.c like the other backends
8273
8274         * gdk/win32/gdkinput-win32.h :
8275         * gdk/win32/gdkinput.c :
8276         * gdk/win32/gdkvisual-win32.c :
8277         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
8278         GdkVisual GObjectification. UNTESTED for pen-devices because
8279         I simply have none.
8280
8281         * gdk/gdk.def :
8282         * gtk/gtk.def : updated externals
8283
8284         * gtk/gtkiconfactory.c :
8285         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
8286         before passing &error to functions to avoid strange crashes
8287         
8288         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
8289
8290         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
8291
8292         * gtk/makefile.msc.in : updated
8293
8294 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
8295
8296         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
8297         Add property support. (#51858)
8298
8299 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
8300
8301         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
8302         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
8303         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
8304
8305 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
8306
8307         * gtk/gtkcolorsel.c: Add propery support (roughly
8308         based on patch from Lee Mallabone, #51014)
8309
8310         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
8311         deprecated, since we already g_warning() on it.
8312
8313 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
8314
8315         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
8316         typo that sometimes caused selection not to work properly.
8317
8318         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
8319         entry when tabbing in. (#57743)
8320         
8321         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
8322         user drags up above or down below the entry, move
8323         to the end or the beginning of the entry. (Suggestion
8324         from Jay Cox, #50940)
8325
8326         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
8327         a current selection, then when moving by chars or
8328         words, move to the end of the selection rather than
8329         from entry->current_pos. (Suggestion from Jay Cox,
8330         #50942)
8331         
8332 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
8333
8334         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
8335         set window->decorated. (Patch from Hidetoshi Tajima,
8336         #55846)
8337
8338 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
8339
8340         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
8341         the widget/child realization/mapping invariants.
8342
8343         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
8344         gtk_widget_[get/set]_child_visible() to control
8345         whether visible children of a mapped window are
8346         mapped.
8347
8348         * docs/widget_system.txt: Updated for changes in
8349         container contract, and addition of GTK_CHILD_VISIBLE.
8350
8351         * gtk/gtkcontainer.c: Add generic map()/unmap()
8352         functions that work for almost all containers.
8353
8354         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
8355         gtk_widget_set_child_visible() where necessary.
8356
8357         * gtk/*.c: Remove excess map(), unmap(), and 
8358         realization/mapping invariant enforcing code
8359         from many containers.
8360
8361 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
8362
8363         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
8364         Get the foreground color from 'text', nor 'fg'. (#57568)
8365
8366 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
8367
8368         * gtk/*.c: Patch from Matthias Clasen to remove remove
8369         all instances of g_return_if_fail (foo != NULL); that are
8370         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
8371         since the second check catches the NULL anyways.
8372
8373 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
8374
8375         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
8376         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
8377         GDK_THREADS_ENTER()/LEAVE() pairs.
8378
8379         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
8380         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
8381         pairs. (Problem found by M. Meeks)
8382
8383 2001-07-18  Darin Adler  <darin@bentspoon.com>
8384
8385         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
8386         that we don't get a g_warning message every time we register a new
8387         icon size.
8388
8389         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
8390         using pixel variable of the correct type.
8391         
8392 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
8393
8394         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
8395         so that using X functions on a GdkWindow is possible, if
8396         a little hairy.
8397
8398         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
8399         and ts_origin of a GC, so that external parties can offset/restore
8400         a GC, when using gdk_window_get_internal_paint_info().
8401
8402 2001-07-17  Darin Adler  <darin@bentspoon.com>
8403
8404         * .cvsignore: Ignore the sgml directory made by gtkdoc.
8405         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
8406         instead of the deprecated gtk_window_set_policy.
8407         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
8408         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
8409         function to get rid of warning and some code too.
8410         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
8411         missing const.
8412         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
8413         unused local.
8414         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
8415         const.
8416         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
8417         (gdk_utf8_to_compound_text): Add missing const.
8418         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
8419         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
8420         cast and get rid of an unnecessary one.
8421         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
8422         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
8423         local.
8424         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
8425         Remove unused local.
8426         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
8427         missing const.
8428         * tests/testsocket.c: (add_child): Add cast so the printf format
8429         doesn't make us implicitly depend on what integer type
8430         gtk_socket_get_id returns.
8431         * tests/testtextbuffer.c: Add missing const.
8432         * tests/testtreefocus.c: (main): Remove unused local.
8433         * tests/treestoretest.c: (iter_remove): Remove unused local.
8434         (uppercase_value): Remove unused function.
8435         (make_window): Add statement to quiet the compiler's uninitialized
8436         variable warning.
8437
8438 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
8439
8440         * gtk/gtkrange.c:
8441         (second_timeout): 
8442         (initial_timeout): 
8443         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
8444         (gtk_range_calc_layout): compute the new layout based on an
8445         adjustment->value being passed in as argument.
8446         (gtk_range_button_press): for button2 slider warps, first recalc
8447         the layout, then adjust the value. also, use update_slider_position()
8448         for adjusting the value, so we keep pixel quantisation at which we
8449         usually operate (upon motion or button releases). the reason for this
8450         is that, we can't change the adjustment upon button2 presses to a non
8451         quantised value and upon button2 release re-quantise the value since
8452         that'd alter the value even if we didn't get any motion events (causing
8453         unexpected scroll area warps upon release and/or slider pixel-jitter).
8454         (gtk_range_motion_notify): update the slider position from queried
8455         coordinates, not event coordinates.
8456
8457 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
8458
8459         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
8460         the default gc values are: width=0, CapBut, JoinMiter.
8461
8462 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
8463
8464         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
8465         into account the xpad and ypad when calculating the width and the
8466         height of the pixbuf cel.
8467
8468 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
8469
8470         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
8471         Rename to gtk_radio_menu_item_get_group(), add deprecated
8472         alias. (#57044)
8473
8474         * gtk/gtkfilesel.c: Indentation fix.
8475
8476 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
8477
8478         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
8479         Hasselmann to fix warnings in compat macros. 
8480         (#56773)
8481
8482         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
8483         stupid wrong cast added in last patch.
8484
8485 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
8486
8487         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
8488         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
8489
8490 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
8491
8492         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
8493         missing cast.
8494
8495         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
8496         NULL/FALSE return value confusion.
8497
8498         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
8499         problem when scrollbar completely fills range. (Patch
8500         from  Matthias Clasen, #57047)
8501
8502 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
8503
8504         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
8505         clean up when handling events for move-resize emulation.
8506         (Problem traced down by Matthias Clasen, #57271)
8507
8508 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
8509
8510         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
8511           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
8512           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
8513           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
8514           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
8515           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
8516           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
8517         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
8518
8519 2001-07-09  Peter Williams  <peterw@ximian.com>
8520
8521         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
8522         for when srcdir != builddir
8523
8524 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
8525
8526         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
8527         gtk_tree_model_get_iter_root.
8528
8529         * gtk/gtkliststore.c: Add a bunch of g_return statements.
8530         (gtk_list_store_iter_n_children): Fix up.
8531
8532         * gtk/gtktreestore.c: Add a bunch of g_return statements.
8533
8534 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
8535
8536         * gtk/gtkwidget.c (gtk_widget_class_init):
8537         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
8538         restore some workingness.
8539
8540         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
8541         handle of window type for input-only windows.
8542
8543 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
8544
8545         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
8546         Patch from Gregory Merchan to add 
8547         gtk_button_box_set_secondary(), which separates
8548         the child into a separate group from the normal
8549         buttons. (#56331)
8550
8551         * gtk/gtkdialog.c: Make help buttons secondary by
8552         default.
8553
8554         * gtk/gtkbbox.c: Added a child property "secondary".
8555
8556         * gtk/testgtk.c: Turn on the help button for the 
8557         color selector to check that it properly appears
8558         as secondary.
8559
8560 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
8561  
8562         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
8563         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
8564         Add gdk_set_pointer_hooks() to allow pointer-querying to
8565         be hooked by an event record/playback system like GERD.
8566         (#56914)
8567         
8568 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
8569
8570         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
8571         in the right value of initial_emission to
8572         gtk_widget_set_style_internal (#57091)
8573
8574 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
8575
8576         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
8577         Make compile.
8578
8579         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
8580         with calling gtk_widget_set_style_internal() with
8581         the old style, not the new style. (#56989)
8582
8583 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
8584
8585         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
8586           gtk/gtkwidget.c:
8587         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
8588         not GTK_WIDGET_GET_ANCESTOR ... see 
8589         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
8590         Indicate the best practice in the docs for gtk_widget_get_toplevel().
8591
8592         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
8593         so GtkPlug can give the correct signals when transforming
8594         from a child to a toplevel.
8595         
8596         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
8597         reparentation correctly.
8598
8599         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
8600         Propagate the previous_toplevel argument down properly.
8601
8602         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
8603         of wrong atr list.
8604
8605         * gtk/gtkplug.[ch]: Add an "embedded" signal.
8606
8607         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
8608         signals.
8609
8610         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
8611         functions gtk_plug_get_id(), gtk_socket_get_id(),
8612         to avoid the user having to worry about realization,
8613         and gdkx.h.
8614
8615         * tests/testsocket.c: Extend to try out the new signals
8616         and gtk_plug/socket_get_id().
8617
8618         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
8619         setting of underline attributes.
8620
8621         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
8622         DestroyNotify events from SubstructureNotifyMask
8623
8624         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
8625         Switch GDK_WINDOW_TYPE (window) as needed.
8626
8627         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
8628         allow creation of toplevel windows as children of
8629         foreign windows.
8630
8631         * gtk/gtkplug.c: Remove hacks involving changing private
8632         fields of GdkWindow.
8633
8634         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
8635         exactly the same signals and notification
8636         be emitted for local embedding as for inter-process
8637         embedding.
8638
8639 2001-07-04  James Henstridge  <james@daa.com.au>
8640
8641         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
8642
8643 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
8644
8645         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
8646         XEMBED embedding add a _XEMBED_INFO property to the
8647         client with version number and a "mapped" flags.
8648         Use the mapped flag instead of the racy MapRequestEvent
8649
8650         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
8651         code to reliably set things (when the child is a passive
8652         embedder participating in the XEMBED protocol) intead
8653         of just being a hack for embedding non-participating
8654         programs. Fix various bugs and race conditions.
8655         
8656         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
8657         work by simply making the GtkSocket the gtk parent
8658         of the GtkPlug. Set a flag in this case and make
8659         the GtkPlug work like a normal container by overriding
8660         methods such as check_resize and "chaining past" GtkWindow
8661         to GtkBin.
8662
8663         * gtk/gtkentry.c (gtk_entry_real_activate)
8664           gtk/gtkmain.c (gtk_propagate_event): 
8665         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
8666         
8667         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
8668         gtk_widget_get_ancestor):
8669         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
8670         might not give the expected result and recommend
8671         an alternative.
8672
8673         * tests/testsocket.c tests/testsocket_child.c
8674         tests/testsocket_common.c tests/Makefile.am: Extended
8675         to test different type of adding plugs to sockets
8676         (local,active,passive), and to test mapping/unmapping
8677         the plug.
8678
8679         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
8680         mark the window as destroyed until after we
8681         called _gdk_windowing_window_destroy().
8682         (_gdk_windowing_window_destroy() may use GDK functions
8683         on the window.)
8684
8685         * gdk/x11/gdkinput.c: Remove the check for finalization - 
8686         devices can be finalized under some circumnstances.
8687  
8688         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
8689         small problem with GDK_TYPE_DEVICE.
8690  
8691 2001-07-02  Havoc Pennington  <hp@pobox.com>
8692
8693         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
8694         use constants not atoms.
8695
8696 2001-07-02  James Henstridge  <james@daa.com.au>
8697
8698         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
8699         PANGO_TYPE_TAB_ARRAY.
8700
8701         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
8702         for PANGO_TYPE_TAB_ARRAY.
8703
8704         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
8705         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
8706
8707         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
8708         the file.  Remove Pango types from defs -- they are now defined in
8709         libpango.
8710
8711 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
8712
8713         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
8714
8715         * gtk/gtkobject.c (gtk_object_destroy): invoke
8716         g_object_run_dispose().
8717
8718         * gtk/gtkwindow.c: 
8719         * gtk/gtkwidget.c: 
8720         * gtk/gtkobject.c:
8721         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
8722         method.
8723
8724 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
8725
8726         * gtk/gtktypeutils.c (gtk_type_class): Remove
8727         change check for GTK_TYPE_OBJECT derivation to
8728         G_TYPE_OBJECTS - it's Tim-approved to use this 
8729         for arbitary objects.
8730
8731         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
8732         prefix gtk_container_dequeue_resize_handler().
8733
8734         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
8735         to the hierarachy_changed signal, since you otherwise
8736         have to always keep that around.
8737
8738         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
8739         for extra argument to hierarchy_changed.
8740
8741 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
8742
8743         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
8744         for style to mean "revert to default style"
8745
8746         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
8747           gtk_widget_restore_default_style): Make this functions
8748         deprecated aliases for gtk_widget_set_style (widget, NULL).
8749
8750         * gtk/gtkwidget.[ch]: Remove:
8751            gtk_widget_set_default_style ()
8752            gtk_widget_push_style ()
8753            gtk_widget_pop_style ()
8754         These functions interact are overriden by RC files, and
8755         thus virtually useless, and complicated.
8756
8757 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
8758
8759         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
8760         most of the previous global variables in gtkrc.c. This is
8761         in preparation for multi-head, since each screen can
8762         have different GtkSettings and RC information.
8763
8764         * gtk/gtkrc.[ch]: 
8765
8766         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
8767         GtkSettings parameter to GtkRcStyle::parse.
8768
8769         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
8770         Add two new settings gtk-theme-name, gtk-key-theme-name,
8771         for RC files that are loaded by name after reading
8772         the default RC files.
8773         
8774         * gtk/gtkrc.c: Allow priorities for styles, as wll as
8775         bindings.
8776
8777         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
8778         and use it by default for RC files loaded via 
8779         gtk-theme-name, gtk-key-theme-name.
8780
8781         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
8782         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
8783         tests/testgtkrc: Require pathnames to be absolute.
8784
8785         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
8786         the source when parsing, since the operation of looking up a
8787         pixmap from an RC file depends on the parsing context.
8788
8789         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
8790         reset RC styles on all widgets when files are reparsed.
8791
8792         * tests/testgtk.c (create_rc_file) 
8793           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
8794         Simplify, now that gtk_rc_reparse_all() resets styles on
8795         all widgets itself.
8796
8797         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
8798         return value.
8799
8800         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
8801         GtkSettings argument.
8802
8803         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
8804         gtk_settings_get_global().
8805
8806         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
8807         to get the appropriate GtkSettings for a widget. (For now,
8808         just gets the default GtkSetttings.) 
8809
8810         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
8811           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
8812         changes.
8813
8814         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
8815         getting a style for a path without actually having a widget.
8816         (Allows using a style for a subpart of a widget, for
8817         example.)
8818
8819         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
8820         the RC files to be reloaded for just one GtkSettings
8821         (not sure how useful this really is.)
8822
8823         * gtk/gtkrc.h: Deprecate
8824         gtk_rc_add_widget_name/widget_class/class_style
8825
8826 2001-06-30  Alex Larsson  <alexl@redhat.com>
8827
8828         * gdk/linux-fb/gdkinput-none.c:
8829         * gdk/linux-fb/gdkinput.c:
8830         * gdk/linux-fb/gdkinputprivate.h:
8831         Convert GdkDevice to a GObject.
8832
8833         * linux-fb/gdkprivate-fb.h:
8834         * linux-fb/gdkvisual-fb.c:
8835         Convert GdkVisual to a GObject.
8836
8837 2001-06-29  Alex Larsson  <alexl@redhat.com>
8838
8839         * gdk/gdkvisual.h:
8840         * gdk/gdkcolor.c:
8841         * gdk/x11/gdkx.h:
8842         * gdk/x11/gdkvisual-x11.c:
8843         Convert GdkVisual to a GObject.
8844
8845         * gdk/gdkinput.h:
8846         * gdk/gdkevents.c:
8847         * gdk/x11/gdkinputprivate.h:
8848         * gdk/x11/gdkinput-gxi.c:
8849         * gdk/x11/gdkinput-none.c:
8850         * gdk/x11/gdkinput-x11.c:
8851         * gdk/x11/gdkinput-xfree.c:
8852         * gdk/x11/gdkinput.c:
8853         Convert GdkDevice to a GObject.
8854
8855 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
8856
8857         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
8858         to just plain new, fixing the number of columns, and column types
8859         at creation time.
8860
8861         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
8862
8863         * gtk/gtkcellrenderertext.c
8864         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
8865         height to a specific font.
8866
8867         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
8868
8869         * tests/*c: change to work with new store models.
8870
8871 2001-06-29  Havoc Pennington  <hp@redhat.com>
8872
8873        * Throughout: fixes to compile with G_DISABLE_COMPAT
8874         (s/g_signal_connectc/g_signal_connect/,
8875         s/g_signal_newc/g_signal_new/,
8876         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
8877
8878 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
8879
8880         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8881         add path argument to selection callbacks.
8882
8883 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
8884
8885         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
8886         walk through a model in a depth first manner, with the option to
8887         break out.
8888
8889 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
8890
8891         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
8892         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
8893         column and follow it when draged, rather than a location in the
8894         view. "expander_column" property and drawing functions changed
8895         accordingly.  Fixes bug #55942.
8896
8897         (gtk_tree_view_{set,get}_expander_column): Now works with a
8898         GtkTreeViewColumn* instead of int.
8899
8900 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
8901
8902         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
8903
8904 2001-06-28  Havoc Pennington  <hp@pobox.com>
8905
8906         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
8907         image data to the screen, using a server grab to avoid race
8908         conditions.
8909
8910         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
8911         check for NULL return from gtk_image_new_from_stock(), it never
8912         returns NULL.
8913         (gtk_item_factory_create_item): fix bug where we parsed the stock
8914         ID as an inline pixbuf
8915
8916         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
8917
8918         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
8919         support (should be using binding set here)
8920
8921         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
8922         support (should be using binding set here)
8923
8924         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
8925         support
8926
8927         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
8928
8929         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
8930
8931         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
8932
8933         * gtk/gtkimcontextsimple.c
8934         (gtk_im_context_simple_filter_keypress): keypad
8935
8936         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
8937
8938         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
8939
8940         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
8941
8942         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
8943         should be binding-setted)
8944
8945         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
8946
8947         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
8948
8949         * gtk/gtkcalendar.c: numeric keypad fixes
8950
8951         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
8952         support
8953
8954         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
8955         screwup
8956
8957         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
8958         clip the render area to the drawable's clip region in advance,
8959         so we don't get data from the server that we don't need.
8960
8961         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
8962         check return value of gdk_pixbuf_get_from_drawable(), fall back 
8963         to bilevel alpha if we can't get the pixbuf to composite against.
8964
8965         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
8966
8967         * gdk/gdkimage.c (gdk_image_get_colormap): add
8968         gdk_image_set_colormap, gdk_image_get_colormap
8969
8970         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
8971         take a region of the image, instead of converting the entire
8972         image.
8973
8974         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
8975         keybinding signal. Add default bindings for it. Add default
8976         handler for show_help that shows the tooltip for the widget.
8977
8978         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
8979         "close" keybinding signal, remove key press handler.
8980
8981         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
8982         it's not our usual practice to leave a deprecated function around
8983         with a runtime warning, plus we don't want it to appear in docs,
8984         plus if we make them yellow no one will want to change them
8985         anyhow.
8986
8987 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
8988
8989         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
8990         GTK_WIDGET_REALIZE() for resize queueing.
8991
8992         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
8993         GTK_WIDGET_REALIZE() for post event delivery destruction upon
8994         GDK_DESTROY.
8995         
8996         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
8997         sompensate for former (pre-2.0) connect_after() facility.
8998         (gtk_widget_send_expose): 
8999         (gtk_widget_event): assert the widget is realized, since event delivery
9000         to non-realized widgets is essentially a bug. event handlers should
9001         be able to unconditionally rely on widget->window (unless they
9002         emit events on their own which can trigger widget destruction).
9003         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
9004         logic. event delivery happens as follows:
9005         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
9006         b) if !was_handled in (a) and the widget is still realized, emit event-
9007            specific signal (RUN_LAST handler). returns was_handled.
9008         c) emission of GtkWidget::event-after for notification if the widget is
9009            still realized (regardless of was_handled from previous stages, no
9010            class handler). no return value.
9011         d) was_handled gets passed on to caller, to determine further
9012            propagation. if the widget got unrealized meanwhile, was_handled
9013            is returned as TRUE.
9014
9015         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
9016         gdk_event_get_coords().
9017
9018 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
9019
9020         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
9021         age 0, binary age 0. depend on glib 1.3.7.
9022
9023         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
9024
9025         * gtk/gtkmenubar.c: same here.
9026         
9027         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
9028
9029         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
9030
9031         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
9032         
9033         * gtk/gtkmenubar.c (add_to_window): likewise.
9034         
9035         * gtk/gtktextbtree.c: and here...
9036         
9037         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
9038         
9039         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
9040         
9041         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
9042         
9043         * gtk/gtktreeviewcolumn.c:
9044         (_gtk_tree_view_column_set_tree_view): yet again.
9045
9046         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
9047         signal connections without g_signal_connect_data().
9048         
9049         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
9050         demo of the matter.
9051         
9052         * demos/testpixbuf.c (main): running out of equality phrases for the
9053         ChangeLog, but had to adapt connections here as well.
9054         
9055         * demos/testanimation.c (progressive_timeout): and for the fun of it,
9056         tackled this the same way.
9057         
9058         * tests/testtext.c (create_view): ok, it's becoming a pain at this
9059         point, but had enough enery for one more fix.
9060
9061         * tests/testtreecolumns.c (main): stand up man, do your work!
9062
9063         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
9064         fix, either that's been all of it or CVS gtk is broken yet again.
9065         
9066 2001-06-29  James Henstridge  <james@daa.com.au>
9067
9068         The following changes correspond to bug #56812
9069
9070         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
9071         code for GdkDevice.
9072
9073         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
9074         GdkCursor.
9075
9076 2001-06-19  Havoc Pennington  <hp@pobox.com>
9077
9078         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
9079         for mapping a window without fooling with stacking order, but
9080         updating the "withdrawn" flag
9081
9082         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
9083         filtering as soon as possible, moving move resize and wmspec_check
9084         handling after the event filter.  Make default filter apply to all
9085         events, not just those with no GdkWindow wrapped around the X
9086         window. Fix a FIXME about how the window could be a pixmap using 
9087         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
9088
9089         Also, be robust against events not on a known GdkWindow.
9090
9091         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
9092         gdk_x11_ungrab_server): export reference-counted server grabs, so
9093         other people can grab server over a GDK function that also does
9094         so.
9095
9096 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
9097
9098         * gtk/gtktreeviewcolumn.c
9099         (gtk_tree_view_column_pack_start_cell_renderer): New function to
9100         reflect that you can (hypothetically) pack cell renderers into a
9101         column.
9102         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
9103         (gtk_tree_view_column_cell_is_visible): Move more functionality to
9104         the column.
9105         (gtk_tree_view_column_cell_can_focus): Move more functionality to
9106         the column.
9107
9108         * gtk/gtktreeview.c: Move to use new column-packing code.
9109         (gtk_tree_view_real_expand_row): remove totally braindead code.
9110         (gtk_tree_view_real_collapse_row): ditto.
9111
9112 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
9113
9114         * gtk/gtktreeviewcolumn.c: Fix a typo.
9115         
9116 2001-06-26  Joel Becker  <jlbec@evilplan.org>
9117
9118         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
9119           at the end of the file
9120
9121 2001-06-26  Havoc Pennington  <hp@redhat.com>
9122
9123         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
9124
9125 2001-06-26  Havoc Pennington  <hp@redhat.com>
9126
9127         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
9128         property
9129
9130 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
9131
9132         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
9133         stupid missing statement
9134
9135         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
9136         private function for ATK.  It notifies you of how many _visible_
9137         children are deleted when a node is deleted.  Should be used by
9138         atk only.
9139
9140 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
9141
9142         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
9143         Use new pango_context_get_metrics() to fix problems
9144         with font lists in descriptions. (#56184, reported by
9145         Jonas Borgström)
9146
9147 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
9148
9149         * gtk/gtkiconfactory.c:
9150         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
9151         item factory so inlined pixbufs actually work.
9152
9153 2001-06-25  Havoc Pennington  <hp@redhat.com>
9154
9155         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
9156         s/RESIZEABLE/RESIZABLE/
9157
9158         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
9159
9160 2001-06-25  Alexander Larsson  <alexl@redhat.com>
9161
9162         * configure.in:
9163         Added --enable-fbmanager. This is some experimental code
9164         that lets several GtkFB apps coordinate their access to the
9165         framebuffer.
9166         
9167         * acconfig.h:
9168         Added ENABLE_FB_MANAGER.
9169
9170         * gdk/linux-fb/Makefile.am:
9171         Added gdkfbmanager and gdkfbswitch.
9172
9173         * gdk/linux-fb/gdkkeyboard-fb.c:
9174         * gdk/linux-fb/gdkmouse-fb.c:
9175         * gdk/linux-fb/gdkprivate-fb.h:
9176         Split device init and open so that
9177         they can be opened and closed while switched
9178         away.
9179
9180         * gdk/linux-fb/gdkmain-fb.c:
9181         Add the basic manager communication.
9182
9183         * gdk/linux-fb/gdkrender-fb.c:
9184         Don't update to the shadow fb if we're
9185         blocked by the fb manager.
9186
9187 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
9188
9189         * docs/Changes-2.0.txt: Add note about child property
9190         changes.
9191
9192 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
9193
9194         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
9195         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
9196
9197         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
9198         with un'reffing wrong list reported by Jeff Franks.
9199
9200         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
9201
9202         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
9203         for the default icon. Remove inline XPM.
9204
9205         * gtk/gtkstock.h gtk/gtkiconfactory.c:
9206         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
9207         is used for GTK_STOCK_DND, but it is a bit too small.)
9208
9209         * gtk/stock-icons/stock_dnd_multiple.png
9210         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
9211
9212         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
9213         TRUE when starting a drag. In other cases, we are
9214         just observing. (#52995)
9215
9216         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
9217         function to set the icon for a drag from a GdkPixbuf
9218         or stock ID.
9219
9220         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
9221         Likewise, for drag sources.
9222
9223         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
9224         (Now should be done using the stock system.)
9225
9226 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
9227
9228         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
9229         Removed - didn't work and not particularly useful anyways
9230         if it did. 
9231
9232 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
9233
9234         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
9235         introduced last night that was making things decidedly not work.
9236
9237         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
9238         so that we have getter/setter pairing everywhere it makes
9239         sense. (#55767)
9240
9241         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
9242         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
9243         deprecated compat macro. (#55516)
9244
9245         * gtk/gtklabel.[ch]: Add functions
9246         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
9247         gtk_label_set_label(), which mirror the property API for GtkLabel.
9248         Make gtk_label_get_attributes() only reflect the attributes
9249         set by gtk_label_set_attributes.
9250
9251         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
9252         from gtk_notebook_set_page().
9253
9254 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
9255
9256         * configure.in: Fix tests for XShm.h.
9257
9258         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
9259         gdk_image_new() by use of goto, properly use g_object_unref().
9260
9261 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
9262
9263         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
9264         calls, as GdkImage is an object. these should be g_obejct_unref()
9265         instead but that won't work because of the g_error() statement
9266         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
9267         to spot these places.
9268
9269 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
9270
9271         * modules/input/gtkimcontextxim.c: Fixup some problems with 
9272         text length handling in error cases.
9273
9274         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
9275         a bit to make test actually warn on attempt to allocation
9276         a negative size. (#56101, Matthias Clasen)
9277
9278 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
9279
9280         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
9281         noticed by Brian Cameron.
9282         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
9283         Cameron.
9284
9285 2001-06-22  Hans Breuer  <hans@breuer.org>
9286
9287         * gdk/gdk.def : updated externals
9288
9289         * gdk/win32/gdkdrawable-win32.c : corrected some casts
9290         in GDK_NOTEs
9291
9292         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
9293         to translate coordinates to the internal > 16 bit system
9294         Try to handle WM_WINDOWPOSCHANGED to get better performance for
9295         when moving/resizing
9296
9297         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
9298         and gdk_keymap_get_direction (). The latter is untested for
9299         the RTL case
9300
9301         * gtk/gtk.def : updated externals
9302
9303         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
9304         from pango_language_from_string (), not an already freed pointer
9305
9306         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
9307         binary (-kb) to be useable on windoze
9308  
9309 2001-06-21  Alexander Larsson  <alexl@redhat.com>
9310
9311         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
9312         Update to new PangoLanguage changes.
9313         
9314         * gtk/gtkwindow-decorate.c:
9315         * gtk/gtkwindow.[ch]:
9316         Added setting argument to gtk_window_set_has_frame ()
9317         
9318 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
9319
9320         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
9321         the case without XKB properly.
9322
9323         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
9324         unused gtk_rc_auto_parse variable.
9325
9326         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
9327         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
9328         longer needed with GdkPixbuf.
9329
9330         * gtk/gtkrc.c (_gtk_rc_init): Make private.
9331
9332 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
9333
9334         * gtk/gtkentry.h: Mark deprecated functions with
9335         GTK_DISABLE_DEPRECATED.
9336
9337 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
9338
9339         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
9340
9341         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
9342
9343         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
9344           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
9345           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
9346           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
9347           to recent changes in Pango.
9348
9349         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
9350           to test whether the basic engine honors them.
9351
9352 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
9353
9354         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
9355         gtk_container_child_get_property().
9356
9357 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
9358
9359         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
9360         (gtk_tree_view_move_cursor_page_up_down): implement.
9361
9362 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
9363
9364         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
9365         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
9366         don't use automatic fixed size buffer for printf-ing floats, doubles
9367         can expand to really _huge_ strings, use g_strdup_printf() instead.
9368
9369 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
9370
9371         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
9372         construct property in 1.2 and still needs to be.
9373
9374         * gtk/gtkwidget.c: "composite_child" is not a settable property.
9375
9376 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
9377
9378         * gtk/gtkliststore.c (gtk_list_store_clear): 
9379         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
9380         clear a model.
9381
9382 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
9383
9384         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
9385
9386         * gtk/Makefile.am:
9387         * gtk/gtk.h: disabled GtkPacker compilation.
9388
9389         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
9390
9391         * gtk/gtknotebook.c:
9392         * gtk/gtktable.c:
9393         * gtk/gtkbox.c: ported this over to child properties.
9394
9395         * gtk/gtksettings.c: fetch class properties via
9396         g_object_class_list_properties().
9397
9398         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
9399         child arg interface. use gobjectnotifyqueue.c for child property
9400         notification.
9401
9402         * gtk/gtkwidget.[hc]: provide necessary means for container child
9403         properties, i.e. ::child_notify signal,
9404         gtk_widget_freeze_child_notify(),
9405         gtk_widget_child_notify(),
9406         gtk_widget_thaw_child_notify().
9407
9408         * tests/testgtk.c: removed inferior property handling code, for
9409         property editing, a generic module should be used, and GLE
9410         coincidentally fullfills that purpose.
9411
9412         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
9413         needs to be adapted to g_object_class_list_properties() before this
9414         builds again.
9415
9416 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
9417
9418         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
9419         test if a node is expanded.
9420
9421 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
9422
9423         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
9424         where collapsing a selected row would result in the cursor/anchor
9425         getting screwed up.
9426
9427 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
9428
9429         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
9430         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
9431         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
9432         Now I can really reorder/sort all Store widgets.  treesorttest
9433         seems to just work now.
9434         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
9435         testtreesort worked through a big coincidence all this time.
9436         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
9437         code.
9438         * tests/testtreecolumns.c: Big 'ol warning at the top letting
9439         people know that this code should never ever ever be copied.
9440
9441 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
9442
9443         * gtk/gtkwindow.h: Fixed a small typo, it should be
9444         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
9445         on line 134.
9446
9447 2001-06-14  Havoc Pennington  <hp@redhat.com>
9448
9449         Docs fixups, and:
9450         
9451         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
9452         GTK_DISABLE_DEPRECATED
9453
9454 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
9455
9456         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
9457         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
9458         finish it off tonight, though it basically works now when it's a
9459         list.  Also, I have a sinking feeling neither GtkTreeStore or
9460         GtkListStore actually resort when adding a new item.  I'll look
9461         into it.
9462
9463 2001-06-14  Havoc Pennington  <hp@redhat.com>
9464
9465         * demos/gtk-demo/main.c (load_file): fix bug identified by
9466         warnings I just added to gtktextbuffer
9467
9468 2001-06-14  Havoc Pennington  <hp@redhat.com>
9469
9470         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
9471
9472         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
9473
9474         * gtk/gtktextbtree.c: don't leak node data all over the place.
9475
9476         * demos/gtk-demo/main.c (main): create fontify tags for the right
9477         buffer
9478
9479         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
9480         to mention tags in the same table can't have the same name,
9481         suggested by Skip Montanaro
9482
9483 2001-06-11  Havoc Pennington  <hp@redhat.com>
9484
9485         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
9486         for trying to add two tags with same name to the tag table
9487
9488         * demos/gtk-demo/main.c (main): fix colors ;-)
9489
9490 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
9491
9492         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
9493         that allows grouping together multiple windows so that grabs
9494         within that set of windows only affect those windows.
9495
9496         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
9497         signal for notification when a widget becomes shadowed
9498         by a grab or is no longer shadowed by a grab.
9499
9500         * gtk/gtkwidget.c (gtk_widget_propagate_state)
9501           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
9502         insenstive widgets to maintain a grab.
9503
9504 2001-06-14  Alexander Larsson  <alexl@redhat.com>
9505
9506         * docs/README.linux-fb:
9507         Add some example config files that can be used with the URW fonts.
9508         
9509         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
9510         Set up the color ramps for DirectColor mode.
9511
9512 2001-06-11  Havoc Pennington  <hp@redhat.com>
9513
9514         * Release 1.3.6
9515          
9516 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9517
9518         * gdk/linux-fb/gdkwindow-fb.c:
9519         Unify shaped window code and make it repaint the area that used
9520         to be part of the shape, but isn't anymore.
9521
9522 2001-06-11  Havoc Pennington  <hp@redhat.com>
9523
9524         * NEWS: Updates
9525
9526         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
9527
9528         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
9529         
9530 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9531
9532         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
9533         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
9534         passes zero instead, so do we.
9535         
9536 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9537
9538         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
9539         Deep copy dash_list too.
9540         (_gdk_fb_gc_new): Set default cap_style before
9541         setting values.
9542
9543 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
9544
9545         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
9546         gdk_keymap_get_direction): New functions.
9547
9548 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
9549
9550         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
9551         gtk_tree_model_get_flags by adding a second flag for atk.
9552
9553         * gtk/gtktreemodel.c: make cursor behavior interact better with
9554         mouse presses.
9555
9556 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
9557
9558         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
9559         expand_row/collapse_row to be 2 signals each -- test_expand_row
9560         and row_expanded as well as test_collapse_row and row_collapsed.
9561
9562 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
9563
9564         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
9565         signal name to be changed instead of selection_changed.
9566
9567 2001-06-08  Havoc Pennington  <hp@redhat.com>
9568
9569         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
9570         "scroll_offset" property for notification when the layout offsets
9571         may have changed
9572         (gtk_entry_adjust_scroll): add notify for scroll_offset
9573         (gtk_entry_layout_index_to_text_index): function to compensate for
9574         preedit string when doing coordinate stuff on the entry's layout
9575         (gtk_entry_text_index_to_layout_index): inverse function
9576         (gtk_entry_get_layout_offsets): hook to get current position of
9577         the layout      
9578         (gtk_entry_get_layout): hook to get the layout itself.
9579
9580         * gtk/gtklabel.c (gtk_label_get_layout): new function
9581
9582 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
9583
9584         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
9585         keybinding.
9586         (gtk_tree_view_focus): Fix merge conflict.
9587
9588 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
9589
9590         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
9591         clean up cursor handling.
9592
9593 2001-06-08  Havoc Pennington  <hp@redhat.com>
9594
9595         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
9596         function
9597
9598         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
9599         this function
9600
9601 2001-06-08  Alex Larsson  <alexl@redhat.com>
9602
9603         * gtk/gtkcompat.h.in:
9604         Added compat macros for all old GTK_TYPE_GDK_xxx types.
9605         Fixes bug #52892
9606
9607 2001-06-08  Havoc Pennington  <hp@redhat.com>
9608         
9609         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
9610         parent still
9611
9612 2001-06-08  Havoc Pennington  <hp@redhat.com>
9613
9614         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
9615         don't call g_list funcs on GSList
9616
9617         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
9618         gtk_container_focus(), since some widgets have focusable locations
9619         which are not other widgets. These widgets should not have to be 
9620         containers just to manage the focus. For example, GtkHSV is
9621         currently a container for no good reason. Also, this cleans
9622         up the "if (is_container && is_sensitive && is_drawable)
9623         container_focus ()" mess in widget implementations.
9624
9625         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
9626         function, and have it just call gtk_widget_child_focus().
9627
9628         * gtk/gtkhsv.c: derive from widget not container
9629         
9630         Throughout: fix to reflect GtkContainer::focus change
9631         
9632 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
9633
9634         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
9635         range.  Fix bug #55921
9636
9637         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
9638         (#55920).
9639
9640 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
9641
9642         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
9643         and gdk_keymap_get_current_direction().
9644
9645         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
9646           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
9647         the current locked group, use it to set the keymap
9648         direction.
9649
9650         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
9651         to determine whether we draw a split cursor or use
9652         a jumping cursor based on the current direction.
9653
9654         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
9655         Obey the split cursor setting. 
9656
9657 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
9658
9659         * gtk/gtkimmulticontext.c (activate_cb): Only activate
9660         when toggling on, not when toggling off... (#55906)
9661
9662 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
9663
9664         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
9665         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
9666         in docs. (#55812, Vitaly Tishkov)
9667
9668 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
9669
9670         * demos/gtk-demo/main.c (create_tree): Changed signal name from
9671         selection_changed to changed in signal connection to GtkTreeSelection,
9672         also used g_signal_connectc since GtkTreeSelection is now a GObject.
9673
9674 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
9675
9676         * gtk/gtktreeselection.c: Now it's a GObject instead of a
9677         GtkObject.  The GtkTreeSelection::selection_changed signal is now
9678         the GtkTreeSelection::changed signal.
9679
9680         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
9681         object.
9682
9683         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
9684         object.
9685
9686 2001-06-07  Havoc Pennington  <hp@redhat.com>
9687
9688         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
9689
9690 2001-06-07  Havoc Pennington  <hp@redhat.com>
9691         
9692         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
9693         (not tested yet because with absolute path to srcdir I can't build
9694         atk, but it was broken anyway so this may help) 
9695
9696 2001-06-07  Havoc Pennington  <hp@redhat.com>
9697
9698         * configure.in: output m4macros/Makefile
9699         
9700 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
9701
9702         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
9703         buttons.  Fixes #55460 reported by matthiasc@poet.de.
9704
9705 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
9706
9707         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
9708         expansion/collapsing so it only happens in one place.
9709         (gtk_tree_view_real_expand_row): ditto.
9710
9711 2001-06-07  Havoc Pennington  <hp@redhat.com>
9712
9713         * tests/Makefile.am: add missing -I flag
9714
9715         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
9716
9717         * configure.in: use pkg-config to see if GModule is
9718         supported; fix to properly turn on included loaders 
9719         when GModule isn't supported; don't use AC_CHECK_LIB 
9720         when libs are not installed yet
9721
9722         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
9723
9724         * Makefile.am (SUBDIRS): add m4macros subdir
9725
9726         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
9727         dependencies also.
9728
9729 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
9730
9731         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
9732         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
9733
9734 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
9735
9736         * gtk/gtktreeview.c
9737         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
9738         bindings to expand and collapse rows.
9739         (gtk_tree_view_real_select_cursor_parent): New key binding.
9740         (gtk_tree_view_real_toggle_cursor_row): New key binding.
9741
9742         * gtk/gtkmarshal.list: new
9743         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
9744
9745 2001-06-06  Havoc Pennington  <hp@redhat.com>
9746
9747         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
9748
9749         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
9750         Down to move visually rather than logically, since it confuses 
9751         people. Add -/+ and Ctrl--/+ bindings for logical movement.
9752
9753 2001-06-06  Alex Larsson  <alexl@redhat.com>
9754
9755         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
9756         Fix up error messages.
9757
9758 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
9759
9760         * gtk/gtktooltips.h: Include gtkwidget.h 
9761         (#55798, Karl Nelson)
9762
9763         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
9764         a valid latin-1 character. (Marc Lehmann, #35467)
9765
9766         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
9767         (Marc Lehmann, #35467)
9768         
9769 2001-06-05  Alex Larsson  <alexl@redhat.com>
9770
9771         * demos/gtk-demo/appwindow.c (do_appwindow):
9772         Don't swap the order of the args to gtk_widget_destroyed.
9773
9774         * tests/testgtk.c (destroy_properties):
9775         Don't crash when the properties window is destroyed.
9776
9777         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
9778         Use with_mnemonics to handle the case of stock items with
9779         underscores in them.
9780
9781 2001-06-05  Havoc Pennington  <hp@redhat.com>
9782
9783         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
9784         gtk_text_iter_reorder
9785
9786 2001-06-05  Havoc Pennington  <hp@redhat.com>
9787
9788         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
9789
9790 2001-06-05  Havoc Pennington  <hp@redhat.com>
9791
9792         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
9793         to the range that was set
9794
9795         * gtk/gtkrange.c: add value_changed signal, primarily 
9796         intended for use with GtkScale
9797         (gtk_range_set_increments): new function
9798         (gtk_range_set_range): new function with weird name
9799         (gtk_range_set_value): new function
9800         (gtk_range_get_value): new function
9801
9802         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
9803         from gtk_spin_button_get_value_as_float(). Compat #define
9804         added for get_value_as_float.
9805
9806         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
9807
9808         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
9809
9810 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
9811
9812         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
9813
9814 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
9815
9816         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
9817
9818         * tests/testgtk.c (create_tooltips): Remove usage of
9819         gtk_widget_set().
9820
9821 2001-06-05  Havoc Pennington  <hp@redhat.com>
9822
9823         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
9824
9825         Applying patch from Jeff Franks, with function docs added.
9826         
9827         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
9828         remove call to set_mnemonic_widget, change docs a bit.  
9829
9830         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
9831         new function
9832
9833         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
9834         new function
9835
9836         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
9837
9838         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
9839         function
9840         (gtk_radio_button_new_with_mnemonic_from_widget): new function
9841
9842         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
9843         new function
9844
9845         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
9846         function        
9847
9848         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
9849         auto-selection of mnemonic widget.
9850
9851 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
9852
9853         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
9854         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
9855         (gtk_tree_view_column_set_min_width): ditto.
9856
9857 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
9858
9859         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
9860         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
9861
9862 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
9863
9864         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
9865         gtk_clist_thaw().
9866
9867 2001-06-04  Havoc Pennington  <hp@pobox.com>
9868
9869         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
9870 r       eleases for buttons 6, 7
9871
9872 2001-06-04  Havoc Pennington  <hp@redhat.com>
9873
9874         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
9875         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
9876         #55562
9877
9878 2001-06-04  Havoc Pennington  <hp@redhat.com>
9879
9880         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
9881         where text_view->layout == NULL by assuming its size is 0, 
9882         i.e. same as if we haven't done any reflow. Reported by 
9883         Hidetoshi Tajima #55448 
9884
9885 2001-06-04  Havoc Pennington  <hp@redhat.com>
9886
9887         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
9888         and 7 for scroll left/right, from Thomas Broyer
9889
9890 2001-05-10  Havoc Pennington  <hp@redhat.com>
9891
9892         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
9893         we need to parse the xsetting as if it were an RC file string.
9894
9895         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
9896         value of palette from settings, not from static variable
9897
9898         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
9899         xsettings translation table
9900
9901         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
9902         hardcoding the toolbar style conflicts with new customizable 
9903         toolbar style philosophy
9904         (gtk_toolbar_class_init): add settings for default toolbar style;
9905         these are used unless the app specifically forces a toolbar style
9906
9907         * gtk/gtksettings.c (settings_install_property_parser): only
9908         return at the start if we warn and parser == NULL
9909
9910         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
9911         palette changed handler so we don't notify dead color selections
9912
9913         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
9914         xthickness/ythickness of 0 or 1 properly 
9915         (gtk_default_draw_resize_grip): clear the background behind the
9916         resize grips, and align to bottom right if we square the 
9917         area to be drawn.
9918
9919         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
9920         statusbar label to 1, so it doesn't make toplevels resize oddly
9921         (gtk_statusbar_size_request): add grip size to request
9922         (gtk_statusbar_size_allocate): hack so the hbox still works with 
9923         the grip size in the request
9924
9925         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
9926         bug where showing all on a toplevel makes the toolbar 
9927         button text appear despite the toolbar mode
9928
9929         * gtk/gtkmenubar.c: add internal padding style property
9930
9931         * gtk/gtktoolbar.c: Add internal padding style property; add
9932         shadow type style property
9933
9934         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
9935         state; and put Container::border_width outside the frame
9936
9937         * gtk/gtktextview.c: don't draw focus rectangle if we're in
9938         interior focus mode, we just use blinking cursor
9939
9940 2001-06-04  Havoc Pennington  <hp@redhat.com>
9941
9942         * configure.in: Make gdk-pixbuf have same version number as GTK
9943
9944 2001-06-04  Havoc Pennington  <hp@redhat.com>
9945
9946         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
9947         digits greater than 6. If there actually are limits (which there
9948         likely aren't), should clamp to them not warn.
9949         (gtk_spin_button_new_with_range): don't take log of 0
9950         (gtk_spin_button_size_request): use digits to compute size
9951         request, rather than step increment.
9952
9953         * tests/testgtk.c (create_spins): test larger values of digits
9954         
9955         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
9956         font on map not expose, so we don't get weirdness during scrolling
9957
9958 2001-06-04  Havoc Pennington  <hp@redhat.com>
9959
9960         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
9961         Sam Solon, bug #54577, update value even if not drawable.
9962
9963 2001-06-04  Havoc Pennington  <hp@redhat.com>
9964
9965         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
9966         SCROLL_LEFT, reported by Thomas Broyer.
9967
9968 2001-06-04  Havoc Pennington  <hp@redhat.com>
9969
9970         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
9971         Process updates immediately, to prevent funny lag effect
9972         when scrolling, at some mild potential efficiency cost.
9973
9974 2001-06-04  Havoc Pennington  <hp@redhat.com>
9975
9976         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
9977         slider on the click.
9978
9979 2001-06-03  Havoc Pennington  <hp@pobox.com>
9980
9981         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
9982         hscale/vscale details, so we can use it for scrollbar as well.
9983
9984         * tests/testgtk.c (reformat_value): honor digits from GtkScale
9985
9986         * gtk/gtkenums.h (GtkTroughType): Remove this enum
9987         (GtkScrollType): add START and END from GtkTroughType
9988
9989         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
9990         its x/y arguments
9991
9992         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
9993         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
9994         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
9995         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
9996         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
9997
9998         Notable changes in the process:
9999          
10000         - stepper_size style property is the height for vertical 
10001           ranges, width for horizontal; the other dimension matches
10002           the trough size
10003         - add ability to do NeXT-style steppers (and several other styles
10004           that don't make any sense)
10005         - added min_slider_length, fixed_slider_length properties to
10006           GtkScrollbar
10007         - cleaned some private (or at least useless) functions out of
10008           gtkscale.h    
10009         - moved bindings to GtkScale from subclasses, even arrow keys,
10010           since blind users don't know scale orientation.
10011         - change move_slider action signal to use new GtkScrollType,
10012           remove GtkTroughType argument
10013         - digits rounds the values a range will input to the given 
10014           number of decimals, but will not try to force adjustment 
10015           values set by other controllers. That is, we no longer
10016           modify adjustment->value inside a value_changed handler.
10017         - added getters for GtkScale setters
10018         - middle-click begins a slider drag
10019         
10020 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
10021
10022         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
10023         getting the focus code to work.
10024         (gtk_tree_view_class_init): Add a bunch of keybindings.
10025
10026         * gtk/gtktreeviewcolumn.c
10027         (gtk_tree_view_column_set_cell_data_func):
10028         s/GtkCellDataFunc/GtkTreeCellDataFunc.
10029         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
10030         of "properties_changed" to help justify the death of the latter
10031         signal. (-:
10032
10033         * tests/testtreefocus.c (main): Let some columns be focussable to
10034         test focus better.
10035
10036 2001-06-01  Havoc Pennington  <hp@redhat.com>
10037
10038         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
10039         
10040         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
10041         overwrite in overwrite mode if we already deleted the selection
10042         and replaced it with new text.  
10043
10044         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
10045         selection to an empty range, clear the clipboard if we owned it.
10046         (gtk_label_set_selectable): give up selection if we become
10047         unselectable.
10048         (gtk_label_state_changed): override state changed to unselect text
10049         when insensitive
10050         (get_text_callback): add paranoia check that indexes aren't
10051         outside of label->text
10052         (gtk_label_select_region): make -1 for start_offset mean "end of
10053         label," for consistency with GtkEditable
10054
10055         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
10056         GTK_DIALOG_NO_SEPARATOR flag
10057
10058 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
10059
10060         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
10061         notifications on non-existant "enable_arrow_keys".
10062         (#53753, Skip Montanaro)
10063
10064 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
10065
10066         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
10067         GDK_TYPE_RECTANGLE.
10068
10069         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
10070         of allocation argument be GDK_TYPE_RECTANGLE.
10071
10072 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
10073
10074         * gtk/gtkoptionmenu.c: Account for the fact that the border
10075         width is _outside_ the window. (Fixes #54585, bug found
10076         by Bastien Nocera.)
10077
10078 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
10079
10080         * gtk/gtksettings.c (gtk_settings_get_property): Validate
10081         value from GDK settings against parameter spec.
10082
10083         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
10084         to temporary values and use g_value_transform(), since
10085         thinking that GValue was going to be easy or efficient
10086         to use was, of course, a mistake.
10087
10088         * gtk/gtksettings.c: Add cursor blink setting.
10089         
10090         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
10091
10092         * gtk/gtkentry.c: Add cursor blinking.
10093
10094         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
10095         cursor blink global settings.
10096
10097         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
10098         for :text_position in places where it is missing.
10099
10100 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
10101
10102         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
10103
10104 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
10105
10106         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
10107         not pkg-config. (#51032)
10108
10109         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
10110         (fixes #51952, James Henstridge)
10111         
10112 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
10113
10114         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
10115         Rename to the more correct gtk-go-up.
10116
10117         * gtk/stock-icons/stock_menu_sort_ascending.png:
10118         Added new file.
10119         
10120         * gtk/stock-icons/stock_menu_sort_descending.png:
10121         Changed to show descending instead of ascending.
10122
10123         * gtk/gtkiconfactory.c:
10124         Added menu size icon to sort ascending.
10125
10126         * gtk/stock-icons/Makefile.am:
10127         Added stock_menu_sort_ascending.png.
10128         
10129         * gtk/gtkseparatormenuitem.c:
10130         Use correct typenames.
10131
10132 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
10133
10134         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
10135         gulong as in GSignal.
10136
10137 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
10138
10139         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
10140         instances of GtkCellRenderer in code (all but dnd icon code).
10141         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
10142         there, and I can do multiple Cells per column.
10143
10144         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
10145
10146         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
10147         when model was unreffed prior to removing the row reference.
10148
10149 2001-05-25  Havoc Pennington  <hp@redhat.com>
10150
10151         * gtk/gtkiconfactory.c: fix so that default icons are created if 
10152         you call gtk_stock_list_ids()
10153
10154         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
10155         in list
10156
10157 2001-05-25  Havoc Pennington  <hp@redhat.com>
10158
10159         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
10160         set can render without falling back to missing image icon
10161
10162         * gtk/gtktextview.c (gtk_text_view_size_request): request full
10163         size of text, instead of random values
10164
10165         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
10166         size of tree view, instead of random values
10167
10168         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
10169         image in an appropriate size
10170
10171         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
10172         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
10173
10174         Throughout: fix GTK_STOCK_BUTTON_ instances
10175         
10176         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
10177         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
10178         Add a bunch of new stock items/icons
10179
10180         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
10181         new function, convenience for inserting columns with a data func
10182
10183         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
10184         (_gtk_icon_factory_list_ids): use list of all factories to
10185         generate a list of all known IDs
10186
10187         * gtk/gtkstock.c (gtk_stock_list_ids): replace
10188         gtk_stock_list_items() with a function that returns all IDs known
10189         including those for GtkIconFactory.
10190
10191 2001-05-25  Hans Breuer  <hans@breuer.org>
10192
10193         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
10194         work -> check boxes and radio buttons are drawn now, even on win9x.
10195         Improved line settings a bit, still no clue how to get really dotted
10196         lines on win9x, on NT it's PS_ALTERNATE.
10197
10198         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
10199         GDK_HINT_MIN_SIZE as well
10200
10201         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
10202
10203         * gtk/gtk.def : updated
10204
10205         * gtk/gtktreeprivate.h : change column_drop_func to be a function
10206         pointer not a function pointer pointer
10207
10208         * tests/testdnd.c : include <stdlib.h> for putenv prototype
10209
10210         * tests/testsocket.c : made it compile on win32 again
10211
10212         * tests/makefile.msc : one more test-app uses prop-editor.obj
10213
10214 2001-05-22  Havoc Pennington  <hp@pobox.com>
10215
10216         * gtk/gtkbin.c (gtk_bin_get_child): New function
10217
10218 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
10219
10220         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
10221         to ignore when doing compose processing.
10222
10223 2001-05-22  Joe Shaw  <joe@ximian.com>
10224
10225         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
10226         Simplify as suggested by Havoc. Just get the last iter and work
10227         backward to the tag instead of getting a line and working back from
10228         there. Fixes passing in an invalid offset to
10229         iter_init_from_byte_offset().
10230
10231 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
10232
10233         * gtk/gtktreeview*.h: 
10234         * gtk/gtkcell*.h:
10235         * gtk/gtk*store.h:
10236         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
10237         macros to all objects.
10238
10239 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
10240
10241         * gtk/gtkcellrenderertext.c
10242         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
10243         with very large (TM) amounts of text.  May be moved to
10244         GtkCellRenderer in the future, though I'm not sure it wants to be
10245         this accessible.
10246
10247         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
10248         More sanity brought to this class.  I like it.
10249
10250         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
10251         case.  Kids, don't try this at home.
10252
10253         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
10254         convenience function.
10255
10256         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
10257
10258 2001-05-21  Alexander Larsson  <alexl@redhat.com>
10259
10260         * gtk/gtkfontsel.c:
10261         Added properties. Based on patch by Lee Mallabone.
10262
10263         * gtk/gtkruler.c:
10264         * gtk/gtkhruler.c:
10265         * gtk/gtkvruler.c:
10266         * gtk/gtktext.c:
10267         * gtk/gtktextview.c:
10268         Converted GtkArg to GParam. Based on patches by John Margaglione.
10269
10270         * tests/Makefile.am:
10271         * tests/testtext.c:
10272         Add a property editor to testtext.
10273         
10274 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
10275
10276         * gtk/gtk{h,v,}paned.c: Only show the separator if 
10277
10278         * configure.in: Fixed reversed conditional causing all image
10279         libraries to be linked in.
10280
10281 2001-05-21  Joe Shaw  <joe@ximian.com>
10282
10283         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
10284         that top_y needs to be >= 0.
10285
10286 2001-05-11  Havoc Pennington  <hp@pobox.com>
10287         
10288         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
10289         losing connection to the X server.
10290
10291 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
10292
10293         * configure.in: Start checks for X from pangox/pangoxft
10294         CFLAGS to avoid duplicate libraries.
10295
10296         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
10297
10298         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
10299         to include gobject.
10300         
10301 2001-05-18  Alexander Larsson  <alexl@redhat.com>
10302
10303         * gtk/gtkspinbutton.c:
10304         Convert GtkArgs to GParams. Based on patch by John Margaglione.
10305         Also do size request reasonable for MAXDOUBLE. Previously it printed
10306         the limits to a buffer and overran it. Instead do it using log10() and
10307         limit the width to 10 digits.
10308         
10309         * gtk/gtkwidget.c (gtk_widget_get_property):
10310         Correctly handle setting the parent property to NULL.
10311
10312 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
10313
10314         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
10315         style attributes even if the widget isn't realized.
10316
10317         * demos/gtk-demo/main.c: Use a slightly smaller font.
10318
10319 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
10320
10321         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
10322         This is something that only a widget writer would ever want
10323         to change.
10324
10325         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
10326         gtk_signal_emit_by_name().
10327
10328         * gtk/gtkviewport.c: Fix some warnings.
10329
10330         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
10331         allowing the requisitions of multiple widgets to be grouped
10332         together.
10333
10334         * tests/testgtk.c: Add GtkSizeGroup test
10335
10336         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
10337
10338         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
10339         warnings.
10340
10341         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
10342
10343 2001-04-28  Martin Baulig  <baulig@suse.de>
10344
10345         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
10346         to gtk_image_menu_item_set_icon() and made it work if there's already
10347         an image.
10348         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
10349         (gtk_image_menu_item_new_with_label): New function.
10350
10351 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
10352
10353         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
10354         highlighting code!!!!  The result is okay so long as you don't try
10355         to stress it.  It also highlights a bug in the TextView so it's in
10356         an unproportional font right now until it's fixed.
10357
10358         *demos/gtk-demo/*.c: Clean up code a bit to make it
10359         ugly-parser(TM) friendly. (-:
10360
10361 2001-05-17  Joe Shaw  <joe@ximian.com>
10362
10363         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
10364         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
10365         if it is only partially onscreen.
10366
10367 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
10368
10369         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
10370         not by characters.
10371
10372         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
10373         are not zero or one; that is, when graphemes of multiple characters
10374         are involved.
10375
10376         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
10377         FIXME.
10378
10379 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
10380         
10381         * gtk/gtkbbox.c:
10382         Add properties, based on patch by Lee Mallabone.
10383
10384         * gtk/gtknotebook.c:
10385         * gtk/gtktoolbar.c:
10386         Convert from GtkArg to GParam, based on patch by John Margaglione.
10387         
10388         * gtk/gtkhscale.c:
10389         * gtk/gtkvscale.c:
10390         * gtk/gtkhscrollbar.c:
10391         * gtk/gtkvscrollbar.c:
10392         * gtk/gtkrange.c:
10393         Move adjustment property to GtkRange.
10394
10395         * gtk/gtklabel.c:
10396         Setup mnemonics on property changes
10397
10398         * gtk/gtkwidget.c (gtk_widget_get_property):
10399         GdkExtensionMode is an enum, not a flag. Set it with
10400         g_value_set_enum ().
10401
10402         * tests/prop-editor.c:
10403         Better propery editor.
10404
10405         * tests/testgtk.c:
10406         Add new property test. Pass zero to the property editor to
10407         get properties from all derived types.
10408         
10409 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
10410
10411         * autogen.sh (have_automake): Require libtool-1.4,
10412         automake-1.4p1.
10413
10414         * acinclude.m4: Remove libtool macros.
10415
10416         * gdk-pixbuf/Makefile.am: Add dependencies to loade
10417         modules.
10418
10419         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
10420         for libgdk.
10421
10422         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
10423         libgdk.la for libgtk.
10424
10425         * modules/input/Makefile.am: Make modules have full
10426         dependencies.
10427
10428 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
10429
10430         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
10431         #54699 where paths weren't being checked for correctness.
10432
10433 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
10434
10435         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
10436         in any order you wan, whether or not the column is added to the
10437         tree, or the tree is realized.  Yay!
10438
10439         * gtk/gtktreeviewcolumn.c
10440         (gtk_tree_view_column_setup_sort_column_id_callback): handle
10441         sorting columns a lot saner
10442
10443         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
10444         new function to actually set wether or not a column is
10445         reorderable.
10446
10447         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
10448         if we have 'em.
10449
10450         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
10451         Fix nasty bug where we were showing the button just before
10452         realizing it.  As a result, the parent window was
10453         tree_view->window instead of tree_view->priv->header_window.
10454
10455         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
10456         to let you easily reorder a list or tree.
10457
10458 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
10459
10460         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
10461         from args to properties.
10462
10463 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
10464
10465         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
10466         from args to properties. (#51957)
10467
10468         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
10469         calls to after ->set_property call.
10470
10471 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
10472
10473         * tests/prop-editor.c: Block against redundant changes.
10474
10475         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
10476         properties.
10477
10478 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
10479
10480         * gdk/gdkpixmap.h: Remove creative formatting.
10481
10482 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
10483
10484         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
10485         property API. (#51669)
10486
10487         * gtk/gtkscale.c: Patch from John Margaglione converting to
10488         property API. (#51891)
10489
10490         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
10491         to property API. (#50985)
10492
10493 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
10494
10495         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
10496         buffering state across expose event, so we still call end_paint().
10497
10498 2001-05-11  Alexander Larsson  <alexl@redhat.com>
10499
10500         * gtk/gtkhsv.c (paint_triangle):
10501         Expose the ring in the triangle at the correct place when
10502         exposing just a part of the triangle.
10503
10504         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
10505         Return FALSE, or window focusing will not work.
10506
10507 2001-05-11  Havoc Pennington  <hp@pobox.com>
10508
10509         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
10510         #54144
10511
10512         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
10513         bug #54330
10514
10515 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
10516
10517         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
10518         propagate exposes to NULL child.
10519
10520         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
10521         against not having one of the scrollbars.
10522
10523         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
10524         we don't keep a mnemonic window if we have no mnemonic installed.
10525
10526 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
10527
10528         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
10529         it has the _important_ side effect of initializing a class.
10530
10531 2001-05-10  Alexander Larsson  <alexl@redhat.com>
10532
10533         * gdk/linux-fb/gdkprivate-fb.h:
10534         Make sure you can compile out the implementation/wrapper assert
10535         macros.
10536
10537         * gdk/linux-fb/gdkdrawable-fb2.c:
10538         Check implementation/wrappers, initialize type for pixmap dummys.
10539
10540         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
10541         Hide the cursor if reading from the screen.
10542
10543         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
10544         Fix sign bug in tiling code.
10545
10546         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
10547         Handle background pixmaps.
10548
10549 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
10550
10551         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
10552         function to let user control where columns are dragged.
10553
10554         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
10555         Escape is pressed.
10556
10557 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
10558
10559         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
10560         "columns_changed" signal.
10561         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
10562         motion code to draw arrows to the side if indicator is outside the
10563         widget.
10564         (gtk_tree_view_map_expanded_rows): Implement.
10565
10566 2001-05-07  Alexander Larsson  <alexl@redhat.com>
10567
10568         * demos/testpixbuf-save.c: 
10569         * demos/testpixbuf-drawable.c:
10570         Include gdkfb.h on linux-fb.
10571
10572 2001-05-07  Alexander Larsson  <alexl@redhat.com>
10573
10574         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
10575         New function for getting toplevel window at position.
10576         (gdk_drag_find_window): Use get_toplevel_window () instead
10577         of gdk_window_get_pointer(). (gdk_drag_status): Use
10578         correct context for getting window.
10579
10580         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
10581         g_strdup the atom name.
10582
10583         * gdk/linux-fb/gdkwindow-fb.c:
10584         Costmetic fix.
10585
10586         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
10587         Add code for changing cursor on linux-fb backend (same as
10588         win32).
10589
10590 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
10591
10592         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
10593         present before doing anything with it.  Patch from Håvard Kvålen
10594         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
10595         report was not for the development branch of GTK+, but it applies
10596         anyways).
10597
10598 2001-05-04  Havoc Pennington  <hp@redhat.com>
10599
10600         * configure.in: fix some shell typos
10601
10602         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
10603
10604         * gtk/gtkimage.c: handle animations
10605
10606         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
10607         border_width * 2, not just border_width
10608
10609         * gtk/gtkscale.c: add "format_value" signal to allow people
10610         to override the way values are drawn.
10611         (gtk_scale_get_value_size): fix width/height mistake,
10612         and compute size from actual displayed text, not 
10613         from made-up text.
10614
10615         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
10616         signal registration
10617
10618         * tests/testtext.c: Add "Remove all tags" menu item for testing
10619
10620         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
10621
10622         * demos/gtk-demo/main.c (main): add hack so we can find modules
10623         without installing gtk
10624
10625         * demos/gtk-demo/textview.c (insert_text): demo font scaling
10626
10627         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
10628         factor)
10629         (gtk_cell_renderer_text_set_property): remove some bogus
10630         g_object_notify
10631
10632         * gtk/gtktexttag.c: add "scale" property which is a font scaling
10633         factor
10634
10635         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
10636         to layout
10637
10638         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
10639         gtk_text_iter_is_first
10640
10641 2001-01-06  Hans Breuer  <hans@breuer.org>
10642
10643         * gdk/gdk.def : updated exports
10644
10645         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
10646         gdk won't compile anymore
10647  
10648         * gdk/win32/gdkevents-win32.c : initialize ret_val when
10649         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
10650         Improved gdk_flush () to not only do pending drawing operations
10651         but also process all currently pending events. This should make
10652         the behaviour more similar to the X11 version.  
10653
10654         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
10655         option needs to be set even if there is no GDK_GC_BACKGROUND.
10656         (gdk_win32_hdc_get) : use predraw_set_background () independent
10657         of value_mask. This allows to draw dashed lines leaving the original
10658         background intact.
10659
10660         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
10661         after processing, because we can't reuse it as the X11 version does.
10662
10663         * gtk/gtk.def : updated exports
10664
10665         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
10666         would like to get rid of this file again, and use straight
10667         makefile.msc again, as the other Gtk+ subdirs do)
10668
10669         * test/makefile.msc (new file) : build the test apps here
10670
10671 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
10672
10673         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
10674         strike-through setting
10675         (gdk_draw_layout_line_with_colors): Render strike-through
10676
10677 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
10678
10679         * Release 1.3.5
10680
10681         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
10682
10683         * NEWS: Updated
10684
10685         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
10686         Makefile breakage.
10687
10688 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
10689
10690         * demos/gtk-demo/images.c (progressive_timeout): Fix
10691         typo in filename.
10692
10693         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
10694         out FIXME warning; just too annoying.
10695
10696 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
10697
10698         * gdk/linux-fb/gdkcolor-fb.c:
10699         Better error messages.
10700
10701         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
10702         Initialize abs_x and abs_y.
10703         
10704         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
10705         Correct handling of stipple offset.
10706
10707         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
10708         Treat directcolor framebuffers as truecolor.
10709         
10710 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
10711
10712         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
10713         dependency on Atk for accessibility support.
10714
10715         * configure.in **/Makefile.am: Major reworking of substituted
10716         variables for CFLAGS/LIBS to make a lot more sane and 
10717         keep the the compile/link lines a bit shorter.
10718
10719         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
10720
10721 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
10722
10723         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
10724         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
10725         use _gtk_boolean_handled_accumulator.
10726
10727 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
10728
10729         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
10730         to fix things so clicking inside selection leaves cursor
10731         at point where clicked. (#50324)
10732
10733         * gtk/gtksettings.c (gtk_settings_class_init): Restore
10734         sane value for default double click time.
10735
10736         * tests/testtext.c (test_init): Really path to input modules.
10737
10738 2001-05-03  Sven Neumann  <sven@convergence.de>
10739
10740         * demos/testpixbuf-save.c: include target-specific headers as
10741         done in testpixbuf-drawable.c
10742
10743 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
10744
10745         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
10746         new_text_length appropriately when we run into the 
10747         size limit for the entry. (#53445, reported by Jeff Franks)
10748
10749         * tests/testgtk.c (create_entry): Remove most of the
10750         property toggle buttons. Replace with a "Props" button
10751         that brings up a property editor.
10752
10753         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
10754         Split the property editor code out for reuse, improve.
10755
10756 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
10757
10758         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
10759         trap errors around calls to XSetInputFocus since we have
10760         no way of knowing reliably whether we are viewable or
10761         not. (#53947)
10762
10763 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
10764
10765         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
10766         fix bug in dropping columns.  Moving columns now basically works
10767         modula some fine tuning.
10768
10769 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
10770
10771         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
10772         autoscroll support.  It mostly works, but could use some fine
10773         tuning.
10774         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
10775         Actually move the column.
10776
10777 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
10778
10779         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
10780           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
10781           New default theme! A slighly improved version of the 2.0 Raleigh
10782           theme, with Windows-esque focus/drawing default. 
10783           (GtkWidget::interior_focus defaults to TRUE.)
10784
10785         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
10786
10787 2001-04-30  Havoc Pennington  <hp@pobox.com>
10788
10789         * tests/testtext.c (line_numbers_expose): fix to work with
10790         gtk_paint_layout change
10791
10792 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
10793
10794         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
10795           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
10796           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
10797           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
10798
10799         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
10800           with GtkWidget::interior_focus = TRUE better.
10801
10802         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
10803         ::default_outside_border for more flexibility.
10804
10805         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
10806         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
10807         change that had to be made with g_object_get.
10808
10809 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
10810
10811         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
10812         (gtk_tree_view_move_column_after): Clean up interface. 
10813
10814 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
10815
10816         * gtk/gtkpacker.h:
10817         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
10818          to gtkenum.h.
10819
10820         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
10821         handled in switch).
10822
10823         * gtk/Makefile.am:
10824         (gtk.defs): generate enum portions with  glib-mkenums.
10825         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
10826         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
10827         
10828         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
10829         addition.
10830
10831         * docs/Changes-2.0.txt: keep a note on signal handlers now
10832         not getting emitted during the emission they were connected within.
10833
10834 2001-04-28  Havoc Pennington  <hp@pobox.com>
10835
10836         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
10837
10838 2001-04-24  Havoc Pennington  <hp@redhat.com>
10839
10840         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
10841         (gtk_text_layout_move_iter_to_next_line): fix these two for
10842         invisible text, lots of other stuff still hosed.
10843
10844         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
10845         new function, replaces the get/set palette stuff. This function 
10846         is intended for use by libgnomeui which should set the hook to a
10847         thing which sets the palette in GConf, and we need the
10848         GConf-to-xsettings proxy which will result in the change being
10849         propagated back to the GTK app.
10850
10851         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
10852         about unusable signals that it may be because the signal has 
10853         parameters.
10854
10855         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
10856         style, otherwise gtkrc.c won't know to create a new GtkStyle for
10857         it.
10858         (gtk_widget_modify_color_component): call
10859         gtk_widget_modify_style() so the rc style will get copied.
10860         (gtk_widget_modify_font): ditto
10861
10862         * gtk/gtkrc.c: make a couple variables static
10863
10864         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
10865         help button by default, since it does nothing
10866
10867         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
10868         around with UI
10869
10870         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
10871         so we can have tooltips
10872
10873         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
10874         can have tooltips
10875
10876         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
10877         GDK_ENABLE_BROKEN, because its memory behavior is completely
10878         hosed.
10879
10880         * gtk/gtknotebook.c: remove key press handler, replace with
10881         binding set, add numeric keypad support
10882
10883         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
10884
10885         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
10886
10887         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
10888         addition to plain Delete
10889
10890         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
10891         GDK_KP_Enter in addition to GDK_Return
10892
10893         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
10894         activate on entry instead of key press
10895         (gtk_font_selection_on_clist_key_press): get
10896         rid of this signal handler, not needed with new font sel.
10897
10898         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
10899         no-longer-needed emit_stop_by_name(), just return TRUE
10900
10901         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
10902         cruft, this widget is no longer focusable.
10903
10904         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
10905         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
10906         move_slider action signal, add binding set for vscale/hscale, in
10907         the process support numeric keypad
10908
10909         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
10910         make GDK_Return and GDK_KP_Enter activate the entry via 
10911         binding set, instead of hardcoded.
10912
10913 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
10914
10915         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
10916         code.  Some documentation added.
10917
10918 2001-04-27  Havoc Pennington  <hp@redhat.com>
10919
10920         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
10921
10922         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
10923
10924         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
10925         line/para separators
10926         (gtk_entry_create_layout): set single paragraph mode on the layout
10927
10928         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
10929         spacing between the image and label; instead, inside a button box 
10930         the button will get extra space that will go there, but if people 
10931         configure button box for 0 chubbiness, then there's no spacing.
10932
10933         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
10934         and min/max size style properties, so people can tune their
10935         chubbiness.
10936
10937         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
10938         functions
10939
10940         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
10941         space_style, and button_relief into style properties, remove
10942         functions for setting them
10943         
10944         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
10945         it back down
10946
10947         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
10948         types from gtk_widget_style_get
10949
10950         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
10951         with a style property.
10952
10953         * gdk/x11/gdkevents-x11.c: namespace the settings
10954
10955         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
10956
10957         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
10958         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
10959         be used. Also, translate doc strings for settings. Also, namespace
10960         the double-click-time property. Also, remove bell properties crap.
10961
10962 2001-04-27  Sven Neumann  <sven@gimp.org>
10963
10964         * Makefile.am: before creating links, check if pkg-config files
10965         exist for the default target. Otherwise link to the pkg-config files
10966         that got installed with this build.
10967
10968 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
10969
10970         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
10971         dragging code.  Revealed some (potential) GdkWindow bugs.
10972
10973         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
10974         _gdk_window_init_position to the end of reparent to fix the case
10975         of reparenting when new_x != old_x and new_y != old_y.
10976
10977 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
10978
10979         * gtk/gtkentry.c (strstr_len): Fix optimization that
10980         was correct for the use here, but completely incorrect
10981         in general.
10982
10983 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
10984
10985         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
10986         until patch adding gtk_window_set_size() is recommitted. 
10987
10988         * **Makefile.am configure.in gdk/x11/gdkim-11.c
10989           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
10990           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
10991           (#10784)
10992
10993 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
10994
10995         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
10996         window == NULL in a number of cases.
10997
10998         * tests/testdnd.c: Set module path for gdk-pixbuf.
10999
11000 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
11001
11002         * gtk/Makefile.am xembed.h: File containing #defines
11003         for XEMBED protocol.
11004
11005         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
11006
11007         - Change protocol from old plug/socket specific protocol
11008           to XEMBED draft
11009         - Various fixes to work with GTK+-2.0
11010
11011         Still quite a bit of work to do here to handle initiation
11012         from the socket side (as specified by XEMBED), to handle
11013         the more advanced features of XEMBED, and to figure out
11014         a good way to handle same-app embedding with less overhead
11015         than using full XEMBED.
11016
11017 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
11018
11019         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
11020         track of whether the toplevel has the focus; only send
11021         focus-in events to the focus widget when the window
11022         actually has the focus.
11023
11024 2001-04-25  Havoc Pennington  <hp@pobox.com>
11025
11026         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
11027         were still in the header
11028
11029 2001-04-24  Alexander Larsson  <alexl@redhat.com>
11030
11031         * gtk/gtkclist.[ch]:
11032         * gtk/gtkctree.c:
11033         When there is a row highlighted for D'n'D it must alse
11034         be painted hightlighted on exposes. Otherwise exposes from
11035         the icon being dragged will mess up the hightlight.
11036
11037         * gtk/gtkfontsel.c:
11038         Don't recenter selected font when exposing the font family
11039         clist. This means you can now actually scroll the font family
11040         list.
11041
11042         * gtk/gtknotebook.c:
11043         Fix focus movement on scrolling tabs that are placed on the left
11044         and right.
11045
11046 2001-04-21  Havoc Pennington  <hp@pobox.com>
11047
11048         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
11049         empty/invisible lines.
11050
11051         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
11052         (gtk_text_iter_set_visible_line_index): new functions to set
11053         indexes excluding invisible text
11054
11055         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
11056         index
11057
11058         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
11059         (gtk_text_iter_get_visible_line_offset): new functions to 
11060         get indexes excluding invisible text
11061
11062         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
11063         bunch of extra padding that served no purpose
11064
11065         * gtk/gtkdialog.c: Make all the spacings configurable via style
11066         properties, for chubbiness configuration in themes
11067
11068         * tests/testtext.c: fix path to the immodules.
11069         
11070 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
11071
11072         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
11073         got munched by #endif.
11074
11075         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
11076
11077         * gtk/gtktreeview.c: Refactored code to clean up a number of
11078         events.
11079
11080         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
11081         values to make consistent with other functions.  Spotted by Jeff
11082         Franks <jcf@tpg.com.au>.
11083
11084         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
11085         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
11086
11087 2001-04-23  Sven Neumann  <sven@gimp.org>
11088
11089         * gtk/Makefile.am
11090         * gtk/gtkplug.c
11091         * gtk/gtksocket.c: on request of Owen, reverted my last change 
11092         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
11093
11094 2001-04-23  Sven Neumann  <sven@gimp.org>
11095
11096         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
11097         compile for non-X11 targets again
11098
11099 2001-04-20  Alexander Larsson  <alexl@redhat.com>
11100
11101         * gtk/gtkcolorsel.[ch]:
11102         API Change. Take GdkColor arguments instead of gdouble *.
11103         Leave the old gtk_color_selection_set_color for compatibility,
11104         but marked deprecated.
11105         Do correct rounding when converting RGB <-> HSV.
11106         
11107         * gtk/gtkcolorseldialog.c:
11108         * tests/testgtk.c:
11109         Use new GtkColorSelection API.
11110
11111         * gtk/gtkhsv.c:
11112         Fix problem selecting colors in triangle when Hue is 330.
11113         Fix some black dots around the HSB triangle.
11114         
11115         * gtk/gtkfilesel.c:
11116         return FALSE from the focus_in_event handler to fix focus problems.
11117
11118 2001-04-18  Havoc Pennington  <hp@redhat.com>
11119
11120         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
11121         set, so keybindings are configurable    
11122         (gtk_window_activate_default): Change to activate the focus widget
11123         instead if there's a focus widget, to be consistent with the
11124         behavior that previously existed in key_press_event
11125
11126 2001-04-18  Havoc Pennington  <hp@redhat.com>
11127
11128         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
11129
11130 2001-04-18  Havoc Pennington  <hp@redhat.com>
11131
11132         Close bug #50615:
11133         
11134         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
11135         the layout
11136
11137         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
11138
11139         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
11140
11141         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
11142         
11143         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
11144         to blue for base, in addition to bg
11145         
11146 2001-04-18  Havoc Pennington  <hp@redhat.com>
11147
11148         * tests/testgtk.c (create_image): allow shrinking the image window
11149         to test that we clip to allocation.
11150
11151         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
11152         #9845
11153
11154         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
11155
11156 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
11157
11158         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
11159         mode on shm segments to 0600. We'll see who complains.
11160
11161         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
11162         _gdk_windowing_window_destroy() AFTER recursing through
11163         children.
11164
11165         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
11166         testsocket_child on X.
11167
11168         * tests/testsocket[_child].c: Fix uses of
11169         gtk_window_get_default_accel_group().
11170
11171         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
11172
11173         * gdk/gdkimage.c: (gdk_image_get):
11174         Deal with the possibility that XGetImage() might return NULL.
11175         Allocate the GdkImagePrivate structure only after XGetImage()
11176         succeeds in order not to dereference a NULL ximage pointer.  This
11177         prevents a core dump when XGetImage() fails - which is unlikely,
11178         but can happen due to race conditions accessing the geometries of
11179         drawables.  An x error will still be triggered, but the gdk image
11180         wrapper at least wont seg fault.
11181         
11182 2001-04-18  Havoc Pennington  <hp@redhat.com>
11183
11184         * gtk/gtkimage.c: fix to properly queue resizes when the image is
11185         set
11186
11187         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
11188         if the insertion point isn't editable
11189
11190         * demos/gtk-demo/images.c: Added a GtkImage demo
11191
11192         * demos/gtk-demo/drawingarea.c: drawing area demo
11193         
11194         * demos/gtk-demo/menus.c (create_menu): cleanups
11195
11196 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
11197
11198         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
11199           gdk/x11/gdkevents-x11.c: Introduce an extra child
11200         of toplevel windows that serves to hold the focus to
11201         avoid events being delivered to embedded windows.
11202
11203         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
11204         some extra variables to clean up code and reduce the
11205         number of casts.
11206
11207         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
11208         guint for 1 bit bit fields, not gboolean.
11209
11210 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
11211
11212         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
11213         not TRUE. (Fixes #52925)
11214
11215 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
11216
11217         * Released 1.3.4
11218
11219         * NEWS: Updated
11220
11221         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
11222         use GTK_TYPE_ENUM.
11223
11224 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
11225
11226         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
11227
11228         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
11229         names to compatibility #defines so docs work.
11230
11231         * gtk/gtkenums.h: Remove GtkMenuFactoryType
11232
11233         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
11234
11235         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
11236
11237         * tests/testgtkrc: No magenta cursors, please.
11238
11239         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
11240
11241         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
11242         
11243 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
11244
11245         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
11246         grabs, since they are no longer necessary.
11247
11248         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
11249         by signal_connect() and call gtk_button_pressed() rather
11250         than signal_connect_after().
11251
11252         * tests/testgtk.c: Restore radio menu items to combos 
11253         since they'll look OK with Raleigh, and it is easier
11254         than finishing the process of removing them that was
11255         started earlier.
11256
11257 2001-04-16  Hans Breuer  <hans@breuer.org>
11258
11259         * gdk/gdk.def :
11260         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
11261
11262         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
11263         we are interested in the functions return value not the function address
11264         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
11265
11266         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
11267
11268 2001-04-14  Hans Breuer  <hans@breuer.org>
11269
11270         * gdk/gdk.def :
11271         * gdk/makefile.msc : updated
11272
11273         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
11274         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
11275         (the testgtk::text backgound pixmap is drawn again)
11276         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
11277         Win32 Pango change
11278         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
11279
11280         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
11281         Not sure if the returned settings have the right unit, because I couldn't
11282         find any docs for the X version ...
11283
11284         * gtk/gtk.def :
11285         * gtk/makefile.msc.in : updated
11286
11287 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
11288
11289         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
11290         wording problems. (Compared to version from Johannes Stezenbach to
11291         check correctness.)
11292
11293 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
11294
11295         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
11296         this to compile.
11297
11298 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
11299
11300         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
11301         not pixbufpos.
11302
11303         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
11304
11305         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
11306         are unsigned insts, therefore use g_value_set_uint.
11307         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
11308
11309 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
11310
11311         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
11312
11313         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
11314         GTK_TYPE_STRING.
11315
11316         * gtk/gtktreeview.c: New functions to allow initial column
11317         dragging work.
11318
11319         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
11320
11321         * tests/testtreefocus.c: give dave some love.
11322
11323         * tests/testtreesort.c: Modify test to check really long samples.
11324
11325 2001-04-11  Alexander Larsson  <alexl@redhat.com>
11326
11327         * gtk-2.0.m4: Pass pkg-config options
11328         before the other args so it works even if
11329         POSIXLY_CORRECT is set.
11330
11331 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
11332
11333         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
11334         0, interface 0).
11335
11336 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
11337
11338         * gtk/gtkcalendar.c (gtk_calendar_button_press):
11339         check for action_func != NULL
11340
11341 2001-04-04  Sven Neumann  <sven@gimp.org>
11342
11343         * tests/testgtk.c (test_init): corrected path to gtk.immodules
11344
11345 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
11346
11347         * Released Gtk+-1.3.3.
11348
11349 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
11350
11351         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
11352
11353 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
11354
11355         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
11356         files to/from source dir. (if we don't stay in builddir, we
11357         can't reach make-inline-pixbuf.
11358
11359         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
11360         deps.
11361
11362         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
11363         ages 0).
11364
11365 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
11366
11367         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
11368         moved to the GtkTreeSortable interface.
11369
11370         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
11371         Make more efficient (fixes #50262).
11372
11373 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
11374
11375         * NEWS: Updated.
11376
11377         * configure.in: Remove support for uninstalled glib.
11378
11379         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
11380         so as not to stop emission.
11381
11382         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
11383         is no longer supported.
11384
11385         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
11386         into tests, change build order to build modules before
11387         gtk/.
11388
11389         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
11390         to here.
11391
11392 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
11393
11394         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
11395         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
11396         GPatternSpec. this is actually unlikely to cause breakage in
11397         third-party apps since except for gle, pretty much ever caller
11398         passes NULL here.
11399
11400         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
11401
11402         * *.c: use g_pattern_*() API.
11403
11404         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
11405
11406         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
11407         directions aren't passed in.
11408
11409         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
11410         functionality to be usable from gtkstyle.c as well, give precedence
11411         for conversion to user-supplied parsers.
11412         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
11413
11414         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
11415         _gtk_settings_parse_convert() for rcporperty value conversion.
11416
11417 2001-04-03  Alexander Larsson  <alexl@redhat.com>
11418
11419         * gdk/linux-fb/gdkevents-fb.c:
11420         Add empty gdk_setting_get().
11421
11422 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
11423
11424         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
11425         variable names.
11426         
11427         * gtk/makeenums.pl: touch this so enum files get remade.
11428
11429 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
11430
11431         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
11432         work again when not sorted.
11433
11434         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
11435         and "expand_row" signal, closing bug 52578.
11436
11437         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
11438         support.
11439
11440         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
11441         support.
11442
11443 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
11444
11445         * gdk/gdkevents.h: Add GdkEventSetting event for notification
11446         of changes to system settings, gdk_setting_get() to retrieve
11447         a single system setting.
11448
11449         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
11450         to the draft XSETTINGS mechanism.
11451
11452         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
11453         XSETTINGS.
11454
11455         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
11456         of GDK settings changes to the GtkSettings object.
11457
11458         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
11459         double-click-timeout property to GDK.
11460
11461         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
11462         Define GDK boxed types here.
11463
11464         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
11465         gdk/gdkenumtypes.[ch] for enum definitions.
11466
11467         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
11468         * gtk/gtk-boxed.defs: Comment out GDK types
11469         * gtk/gtktypeutils.h: Remove GDK types
11470         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
11471
11472 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
11473
11474         * Applied patch from Ron Steinke to add signal accumulators
11475         so that signals with the convention 'TRUE return means
11476         handled' stop emission on a TRUE return.
11477
11478         * gtk/gtkmain.[ch]: Add private accumulator 
11479         _gtk_boolean_handled_accumulator, used throughout GTK+.
11480         
11481         * gtk/gtkspinbutton.c: Add accumulator for ::output.
11482
11483         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
11484         
11485         * gtk/gtkwidget.c: Add accumulators for event signals,
11486         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
11487         for ::mnemonic-activate.
11488
11489         * gtk/gtkwindow.c: Add accumulator for ::frame_event
11490
11491 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
11492
11493         * gtk/gtkwidget.c: Add missing include.
11494
11495 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
11496
11497         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
11498         marshaller.
11499
11500         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
11501         "changed" signal to "range_changed".
11502
11503         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
11504         removing a tree from one model would remove all trees from that
11505         model.
11506         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
11507         changed signal instead.
11508
11509 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
11510
11511         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
11512         chaining up to parent impl, since we have a INPUT_ONLY
11513         window.
11514
11515         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
11516         foreground color for the cursor.
11517
11518 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
11519
11520         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
11521         param spec when caching property values, since we unref it
11522         later when we free the style.
11523
11524         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
11525         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
11526
11527 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
11528
11529         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
11530         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
11531         stupidity.
11532
11533 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
11534
11535         [ First pass at adding style properties. Still needs some definite
11536         fine-tuning. ]
11537
11538         * gtk/gtkbutton.c: Add ::default_spacing style property.
11539          
11540         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
11541         ::indicator_spacing style properties.
11542
11543         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
11544         style properties.
11545
11546         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
11547         rather than a normal property.
11548
11549         * gtk/gtkwidget.c: Add an ::interior_focus style property to
11550         draw focus inside buttons, in the Windows/Java Metal/etc. style.
11551
11552         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
11553         Honor ::interior_focus.
11554         
11555         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
11556         TRUE.
11557
11558         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
11559         Add ::slider_width, ::trough_border, ::stepper_size,
11560         ::stepper_spacing style properties.
11561
11562         * gtk/gtkscale.[ch] Add ::slider-length style property.
11563
11564 2001-04-02 Alexander Larsson   <alexl@redhat.com>
11565
11566         * gdk/linux-fb/gdkwindow-fb.c:
11567         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
11568         warnings that were spewed on startup.
11569
11570         * gtk/gtkwindow-decorate.c:
11571         gtk_window_reposition -> _gtk_window_reposition
11572
11573 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
11574
11575         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
11576         Add boxed type for GtkRequistion. Use it for ::size-request.
11577
11578         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
11579         Add a new GtkBorder structure useful for geometry properties
11580         for widgets. Add corresponding GTK_TYPE_BORDER.
11581         
11582         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
11583         Support automatic parser selection like
11584         gtk_settings_install_property_parser().
11585
11586         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
11587         functionality for use by gtk_widget_class_install_style_property.
11588         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
11589
11590 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
11591
11592         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
11593         g_param_spec_unichar(). 
11594
11595 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
11596
11597         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
11598         _NET window managers.
11599
11600         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
11601
11602 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
11603
11604         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
11605         bad needs to be nuked, not just deprecated.
11606
11607         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
11608         gtk_widget_popup().
11609
11610         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
11611         
11612         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
11613         widget.
11614         
11615         * docs/Changes-2.0.txt: updates.
11616         
11617 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
11618
11619         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
11620         for (i = 0; i < 100; i ++)
11621           g_print ("I will confirm it compile before committing\n");
11622
11623 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
11624
11625         * gtk/gtktreestore.c: Initial work on implementing the
11626         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
11627
11628 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
11629
11630         * gtk/gtkwidget.c: fixed a bunch of notifications, added
11631         reference counts around emissions where the widget is used afterwards.
11632         added freeze/thaws around multiple properties being notified.
11633         (_gtk_widget_get_aux_info): cleanups.
11634         
11635         * gtk/gtksettings.c (gtk_settings_install_property): provide
11636         default parsing functions for gdkcolor, enums and flags.
11637
11638         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
11639         applied by owen.
11640         backed out gtk_window_get_location(), gtk_window_set_location(),
11641         gtk_window_get_size() and gtk_window_set_size(), these
11642         have to be sorted out wrg x/y/width/height/default_with/default_height
11643         properties.
11644         kept a flag in GtkWindowGeometryInfo to handle user
11645         resetting default sizes.
11646         cleaned up ZVT comments.
11647         bunch of assorted bug fixes, notification fixes.
11648         (_gtk_window_reposition): make this a really internal function.
11649         
11650         * gtk/testgtk.c: fixups.
11651         
11652 2001-03-31  Hans Breuer  <hans@breuer.org>
11653
11654         * config.h.win32.in : disable USE_MMX for msvc build cause
11655         the assembler doesn't fit and is out of my scope. Disable
11656         USE_GMODULE for msvc build as wel. The right way to share
11657         binaries on win32 would be to use libtiff.dll etc. To reduce
11658         installation hassles IMO it's better to include all fileformats
11659         builtin to gdk-pixbuf
11660
11661         * gdk-pixbuf/makefile.msc : new file
11662
11663         * gdk/gdk.def : updated
11664
11665         * gdk/win32/gdkevents-win32.c : don't erase the background if
11666         .no_bg is set. It improves the scrolling (e.g. of testgtk main
11667         buttons
11668         * gdk/win32/gdkgeometry-win32.c : added comment about the above
11669
11670         * gdk/win32/gdkwindow-win32.c : added three new functions like
11671         the X version. Only one is implemented, because the other two
11672         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
11673         be default behaviour on win32 anyway ...
11674
11675         * gtk/gtk.def : updated
11676
11677         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
11678         from where it was built and add an additional rule to automagically
11679         build gtkmarshal.[hc]
11680
11681         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
11682         before array access for the current entry isn't finished
11683
11684         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
11685         use g_return_val_if_fail
11686
11687         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
11688         for the static array, but let the compiler calculate it. It
11689         makes me wonder if gcc isn't capable to catch bugs like this ...
11690
11691 2001-03-31  James Henstridge  <james@daa.com.au>
11692
11693         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
11694         constant "-1" in the aux info structure.
11695
11696 2001-03-30  Alexander Larsson  <alexl@redhat.com>
11697
11698         * gtk/gtkbutton.c (gtk_button_get_property):
11699         * gtk/gtklabel.c:
11700         Remove leaks.
11701         
11702         * gtk/gtkcontainer.c:
11703         * gtk/gtkhscale.c:
11704         * gtk/gtkhscrollbar.c:
11705         * gtk/gtklayout.c:
11706         * gtk/gtkmisc.c:
11707         * gtk/gtkprogress.c:
11708         * gtk/gtkprogressbar.c:
11709         * gtk/gtkrange.c:
11710         * gtk/gtktable.c:
11711         * gtk/gtkviewport.c:
11712         * gtk/gtkvscale.c:
11713         * gtk/gtkvscrollbar.c:
11714         * gtk/gtkwidget.c:
11715         Property patches, based on patches from John Margaglione and Lee Mallabone.
11716
11717 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
11718
11719         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
11720         adjustment. Cleaned redundant preconditions (spin != NULL). Added
11721         inline API function docs.
11722         (gtk_spin_button_new_with_range): New convenience constructor.
11723         (gtk_spin_button_set_increments): New adjustment helper.
11724         (gtk_spin_button_set_range): New adjustment helper.
11725
11726         * gtk/testgtk.c : added test of the new convenince constructor and
11727         value_changed signals.
11728
11729 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
11730
11731         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
11732         listen to the reorder signal.
11733
11734 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
11735
11736         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
11737         to get the aux info structure fo the widget.
11738
11739         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
11740         above function.
11741
11742         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
11743
11744         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
11745         to get the size of the window manager frame, basically the same
11746         code that gdk_window_get_root_origin() had
11747         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
11748
11749         * gtk/gtkwindow.c (gtk_window_set_default_size): use
11750         gdk_window_resize() if the window is realized and resizeable
11751
11752         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
11753         typo so that setting gravity works
11754
11755         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
11756         allocation if auto_shrink is on, even if the default size
11757         has not changed.
11758
11759         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
11760         g_return_if_fail
11761
11762 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
11763
11764         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
11765         reordering/sorting work.  Now pretty much works.
11766
11767         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
11768         reorder mostly work.  Still need to get the parity correct.
11769
11770         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
11771         signal, so I can listen for the sort_column_changed signal so I
11772         can change my "sort_indicator" property.  Cool.
11773
11774 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
11775
11776         [ Patch from Havoc Pennington, hp@redhat.com ]
11777
11778         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
11779         Add functions gdk_window_begin_resize_drag/begin_move_drag
11780         to start resizing or moving a toplevel window. This
11781         is done either using the _NET_WM_MOVERESIZE protocol,
11782         or, if that isn't present, by emulation.
11783
11784         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
11785         to export the above to GTK+-land.
11786
11787         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
11788         
11789         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
11790         Move this function into gdkwindow, since we need it
11791         when implementing fallback resizing.
11792
11793         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
11794         Fix typo when setting gravity.
11795
11796         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
11797         Add an optional (but on by default) resize grip for resizing 
11798         the parent window.
11799
11800 01-03-29  Alexander Larsson  <alexl@redhat.com>
11801
11802         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
11803         Don't return TRUE from the event handler, that blocks all
11804         event signals on the tooltip widget. Now you can press buttons
11805         in toolbars again.
11806
11807 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
11808
11809         * gtk/testtext.c (create_buffer): Add missing NULL on
11810         valist.
11811
11812         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
11813         c-n-p problem with INCONSISTENT property.
11814
11815         [ Patch from Havoc Pennington  <hp@redhat.com> ]
11816
11817         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
11818         hook.
11819
11820         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
11821         signal as a hook for extending the default popup menu
11822
11823         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
11824         use radio menu items for the input method menuitems
11825
11826         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
11827         inserted unicode from Ctrl-Shift-hex input method
11828
11829         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
11830         validatation here, already done at GtkTextBuffer level.
11831
11832         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
11833         popup_menu run action signal and Shift+F10 and Menu keybindings.
11834
11835         * gtk/gtkentry.c: implement a default handler for popup_menu
11836
11837         * gtk/gtktextview.c: implement a default handler for popup_menu
11838
11839         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
11840         from a key event
11841         
11842         * gtk/gtklabel.c: remove "trailer" cruft
11843
11844 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
11845
11846         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
11847         handle reordering of trees.  Seems to mostly work w/ the exception
11848         of the parity flag.
11849
11850         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
11851         signal.
11852
11853 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
11854
11855         * gtk/gtkwidget.h: c++ fixes.
11856
11857 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
11858
11859         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
11860         memory.
11861
11862 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
11863
11864         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
11865         Nils Barth fixing event return values. (#51041)
11866
11867         * gtk/gtkwidget.c: Fix some return values for default
11868         functions.
11869
11870         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
11871         return values for trough_keys functions.
11872
11873         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
11874         value for add_accelerator (shoudl have been a void
11875         return.)
11876
11877         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
11878         Fix return type of EVENT.
11879
11880         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
11881         signal return a boolean.
11882
11883 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
11884
11885         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
11886         reordered signal.
11887
11888         * tests/testtreesort.c (main): fix spelling.
11889
11890 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
11891
11892         * gtk/gtkliststore.c: More work on implementing sortable
11893         interface.
11894
11895 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
11896
11897         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
11898         reference the widgets in the resulting list. (#11821)
11899         This makes this consistent with gtk_container_children.
11900
11901         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
11902         uses of gtk_window_list_toplevels.
11903
11904 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
11905
11906         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
11907         a virtual function to set whether the IM context should use 
11908         the preedit string. (#51922)
11909         
11910 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
11911
11912         * gdk/gdkpango.h: Remove stale FIXME comment.
11913
11914 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
11915
11916         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
11917         Fixed bug that returned NULL if a filename was selected.
11918
11919 2001-03-24  Havoc Pennington  <hp@pobox.com>
11920
11921         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
11922         to contain the word "theme"
11923
11924 2001-03-24  Havoc Pennington  <hp@pobox.com>
11925
11926         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
11927         slower but finer-grained
11928         (gtk_hsv_focus): get initial focus on the ring or triangle 
11929         according to tab direction
11930
11931         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
11932
11933 2001-03-23  Havoc Pennington  <hp@pobox.com>
11934
11935         * gtk/gtkhsv.c: make this somewhat key-navigable
11936
11937         * gtk/gtkfontsel.c: mnemonics
11938
11939         * gtk/gtkgamma.c: mnemonics
11940
11941         * gtk/gtkcolorsel.c: add mnemonics to labels
11942
11943 2001-03-22  Havoc Pennington  <hp@pobox.com>
11944
11945         Applied big patch from Seth Lytle to fix event handler return
11946         values, slightly modified.
11947
11948         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
11949         handled.
11950         (gtk_calendar_key_press): return TRUE for GDK_space triggers
11951         select_day
11952
11953         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
11954         (gtk_clist_button_release): return TRUE if handled
11955
11956         * gtk/gtkcolorsel.c (mouse_release):
11957         (palette_activate): 
11958         (palette_press): 
11959         (palette_new): 
11960         (mouse_press): 
11961         (get_screen_color): 
11962         fixed return type (void to gboolean), return TRUE,
11963         added GTK_SIGNAL_FUNC cast
11964
11965         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
11966         (void to gboolean), and return TRUE
11967         (gtk_combo_button_release): changed return value to TRUE after
11968         gtk_grab_add on combo->popwin
11969
11970         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
11971         collapse or expand
11972
11973         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
11974         button/motion
11975
11976         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
11977         press/release and motion that trigger act
11978
11979         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
11980
11981         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
11982         for GDK_Return
11983         
11984         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
11985         (gtk_list_button_release): return TRUE if selection
11986
11987         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
11988         press
11989
11990         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
11991         (gtk_menu_shell_button_release): chain parent_menu_shell retval
11992
11993         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
11994         nothing triggered
11995         (gtk_notebook_button_release): return TRUE if we do anything
11996
11997         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
11998         (gtk_spin_button_button_release): return TRUE or chained retval
11999
12000         * gtk/gtktext.c (gtk_text_button_press): 
12001         (gtk_text_button_release): return TRUE
12002         (gtk_text_key_press): remove redundant retval code
12003         
12004         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
12005         and sensitive
12006         (gtk_tree_item_subtree_button_click): changed type to gint, and return
12007         TRUE if sensitive
12008
12009         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
12010         return TRUE
12011
12012 2001-03-23  Havoc Pennington  <hp@redhat.com>
12013
12014         * gtk/testgtk.c: fix warnings
12015
12016         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
12017
12018         * gtk/gtktextview.c: fix warnings
12019
12020         * gtk/gtktext.c (find_cursor_at_line): fix warning
12021
12022         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
12023
12024         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
12025         of this function
12026
12027         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
12028         fix warning
12029
12030         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
12031
12032         * gtk/gtkfontsel.c: fix warning
12033
12034         * gtk/gtkcolorsel.c: fix warnings
12035
12036 2001-03-23  Havoc Pennington  <hp@redhat.com>
12037
12038         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
12039
12040         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
12041
12042         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
12043         and deprecated gtk_check_menu_item_set_show_toggle().
12044         
12045         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
12046
12047         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
12048
12049         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
12050
12051 2001-03-23  Havoc Pennington  <hp@redhat.com>
12052
12053         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
12054         some docs
12055
12056 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
12057
12058         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
12059         this.
12060
12061         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
12062         set_cell to set_value
12063
12064         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
12065         set_cell to set_value
12066
12067 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
12068
12069         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12070         fix braino.
12071         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
12072         support.
12073
12074         * gtk/gtktreeview.c: Addition of initial sortable support.
12075
12076         * gtk/gtktreestore.c: Addition of initial sortable support.
12077
12078         * gtk/gtkliststore.c: Addition of initial sortable support.
12079
12080         * gtk/gtkmarshal.list: yet another marshaller.
12081
12082         * gtk/gtktreedatallist.[ch]: shared code between the store models
12083         for handling sorting headers.
12084
12085 2001-03-22  Havoc Pennington  <hp@redhat.com>
12086
12087         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
12088         (gtk_container_unset_focus_chain): Add ability to override the 
12089         focus chain for a container explicitly
12090
12091 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
12092
12093         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
12094         added PROP_MNEMONIC_WIDGET.
12095
12096         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
12097         (gtk_window_remove_mnemonic): 
12098         (gtk_window_add_mnemonic): fixed assertions.
12099         (gtk_window_activate_mnemonic): constrain modifier checks to those
12100         permitted by gtk_accelerator_get_default_mod_mask().
12101         got rid of gtk_window_get_default_accel_group().
12102
12103         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
12104         activatable widgets either by focussing or a warning.
12105         added a signal accumulator to ::activate_mnemonic which stops the
12106         emission once a handler returned TRUE.
12107
12108 2001-03-22  Havoc Pennington  <hp@pobox.com>
12109
12110         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
12111         the stock item label
12112
12113         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
12114
12115         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
12116
12117         * demos/gtk-demo/*.c: Add mnemonics all over the place
12118
12119         * gtk/gtklabel.h: mark parse_uline deprecated
12120
12121 2001-03-21  Alexander Larsson  <alexl@redhat.com>
12122
12123         * gtk/gtkitemfactory.[ch]:
12124         Add support for stock and normal imagemenuitems.
12125         
12126         * gtk/testgtk.c:
12127         Add some tests for mnemonics, stock toolbars, stock
12128         and image menuitems in itemfactory and gdk_window_scroll.
12129
12130 2001-03-21  Alexander Larsson  <alexl@redhat.com>
12131
12132         * gtk/gtkbutton.[ch]:
12133         * gtk/gtkdialog.c:
12134         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
12135         removed accel_group argument. Renamed gtk_button_new_accel() to
12136         gtk_button_new_with_mnemonic() and removed accel_group argument.
12137
12138         * gtk/gtkcheckbutton.[ch]:
12139         New function gtk_check_button_new_with_mnemonic().
12140
12141         * gtk/gtkentry.c:
12142         Override activate_mnemonic and just grab focus.
12143
12144         * gtk/gtkitemfactory.c:
12145         Don't add menu uline accel group, instead use mnemonics support.
12146
12147         * gtk/gtklabel.[ch]:
12148         New support for mnemonics.
12149
12150         * gtk/gtkmarshal.list:
12151         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
12152
12153         * gtk/gtkmenu.[c]:
12154         * gtkmenushell.c:
12155         Use mnemonics instead of accel groups for uline
12156         support in menu items.
12157         Removed gtk_menu_get_uline_accel_group() and
12158         gtk_menu_ensure_uline_accel_group().
12159
12160         * gtk/gtkmenuitem.c:
12161         Override activate_mnemonic to handle switching between
12162         menu items if there are collisions.
12163         
12164         * gtk/gtknotebook.c:
12165         Connect to activate_mnemonic on the tab_label, so that
12166         activating it switches to that notebook page.
12167
12168         * gtk/gtkwidget.[ch]:
12169         Add activate_mnemonic signal. New function
12170         gtk_widget_activate_mnemonic() to emit it.
12171         Default implementation does activate/grab_focus.
12172
12173         * gtk/gtkwindow.[ch]:
12174         Add support for mnemonics in windows.
12175         New functions:
12176         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
12177         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
12178
12179         * gtk/testgtk.c:
12180         Update to function name changes.
12181         
12182 2001-03-21  Alexander Larsson  <alexl@redhat.com>
12183
12184         * gtk/gtkimagemenuitem.[c]:
12185         Add gtk_image_menu_item_new_from_stock()
12186
12187 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
12188
12189         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12190         Fix buglet in meeting.
12191
12192 2001-03-19  Havoc Pennington  <hp@redhat.com>
12193
12194         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
12195         add a bunch of accessor functions. This is because we have
12196         reasonable expectations of extending what fields it contains in
12197         the future.
12198
12199         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
12200         changes
12201
12202         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
12203         GtkIconSource   
12204
12205 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
12206
12207         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
12208         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
12209
12210         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
12211           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
12212           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
12213           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
12214         Change float to double everywhere with the exception of 0<->1.0 alignment
12215         and GtkCurve.
12216
12217 2001-03-19  Tor Lillqvist  <tml@iki.fi>
12218
12219         * gdk/win32/gdkdrawable-win32.c
12220         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
12221         output.
12222
12223         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
12224         gdkwin32.h.
12225
12226 2001-03-18  Tor Lillqvist  <tml@iki.fi>
12227
12228         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
12229         print_event_state, print_event): Use preprocessor macro to make
12230         code more compact. Print also GDK_WINDOW_STATE events.
12231         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
12232         
12233         * gtk/gtk.def
12234         * gtk/makefile.mingw.in: Update.
12235
12236         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
12237         to catch also Cygwin.
12238
12239 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
12240
12241         * gtk/gtkspinbutton.[hc]: added rc-style argument
12242         GtkSpinButton::shadow_type.
12243         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
12244         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
12245         rc-style settings.
12246
12247         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
12248
12249         * gtk/gtkwidget.c: quark cleanups.
12250
12251         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
12252         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
12253         to create_rc_style() (we don't do cloning in standard OO sense).
12254         added per rc style properties.
12255         
12256         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
12257         property values and for caching those. some cleanups.
12258         
12259         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
12260         
12261         * gtk/gtksettings.[hc]: new file for global rc-file properties
12262         (at least currently, should get extended to support X properties
12263         and other communication mechanisms).
12264         
12265         * gtk/gtkwidget.[hc]: added style property support:
12266         (gtk_widget_class_install_style_property_parser): install style
12267         property pspec with parser function for rc-file values other
12268         than LONG, DOUBLE or STRING.
12269         (gtk_widget_class_install_style_property): same as above without
12270         parser (parsers are going to be needed quite infrequently).
12271         (gtk_widget_style_get_property): retrive style property value.
12272         (gtk_widget_style_get_valist): same as above with varargs support,
12273         has NOCOPY semantics.
12274         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
12275
12276 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
12277
12278         * demos/gtk-demo/main.c (row_activated_cb): modified to use
12279         "row_activated" signal.
12280
12281         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
12282         stupidity.  Lets actually pass in the row with this signal...
12283
12284 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
12285
12286         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
12287
12288         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
12289
12290         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
12291         everything into the ::destroy function, and freed a lot more.
12292
12293 2001-03-16  Havoc Pennington  <hp@redhat.com>
12294
12295         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
12296         instead of gint16, to avoid overflow issues, since sizes > 16-bit
12297         are now allowed.
12298
12299 2001-03-16  Havoc Pennington  <hp@redhat.com>
12300
12301         * Applied patch from Nils Barth (bug # 51041) to 
12302         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
12303         in various places.
12304
12305 2001-03-15  Havoc Pennington  <hp@redhat.com>
12306         
12307         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
12308         for properties to set on the tag.
12309
12310         * gtk/testtext.c: fixups to reflect create_tag change
12311         
12312         * gtk/gtktexttag.c (gtk_text_tag_set_property):
12313         background/foreground stipple are objects, not boxed.
12314
12315         * demos/gtk-demo/textview.c: intellihancing
12316
12317 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
12318
12319         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
12320         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
12321
12322 2001-03-16  Alexander Larsson  <alexl@redhat.com>
12323
12324         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
12325         Fix sign error with queued region translations.
12326
12327 2001-03-15  HideToshi Tajima  <tajima@happy>
12328
12329         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
12330         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
12331         * gtk/gtkentry.c (update_im_cursor_location): 
12332         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
12333         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
12334         set_cursor_pos to set_cursor_location in GtkInputContext class
12335
12336 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
12337
12338         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
12339         the location of the cell relative to its area.
12340         * gtk/gtkcell*: modified for above change
12341         * gtk/gtktreeview.c: modified for above change.
12342
12343 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
12344
12345         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
12346          (gtk_tree_view_finalize): actually unref the model.  Thanks to
12347         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
12348
12349 2001-03-14  Havoc Pennington  <hp@redhat.com>
12350
12351         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
12352         
12353         * gtk/gtk.h: remove gtkdata.h
12354
12355         * gtk/Makefile.am: remove gtkdata
12356         
12357         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
12358         not "disconnect" on the adjustments.
12359         
12360         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
12361         GtkData
12362
12363         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
12364         not GtkData
12365
12366         * configure.in: handle case where X render exists, but Pango lacks
12367         Xft support.
12368
12369 2001-03-15 Alexander Larsson  <alexl@redhat.com>
12370
12371         * gtk/gtktoolbar.[ch]:
12372         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
12373         to add stock items to toolbars.
12374
12375         * gtk/Makefile.am:
12376         Remove ../gdk/gdkim.h from gdk_headers.
12377
12378 2001-03-15  Sven Neumann  <sven@gimp.org>
12379
12380         * gdk/gdkim.h: removed
12381         
12382         * gdk/gdkprivate.h
12383         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
12384
12385 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
12386
12387         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
12388         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
12389         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
12390         set_cursor_pos() virtual method
12391
12392         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
12393         (gtk_im_context_xim_set_cursor_pos): add implementation for
12394         set_cursor_pos() method
12395
12396         * gtk/gtkentry.c (recompute_idle_func): set current cursor
12397         position to input methods
12398
12399 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
12400
12401         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
12402         code a lot.
12403
12404         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
12405         g_mem_chunk.
12406         (_gtk_tree_data_list_alloc): use g_mem_chunk.
12407         (_gtk_tree_data_list_node_to_value): Fix to switch on
12408         G_TYPE_FUNDAMENTAL.
12409         (_gtk_tree_data_list_value_to_node): Fix to switch on
12410         G_TYPE_FUNDAMENTAL.
12411         (_gtk_tree_data_list_node_copy): Fix to switch on
12412         G_TYPE_FUNDAMENTAL.
12413
12414 2001-03-12  Havoc Pennington  <hp@redhat.com>
12415
12416         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
12417         to convert to new property API. Also, change default_width and
12418         default_height get_property to return 0 as the flag value for
12419         "unset"; -1 is not a valid value for these fields.
12420
12421 2001-03-12  Havoc Pennington  <hp@redhat.com>
12422
12423         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
12424         enum with registration for icon sizes, instead of strings.
12425
12426         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
12427         gtkwidget.c: Fix to reflect GtkIconSize
12428         
12429 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12430
12431         Make GtkFB compile and link.
12432         
12433         * gdk/linux-fb/gdkdrawable-fb2.c:
12434         window->mapped to GDK_WINDOW_IS_MAPPED(). 
12435         
12436         * gdk/linux-fb/gdkwindow-fb.c:
12437         window->mapped to GDK_WINDOW_IS_MAPPED(). 
12438         Added gdk_window_shape_combine_region.
12439         Added assorted placeholders for unimplemented new GdkWindow API calls.
12440
12441 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12442
12443         * gtk/gtkfilesel.c:
12444         Add more test when converting filenames from/to utf-8.
12445         Don't allow entering text in the filename entry which isn't allowed in
12446         a filename. Just beep instead.
12447
12448 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12449
12450         * gtk/gtkclist.c:
12451         Scroll using gdk_window_scroll(). Don't wait for exposes.
12452         Move the column headers in an order that makes them flash less.
12453
12454 2001-03-10  Hans Breuer  <hans@breuer.org>
12455
12456         * gdk/gdk.def : updated
12457
12458         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
12459         to offseting the clip_mask at the right place
12460
12461         * gdk/win32/gdkwindow-win32.c : don't create background brushes
12462         for all the gdkClasses, especially not for the input_only case.
12463         Otherwise flickering wont be avoidable, because we don't get
12464         WM_ERASEBKGND message for these windows.
12465
12466         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
12467         and fixed massive redraw problems apparently triggered by Alexanders 
12468         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
12469         but it seems to work quite well :-)
12470
12471         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
12472         prototype
12473
12474 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
12475
12476         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
12477         (gtk_list_store_set_cell): Fix a stupid typo.
12478
12479 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
12480
12481         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
12482         select_all not work if you're in SINGLE mode (it doesn't make that
12483         much sense, anyway.)
12484
12485         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
12486         handle types more sanely.
12487         (_gtk_tree_data_list_value_to_node): handle types more sanely.
12488         (_gtk_tree_data_list_node_copy): handle types more sanely.
12489
12490         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
12491         GValue better. Converts the type as well.
12492
12493         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
12494         GValue better. Converts the type as well.
12495
12496 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
12497
12498         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
12499         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
12500         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
12501         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
12502
12503         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
12504         gdk_im/gdk_ic.
12505
12506 2001-03-09  Hans Breuer  <hans@breuer.org>
12507
12508         * gdk/gdk.def : updated
12509
12510         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
12511         for their palette
12512
12513         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
12514         removing
12515
12516         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
12517         removing and implemented Havoc's GdkWindow state functions; 
12518         stick/unstick only as no-op, cause I don't know how to emulate 
12519         on win32 ...
12520
12521         * gtk/gtk.def : updated
12522
12523         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
12524
12525         * gtk/gtktypeutils.c : #include <string.h>
12526
12527         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
12528
12529 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
12530
12531         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
12532         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
12533         not a boxed.
12534
12535 2001-03-09  Alexander Larsson  <alexl@redhat.com>
12536
12537         * docs/Changes-2.0.txt:
12538         Document expose event->region change and that gtk_widget_event
12539         doesn't allow passing expose events.
12540
12541         * gdk/gdkevents.h:
12542         Add region to expose event.
12543         
12544         * gdk/gdkevents.c:
12545         Handle event->region in gdk_event_copy() and gdk_event_free().
12546
12547         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
12548         Generate expose_event->region when creating expose events.
12549
12550         * gdk/x11/gdkevents-x11.c:
12551         Generate expose events with regions when translating X events.
12552
12553         * gtk/gtkcontainer.[ch]:
12554         Default expose handler that propagates expose events to NO_WINDOW
12555         children. New function gtk_container_propagate_expose()
12556
12557         * gtk/gtkwidget.[ch]:
12558         Moved gtk_widget_event implementation to gtk_widget_event_internal.
12559         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
12560         expose events. New function gtk_widget_send_expose() to send expose
12561         events. New function gtk_widget_region_intersect() to calculate
12562         window/region intersections.
12563         
12564         * gtk/gtkmain.c (gtk_main_do_event):
12565         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
12566         Use gtk_widget_send_expose() to send expose events.
12567         
12568         * gtk/gtkbin.c:
12569         * gtk/gtkbox.c:
12570         * gtk/gtkfixed.c:
12571         * gtk/gtkimagemenuitem.c:
12572         * gtk/gtklist.c:
12573         * gtk/gtkpacker.c:
12574         * gtk/gtktable.c:
12575         * gtk/gtktree.c:
12576         Remove expose handler, using the default container implementation
12577         instead.
12578         
12579         * gtk/gtkbutton.c:
12580         * gtk/gtkcheckbutton.c:
12581         * gtk/gtkeventbox.c:
12582         * gtk/gtkfixed.c:
12583         * gtk/gtkhandlebox.c:
12584         * gtk/gtklayout.c:
12585         * gtk/gtklistitem.c:
12586         * gtk/gtkmenu.c:
12587         * gtk/gtkmenubar.c:
12588         * gtk/gtkmenuitem.c:
12589         * gtk/gtknotebook.c:
12590         * gtk/gtkoptionmenu.c:
12591         * gtk/gtkpaned.c:
12592         * gtk/gtkscrolledwindow.c:
12593         * gtk/gtktogglebutton.c:
12594         * gtk/gtktoolbar.c:
12595         * gtk/gtktreeitem.c:
12596         * gtk/gtkviewport.c:
12597         Chain expose handler to parent class handler. Use
12598         gtk_container_propagate_expose() to propagate exposes.
12599
12600         * gtk/gtkclist.c (check_exposures):
12601         * gtk/gtktext.c (process_exposes):
12602         Use gtk_widget_send_expose instead of gtk_widget_event.
12603
12604 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
12605
12606         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
12607
12608 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
12609
12610         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
12611         unref the nodes.   Fixes bug #50058.
12612
12613         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
12614         "::ref_iter" to "::ref_node".
12615         (gtk_tree_model_unref_node): change "::unref_iter" to
12616         "::unref_node". Fixes bug #50064.
12617
12618 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
12619
12620         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
12621         support for invisible cells.
12622          (gtk_tree_view_bin_expose): ditto
12623
12624 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
12625
12626         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
12627         on gobjects.
12628
12629         * tests/testtreefocus.c (main): New test file.
12630
12631         * tests/testtreeview.c: update to latest glib changes.
12632
12633         * tests/testtreecolumns.c: update to latest glib changes.
12634
12635 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
12636
12637         * gtk/testgtk.c: re-enabled event watcher emission hooks.
12638
12639 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
12640
12641         * *.c: added accumulator data argument to g_signal_newc()
12642         functions.
12643
12644         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
12645         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
12646         * gtk/treestoretest.c (make_window):
12647         s/g_signal_connect/g_signal_connectc/.
12648
12649         * gtk/gtktextbuffer.c: completed signal arg fixups,
12650         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
12651
12652 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
12653
12654         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
12655         G_CONST_RETURN.
12656
12657         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
12658         ::hierarchy-changed signal when a widget changes
12659         from anchored to unanchored or vice versa.
12660         (anchored means 
12661          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
12662         Use a private flag to keep track of this efficiently.
12663
12664 2001-03-07  Havoc Pennington  <hp@redhat.com>
12665
12666         * gtk/testgtk.c (create_spins): uglify so that size request gets
12667         tested.
12668
12669         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
12670         request on values for upper/lower, completes #6152
12671
12672 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
12673
12674         * Makefile.am: Remove gtk-config-2.0 again.
12675         (Grrrr, pkg-config. And stops make loops.)
12676
12677 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
12678
12679         * gtk/gtksignal.[hc]: removed old emission hook API.
12680         
12681         * docs/Changes-2.0.txt: fixed sections.
12682         
12683         * gtk/gtktextbuffer.c: signal arg fixups.
12684
12685 2001-03-07  Havoc Pennington  <hp@redhat.com>
12686
12687         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
12688
12689         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
12690         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
12691         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
12692         validation and the redraw which is higher priority than the
12693         validation.
12694
12695 2001-03-07  Havoc Pennington  <hp@redhat.com>
12696
12697         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
12698         (gtk_entry_set_property): remove trailer
12699
12700         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
12701         (gtk_entry_get_width_chars): new functions, to set size request to 
12702         a given number of characters
12703
12704         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
12705
12706         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
12707         (gtk_dialog_get_has_separator): new function
12708         (run_delete_handler): fix to not emit "response" signal
12709         because we already did in the delete event handler installed
12710         at dialog creation time.
12711         
12712         * gtk/gtkdialog.h: add a has_separator property,
12713         add GTK_DIALOG_NO_SEPARATOR flag
12714
12715 2001-03-07  Havoc Pennington  <hp@redhat.com>
12716
12717         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
12718         off decorations for a window.
12719
12720         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
12721         changes
12722
12723         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
12724         to get location of PangoLayout inside the label, closes #51198
12725
12726         * gtk/testgtk.c (create_bbox): fix up button box usage
12727
12728         * gtk/testcalendar.c (create_calendar): fix up button box usage
12729
12730         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
12731
12732         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
12733
12734         * gtk/gtkhbbox.h: deprecations
12735
12736         * gtk/gtkvbbox.h: deprecations
12737
12738         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
12739         emulate deprecated gtk_button_box_get_spacing
12740
12741         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
12742         the "set global default" functions
12743         (struct _GtkButtonBox): remove "spacing" field, use the one from 
12744         GtkBox base class
12745
12746         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
12747
12748         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
12749         render the icon, return the missing image icon.
12750
12751         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
12752         image icon if the load fails.   
12753
12754         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
12755         when no image is found; should be the Netscape "missing image"
12756         icon eventually but for now is a random image
12757
12758         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
12759         role for the session manager
12760
12761         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
12762
12763         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
12764         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
12765
12766         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
12767
12768 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
12769
12770         * gtk/*.c: marshaller fixes.
12771         
12772         * gtk/gtkmarshal.list: extreme cleanup.
12773
12774         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
12775         param spec for now.
12776
12777         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
12778         where appliable.
12779
12780         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
12781         special cased autogenerated boxed types from gtktypebuiltins_ids.c
12782         which are not reference counted:
12783         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
12784         PangoFontDescription, GtkTreeIter and GtkTreePath.
12785
12786 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
12787
12788         * gtk/gtktreeselection.h: 
12789         * gtk/gtktreemodel.c:
12790         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
12791         file should be included directly, and gobject/gmarshal.h
12792         as well as gtk/gtkmarshal.h even can't be included directly.
12793
12794         * Makefile.am: grr, install gtk-config-2.0.
12795
12796         * gtk/testgtk.c:
12797         * gtk/simple.c:
12798         * gtk/gtkmenu.c:
12799         * gtk/gtkitemfactory.c: use g_object_connect() instead of
12800         passing "*signal*::*" args to gtk_widget_set().
12801         
12802         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
12803         
12804         * gtk/*.c: removed trailer arg from property setters and getters.
12805         macro fixups.
12806
12807 2001-03-07  Alexander Larsson  <alexl@redhat.com>
12808
12809         * gtk/gtklabel.c (set_markup): Removed warning
12810
12811 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
12812
12813         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
12814         field to allow you to hide cell renderers.
12815
12816         * gtk/gtkcellrenderer.c: Add support for invisible cells.
12817
12818         * gtk/gtktreeview.c: Add support for invisible cells.
12819
12820 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
12821
12822         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
12823         Add "clicked" signal back to columns.
12824
12825         * ChangeLog: remove conflict markers.
12826
12827 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
12828
12829         * gtk/gtkbutton.c: Add animation of activation by, on 
12830         activate, pressing the button, and adding a timeout that 
12831         releases the button after 250ms or on key release and
12832         emits ::clicked. (#51501)
12833
12834         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
12835         action area, we connect to ::clicked instead of ::activate
12836         so the dialog stays up through the animation.
12837
12838 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
12839
12840         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
12841         check the ignore_enter flag for the menu shell that
12842         the item is actually a child of, not for attached
12843         submenus. (#51536)
12844
12845 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
12846
12847         * gtk/gtkmain.c (gtk_propagate_event): Only do special
12848         special key-press grab handling for widgets within
12849         GtkWindows. Otherwise, fall through to normal case.
12850
12851         This prevents key events being sent twice to GtkInvisible
12852         widgets, which can cause all sorts of mischief.
12853
12854 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
12855
12856         * gtk/gtkmain.c (gtk_propagate_event): When a grab
12857         widget is in effect, give the grab widget a first
12858         crack at KEY_PRESS/RELEASE events. (#424)
12859
12860 2001-03-06  James Henstridge  <james@daa.com.au>
12861
12862         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
12863         offset for the window_state_event to point at window_state_event
12864         rather than no_expose_event.
12865
12866 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
12867
12868         * gtk/gtkimmodule.h: fix busted /* comment */
12869
12870 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
12871
12872         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
12873         object properties.
12874
12875 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
12876
12877         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
12878         add object properties.
12879
12880         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
12881         to add object properties.
12882
12883         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
12884         object properties.
12885
12886         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
12887         add object properties.
12888
12889         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
12890         object properties.
12891
12892 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
12893
12894         * gtk/gtktreemodel.c: renamed "child_toggled" to
12895         "has_child_toggled".
12896
12897         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
12898         handle new signal name.
12899
12900         * gtk/gtktreestore.c: Updated to handle new signal name.
12901         * gtk/gtklisttore.c: Updated to handle new signal name.
12902         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
12903
12904 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12905
12906         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
12907         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
12908
12909 2001-03-05  Michael Natterer  <mitch@gimp.org>
12910
12911         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
12912         pixbuf-engine coincidentially also failed to make one of it's
12913         parent_class pointers static, causing overwriting of GtkLabel's
12914         parent_class pointer in pixbuf_style_class_init().
12915         (Will commit the fix to the pixbuf-engine too).
12916
12917 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12918
12919         * gdk/gdkwindow.h:
12920         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
12921         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
12922         gdk_window_set_icon_list for net wmspec functionality.
12923
12924         * gdk/x11/gdkwindow-x11.c:
12925         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
12926         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
12927         gdk_window_set_icon_list.
12928         Added gdk_wmspec_change_state helper function and used it in the code.
12929         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
12930
12931         * gtk/gtkdialog.c (gtk_dialog_init):
12932         Set GDK_WINDOW_TYPE_HINT_DIALOG.
12933
12934         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
12935         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
12936
12937         * gtk/gtkwindow.c:
12938         new function gtk_window_set_type_hint.
12939         On realize, set type hint and modal hint.
12940
12941         * gtk/gtkwindow.h:
12942         Added type_hint field and gtk_window_set_type_hint.
12943
12944 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12945
12946         * gtk/gtklabel.[ch]:
12947         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
12948         New function gtk_label_get_accel_keyval () to get the underline accelerator
12949         of the label. Setting the label pattern overrides other attributes.
12950
12951 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
12952
12953         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
12954         Added missing initializers to gtk_rc_style_init().
12955
12956 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
12957
12958         * gtk/gtktextview.c: fixed bug #51097 about setting 
12959         gtk_text_view_set_border_window_size() if the widget is 
12960         already realized.
12961
12962 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
12963
12964         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
12965
12966         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
12967         comment. Won't do to have duplicated doc comments between
12968         the platform subdirs.
12969
12970 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
12971
12972         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
12973           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
12974
12975         Detectable auto-repeat - make a repeating key generate
12976         press/press/press/release instead of press/release pairs.
12977
12978         If we have Xkb and XkbSetDectableAutoRepeat supports
12979         that, we do it that way. Otherwise, when we get
12980         a release event, we check ahead with XPending to see
12981         if the next key is a KeyPress with the same keycode
12982         and timestamp. (Not 100% reliable, but pretty close.)
12983           
12984 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
12985         
12986         * gtk/gtkmain.c (gtk_propagate_event): Only do special
12987         special key-press grab handling for widgets within
12988         GtkWindows. Otherwise, fall through to normal case.
12989  
12990         This prevents key events being sent twice to GtkInvisible
12991         widgets, which can cause all sorts of mischief.
12992  
12993 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
12994  
12995         * gtk/gtkmain.c (gtk_propagate_event): When a grab
12996         widget is in effect, give the grab widget a first
12997         crack at KEY_PRESS/RELEASE events. (#424)
12998  
12999 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
13000
13001         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
13002         to extend the selection. (Roughly based on patch
13003         from Jay Cox, #50939)
13004
13005         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
13006         to properly handle previous GDK_BUTTON_PRESS. 
13007         (Patch from Jay Cox, #50938)
13008
13009         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
13010         '\0' back along with the deleted text. (#51148)
13011
13012 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
13013
13014         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
13015         the group when extracting it from the X keyboard event.
13016
13017         * modules/input/Makefile.am modules/input/imipa.c: 
13018         Simple module for entering IPA. (Do we need a 
13019         gtk-stupid-input-tricks CVS module?)
13020
13021 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
13022
13023         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
13024         const.
13025
13026         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
13027
13028         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
13029         is no focus widget for the dialog currently, grab the focus as well
13030         as the default.
13031
13032         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
13033         the action area's children to iterate through, not the
13034         dialog's children.
13035
13036 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
13037
13038         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
13039         Add plug-socket tests. (Won't work worth a darn until I commit
13040         the rest of the plug-socket changes, but no reason these
13041         can't go into CVS now.)
13042
13043 2001-03-02  Havoc Pennington  <hp@redhat.com>
13044
13045         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
13046         _gdk_region_get_xrectangles()
13047
13048         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
13049
13050         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
13051
13052         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
13053         function, contributed by Ron Steinke    
13054
13055         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
13056         gdk_net_wm_supports
13057
13058         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
13059         New function, contributed by Ron Steinke
13060
13061         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
13062         used to line up the text in the entry when using the entry for
13063         editable sheet cell hacks
13064
13065         * gtk/testgtk.c (create_entry): test the activate_default setting
13066         on GtkEntry
13067
13068         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
13069         cause the entry to activate the default button for a dialog when 
13070         activated
13071         (gtk_entry_get_activates_default): new function
13072
13073 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
13074
13075         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
13076         Hwang to move call to sync_selection() up a few lines
13077         to before the row list is modified, to fix crash when
13078         removing rows in the undo_selection list.
13079
13080         (Test case provided by Daniel Elstner:
13081
13082         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
13083
13084 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
13085
13086         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
13087         of tree->root_tree in parent_set rather than _map(), 
13088         fixing #50892 in a bit better manner.
13089
13090 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
13091
13092         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
13093
13094 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
13095
13096         * gtk/gtkstyle.c : Remove duplicate fwd decl for
13097         gtk_default_draw_shadow.
13098
13099 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
13100
13101         * gdk/gdkimage.c (gdk_image_new): Remove excess 
13102         warning, make warnings more verbose, treat a error
13103         in shmat as permanent, and don't try again.
13104         (#51163, Ed Randall.)
13105
13106 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
13107
13108         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
13109         delay for the first click before starting to scroll.
13110         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
13111
13112         * gtk/gtktext.c: GtkText should have I-beam cursor. 
13113         (based on gtk-enf-990513-1.patch, Eric Fisher.)
13114
13115 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
13116
13117         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
13118         cleanup to remove some references to unused
13119         ->xoffset, ->yoffset.
13120
13121 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
13122
13123         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
13124         mask. (#51039, fix from Martin Maierhofer)
13125
13126 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
13127
13128         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
13129         for unshifted + and shifted = for non-us keyboards.
13130         Make <Control>+ and <Control>- work as well as 
13131         <Control>KP_Plus, <Control>KP_Minus for recursive
13132         open/close.  (#2682, René Seindal)
13133
13134 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
13135
13136         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
13137         the active menu item before deactivating the menu,
13138         so gtk_menu_popdown doesn't change the history. (#50964)
13139         
13140 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
13141
13142         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
13143         draw lines with text_gc rather than black_gc.
13144         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
13145
13146 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
13147
13148         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
13149         Move handling of buttons fully in gtktreeviewcolumn.  This code is
13150         less interrelated then it was, but it still requires the
13151         GtkTreeView to map it.
13152
13153         * test/testtreecolumn.c: Now I can add a column to one view,
13154         remove it, add it to the another view, remove it, then re-add it
13155         to the first.  Nifty.
13156
13157 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
13158
13159         * docs/tutorial/gtk-tut.sgml: Minor corrections
13160
13161 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
13162
13163         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
13164         GtkRowReference.
13165
13166 2001-02-28  Havoc Pennington  <hp@redhat.com>
13167
13168         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
13169         draw_default
13170         (gtk_widget_draw_focus): remove this function; we could instead
13171         make it just gtk_widget_draw(), but in most cases I think the
13172         result would be broken user code, so think it's better to have
13173         that code not compile and get fixed
13174         (gtk_widget_draw_default): ditto
13175
13176         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
13177         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
13178         
13179         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
13180         widgets lose/get the default, instead of calling draw_default
13181         
13182         * docs/Changes-2.0.txt: note about all this
13183
13184         Then fixed every widget in GTK, I won't list all the filenames.
13185
13186 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
13187
13188         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
13189         _gtk_tree_row_reference_deleted.
13190         (inserted_callback): Proxy out to
13191         _gtk_tree_row_reference_inserted.
13192         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
13193         get around signal emission ordering problem.
13194
13195         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
13196         fix to work with SINGLE 
13197         (_gtk_tree_selection_internal_select_node): Major sanitization on
13198         selections.  SINGLE now seems to work.
13199
13200         * tests/Makefile.am: add testtreecolumn.c:
13201
13202         * tests/testtreecolumn.c: New test.  Mostly points out selection
13203         bugs currently, but will test columns later.
13204
13205         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
13206         selection bug.  I hate touching this code -- it's scary.
13207
13208 2001-02-26  Havoc Pennington  <hp@redhat.com>
13209
13210         * gtk/testgtk.c: test the window state stuff
13211
13212         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
13213         window come to the user's attention as if it were just created
13214         (gtk_window_iconify): new function
13215         (gtk_window_deiconify): new function
13216         (gtk_window_stick): new function
13217         (gtk_window_unstick): new function
13218         (gtk_window_maximize): new function
13219         (gtk_window_unmaximize): new function
13220
13221         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
13222
13223         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
13224
13225         * gdk/x11/gdkevents-x11.c: create window state events when
13226         appropriate
13227         (gdk_wmspec_supported): new function
13228
13229         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
13230         iconification before showing the window
13231         (gdk_window_deiconify): new function
13232         (gdk_window_stick): new function
13233         (gdk_window_unstick): new function
13234         (gdk_window_maximize): new function
13235         (gdk_window_unmaximize): new function
13236
13237         * gdk/gdkwindow.c: store the window state in the window; 
13238         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
13239         window->mapped.
13240         (gdk_window_get_state): return the current window state
13241
13242         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
13243         (gdk_event_get_state): handle GDK_WINDOW_STATE
13244         (gdk_synthesize_window_state): function to create the window state
13245         events
13246
13247         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
13248         event, for changes to "window state" such as maximized, sticky, 
13249         etc.
13250         
13251         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
13252         focuses a window
13253
13254         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
13255         finds out if we support a given WM spec hint
13256
13257 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
13258
13259         * docs/faq/gtk-faq.sgml: New question re memory leaks.
13260
13261 2001-02-25  Hans Breuer  <hans@breuer.org>
13262
13263         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
13264         cause we want to loose those prototypes only in the latter case
13265
13266         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
13267         GdkPixmapImplWin32 because it itsn't derived from it. Use the
13268         impl member variable instead
13269
13270         * gtk/gtk.def : updated
13271
13272         * gtk/gtklist.c : 
13273         * gtk/gtkmenus.c : include <string.h> for memset ()
13274
13275         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
13276         for everthing built here, but for gtk-x.x.dll only. This solves
13277         problem of indifferent gtk type definitions
13278
13279 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
13280
13281         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
13282
13283 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
13284
13285         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
13286         column that is exposed.
13287
13288         (_gtk_tree_view_update_size): Changed name from set_size, and
13289         changed function to do more work, and not force people calling it
13290         to figure out the size.  Simplifies a lot of code elsewhere.
13291
13292 2001-02-23  Alexander Larsson  <alexl@redhat.com>
13293
13294         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
13295         return solid masks for xpms that have no transparent color.
13296         This makes the ..._create_from_xpm... API backwards
13297         compatible.
13298
13299 2001-02-23  Tor Lillqvist  <tml@iki.fi>
13300
13301         * README.win32: Update. Mention the gtk-1-3-win32-production
13302         branch.
13303
13304         * gdk/win32/bdfcursor.c: New file. A program that generates
13305         xcursors.h. Thanks to Stefan Ondrejicka.
13306
13307         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
13308         compact format.
13309
13310         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
13311
13312         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
13313         function, uses xcursors.h.
13314         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
13315         cursor from inline data instead of using LoadCursor() to generate
13316         it from a resource.
13317
13318         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
13319         event, must check the Windows message for mouse button state, as
13320         the GDK event state might not have been built if it is
13321         undelivered. Remove one goto.
13322
13323         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
13324         SetCursor() if the current cursor as returned by GetCursor() is
13325         the window's previous cursor. The ChildWindowFromPoint() test
13326         apparently didn't work correctly.
13327
13328         * gdk/win32/rc/*.cur: Remove.
13329
13330         * gdk/win32/rc/gdk.rc.in: Remove cursors.
13331
13332         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
13333
13334         * gtk/makefile.{mingw,msc}.in: Updates.
13335
13336 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
13337
13338         * gtk/gtktreemodel.h: add functions for signal emission.
13339
13340         * gtk/gtktreestore.c: move to use above functions instead of
13341         g_signal_emit.
13342
13343         * gtk/gtkliststore.c: ditto
13344
13345 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
13346
13347         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
13348         GObject instead of GtkObject.
13349
13350         * gtk/gtkliststore.c: ditto.
13351
13352         * gtk/gtktreemodelsort.c: ditto.
13353
13354         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
13355         GtkTreeModelIface, instead of in each model.
13356
13357 2001-02-21  Havoc Pennington  <hp@redhat.com>
13358
13359         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
13360         unbreak this function
13361
13362         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
13363         properties
13364
13365         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
13366         properties
13367
13368         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
13369         properties
13370
13371         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
13372         mean unset the max length
13373
13374 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
13375
13376         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
13377         Changed name to be set_cell_data_func to make it clear what
13378         the functino does.  Close bug #51069.
13379
13380 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
13381
13382         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
13383         have memory actually freed.  Keeps box running longer.
13384
13385 2001-02-21  Alexander Larsson  <alexl@redhat.com>
13386         
13387         * gtk/gtkseparatormenuitem.[ch]:
13388         Added new menu separator item. The drawing and size handling
13389         is still done in GtkMenuItem, but the API is a bit more sane.
13390         
13391         * gtk/Makefile.am:
13392         Add gtkseparatormenuitem.[ch].
13393
13394         * gtk/gtk.h:
13395         Add gtkseparatormenuitem.h.
13396         
13397         * gtk/gtkentry.c:
13398         * gtk/gtkmenufactory.c:
13399         * gtk/gtktextview.c:
13400         Use the new API for menu separators.
13401         
13402         * demos/gtk-demo/menus.c (create_menu):
13403         Add some GtkSeparatorMenuItem demo code.
13404
13405 2001-02-20  Havoc Pennington  <hp@redhat.com>
13406
13407         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
13408         Lee Mallabone
13409
13410         * gtk/gtkarrow.c: Convert to new property API, patch from 
13411         Lee Mallabone
13412
13413 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
13414
13415         * tests/testtreeview.c (toggled_callback): fix to reflect change
13416         in GtkTreeModelStore.
13417
13418 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
13419
13420         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
13421         function to create an icon set from a pixbuf.
13422
13423 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13424
13425         * gtk/gtkcellrenderertext.[ch]:
13426         Add a "markup" property.
13427
13428         * gtk/treestoretest.c:
13429         Use the markup property, remove some leftover stuff from
13430         GtkTreeModelMapping.
13431
13432 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13433
13434         * gtk/gtklabel.c (gtk_label_set_selectable):
13435         Queue a redraw if the selectable setting was changed.
13436
13437 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13438
13439         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
13440         Actually copy the whole gc, not just the public parts.
13441         
13442         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
13443         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
13444         labels.
13445
13446 2001-02-19  Havoc Pennington  <hp@pobox.com>
13447
13448         * gdk/gdkwindow.c: docs
13449
13450         * gdk/gdkrgb.c: docs
13451
13452         * gdk/gdkregion-generic.c: docs
13453
13454         * gdk/gdkgc.c (gdk_gc_set_values): docs
13455
13456         * gdk/gdkdraw.c: docs
13457
13458         * gdk/gdkdrawable.h: deprecate drawable get/set data
13459
13460 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
13461
13462         * demos/gtk-demo/dialog.c: Add simple new demo.
13463
13464 2001-02-19  Havoc Pennington  <hp@redhat.com>
13465
13466         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
13467         insert_child_anchor signal, bug #50245
13468
13469         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
13470         from create_child_anchor, so the anchor is passed in
13471
13472         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
13473         (_gtk_widget_segment_new): have the child anchor object passed in, 
13474         instead of creating it.
13475
13476         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
13477         to gtk_text_buffer_get_modified
13478
13479 2001-02-19  Havoc Pennington  <hp@redhat.com>
13480
13481         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
13482         changed GLib without fixing GTK
13483
13484         * gtk/gtkrange.h: Rename all the stupid implementation detail 
13485         functions to have an underscore in front. Most of them should 
13486         probably just go away, but for starters don't export them.
13487         Bug #50482
13488
13489 2001-02-19  Havoc Pennington  <hp@redhat.com>
13490
13491         * gdk/gdkcolor.h: test was backward, so deprecated functions were
13492         excluded by default
13493
13494         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
13495         clean up the old code a bit
13496
13497         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
13498         inconsistent state
13499
13500         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
13501         draw inconsistent state
13502
13503         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
13504         (create_menu): add inconsistent test
13505
13506         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
13507         new function
13508         (gtk_check_menu_item_get_inconsistent): new function
13509         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
13510         state (using etched in for now)
13511
13512         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
13513         draw inconsistent state
13514
13515         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
13516         function, used when the user has selected a range of stuff in
13517         different states
13518         (gtk_toggle_button_get_inconsistent): accessor for that
13519         (gtk_toggle_button_paint): draw inconsistent state (etched in?
13520         don't know what else to do)
13521
13522 2001-02-19  Hans Breuer <hans@breuer.org>
13523
13524         * gtk/gtk.def : updated exported symbols
13525
13526         * gtk/makefile.msc.in : updated
13527
13528         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
13529         a colormap, when invoked from testgtk::entry. I'm not sure where
13530         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
13531         avoids immediate crashing ...
13532
13533         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
13534         any objections ?
13535
13536         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
13537         0 parameter. At least msvc doesn't like macros with var args. 
13538         I simply removed the extra 0, was it a feature or a typo ?
13539
13540         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
13541         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
13542         because the value assignment to the internal struct wasn't working.
13543         I'm not absolutely sure. The problem could have been resolved by
13544         changing the "func" declartion in the struct, but was the pointer
13545         to the function pointer intended ?
13546
13547         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
13548
13549         * gdk/gdk.def : updated exported symbols
13550
13551         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
13552         only use SetDIBitsToDevice if there is a palette at the drawable
13553         and the image is GDK_VISUAL_PSEUDO_COLOR
13554
13555         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
13556
13557         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
13558
13559         * gdk/*/makefile.msc : updated
13560
13561 2001-02-19  Havoc Pennington  <hp@redhat.com>
13562
13563         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
13564         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
13565
13566         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
13567         (gdk_key_repeat_restore): nuke
13568
13569         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
13570         (gdk_init_check): no atexit func
13571
13572         * gdk/gdkrgb.h: mark some stuff deprecated
13573
13574         * gdk/gdkcolor.h: mark some stuff deprecated
13575         
13576         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
13577
13578         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
13579
13580 2001-02-16  Havoc Pennington  <hp@redhat.com>
13581
13582         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
13583         scroll steps.
13584
13585         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
13586         steps, and add Ctrl-arrow shortcuts for paging visually as with
13587         HScale, since Page Up and Page Down move logically.
13588
13589         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
13590         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
13591         
13592         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
13593         steps
13594         (gtk_range_scroll): handle the visual steps
13595
13596         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
13597         scroll steps
13598
13599         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
13600         steps, not the logical ones.
13601
13602         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
13603         (scroll_vertical): handle up/down steps
13604
13605 2001-02-19 Alexander Larsson  <alexl@redhat.com>
13606
13607         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
13608         Copy data and free data with free().
13609
13610         * gdk-pixbuf/gdk-pixbuf.c:
13611         * gdk-pixbuf/io-jpeg.c:
13612         * gdk-pixbuf/io-png.c:
13613         Use g_try_malloc/g_free instead malloc/free.
13614         
13615         * gdk-pixbuf/test-gdk-pixbuf.c:
13616         Must... initialize... gobject...
13617         
13618         * gdk-pixbuf/pixops/timescale.c:
13619         * gtk/gtkcalendar.c:
13620         Use g_malloc instead of malloc.
13621         
13622 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
13623
13624         * gtk/testgtkrc:
13625         Comment out property assignments, these don't work yet.
13626
13627 2001-02-17  Havoc Pennington  <hp@pobox.com>
13628
13629         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
13630         bit.
13631
13632 2001-02-17  Havoc Pennington  <hp@pobox.com>
13633
13634         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
13635         shadowed variables that had broken size request in some cases,
13636         leading to bogus tooltips (#50996)
13637
13638 2001-02-06  Jon K Hellan  <hellan@acm.org>
13639
13640         Implement fast browsing of tooltips, bug #50619
13641         
13642         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
13643         and last_popdown
13644         
13645         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
13646         use_sticky_delay and last_popdown.
13647         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
13648         time of popdown.
13649         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
13650         is NULL.
13651         (gtk_tooltips_recently_shown): New static function.  Return true
13652         if < sticky_delay has elapsed since last popdown.
13653         (gtk_tooltips_event_handler): Display window after sticky_delay
13654         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
13655         since last popdown.
13656         
13657 2001-02-17  Havoc Pennington  <hp@pobox.com>
13658
13659         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
13660         instead of (). #6394
13661
13662         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
13663         G_CONST_RETURN, make it return by reference, #50473
13664         
13665 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
13666
13667         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
13668         generated ENTER_NOTIFY event with 0, otherwise not explicitely
13669         setup fields contain garbage (e.g. subwindow, breaking
13670         gdk_drawable_ref() upon event copy).
13671         (gtk_menu_stop_navigating_submenu_cb): same here.
13672
13673         * gtk/gtklist.c (gtk_list_vertical_timeout): 
13674         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
13675         * gtk/gtkclist.c (vertical_timeout): 
13676         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
13677         default-zero-intialization for unions to memset(,0,), as unions are
13678         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
13679         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
13680
13681         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
13682         g_closure_sink() warning.
13683
13684         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
13685         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
13686         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
13687         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
13688         
13689 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
13690
13691         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
13692         gtk_*_store_get, and moved to GtkTreeModel.
13693
13694         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
13695
13696         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
13697
13698         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
13699
13700         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
13701         set the func.
13702
13703         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13704         freeze/thaw notify between setting all the properties for a cell.
13705
13706         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
13707
13708 2001-02-15  Havoc Pennington  <hp@redhat.com>
13709
13710         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
13711         the X coordinates so they're with respect to the line, rather than 
13712         with respect to the layout.
13713
13714         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
13715         Mallabone
13716
13717         * gtk/testgtk.c (create_range_controls): add vscale tests, 
13718         and inverted test
13719
13720         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
13721         #50806
13722
13723         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
13724
13725         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
13726         gtk_text_iter_is_end
13727
13728         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
13729         rename gtk_text_buffer_get_end_iter
13730
13731         * gtk/testgtk.c (create_labels): Add test for selectable
13732
13733         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
13734         the selection stuff. This code is kind of broken since it doesn't 
13735         use the theme engine.
13736
13737         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
13738         fix infinite loop and y offset problem
13739         (gdk_draw_layout_line_with_colors): fix foreground color handling
13740
13741         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
13742         that makes the label selectable.
13743         
13744         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
13745         layout when the style is set, since fonts etc. could have changed.      
13746
13747 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
13748
13749         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
13750
13751         * gtk/gtktreemodelsimple.[ch]: removed.
13752
13753 2001-02-16  Alexander Larsson  <alexl@redhat.com>
13754
13755         * gtk/gtktreemodelmapping.[ch]:
13756         New files. Implement GtkTreeModelMapping.
13757         
13758         * gtk/Makefile.am:
13759         Add gtktreemodelmapping.[ch].
13760         
13761         * gtk/gtk.h:
13762         Add gtktreemodelmapping.h
13763
13764         * gtk/treestoretest.c:
13765         Test the GtkTreeModelMapping
13766
13767 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
13768
13769         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
13770         have a demo, we might as well pass in real values.  Thanks to
13771         clahey for pointing this out.
13772
13773 2001-02-14  Havoc Pennington  <hp@pobox.com>
13774
13775         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
13776         "static" to a private function
13777         (gtk_image_menu_item_class_init): remove destroy handler,
13778         add "image" object property
13779
13780 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
13781
13782         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
13783         Add a shortcut if the window and the current clip_region doesn't
13784         overlap. This is needed when there are a lot of windows in a
13785         window. The layout test in testgtk is a good test.
13786
13787         * gdk/linux-fb/gdkwindow-fb.c:
13788         Whitespace fix.
13789
13790 2001-02-13  Sven Neumann  <sven@convergence.de>
13791
13792         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
13793
13794 2001-02-13  Alexander Larsson  <alexl@redhat.com>
13795
13796         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
13797         Don't reference last_cursor if it is null. Fixes crash when rotating
13798         the screen before having moved the mouse.
13799
13800         * gdk/linux-fb/gdkcc-fb.c: Zapp!
13801
13802         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
13803
13804         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
13805         when using 90 or 270 degrees rotation.
13806
13807 2001-02-12  Havoc Pennington  <hp@pobox.com>
13808
13809         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
13810         it always set the foreground, even if we were only using
13811         a stipple.
13812         (gdk_draw_layout_line_with_colors): new function, allow
13813         override colors
13814         (gdk_draw_layout_with_colors): new function, allow override
13815         colors
13816         (gdk_pango_layout_line_get_clip_region): function to get the clip
13817         region for a logical text range
13818         (gdk_pango_layout_get_clip_region): get the clip region for a
13819         logical text range
13820
13821         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
13822         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
13823         the right number of arguments.
13824
13825         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
13826         enhance the function to check that node data corresponds to a 
13827         view still belonging to the tree.
13828
13829         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
13830         GtkTreePath
13831         (gtk_tree_view_inserted): ditto
13832         (gtk_tree_view_child_toggled): ditto
13833
13834         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
13835         simplify this code.
13836
13837         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
13838         a PangoAttrList
13839
13840         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
13841
13842         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
13843
13844         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
13845         size in the size request 
13846         (gtk_menu_bar_size_allocate): consider toggle size here
13847
13848         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
13849         that displays a widget in the toggle slot
13850
13851         * gtk/testgtk.c: test GtkImageMenuItem
13852
13853         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
13854         
13855         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
13856         request and allocation
13857
13858         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
13859
13860         * gtk/gtkcheckmenuitem.c
13861         (gtk_check_menu_item_toggle_size_request): ditto
13862         
13863 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
13864
13865         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
13866         reference.
13867
13868         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
13869         and refuse to initialize GTK+ if they fail.
13870
13871 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
13872
13873         * configure.in: Add check for gtk-doc version.
13874
13875 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
13876
13877         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
13878         where the xpad/ypad was only being used on one side!
13879
13880 2001-02-11  Tor Lillqvist  <tml@iki.fi>
13881
13882         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
13883         function, copied from X11 version.
13884
13885         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
13886         DestroyCursor failures. The reason for the problem (despite the
13887         inconsistent messages from GetLastError()) was that
13888         DestroyCursor() cannot be called while a cursor is set in a
13889         window. Set the new cursor first and then destroy the old one.
13890         Thanks to jpe@archaeopteryx.com.
13891
13892         * gdk/win32/gdkcc-win32.c: Remove.
13893
13894         * gdk/win32/Makefile.am: Remove from here, too.
13895         
13896         * gdk/gdk.def
13897         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
13898
13899         * gtk/gtk.def
13900         * gtk/makefile.mingw.in: Updates.
13901
13902 2001-02-08  Havoc Pennington  <hp@redhat.com>
13903
13904         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
13905         add a widget to a bin that already has a child.
13906
13907         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
13908
13909         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
13910         
13911         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
13912
13913         * gdk/gdk.h: remove gdkcc.h
13914
13915         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
13916
13917         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
13918         GdkPixbuf, since the previous implementation was GdkColorContext
13919         dependent.
13920
13921         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
13922         
13923 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
13924
13925         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
13926         a sane value!
13927
13928 2001-02-08  Havoc Pennington  <hp@redhat.com>
13929
13930         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
13931         lighten them.
13932
13933 2001-02-08  Havoc Pennington  <hp@redhat.com>
13934
13935         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
13936         validation idle
13937
13938         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
13939         cell renderer
13940
13941         * demos/pixbuf-demo.c (timeout): remove deprecated
13942         gtk_widget_draw
13943
13944         * demos/testpixbuf-save.c (main): remove deprecated
13945         gtk_drawing_area_size
13946
13947         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
13948         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
13949         at the start of the allocation.
13950         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
13951         unsetup or NULL model.
13952
13953         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
13954         even/odd/sorted cells in the tree view.
13955
13956         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
13957         bugfixes
13958
13959         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
13960         backgrounds with draw_flat_box using different detail for even/odd
13961         rows.
13962
13963         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
13964         row, so we can draw the alternating colors thing
13965
13966         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
13967         property from a synonym property, notify for the synonym.
13968         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
13969         (gtk_text_tag_get_property): Always return the font, even if
13970         all its fields aren't set
13971
13972         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
13973         store the attr list; it leaves us with no way to change attributes
13974         in _render according to the render flags, and no way to implement
13975         get_property. Instead store all the specific text attributes. 
13976         Separate whether an attribute is enabled from its value. Sync all
13977         properties with GtkTextTag, make them all consistent, etc.
13978
13979         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
13980         renderers can highlight the sort row/column     
13981
13982         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
13983         accessor functions to get values; this has the side effect of
13984         showing up which accessor functions were missing. Added those.
13985
13986         * gtk/gtktreeviewcolumn.h: Replace set_justification with
13987         set_alignment, to be consistent with GtkLabel, GtkMisc
13988
13989         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
13990         arrow.
13991
13992         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
13993
13994         * gtk/gtktreesortable.h: updates in here
13995
13996 2001-02-07  Sven Neumann  <sven@convergence.de>
13997
13998         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
13999         pango dimensions after painting the background. We used to draw
14000         gigantic flat boxes here.
14001
14002 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
14003
14004         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
14005         error introduced with earlier commit) (pointed out by
14006         Ollie Lho)
14007
14008 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
14009
14010         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
14011         which are no longer necessary.
14012
14013 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
14014
14015         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
14016
14017 2001-02-04  Tor Lillqvist  <tml@iki.fi>
14018
14019         * gdk/gdk.def
14020         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
14021         Provide dummy implementations.
14022
14023 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
14024
14025         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
14026
14027         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
14028         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
14029         deprecated this function.
14030
14031         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
14032         argument.
14033
14034 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
14035
14036         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
14037
14038 2001-02-03  Havoc Pennington  <hp@pobox.com>
14039
14040         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
14041         Mikael Hermansson with patch from Mikael (if there was a toggle
14042         start one after the first character in the range, this function
14043         was broken). Bug #50380
14044
14045 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
14046
14047         * configure.in: Remove confusing comment about X11.
14048
14049 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
14050
14051         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
14052         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
14053         
14054 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
14055
14056         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
14057         it breaks things on BSD. If you want to compile GTK+ with
14058         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
14059         when configuring, since GTK+ simply can't be "pure ANSI" 
14060         in the header files it uses. (#8170, Greg Hudson)
14061
14062 2001-02-02  Havoc Pennington  <hp@redhat.com>
14063
14064         * gtk/gtkwindow.c: docs
14065
14066         * gtk/gtkwidget.c: docs
14067         (gtk_widget_set_colormap): add a reference to the colormap
14068         (gtk_widget_get_default_colormap): add a reference to the colormap
14069
14070         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
14071
14072         * gtk/gtktextiter.c: docs
14073
14074         * gtk/gtkmain.c (gtk_propagate_event): docs
14075
14076         * gtk/gtkpaned.c (gtk_paned_get_position): docs
14077         (gtk_paned_set_position): docs
14078
14079         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
14080         sort interface, no implementation yet.
14081
14082         * demos/testpixbuf.c (new_testrgb_window): replace
14083         gtk_drawing_area_size() with gtk_widget_set_usize()
14084
14085         * demos/testpixbuf-drawable.c (main): ditto
14086         
14087         * gtk/testgtk.c: remove use of GtkStatusbarMsg
14088
14089         * gtk/gtktextbuffer.c: docs
14090
14091         * gtk/gtkstock.c: docs
14092
14093         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
14094
14095         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
14096
14097         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
14098         
14099         * gtk/gtkimage.c: add some docs in here
14100         (gtk_image_size_request): change name of
14101         gtk_widget_render_stock_icon
14102         (gtk_image_get_icon_set): don't dup returned string
14103         (gtk_image_get_icon_set): don't dup returned string
14104
14105         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
14106         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
14107         and gtkiconfactory.h functions
14108
14109         * gtk/gtkiconfactory.c: add some docs in here
14110
14111         * gtk/gtkmain.c (gtk_get_default_language): document
14112         (gtk_get_current_event): document
14113         (gtk_get_current_event_state): document
14114         (gtk_get_event_widget): document
14115
14116         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
14117
14118         * gtk/gtkcontainer.c: Add some documentation
14119         (gtk_container_add): give a more explanatory warning on adding an
14120         already-parented widget, this is kind of a FAQ and also a common
14121         typo that's easier to debug with a nice warning 
14122
14123         * gtk/gtkcellrenderertoggle.c
14124         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
14125         adding this, it's useless
14126         (gtk_cell_renderer_toggle_set_active): remove
14127         (gtk_cell_renderer_toggle_get_radio): add
14128
14129         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
14130         the NULL cell renderer, that doesn't make any sense to me. 
14131
14132         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
14133         demo code should never use deprecated features.
14134
14135         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
14136         code should never use deprecated features.
14137
14138         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
14139         gtk_widget_queue_clear_area deprecated
14140
14141         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
14142         deprecated
14143
14144         * gtk/gtklabel.h: mark gtk_label_get() deprecated
14145
14146         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
14147         a GdkImage deprecated, replaced by new consistently-named
14148         functions       
14149
14150         * gtk/gtkmain.h: Mark gtk_exit() deprecated
14151
14152         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
14153
14154         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
14155         deprecated
14156
14157         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
14158         so it won't appear in docs and confuse people.
14159
14160         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
14161
14162         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
14163         macros deprecated. (can't mark the type itself deprecated, since
14164         GtkProgressBar is not deprecated and we need the type decl to use
14165         GtkProgressBar)
14166
14167         * gtk/gtkpixmap.h: Mark deprecated
14168
14169         * gtk/gtkoldeditable.h: Mark deprecated
14170
14171         * gtk/gtklist.h: Mark deprecated
14172
14173         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
14174         for anything anymore.
14175
14176         * gtk/gtkctree.h: Mark deprecated
14177
14178         * gtk/gtkclist.h: Mark deprecated
14179
14180         * gtk/gtkpreview.h: Mark deprecated
14181
14182         * gtk/gtkpacker.h: Mark deprecated
14183
14184         * gtk/gtktipsquery.h: Mark deprecated
14185
14186         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
14187
14188         * gtk/gtkvruler.h: Add comment that it will move out of GTK
14189
14190         * gtk/gtkhruler.h: Add comment that it will move out of GTK
14191
14192         * gtk/gtkruler.h: Add comment that it will move out of GTK
14193
14194         * gtk/gtkgamma.h: Add comment that it will move out of GTK
14195
14196         * gtk/gtkcurve.h: Add comment that it will move out of GTK
14197
14198 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
14199
14200         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
14201         gdk_colormap_sync private since it was never exported
14202         in a header file.
14203
14204         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
14205         colormap->colors[] for StaticGray, StaticColor colormaps.
14206
14207         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
14208         was being used as if it was image->bits_per_pixel.
14209
14210         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
14211         for the image in the GdkImage structure since it isn't
14212         reconstructable, and we need it to handle packed types
14213
14214         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
14215         the assumption that on Win32 image->bits_per_pixel == image->depth,
14216         always.
14217
14218         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
14219
14220         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
14221         warning message if no converter can be found. 
14222
14223 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
14224
14225         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
14226         chars to isupper() / tolower(). (#567)
14227
14228         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
14229         to clear up 64-bit warnings. (#567)
14230
14231 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
14232
14233         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
14234         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
14235
14236         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
14237         since some people set $(libdir) separately. (#1290, David Kaelbling)
14238
14239 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
14240
14241         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
14242         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
14243         MAXPATHLEN, but the code here depends on a fixed value.)
14244         (#4524)
14245
14246 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
14247
14248         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
14249         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
14250
14251 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
14252
14253         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
14254         viewable there is no way that moving the node will cause the 
14255         focus row to become not viewable, so omit check on the visibility
14256         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
14257
14258 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
14259
14260         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
14261         selection before inserting new text.
14262
14263 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
14264
14265         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
14266         Make the sensitivity of the reparented child track that of
14267         the original parent menu item. (#34218, David Hodson)
14268
14269         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
14270         the case where the current item is destroyed properly.
14271
14272         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
14273         some edge cases with child-less menuitems.
14274         
14275 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
14276
14277         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
14278         key pop down window. (#12074, Jon K Hellan)
14279
14280 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
14281
14282         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
14283         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
14284         The solution here isn't perfect - you get an extraneous
14285         emission of "toggle", which could conceivably confuse an app,
14286         but better than the current situation. LXR search seems to
14287         indicate that no apps in GNOME CVS connect to "toggle".
14288
14289 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
14290
14291         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
14292         gtk_public_h_sources to directly here to avoid warning when
14293         building srcdir != builddir. (#9656)
14294
14295 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
14296
14297         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
14298         handlers in gtkrange.c return the proper values (TRUE == handled)
14299         (#10316).
14300
14301         This is just the tip of the iceberg, but gtkrange.c is the
14302         most common place where the propagation is problematical,
14303         and also a place where it is almost certainly safe to change
14304         this in the stable branch.
14305
14306         (You don't want right click popups on a range control or anything...)
14307
14308 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
14309
14310         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
14311         area on focus out, even if a background pixmap isn't set.
14312         (#13941)
14313         
14314 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
14315
14316         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
14317         to deal with setting the shape properly when scrolling arrows are
14318         turned on, but not visible because there is sufficient space.
14319         (#13432)
14320
14321 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
14322
14323         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
14324         items with submenus, destroy the item along with the submenu.
14325         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
14326         properly.
14327
14328         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
14329         later.
14330
14331 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
14332
14333         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
14334         the focus widget sometimes wasn't drawn with the default if there
14335         was no default widget.
14336
14337         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
14338         unreference pixmaps. 
14339
14340         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
14341         for some extra safety.
14342
14343 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
14344
14345         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
14346         the text of a cell to the old pointer value better, by
14347         copying the new text before freeing the old text. Some code
14348         cleanup. (#8079, Karl Nelson)
14349
14350 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
14351
14352         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
14353         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
14354
14355 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
14356
14357         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
14358         item from a menu, check to see if it matches 
14359         menu->old_active_menu_item, and if so, unref and clear
14360         old_active_menu_item (Patch from Pavel Cisler)
14361
14362         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
14363         menu_shell->active_menu_item, if it is the child being
14364         removed. (Patch based on that of Gene Ragan, #50337)
14365
14366 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
14367
14368         * gdk/linux-fb/gdkselection-fb.c: 
14369         * gdk/linux-fb/gdkcolor-fb.c: 
14370         * gdk/linux-fb/gdkdrawable-fb2.c: 
14371         * gdk/linux-fb/gdkfont-fb.c: 
14372         * gdk/linux-fb/gdkim-fb.c: 
14373         * gdk/linux-fb/gdkinput.c: 
14374         * gdk/linux-fb/gdkkeyboard-fb.c: 
14375         * gdk/linux-fb/gdkmain-fb.c: 
14376         * gdk/linux-fb/gdkrender-fb.c: 
14377         A bunch of whitespace cleanup.
14378         
14379 2001-01-30  Havoc Pennington  <hp@pobox.com>
14380
14381         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
14382         #ifdef GTK_ENABLE_BROKEN.
14383
14384         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
14385         GTK_ENABLE_BROKEN just before including the broken headers.
14386         
14387         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
14388         deprecated types registered.
14389
14390         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
14391         we have to test the broken stuff.
14392
14393         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
14394         
14395 2001-01-30  Havoc Pennington  <hp@redhat.com>
14396
14397         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
14398         here where prev pointer was set to the wrong thing
14399
14400         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
14401         (gtk_tree_path_is_descendant): new function
14402
14403         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
14404         cached length
14405         (gtk_list_store_get_iter): don't modify iter if we can't get the
14406         path.
14407
14408         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
14409         
14410         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
14411         GtkTreeDragDest
14412
14413         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
14414         was causing segfault
14415
14416         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
14417         pointer to NULL
14418
14419         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
14420
14421         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
14422         on returning FALSE
14423         (gtk_list_store_iter_children): ditto
14424         (gtk_list_store_iter_nth_child): ditto
14425         (gtk_list_store_iter_nth_child): ditto
14426         (gtk_list_store_iter_parent): ditto
14427
14428         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
14429         on iter->user_data != NULL instead of silently accepting it.
14430         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
14431         we are returning TRUE.
14432         (gtk_tree_store_iter_children): ditto
14433         (gtk_tree_store_iter_nth_child): ditto
14434         (gtk_tree_store_iter_parent): ditto
14435         (gtk_tree_store_insert): remove handling of parent->user_data ==
14436         NULL, replace with parent == NULL       
14437
14438         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
14439         and a comment explaining things
14440
14441         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
14442         interface support to GtkTreeStore.
14443
14444         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
14445         FALSE if no prev, fix
14446
14447         * gtk/gtktreeview.c (set_source_row): use a row reference
14448         (set_dest_row): use a row reference
14449
14450 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
14451
14452         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
14453         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
14454         (gtk_tree_selection_select_iter): The same as above.
14455
14456 2001-01-26  Havoc Pennington  <hp@redhat.com>
14457
14458         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
14459         which holds a handle to a specific row (particular set of values
14460         in the model, i.e. pointer-identity row).
14461
14462         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
14463         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
14464         Still need to use it for the src/dest row saved on the drag context.
14465
14466 2001-01-26  Havoc Pennington  <hp@redhat.com>
14467
14468         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
14469
14470         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
14471         not offset by TREE_VIEW_HEADER_HEIGHT
14472         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
14473         TREE_VIEW_HEADER_HEIGHT
14474
14475         * configure.in (included_loaders): for me, --with-included-loaders
14476         generates the error "the specified loader yes does not exist",
14477         i.e. the arg defaults to "yes", so change test for value ""
14478         to test for value "yes", and include all loaders in that case.
14479
14480         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
14481
14482         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
14483         handle TREE_VIEW_VERTICAL_SEPARATOR
14484         (gtk_tree_view_bin_expose): fix to consider the row offset as
14485         pointing halfway into vertical separator.       
14486         (gtk_tree_view_draw_node_focus_rect): ditto
14487
14488         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
14489         --gtk-debug=updates, which causes gdk_window_set_debug_updates
14490         (TRUE) to be called.
14491
14492         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
14493         debug mode where the invalid region is colored in on invalidate,
14494         so you can see the flicker and know whether your redraw code is 
14495         doing a good job.
14496
14497         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
14498         tree window coordinates (clip rect is in tree window coords)
14499
14500         * gtk/Makefile.am: add gtktreednd.[hc]
14501
14502         * gtk/gtkliststore.c: implement gtktreednd interfaces.
14503
14504         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
14505         drag-and-drop data operations on a model (so we can set up tree
14506         drag-and-drop automatically)
14507
14508         * gtk/testgtk.c: Add a window to change sensitivity in the
14509         GtkLabel test; add a way to change the entry frame in GtkEntry
14510         test
14511
14512         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
14513         (gtk_entry_get_has_frame): new functions to remove the frame
14514         around an entry
14515         (gtk_entry_size_request): shrink requisition if no frame
14516         (gtk_entry_draw_focus): don't draw frame if no frame
14517
14518         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
14519         checks inside a cell renderer
14520         (gtk_default_draw_option): ditto for options
14521
14522         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
14523         children from the alignment, not the button
14524         (gtk_tree_view_column_init): ref/sink the column, to emulate
14525         GObject refcounting.
14526
14527         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
14528         
14529         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
14530         Use theme functions to draw the toggles 
14531
14532         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
14533
14534         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
14535         GdkPangoAttrEmbossed to use in rendering insensitive text
14536
14537         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
14538
14539         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
14540         using new GDK features
14541         
14542 2001-01-24  Alexander Larsson  <alexl@redhat.com>
14543
14544         * gtk/gtkimage.c:
14545         Splitted gtk_image_clear into gtk_image_clear() and
14546         gtk_image_reset(). Call gtk_image_clear() in ::destroy
14547         to avoid leaks.
14548
14549         * gtk/gtklabel.c (set_markup):
14550         Don't leak text.
14551
14552         * gtk/gtktextlayout.c:
14553         Always free display->shaped_objects.
14554
14555         * gtk/testgtk.c (create_clist):
14556         Don't leak custom style.
14557
14558 2001-01-23  Alexander Larsson  <alexl@redhat.com>
14559
14560         * gtk/gtkcolorsel.c (grab_color_at_mouse):
14561         Don't leak image. Simplify using gdk_colormap_query_color().
14562         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
14563
14564         * linux-fb/gdkcolor-fb.c:
14565         Implemented gdk_colormap_query_color.
14566
14567 2001-01-23  Alexander Larsson  <alexl@redhat.com>
14568
14569         * linux-fb/gdkcursor-fb.c:
14570         Don't leak built-in cursors.
14571
14572         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
14573         Don't leak tmp_points.
14574
14575         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
14576         Don't modify desc. Don't leak font if the PangoFont
14577         isn't found.
14578         
14579         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
14580         Free dash_list.
14581
14582         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
14583         Don't leak string.
14584         
14585 2001-01-20  Havoc Pennington  <hp@pobox.com>
14586
14587         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
14588         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
14589         me, matches Pango
14590
14591 2001-01-22  Havoc Pennington  <hp@redhat.com>
14592
14593         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
14594
14595         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
14596
14597         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
14598         Remove, move back to gdk-pixbuf
14599
14600         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
14601         to all the word functions
14602
14603         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
14604         before doing anything on NULL layout or if we don't have the focus
14605
14606         * gtk/testtext.c (fill_example_buffer): "justification"
14607
14608         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
14609         to be called "justification" not "justify"
14610
14611         * demos/gtk-demo/textview.c (create_tags): "justification"
14612         
14613         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
14614
14615 2001-01-22  Alexander Larsson  <alexl@redhat.com>
14616
14617         * gdk/gdkwindow.c (gdk_window_invalidate_region):
14618         Don't leak visible_region. Use visible_region instead of region.
14619         
14620         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
14621         Don't do extra gdk_drawable_ref(). This is not X.
14622         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
14623         gdk_fb_focused_window is ref:ed.
14624         (gdk_fb_window_send_crossing_events): Watch out for destroyed
14625         windows.
14626
14627 2001-01-22  Alexander Larsson  <alexl@redhat.com>
14628
14629         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
14630         Don't leak the PangoFontDescriptor.
14631
14632 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
14633
14634         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
14635         when not realized.
14636         (gtk_tree_view_scroll_to_cell): Make work when not realized.
14637         (gtk_tree_view_realize): add scroll_to support
14638         (gtk_tree_view_finalize): add a finalize method.  Populate.
14639         (gtk_tree_view_insert_column): ref and sink the column.
14640         (gtk_tree_view_append_column): ref and sink the column.
14641         (gtk_tree_view_queue_draw_node): New function to handle redrawing
14642         individual nodes.  Should make the code much more efficient, if
14643         actually used.
14644
14645 2001-01-19  Havoc Pennington  <hp@redhat.com>
14646
14647         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
14648         byte_offset variable was being used to mean both "offset into
14649         layout" and "offset into buffer line" which was no longer true
14650         with addition of preedit string; fix
14651
14652 2001-01-19  Havoc Pennington  <hp@redhat.com>
14653
14654         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
14655
14656         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
14657         function
14658
14659         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
14660         implement
14661
14662         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
14663         scroll_to_cell, matches TextView scroll functions better
14664         (gtk_tree_view_tree_to_widget_coords): new function
14665         (gtk_tree_view_widget_to_tree_coords): new function
14666         (gtk_tree_view_get_visible_rect): new function
14667         (gtk_tree_view_get_path_at_pos): accept negative coordinates
14668         (gtk_tree_view_draw_node_focus_rect): new function moved from
14669         draw_focus, also, use width of bin_window as width of the focus
14670         rect
14671         (gtk_tree_view_expand_row): fix bug where it didn't recognize
14672         already-expanded rows
14673         (gtk_tree_view_get_cell_rect): new function
14674         (gtk_tree_view_get_path_at_pos): return the click position
14675         relative to the passed-in cell
14676         (gtk_tree_view_set_expander_column): new function
14677
14678         * configure.in: remove gtk-config-2.0 chmod
14679
14680         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
14681         and properly handle drags with targets we don't understand
14682         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
14683         scrolling anyway
14684         (gtk_text_view_drag_drop): stop scrolling here though, and set the
14685         mark invisible
14686
14687         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
14688         function
14689         (gtk_drag_dest_get_target_list): new function
14690         (gtk_drag_dest_set_target_list): new function
14691         
14692         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
14693
14694         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
14695         related to drag-and-drop
14696
14697 2001-01-19  Alexander Larsson  <alexl@redhat.com>
14698
14699         * gdk/linux-fb/gdkprivate-fb.h:
14700         Define EMULATE_GDKFONT.
14701         Add extra pango_font stuff to GfkFontPrivate.
14702         
14703         * gdk/linux-fb/gdkdrawable-fb2.c:
14704         * gdk/linux-fb/gdkfont-fb.c:
14705         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
14706         emulation using PangoFont.
14707
14708 2001-01-17  Havoc Pennington  <hp@pobox.com>
14709
14710         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
14711         all the non-deprecated set_foo functions. Added missing object
14712         properties, and added g_object_notify() to setters. 
14713         Wrote docs.
14714         
14715 2001-01-18  Tor Lillqvist  <tml@iki.fi>
14716
14717         * gtk/gtkmain.c
14718         * gtk/gtkrc.c: (Win32) Use the new
14719         g_win32_get_package_installation_(sub)directory() functions.
14720
14721         * config.h.win32.in: New file.
14722         
14723         * config.h.win32: Removed.
14724
14725         * configure.in: Output config.h.win32.
14726
14727         * Makefile.am: Add it to EXTRA_DIST.
14728
14729         * gtk/gtk.def: Update.
14730
14731 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
14732
14733         * gtk/gtklabel.c (gtk_label_size_request): Set the
14734         attributes onto the PangoLayout even if they are newly
14735         created from label->pattern.
14736
14737 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
14738
14739         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
14740
14741         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
14742         structures in functions. Fixes bug where gtk_dataset_*
14743         was accidentally still being used in one place, causing
14744         every dest side event to be treated independently.
14745
14746         * gtk/gtkdnd.c: Remove last vestages of handling
14747         ::draw (fixes warning)
14748         
14749         * gtk/gtkentry.[ch]: Add drag and drop support.
14750
14751         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
14752         new function gtk_check_drag_threshhold() for checking
14753         to check if (dx,dy) has exceeded the threshhold for starting
14754         a drag and use it everywhere.
14755
14756 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
14757
14758         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
14759         add -I{includedir}/gtk-2.0.
14760
14761         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
14762         gdk/gdk-pixbuf.h: Doc fixups.
14763         
14764         * gtk/gtkobject.h: Remove trailing , from enum
14765
14766 2001-01-17 Alexander Larsson <alexl@redhat.com> 
14767
14768         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
14769         Doh! Mixed up x and y.
14770
14771         * gdk/linux-fb/gdkglobals-fb.c:
14772         Removed gdk_fb_pointer_grab_window_events,
14773         added _gdk_fb_pointer_grab_owner_events and
14774         _gdk_fb_keyboard_grab_owner_events.
14775
14776         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
14777         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
14778         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
14779         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
14780         Send crossing events after ungrab finished.
14781         (gdk_keyboard_grab): Set ..._owner_events
14782         (type_masks): Move out of function.
14783         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
14784         gdk_fb_keyboard_event_window): New functions, return the
14785         window an event should be targeted at. Handles grabs and
14786         event propagation. Can return NULL.
14787         (gdk_event_make): Remove event_mask checking. Now always
14788         returns an event.
14789                 
14790         * gdk/linux-fb/gdkkeyboard-fb.c:
14791         * gdk/linux-fb/gdkproperty-fb.c:
14792         * gdk/linux-fb/gdkselection-fb.c:
14793         Use new event_window/gdk_event_make() behaviour.
14794         
14795         * gdk/linux-fb/gdkmouse-fb.c:
14796         Use new event_window/gdk_event_make() behaviour.
14797         Only send motion events if in the same window.
14798         If grabbed, use cursor from window if sibling of grabbed
14799         window, and cursor from grabbed window otherwise.
14800
14801         * gdk/linux-fb/gdkprivate-fb.h:
14802         Update gdk_fb_window_send_crossing_events, gdk_event_make
14803         and grab varaible declarations. Add gdk_fb_*_event_window().
14804
14805         * gdk/linux-fb/gdkwindow-fb.c:
14806         Use new event_window/gdk_event_make() behaviour.
14807         Keep correct track of focus window.
14808         (gdk_window_set_events): Set all specific button motion masks
14809         if GDK_BUTTON_MOTION_MASK set.
14810
14811         * gtk/gtkdnd.c (gtk_drag_update):
14812         Free info->last_event if gdk_drag_motion returned FALSE.
14813
14814 2001-01-16  Tor Lillqvist  <tml@iki.fi>
14815
14816         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
14817         Eliminate redraws when input-only windows are shown or
14818         hidden. Thanks to jpe@archaeopteryx.com.
14819
14820 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
14821
14822         * docs/faq/gtk-faq.sgml: FAQ update:
14823           - Update to bugzilla
14824           - Add GTK+ and security/SUID/SGID
14825           - Add DnD question
14826
14827 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
14828
14829         * gdk/linux-fb/gdkdnd-fb.c:
14830         Some cleanups.
14831         
14832 2001-01-15  Havoc Pennington  <hp@pobox.com>
14833
14834         * tests/testtreeview.c: add test stuff for CellRendererToggle
14835
14836         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
14837         accessor
14838
14839         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
14840         only toggle on button press (would do release like GtkButton, but
14841         we'd need implicit grab code for treeview cells)
14842
14843 2001-01-16  Tor Lillqvist  <tml@iki.fi>
14844
14845         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
14846
14847         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
14848         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
14849
14850         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
14851         to g_{locale,filename}_{to,from}_utf8 to match current API.
14852
14853         * gtk/makefile.msc.in (gtk_OBJECTS)
14854         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
14855
14856         * gtk/gtk.def: Update.
14857
14858 2001-01-15  Tor Lillqvist  <tml@iki.fi>
14859
14860         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
14861         implementaion that more closely mimics the events that an X server
14862         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
14863         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
14864         with nested preview widgets, for instance, more responsive when
14865         you move the mouse quickly into them.
14866         (find_window_for_pointer_event): Make it actually compile.
14867         (gdk_event_translate): Set send_event to the value of
14868         InSendMessage (). This doesn't really mean the same as X11's
14869         send_event flag, but is close enough, says jpe@archaeopteryx.com
14870
14871 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14872
14873         * gdk/linux-fb/gdkdnd-fb.c:
14874         Implemented drag and drop.
14875         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
14876         when it tries to free and then copy the same event (info->last_event).
14877         I am not sure about why this happens, but will continue looking.
14878
14879 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14880
14881         * gdk/linux-fb/gdkwindow-fb.c:
14882         Use gdk_window_invalidate_rect instead of
14883         gdk_window_invalidate_rect_clear to minimise flashing.
14884         When hiding windows you need to clear the root window though.
14885
14886 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14887
14888         * gdk/linux-fb/gdkdrawable-fb2.c:
14889         For optization, add an full_shapes argument to gdk_fb_clip_region.
14890         If this is false, only the cliprects of the shapes are used.
14891
14892         * gdk/linux-fb/gdkprivate-fb.h:
14893         Export gdk_fb_window_peek_shape.
14894         Add full_shapes to gdk_fb_clip_region.
14895
14896         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
14897         When moving a window, don't clear everything under the it, just the
14898         root window. Makes stuff faster and flash less.
14899         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
14900         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
14901         offset of the shape.
14902         
14903
14904 2001-01-12  Havoc Pennington  <hp@redhat.com>
14905
14906         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
14907         current invalid region, fixes redraw bug while scrolling the 
14908         text widget
14909
14910         * gtk/gtktextview.c, gtk/gtktextview.h:
14911         Rearrange the scrolling/validation/etc. code in a major way, 
14912         so it seems to make sense to me. Probably isn't genuinely that
14913         much better, but...
14914
14915         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
14916         notifies
14917
14918         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
14919
14920 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
14921
14922         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
14923         Hide mouse pointer while rotation. Show it afterwards.
14924
14925 2001-01-12  Alexander Larsson  <alexl@redhat.com>
14926
14927         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
14928         windows in consideration when generating clip region.
14929
14930         * gdk/linux-fb/gdkfb.h:
14931         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
14932
14933         * gdk/linux-fb/gdkprivate-fb.h:
14934         Add shape to GdkWindowFBDatat.
14935         exported gdk_fb_window_get_abs_shape().
14936         removed gdk_fb_draw_lines declaration.
14937
14938         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
14939         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
14940         send focus changes when there is a grabbed window.
14941         (gdk_window_get_pointer): Handle shaped windows.
14942         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
14943         (gdk_fb_window_peek_shape): Returns the shape for a window,
14944         handles GDK_FB_USE_CHILD_SHAPE.
14945         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
14946         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
14947         (gdk_window_shape_combine_mask): Implement.
14948
14949         * gtk/gtkwindow-decorate.c:
14950         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
14951         setting the shape of a window makes the window transparent.
14952
14953 2001-01-11  Havoc Pennington  <hp@redhat.com>
14954
14955         * gtk/gtktreemodelsimple.h: Oops, broke some macros
14956
14957 2001-01-10  Havoc Pennington  <hp@redhat.com>
14958
14959         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
14960         add this function, bug 40251
14961
14962         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
14963         of type macro   
14964
14965 2001-01-11  Alexander Larsson  <alexl@redhat.com>
14966
14967         * acconfig.h:
14968         Added ENABLE_SHADOW_FB
14969
14970         * configure.in:
14971         Added --disable-shadowfb
14972
14973         * gdk/linux-fb/gdkcursor-fb.c:
14974         Update shadowfb when updating cursor
14975
14976         * gdk/linux-fb/gdkdrawable-fb2.c:
14977         Added wrappers for shadowfb that calls  the normal drawable
14978         methods, but calls gdk_shadow_fb_update(bounding box) when
14979         GdkWindows are drawed to.
14980         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
14981         which also returns the bounding box.
14982
14983         * gdk/linux-fb/gdkfb.h:
14984         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
14985
14986         * gdk/linux-fb/gdkgeometry-fb.c:
14987         Update shadowfb when scrolling window.
14988
14989         * gdk/linux-fb/gdkglobals-fb.c:
14990         Add _gdk_fb_screen_angle.
14991         
14992         * gdk/linux-fb/gdkkeyboard-fb.c:
14993         Test code for screen rotation. Shift-F2 in the xlate driver
14994         rotates the screen.
14995
14996         * gdk/linux-fb/gdkmain-fb.c:
14997         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
14998
14999         * gdk/linux-fb/gdkmouse-fb.c:
15000         Use fb_width/height instead of modeinfo.xres/yres.
15001
15002         * gdk/linux-fb/gdkprivate-fb.h:
15003         Added fb_men, fb_width, fb_height & fb_stride. When using
15004         shadow fb these can differ from the framebuffer stuff.
15005         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
15006         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
15007         _gdk_fb_screen_angle. Removed CM, RP.
15008
15009         * gdk/linux-fb/gdkrender-fb.c:
15010         Added code for shadowfb handling and screen rotation using
15011         shadowfb.
15012
15013         * gdk/linux-fb/gdkwindow-fb.c:
15014         Use fb_mem, fb_stride, fb_width, fb_height.
15015         Added recompute_rowstride to reset the rowstride of all windows.
15016         Added gdk_fb_recompute_all() which recomputes rootwindow size,
15017         window abs positions and window rowstrides. Usefull when the
15018         rotation has changed.
15019
15020 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
15021
15022         * docs/faq/gtk-faq.sgml: update to make web site updating easier
15023
15024 2001-01-10  Havoc Pennington  <hp@redhat.com>
15025
15026         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
15027         where sibling == iter
15028         (gtk_tree_store_insert_after): handle sibling == iter
15029         (gtk_tree_store_prepend): remove stamp checks
15030         (gtk_tree_store_insert_before): ditto
15031         (gtk_tree_store_append): ditto
15032         (gtk_tree_store_get_path): ditto
15033         (gtk_tree_store_get_value): ditto
15034         (gtk_tree_store_iter_has_child): ditto
15035         (gtk_tree_store_iter_n_children): ditto
15036         (gtk_tree_store_iter_nth_child): ditto
15037         (gtk_tree_store_insert_after): ditto
15038         (gtk_tree_store_is_ancestor): ditto
15039         (gtk_tree_store_iter_depth): ditto
15040         (gtk_tree_store_insert_before): assert that sibling's parent is
15041         the same as the passed-in parent
15042         (gtk_tree_store_insert_after): assert that sibling's parent is
15043         the same as the passed-in parent
15044
15045         
15046         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
15047         function to get the first iterator in a model
15048         
15049         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
15050         conventionally the "root" in this sense is just NULL afaict.
15051
15052         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
15053         where sibling == iter
15054         (gtk_list_store_insert_after): handle case where sibling == iter
15055
15056         * tests/testtreeview.c (run_automated_tests): fairly lame basic
15057         automated tests for ListStore, TreeStore
15058
15059         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
15060         (gtk_list_store_insert): update tail pointer, and fix it to work
15061         (gtk_list_store_insert_before): update tail pointer, and fix it to work
15062         (gtk_list_store_append): use tail to be faster
15063         (gtk_list_store_prepend): fix it, update tail pointer
15064         (gtk_list_store_insert_after): fix it, update tail pointer
15065
15066         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
15067         the list
15068
15069 2001-01-09  Havoc Pennington  <hp@redhat.com>
15070
15071         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
15072         is NULL due to a pending resize
15073
15074         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
15075         column width to values less than 1
15076
15077         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
15078         width to be between min/max width, and still set the width 
15079         even if autosize is turned on, so the tree view can use this 
15080         function in order to autosize.
15081         (gtk_tree_view_column_init): set initial width to 1 not 0
15082
15083         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
15084         setter function to modify column width, so we get notification
15085         (gtk_tree_view_insert_iter_height): ditto
15086         (gtk_tree_view_calc_size): ditto
15087         (gtk_tree_view_check_dirty): ditto
15088
15089         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
15090         properties to change all the interesting attributes of the tree
15091         view column.
15092         (gtk_tree_view_column_set_header_clickable): rename set_clickable
15093         (gtk_tree_view_column_get_clickable): add
15094         (gtk_tree_view_column_set_cell_renderer): don't unset the current
15095         attributes; assume a cell renderer with equivalent object
15096         properties has been swapped in. Do g_object_notify().
15097         (gtk_tree_view_column_set_visible): g_object_notify
15098         (gtk_tree_view_column_get_sizing): rename from get_col_type
15099         (gtk_tree_view_column_set_sizing): g_object_notify
15100         (gtk_tree_view_column_set_width): add g_object_notify
15101         (gtk_tree_view_column_set_min_width): ditto
15102         (gtk_tree_view_column_set_max_width): ditto
15103         (gtk_tree_view_column_set_title): ditto
15104         (gtk_tree_view_column_set_clickable): ditto
15105         (gtk_tree_view_column_set_widget): ditto
15106         (gtk_tree_view_column_set_justification): ditto
15107
15108 2001-01-09  Havoc Pennington  <hp@redhat.com>
15109
15110         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
15111         there are no rows in the model
15112
15113         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
15114         NULL, then return the start of the list
15115
15116         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
15117         if we can't get any rows from an empty model 
15118
15119         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
15120         extraneous * after function pointer typedef usage
15121
15122         * Makefile.am: don't specify full path to cp and rm
15123
15124         * gtk/gtkcellrenderertextpixbuf.c
15125         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
15126         NULL before dereferencing, fixes a segfault that happened from
15127         time to time
15128
15129         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
15130         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
15131         and reindent the function
15132         (gtk_cell_renderer_pixbuf_get_size): indentation
15133
15134         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
15135         we quit it
15136         (gtk_dialog_add_buttons_valist): add g_return_if_fail
15137         (gtk_dialog_set_default_response): New function, to set default
15138         button
15139         (gtk_dialog_set_response_sensitive): New function, to set 
15140         sensitivity of buttons
15141
15142         * gtk/gtkcellrendererpixbuf.c
15143         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
15144         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
15145
15146         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
15147         handle any G_TYPE_OBJECT subclass, not just the base class, and 
15148         also boxed types.
15149         (_gtk_tree_data_list_value_to_node): ditto
15150
15151         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
15152         --gtk-debug=tree
15153
15154         * gtk/gtkmain.c: add GTK_DEBUG_TREE
15155
15156         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
15157
15158 2001-01-09  Tor Lillqvist  <tml@iki.fi>
15159
15160         * gdk/win32/gdkevents-win32.c: Implement better mouse
15161         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
15162         (find_window_for_pointer_event): New function.
15163         (gdk_event_translate): Use it when handling mouse events.
15164
15165 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
15166
15167         * configure.in:
15168         Added --with-included-loaders option
15169
15170         * gdk-pixbuf/Makefile.am:
15171         * gdk-pixbuf/gdk-pixbuf-io.c:
15172         Add support for including selected gdk-pixbuf loaders only.
15173
15174         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
15175         gtk_window_set_has_frame):
15176         Added inline documentation.
15177
15178         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
15179         * docs/reference/gdk/tmpl/windows.sgml:
15180         Added inline documentation.
15181
15182 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
15183
15184         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
15185         realizing buttons that have already been realized.
15186
15187 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
15188
15189         * tests/testtreeview.c (main): Show menu items before adding to
15190         option menu.
15191
15192         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
15193         around if we kill them.
15194
15195         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
15196         Return if we pass in a NULL model.
15197
15198 2001-01-08  Havoc Pennington  <hp@redhat.com>
15199
15200         * tests/testtreeview.c: hack on this some
15201
15202         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
15203         gtk_tree_store_set_valist, v is for arrays, valist for varargs
15204         list
15205         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
15206
15207         * gtk/gtkliststore.h: Add varargs set() and get() convenience
15208         functions
15209
15210 2001-01-08  Alexander Larsson  <alexl@redhat.com>
15211
15212         * gtk/gtkwindow-decorate.[hc]:
15213         * gtk/Makefile.am:
15214         New files. Contains an implementation of a minimal WM for
15215         linux-fb.
15216
15217         * gtk/gtkwindow.h:
15218         Add the possibility for GtkWindows to specify a frame. This
15219         is used for the window decoration code, but could concievably
15220         be used for X programs too (xmms style windows).
15221         GtkWindow->frame is the toplevel window if the window is framed.
15222         The signal frame_event gets all events that are targeted to
15223         GtkWindow->frame.
15224         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
15225         
15226         * gtk/gtkwindow.c:
15227         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
15228         Call out to gtkwindow-decorate.c for WM support in linx-fb.
15229
15230 2001-01-08  Alexander Larsson  <alexl@redhat.com>
15231
15232         * docs/README.linux-fb:
15233         Correct filename ~/.pangoft2_aliases
15234
15235         * gdk/gdkwindow.h:
15236         Added new function gdk_window_get_decorations.
15237
15238         * gdk/linux-fb/gdkfb.h:
15239         Removed _gdk_window_get_decorations declaration.
15240         Renamed _gdk_window_set_child_handler to
15241         gdk_fb_window_set_child_handler.
15242
15243         * gdk/linux-fb/gdkwindow-fb.c:
15244         Renamed _gdk_window_set_child_handler to
15245         gdk_fb_window_set_child_handler.
15246
15247         * gdk/x11/gdkwindow-x11.c:
15248         New function gdk_window_get_mwm_hints().
15249         Implemented gdk_window_get_decorations.
15250
15251         * docs/reference/gdk/tmpl/windows.sgml:
15252         * docs/reference/gdk/gdk-sections.txt:
15253         Added gdk_window_get_decorations docs.
15254         
15255 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
15256
15257         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
15258         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
15259         gdk_fb_window_send_crossing_events):
15260         Possibly send focus events when the mouse moves from one
15261         window to another.
15262
15263 2001-01-07  Tor Lillqvist  <tml@iki.fi>
15264
15265         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
15266         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
15267         to match current API.
15268
15269         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
15270         environment variable is set, don't call g_error when on a
15271         palettized (PseudoColor) display. Some people want to use GTK+ 
15272         in 256-colour mode even though works only partially.
15273
15274         * gdk/gdk.def
15275         * gtk/gtk.def
15276         * gtk/makefile.mingw.in: Update.
15277
15278 2001-01-05  Havoc Pennington  <hp@redhat.com>
15279
15280         * tests/testtreeview.c: hack on this a bit
15281
15282         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
15283         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
15284
15285         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
15286         was spelled incorrectly
15287         (GTK_IS_TREE_MODEL_SIMPLE): ditto
15288
15289         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
15290         from gtk_tree_view_set_headers_active   
15291
15292         * gtk/gtktexttag.c:
15293         (gtk_text_tag_get_property): handle PROP_DIRECTION
15294         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
15295         properties, bug 40235
15296
15297         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
15298         forward_to_line_end
15299
15300 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
15301
15302         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
15303         modules/input/gtkimcontextxim.c: Adapt to new prototypes
15304         for unicode,locale,filename conversion functions.
15305
15306 2001-01-05  Havoc Pennington  <hp@redhat.com>
15307
15308         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
15309         broken if called on the first position in the buffer.
15310
15311         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
15312         forward_to_delimiters to be called only if we aren't already at
15313         the delimiters.
15314
15315 2001-01-05  Havoc Pennington  <hp@redhat.com>
15316
15317         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
15318
15319 2001-01-05  Alexander Larsson  <alexl@redhat.com>
15320
15321         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
15322         colormap in here. Sync from X port.
15323         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
15324         Sync from X port.
15325         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
15326         This happens now and then, and i don't think it is a bug.
15327         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
15328         != endpoint.
15329         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
15330         GDK_LINE_SOLID.
15331
15332         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
15333         some of the fields filled in at least.
15334
15335         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
15336         miLineArcD is no more, remove it from the function definition.
15337
15338 2001-01-04  Havoc Pennington  <hp@redhat.com>
15339
15340         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
15341         this
15342
15343         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
15344         user_data instead of tree_node
15345
15346         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
15347         TREE_VIEW_COLUMN_SIZE
15348
15349         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
15350         "size" field to "width" finishes bug 40061
15351
15352         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
15353         for bitfields, bug 40268
15354
15355 2001-01-04  Havoc Pennington  <hp@redhat.com>
15356
15357         Rename some stuff:
15358         
15359         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
15360
15361         s/GtkModelSimple/GtkTreeModelSimple/g;
15362         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
15363         s/gtk_model_simple/gtk_tree_model_simple/g;
15364         s/gtkmodelsimple/gtktreemodelsimple/g;
15365
15366         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
15367
15368         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
15369         s/column_set_col_type/column_set_sizing/g;
15370
15371         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
15372         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
15373
15374         s/GtkCellRendererType/GtkCellRendererState/g;
15375         
15376         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
15377         (gtk_cell_renderer_toggle_class_init): change "state" property to
15378         "active", to match GtkToggleButton
15379         (gtk_cell_renderer_toggle_get_active): new function, bug
15380         40269
15381         (gtk_cell_renderer_toggle_set_active): new function
15382         (gtk_cell_renderer_toggle_set_property): route changes to toggle
15383         state through gtk_cell_renderer_set_active
15384
15385 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
15386
15387         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
15388         temporarily until they work again.  Brought up to date with
15389         changes in the model.
15390         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
15391         model.
15392
15393 2001-01-04  Havoc Pennington  <hp@redhat.com>
15394
15395         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
15396         equal to the line length, then position iterator before paragraph 
15397         separators. Fixes crash reported by Mikael Hermansson when
15398         pressing left arrow from the start of a line.   
15399
15400         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
15401         about byte indexes off the end
15402         (iter_set_from_char_offset): add g_error about char offsets
15403         off the end
15404
15405 2001-01-03  Havoc Pennington  <hp@redhat.com>
15406
15407         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
15408
15409         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
15410         of private functions; remove inclusion of private headers.
15411
15412         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
15413         function, so we don't need private functions in gtktextdisplay.c
15414
15415         * gtk/gtktextiterprivate.h: underscore-ification
15416
15417         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
15418         to instead say "only useful to implement widgets"
15419
15420         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
15421         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
15422         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
15423
15424         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
15425         This function was completely broken
15426
15427         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
15428
15429         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
15430
15431         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
15432
15433         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
15434
15435         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
15436
15437         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
15438
15439         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
15440         gtk_paint_layout
15441
15442         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
15443         gtk_paint_layout
15444
15445         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
15446         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
15447         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
15448         which were not implemented.     
15449
15450         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
15451         insert_pixbuf signal. Rename delete_text to delete_range since it
15452         also deletes pixbufs and child anchors. This almost closes bug
15453         40245 (still need to deal with child anchors)
15454
15455         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
15456         insert_pixbuf, change signal names as appropriate, change types of
15457         signals taking marks/tags to have the specific type, not just
15458         G_TYPE_OBJECT
15459         
15460         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
15461         closes bug 40051
15462
15463         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
15464         unnecessary remove_contents() call
15465         (gtk_option_menu_class_init): add a "changed" signal, closes
15466         bug 40039
15467         (gtk_option_menu_update_contents): emit "changed" if the 
15468         active menu item changes
15469
15470         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
15471         cast to GtkObject, reported by Jonas Borgstrom
15472         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
15473         we can't do stuff with side effects in finalize. Instead, spew a
15474         warning if the loader isn't closed.
15475
15476         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
15477         colormap in here, non-X ports probably need to sync to this change
15478
15479         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
15480         assertion that colormap != NULL, you can set the colormap to NULL
15481         if you like.
15482         
15483         * Makefile.am: remove gtk-config-2.0
15484
15485         * configure.in: Use pkg-config to locate GLib. Remove
15486         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
15487         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
15488         Use pkg-config to locate Pango. Output correct Pango libs to
15489         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
15490
15491         * Makefile.am (pkgconfig_DATA): install only target-specific pc
15492         files
15493         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
15494         X11 pc files
15495
15496         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
15497         unref from here
15498
15499 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
15500
15501         * configure.in:
15502         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
15503
15504 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
15505
15506         * gtk/gtktextlayout.c
15507         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
15508         variable when moving back onto a single line.
15509
15510 2001-01-01  Havoc Pennington  <hp@redhat.com>
15511
15512         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
15513
15514         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
15515
15516         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
15517         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
15518
15519 2001-01-01  Havoc Pennington  <hp@redhat.com>
15520
15521         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
15522
15523         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
15524         GtkTextAttributes
15525
15526         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
15527         #40246
15528         (gtk_text_attributes_copy_values): rename from 
15529         gtk_text_attributes_copy
15530         (gtk_text_attributes_copy): a more standard GTK copy function, 
15531         which returns a new object
15532
15533 2001-01-01  Havoc Pennington  <hp@redhat.com>
15534
15535         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
15536         
15537         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
15538         don't fill in tree_view->priv->selection, kind of an unexpected
15539         side effect
15540
15541         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
15542         gtkintl.h
15543         
15544         * gtk/gtkcellrenderer.c: Remove definition of _ and include
15545         gtkintl.h
15546         (gtk_cell_renderer_get_property): remove calls to g_value_init
15547
15548         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
15549         gtkintl.h
15550
15551         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
15552         and include gtkintl.h
15553         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
15554         property names
15555
15556         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
15557         GtkTreeSelection
15558         (_gtk_tree_selection_new_from_with_view): rename, return
15559         GtkTreeSelection
15560         (_gtk_tree_selection_set_tree_view): rename with uscore
15561         (gtk_tree_selection_get_selected): fill in the "model" out param
15562         first, so it gets filled in even if we return at the top of the 
15563         function
15564         (gtk_tree_selection_real_select_all): add a comment and an else{}
15565         to clarify this a bit
15566         (gtk_tree_selection_real_unselect_all): add the same else{}
15567
15568         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
15569         set_tree_view to have underscore prefixes, move them to the
15570         private header, fix return type of new_with_tree_view
15571         (struct _GtkTreeSelection): mark struct
15572         fields private  
15573
15574         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
15575         GtkTreeModelFlags, not a guint
15576         (gtk_tree_path_prev): return gboolean not gint
15577         (gtk_tree_path_up): return gboolean not gint
15578
15579         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
15580         return GtkTreeModelFlags, not a guint
15581
15582         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
15583         that child model is non-null before unrefing it
15584         (g_value_int_compare_func): make this a qsort compare func, not 
15585         a boolean predicate
15586
15587         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
15588         (add -umn to the end), and mark it unimplemented
15589         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
15590         I don't see what it's for - doesn't the model always sort itself?
15591         (gtk_tree_model_sort_set_compare): this had the wrong signature
15592
15593         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
15594         Fix the docs to say that it destructively replaces existing
15595         attributes (previously said that it added attributes).
15596         (gtk_tree_view_column_set_visible): canonicalize bool before
15597         equality testing. Also, check for realization before
15598         hiding/showing the tree_column->window; if this window could exist
15599         before realization, then it's busted and needs fixing, we can't 
15600         create GDK resources pre-realization. Also, remove
15601         superfluous queue_resize(), since set_size() does that for us.
15602         (gtk_tree_view_column_set_col_type): check realization before 
15603         using tree_column->window
15604
15605         * gtk/gtktreedatalist.c: fix filename in copyright notice
15606
15607 2000-12-31  Havoc Pennington  <hp@pobox.com>
15608
15609         * gtk/gtktextview.c: Rearrange all the
15610         scroll-while-dragging-or-selecting code to be different, not
15611         necessarily better. ;-)
15612         (gtk_text_view_scroll_to_mark): Change this
15613         function to take within_margin as a fraction instead of a pixel
15614         value, and to take alignment arguments (indicating where to align 
15615         the mark inside the visible area)
15616         
15617         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
15618         to GtkObject
15619
15620         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
15621         behavior so that offsets past the end of the line are not 
15622         allowed, and an offset equal to the line length moves the iterator
15623         to the next line
15624         (gtk_text_iter_set_line_index): make parallel change
15625         (gtk_text_iter_get_bytes_in_line): add this function
15626         
15627         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
15628         of byte indexes off the end of the line; byte index at the end of
15629         the line now returns FALSE and doesn't fill in the requested
15630         values, byte index past the end of the line is an error.  Also,
15631         don't allow -1 offset anymore, since its meaning is unclear.
15632
15633         This change exposes some bug in visual cursor motion, where we
15634         end up with a huge invalid byte index; needs fixing. Symptom of 
15635         bug is a crash when you hit up arrow.
15636         
15637         (_gtk_text_line_char_locate): match the change to byte_locate
15638
15639         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
15640         from start of line properly. fixes bug reported by Mikael
15641         Hermansson where backspace would delete all text before the
15642         cursor.
15643
15644 2000-12-30  Tor Lillqvist  <tml@iki.fi>
15645
15646         * gdk/win32/gdkwindow-win32.c
15647         (gdk_window_impl_win32_get_visible_region): New function, as in
15648         the X11 backend.
15649         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
15650         instead of duplicating the same code here.
15651
15652         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
15653         GDK_COLORMAP macro.
15654
15655         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
15656         destroy function.
15657         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
15658         access that.
15659
15660         * gtk/gtk.def: Update.
15661
15662         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
15663
15664 2000-12-30  Havoc Pennington  <hp@pobox.com>
15665
15666         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
15667         colormap on input only windows, to avoid special cases all over
15668         the code for these windows.
15669
15670 2000-12-26  Tor Lillqvist  <tml@iki.fi>
15671
15672         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
15673         we are on a palettized display ("PseudoColor" in X11), as the code
15674         for that doesn't work anyway, and never has.
15675
15676 2000-12-22  Alexander Larsson  <alexl@redhat.com>
15677
15678         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
15679         Don't use isprint() for chars > 255.
15680
15681 2000-12-21  Havoc Pennington  <hp@redhat.com>
15682
15683         * tests/testtreeview.c: more work
15684
15685 2000-12-21  Alexander Larsson  <alexl@redhat.com>
15686
15687         * docs/README.linux-fb:
15688         Update the docs to the new pangoft2 way.
15689
15690 2000-12-21  Alexander Larsson  <alexl@redhat.com>
15691
15692         * configure.in:
15693         For linux-fb get the pangoft2 cflags and libs. This needs a recent
15694         pango version.
15695         Remove modules/linux-fb/Makefile.
15696
15697         * gdk/linux-fb/gdkdrawable-fb2.c:
15698         Render glyphs using freetype.
15699
15700         * gdk/linux-fb/gdkfb.h:
15701         Add new fb-specific functions needed for managing windows.
15702
15703         * gdk/linux-fb/gdkmain-fb.c:
15704         Remove gdk_font_init/fini() calls.
15705
15706         * gdk/linux-fb/gdkpango-fb.c:
15707         Remove old implementation. Use pangoft2 instead.
15708
15709         * gdk/linux-fb/gdkprivate-fb.h:
15710         Remove PangoFBFont and related stuff.
15711
15712         * gdk/linux-fb/gdkwindow-fb.c:
15713         Implement drawable->get_visible_region.
15714         Implement support for _gdk_window_set_child_handler () and
15715         _gdk_window_get_decorations().
15716
15717         * modules/Makefile.am:
15718         Remove linux-fb subdir.
15719
15720         * modules/linux-fb/*:
15721         Removed all.
15722         
15723 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
15724
15725         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
15726         calls, as they are no longer needed.
15727
15728         * gtk/gtktreemodelsort.c: Fix up the comparison code.
15729         
15730         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
15731         figure out how to emit a signal on an interface.
15732
15733 2000-12-20  Havoc Pennington  <hp@redhat.com>
15734
15735         * tests: new directory to contain tests, gtk/test* should move
15736         here sometime (with appropriate on-cvs-server hackery)
15737
15738         * tests/testtreeview.c, tests/Makefile.am: a test
15739         
15740         * configure.in (AC_OUTPUT): add tests/Makefile
15741
15742         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
15743         and "invisible_set" which were missing
15744
15745         * gtk/gtkrbtree.h: some cheesy indentation fix
15746         
15747 2000-12-20  Alexander Larsson  <alexl@redhat.com>
15748
15749         * gtk/gtkinvisible.c (gtk_invisible_realize):
15750         Attach the style to the window so that the style it is not
15751         leaked when unrealizing the window.
15752
15753 2000-12-18  Havoc Pennington  <hp@redhat.com>
15754
15755         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
15756         begin/end user action where appropriate
15757         (gtk_text_view_commit_handler): add begin/end user action
15758
15759         * gtk/gtktextbuffer.c: add begin/end user action signals, and
15760         bracket interactive operations with begin/end user action pair.
15761         
15762         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
15763         "interactive" arg from insert_text and delete_text signals.
15764         Add begin_user_action, end_user_action signals
15765         (gtk_text_buffer_begin_user_action): 
15766         (gtk_text_buffer_end_user_action): New functions to delimit 
15767         a user-visible action
15768
15769         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
15770         signals.
15771         
15772 2000-12-18  Havoc Pennington  <hp@redhat.com>
15773
15774         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
15775         was pretty non-working.
15776
15777         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
15778         by passing the length to g_utf8_validate().
15779
15780 2000-12-16  Havoc Pennington  <hp@pobox.com>
15781
15782         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
15783         Port to GObject, can go back in gdk-pixbuf after setting up 
15784         a gdk-pixbuf-marshal.h header over there.
15785
15786         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
15787         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
15788         args
15789         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
15790         set
15791         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
15792         here, do it when we create the buttons later
15793         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
15794         (gtk_tree_view_map): paranoia checks that column->button is shown 
15795         and unmapped
15796         (gtk_tree_view_size_request): only request visible children.
15797         Move header size calculation in here, for cleanliness, and 
15798         to maintain invariants for child widgets if we eventually 
15799         let users set different children inside the buttons
15800         (gtk_tree_view_map_buttons): factor out code to map buttons,
15801         since it was being called several times
15802         (gtk_tree_view_size_allocate_buttons): move_resize the drag
15803         windows instead of just moving them; their height may change 
15804         if we allow random widgets in there, or the theme changes.
15805         (gtk_tree_view_size_allocate): move button size allocation 
15806         above emitting the scroll signals, to ensure a sane state when we
15807         hit user code
15808         (gtk_tree_view_button_release): remove queue_resize after
15809         tree_view_set_size(), set_size() will handle any resize queuing
15810         that's needed
15811         (gtk_tree_view_focus_in): just queue a draw, don't fool with
15812         draw_focus goo
15813         (gtk_tree_view_focus): use gtk_get_current_event() and
15814         gdk_event_get_state()
15815         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
15816         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
15817         semicolon
15818         (gtk_tree_view_create_button): show the button here
15819         (gtk_tree_view_button_clicked): actually emit the clicked signal
15820         on the column
15821         (_gtk_tree_view_set_size): return right away if the size is
15822         unchanged, as a cheesy optimization
15823         (gtk_tree_view_setup_model): rename set_model_realized to 
15824         setup_model to match the flag that indicates whether we've 
15825         called it
15826         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
15827         exist, because set_scroll_adjustment does that and it shouldn't
15828         matter what order you call these in
15829         (gtk_tree_view_get_vadjustment): ditto
15830         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
15831         for paranoia
15832         (gtk_tree_view_set_headers_visible): call
15833         gtk_tree_view_map_buttons() instead of using cut-and-paste code
15834         (gtk_tree_view_append_column): clarify whether the return value
15835         is the count of columns before or after, and do the increment 
15836         separately from the return statement so you can tell from the code.
15837         (gtk_tree_view_remove_column): ditto
15838         (gtk_tree_view_insert_column): ditto
15839         (gtk_tree_view_get_column): remove g_return_if_fail for columns
15840         outside the existing range, the docs say that outside-range
15841         columns are allowed, so we handle them as documented. (Presumably
15842         this allows a nice loop with column != NULL as test.)
15843         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
15844         mean (left/right/center etc.).
15845         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
15846         (gtk_tree_view_expand_row): add docs
15847         (gtk_tree_view_collapse_row): add docs
15848
15849         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
15850         function to emit the clicked signal on a column
15851         
15852         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
15853         state of an event
15854         (gdk_event_get_time): don't treat GDK_SCROLL 
15855         as a button event, remove default case from switch so gcc 
15856         will whine if we don't explicitly handle all event types
15857
15858         * gtk/gtktreeselection.h: added some FIXME 
15859         
15860         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
15861         "columns" to "n_columns" and "column" to "columns" for clarity
15862
15863 2000-12-16  Havoc Pennington  <hp@pobox.com>
15864         
15865         * gtk/gtktextiter.c: General cleanup of the log attr iteration
15866         stuff. This should make e.g. the delete key work again in the
15867         text widget...
15868         (gtk_text_iter_forward_cursor_positions): handle negative count
15869         (gtk_text_iter_backward_cursor_positions): handle negative count
15870         (gtk_text_iter_forward_word_ends): handle negative count
15871         (gtk_text_iter_backward_word_starts): handle negative count
15872
15873         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
15874         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
15875         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
15876         GObject. No doubt will cause breakage.
15877
15878         * demos/gtk-demo/textview.c: remove hacks around
15879         non-GObject-ification of the text objects
15880
15881         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
15882         the text tag
15883         
15884 2000-12-14  Havoc Pennington  <hp@pobox.com>
15885
15886         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
15887         that we have Xrender
15888
15889 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
15890
15891         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
15892         Add two virtualized functions gdk_drawable_get_clip_region - to
15893         get the clip region when drawing.
15894         
15895         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
15896         use invalidate_region.
15897
15898         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
15899         region.
15900
15901         * acconfig.h configure.in: Check for Xft. For now, assume
15902         that if Xft is found, Pango was compiled with Xft support
15903         as well.
15904
15905         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
15906         gdk_colormap_query_color().
15907         
15908         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
15909         with Xft if appropriate.
15910
15911         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
15912         a pangoxft context if we have XFT and the environment
15913         variable GD_USE_XFT is set.
15914         
15915         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
15916         and also possibly an XftDraw structure.
15917
15918         * gtk/gtkfontsel.c: Handle the case where the font from the
15919         style doesn't match any of the fonts a bit better.
15920         
15921         * gtk/testgtk.c: Add tabs between directional segments for
15922         hebrew/arabic test. (Not really necessary, just a little
15923         prettier.)
15924
15925 2000-12-14  Havoc Pennington  <hp@redhat.com>
15926
15927         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
15928         reading a file
15929
15930 2000-12-14  Havoc Pennington  <hp@redhat.com>
15931
15932         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
15933         unused call to get_last_line()
15934
15935         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
15936         here until boxed is working (and maybe after that - we should
15937         really not gratuitously break old code)
15938
15939         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
15940         specific types for font_desc and tabs args, move them to
15941         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
15942         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
15943
15944         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
15945         use GTK_TYPE_POINTER for signal signatures as a hack-around
15946
15947         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
15948         PangoTabArray
15949
15950         * gtk/gtktextlayout.c (line_display_iter_to_index): 
15951         make static
15952         (line_display_index_to_iter): make static
15953
15954         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
15955         to marshal a string not a boxed
15956
15957         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
15958
15959         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
15960         since the UTF-8 isn't validated yet
15961
15962         * gtk/gtktextsegment.c (char_segment_check_func): don't require
15963         lines to end in '\n'
15964         
15965         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
15966         forward_to_delimiters, and grapheme boundaries
15967         (gtk_text_view_delete_from_cursor): properly handle non-newline
15968         delimiters, and grapheme boundaries
15969
15970         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
15971         to gtk_text_iter_forward_to_delimiters, and make it work properly
15972         if empty lines end with a character other than '\n'
15973
15974         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
15975         position
15976
15977 2000-12-15  Tor Lillqvist  <tml@iki.fi>
15978
15979         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
15980
15981         * gtk/gtk.def
15982         * gdk/gdk.def: Update.
15983
15984         * gdk/win32/gdkmain-win32.c
15985         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
15986         gdkmain-win32.c here.
15987
15988         * gdk/win32/makefile.mingw.in (all): No need to make
15989         gdk-win32res.o here, the makefile one step up will call us to make
15990         it.
15991
15992         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
15993         gdkkeys-win32.
15994
15995         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
15996
15997         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
15998         call to g_source_add().
15999
16000         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
16001         leak. Thanks to Andreas Kemnade.
16002
16003 2000-12-13  Havoc Pennington  <hp@pobox.com>
16004
16005         * gtk/gtktextbtree.h: Remove double _ in front of some functions
16006
16007         * gtk/gtktext*.[hc]: update accordingly
16008         
16009 2000-12-13  Havoc Pennington  <hp@pobox.com>
16010
16011         * gtk/gtktextbtree.h: Put _ in front of every function in this 
16012         header file
16013
16014         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
16015
16016 2000-12-13  Alex Larsson  <alexl@redhat.com>
16017
16018         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
16019         Add support for ps2 intellimouse.
16020
16021         * gdkkeyboard-fb.c:
16022         Move shift-F1 repaint handling to xlate handler only.
16023         
16024         * docs/README.linux-fb:
16025         Add imps2 to docs.
16026         Document the new refresh keys.
16027         
16028 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
16029
16030         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
16031
16032         * gtk/gtkbox.c: change property types from (u)long to (u)int for
16033         ::position and ::padding.
16034
16035         * gtk/gtkcontainer.c: make ::border_width an INT property.
16036
16037         * gtk/gtkpacker.c: make ::position an INT property.
16038
16039         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
16040         guard against NULL h/v scrollbars, since this is used at construction
16041         time.
16042
16043         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
16044         internal gtk_clist_constructor().
16045
16046         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
16047         gtk_ctree_constructor().
16048
16049         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
16050         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
16051
16052         * docs/reference/Makefile.am: fun stuff, disabled docs generation
16053         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
16054
16055         * gtk/gtkwidget.[hc]:
16056         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
16057         and gtk_widget_get().
16058         (gtk_widget_new): use g_object_new_valist().
16059         (gtk_widget_set): use g_object_set_valist().
16060
16061         * gtk/gtkobject.[hc]:
16062         removed gtk_object_arg_get_info(), gtk_object_getv(),
16063         gtk_object_query_args(), gtk_object_newv(),
16064         gtk_object_class_add_signals(),
16065         gtk_object_class_user_signal_new(),
16066         gtk_object_class_user_signal_newv(),
16067         gtk_object_arg_set(), gtk_object_arg_get(),
16068         gtk_object_args_collect(),
16069         gtk_object_default_construct(),
16070         gtk_object_constructed(),
16071         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
16072         removed nsignals, signals and n_args members from GtkObjectClass.
16073         (gtk_object_new): use g_object_new_valist().
16074         (gtk_object_set): use g_object_set_valist().
16075         (gtk_object_get): use g_object_get_valist().
16076         
16077         * gtk/gtkcompat.h: define gtk_object_default_construct().
16078         
16079         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
16080         g_object_new().
16081
16082         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
16083         fucntions, cleaned up method assignments (make sure your structures
16084         are setup properly before calling out). removed all GTK_CONSTRUCTED
16085         hacks ;)
16086
16087 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
16088
16089         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
16090         off-by-one error in checks. (Dave Lambert)
16091
16092 2000-12-12  Alexander Larsson  <alexl@redhat.com>
16093
16094         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
16095         Don't free gdk_fb_keyboard twice.
16096
16097 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
16098
16099         * gtk/testgtk.c:
16100         (create_tooltips): 
16101         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
16102         use GObject swapped_signal:: properties instead.
16103
16104         * gtk/gtkcellrenderertoggle.c: 
16105         * gtk/gtkcellrenderertextpixbuf.c: 
16106         * gtk/gtkcellrenderertext.c: 
16107         * gtk/gtkcellrendererpixbuf.c: 
16108         * gtk/gtkcellrenderer.c:
16109         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
16110         missing warnings for invalid property ids, install properties
16111         with g_object_class_install_property() now.
16112         
16113         * gtk/gtksignal.c:
16114         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
16115         
16116 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
16117         
16118         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
16119         to determine if a window is the focus widget within
16120         its toplevel.
16121
16122         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
16123         to be boolean.
16124
16125         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
16126         of the case where the container CAN_FOCUS to here instead
16127         of having it in each individual move-the-focus place.
16128
16129         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
16130         focusing to be geometric in a much more obvious sense. Arrowing
16131         around is still non-intuitive because it isn't perfect and
16132         because entries, etc, grab the arrow keys, but it at least
16133         usually will do what you expect now.
16134         
16135         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
16136         file.
16137
16138         * gtk/gtknotebook.c: Change tabs to be a single item in
16139         the focus chain. Make movement of focus on tabs with arrow
16140         keys wrap around.
16141         
16142         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
16143         CHECK_FIND_CHILD macro to give informative error messages
16144         instead of silent returns.
16145
16146         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
16147         flag since we handle GdkReturn on the tabs.
16148
16149         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
16150         windows rather than sending expose events directly.
16151
16152         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
16153         definition for GtkNotebookPage into .c file, since it is private.
16154
16155         * gtk/testgtk.c (create_notebook): Add option for 
16156         testing borderless notebook.
16157
16158         * gtk/testgtk.c (page_switch): Removed egregious poking
16159         around in GTK+ internals.
16160
16161         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
16162
16163         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
16164         properly through gtk_clist_focus. Make the title headers a
16165         single item in the tab-focus chain, and make left-right wrap
16166         around.
16167
16168         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
16169         focus method so that wrapping around works properly.
16170
16171         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
16172         that is handled for the widget now. 
16173
16174 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
16175
16176         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
16177         widgets as TOPLEVEL.
16178
16179         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
16180         TOPLEVEL widgets are containers.
16181
16182         * gtk/gtkinvisible.h: Remove useless include.
16183
16184 2000-12-11  Havoc Pennington  <hp@redhat.com>
16185
16186         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
16187         Handle chopping off \r\n and 0x2029 in addition to \n before
16188         passing to PangoLayout
16189
16190         * gtk/gtkimcontextsimple.c
16191         (gtk_im_context_simple_get_preedit_string): 
16192         return an empty string if no match is pending
16193
16194         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
16195         assertion that the returned preedit string was sane
16196
16197         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
16198         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
16199         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
16200
16201 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
16202
16203         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
16204         Fix up finalizer to chain to its parent.
16205
16206 2000-12-11  Alexander Larsson  <alexl@redhat.com>
16207
16208         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
16209         Clearified the difference between the keyboard types. Wrote a note
16210         about the magic sysrq key to get out of raw mode.
16211
16212 2000-12-09  James Henstridge  <james@daa.com.au>
16213
16214         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
16215         member to hold masks for detecting the start of a protocol packet.
16216         (mouse_devs): add packet start masks for ps2 and ms device types.
16217         Left the mask for fidmour blank, as I have no idea what it should
16218         be.
16219         (handle_mouse_io): skip bytes until we get to the start of a
16220         packet.  My Logitech mouse seems to be passing an extra NULL pad
16221         byte, and GPM does a similar thing here.
16222         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
16223         this is the ms mouse driver.
16224         (gdk_fb_mouse_ms_packet): fix up button handling, which was
16225         completely broken except for button1.  It was checking the wrong
16226         bit in the packet for the status of the right mouse button, and
16227         wrongly assuming right == button2 rather than 3.  I fixed that and
16228         also added support for middle button (button2).
16229
16230 2000-12-08  Havoc Pennington  <hp@redhat.com>
16231
16232         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
16233         that cause a segfault on text insertion
16234
16235         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
16236         warning
16237
16238         * gtk/gtktextiter.c (test_log_attrs): use
16239         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
16240
16241         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
16242         Get log attrs for a line, using a cache stored on the buffer
16243         
16244         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
16245         reported by Jeff Franks
16246
16247 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
16248
16249         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
16250         /dev/ttyS0 -> /dev/mouse
16251
16252 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
16253
16254         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
16255         Added dummy gdk_fontset_load.
16256
16257 2000-12-08  Alexander Larsson  <alexl@redhat.com>
16258
16259         * docs/README.linux-fb:
16260         * docs/Makefile.am:
16261         Initial GtkFB docs.
16262         
16263         * gdk/linux-fb/Makefile.am:
16264         Define GDK_DATA_PREFIX.
16265
16266         * gdk/linux-fb/gdkmain-fb.c:
16267         Fix typo.
16268         Change default display to /dev/fb0.
16269
16270         * gdk/linux-fb/gdkpango-fb.c:
16271         Add $(prefix)/share/fonts/ to font path.
16272         
16273 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
16274
16275         * gdk/linux-fb/gdkkeyboard-fb.c:
16276         New file containing the abstracted keyboard driver. Most code
16277         taken from gdkinput-ps2.c
16278
16279         * gdk/linux-fb/gdkinput-ps2.c:
16280         Removed file.
16281         
16282         * gdk/linux-fb/Makefile.am:
16283         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
16284
16285         * gdk/linux-fb/gdkcolor-fb.c:
16286         display->fb was renamed to display->fb_fd.
16287
16288         * gdk/linux-fb/gdkcursor-fb.c:
16289         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16290
16291         * gdk/linux-fb/gdkinput.c:
16292         Moved gdk_input_init here from gdkinput-ps2.c
16293
16294         * gdk/linux-fb/gdkmain-fb.c:
16295         display->fb was renamed to display->fb_fd.
16296         Now the tty and the console is opened here instead
16297         of in the keyboard driver. Also check GDK_VT to see what
16298         tty to open.
16299         Move gdk_beep () here from gdkinput-ps2.c
16300         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16301
16302         * gdk/linux-fb/gdkmouse-fb.c:
16303         Add header.
16304         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16305         Return correct keyboard modifiers.
16306         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
16307
16308         * gdk/linux-fb/gdkprivate-fb.h:
16309         Add tty and vt info to display.
16310         Add orignal modeinfo storage to display
16311         Update global functions
16312
16313         * gdk/linux-fb/gdkwindow-fb.c:
16314         Added gdk_fb_window_find_focus().
16315         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16316
16317 2000-12-07  Havoc Pennington  <hp@pobox.com>
16318
16319         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
16320         function, noticed by Alex
16321
16322 2000-12-06  Elliot Lee  <sopwith@redhat.com>
16323
16324         * configure.in: Detect freetype properly
16325
16326         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
16327         above.
16328
16329 2000-12-06  Alexander Larsson  <alexl@redhat.com>
16330
16331         * gdk/linux-fb/Makefile.am:
16332         Add gdkmouse-fb.c
16333         
16334         * gdk/linux-fb/gdkmouse-fb.c:
16335         New file. Abstracted the mouse drivers a bit.
16336
16337         * gdk/linux-fb/gdkcursor-fb.c:
16338         The cursor hide/show functions was moved here from gdkinput-ps2.c.
16339
16340         * gdk/linux-fb/gdkinput-ps2.c:
16341         Removed old mouse handling code. Moved cursor handling code
16342         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
16343         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
16344         gdk_mouse_get_info.
16345
16346         * gdk/linux-fb/gdkmain-fb.c:
16347         Pass NULL pointers for x,y in gdk_mouse_get_info call.
16348
16349         * gdk/linux-fb/gdkprivate-fb.h:
16350         Removed public gdk_fb_find_common_ancestor, added and renamed
16351         functions for the new mouse handling code.
16352
16353         * gdk/linux-fb/gdkwindow-fb.c:
16354         Moved gdk_fb_window_send_crossing_events here. added global
16355         variable gdk_fb_window_containing_pointer. made
16356         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
16357         renamed to gdk_mouse_get_info.
16358
16359 2000-12-06  Alexander Larsson  <alexl@redhat.com>
16360
16361         * gdk/linux-fb/gdkevents-fb.c:
16362         Update to match latest gmain/gsource changes.
16363
16364         * gdk/linux-fb/gdkinput-ps2.c:
16365         Bogus gdk_keymap_get_entries_for_keycode implementation so that
16366         it links. Will be implemented later.
16367
16368 2000-12-03  Havoc Pennington  <hp@pobox.com>
16369
16370         * gdk/Makefile.am: add gdkkeys.[hc]
16371
16372         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
16373         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
16374
16375         * acconfig.h, configure.in: add checks and command line options
16376         for XKB
16377
16378         * gdk/x11/gdkkeys-x11.c: Implement the above functions
16379         
16380         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
16381         and group in the key event
16382
16383         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
16384         field with the low-level hardware key code, and a group
16385         field with the keyboard group
16386
16387         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
16388         and declare a couple globals used for keymap handling
16389         
16390         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
16391         hold down Shift-Control and type a hex number to get a Unicode 
16392         character corresponding to the hex number
16393         (gtk_im_context_simple_get_preedit_string): Fix cursor position
16394         (return bytes not chars)
16395
16396 2000-12-05  Elliot Lee  <sopwith@redhat.com>
16397
16398         * gdk/gdkcolor.h: Make GdkColor specify element sizes
16399         to avoid waste on 64-bit platforms.
16400
16401 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
16402
16403         * INSTALL: Fix link to PNG home, remove reference
16404         to fribidi.
16405
16406         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
16407         
16408         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
16409         tested.)
16410
16411         * gtk/gtkcheckmenuitem.c: Permanently turn on
16412         always_show_toggle.
16413
16414         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
16415         be NULL. (Vladimir Klebanov, #26545)
16416
16417         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
16418         some signed/unsigned comparison problems. (#6510,
16419         David Kaelbling)
16420
16421         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
16422         return type to boolean (Oskar Liljeblad, #18648)
16423
16424 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16425
16426         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
16427         Remove bogus colormap setting.
16428
16429 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16430
16431         * gdk/linux-fb/gdkcolor-fb.c:
16432         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
16433
16434         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
16435         Must set colormap.
16436         
16437 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
16438
16439         * docs/tutorial/gtk-tut.sgml: DND updates
16440
16441 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
16442
16443         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
16444         Remove old debug g_warning().
16445         (gdk_fb_draw_drawable): The src argument can be either a wrapper
16446         or an implementation, just pass the implementation to draw_drawable_2.
16447         
16448         * gdk/linux-fb/gdkprivate-fb.h:
16449         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
16450
16451         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
16452         clear and invalidate area when window is destroyed.
16453         (send_map_events): Remove old commented out code.
16454
16455 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16456
16457         * gdk/linux-fb/gdkpango-fb.c:
16458         Use italic instead of oblique in font aliases.
16459         
16460         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
16461         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
16462         other unsupported functions.
16463
16464 2000-12-04  Havoc Pennington  <hp@redhat.com>
16465
16466         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
16467
16468         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
16469
16470         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
16471
16472         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
16473         hack to avoid infinite loops (synthetic expose event) - 
16474         Owen has more appropriate fixes in a branch he'll check in later.
16475
16476         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
16477         separator, CR, and CRLF as line ends
16478
16479         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
16480         into lines using pango_find_paragraph_boundary(); other bits of
16481         the widget are still going to be broken if the boundary isn't '\n'
16482         though
16483
16484 2000-12-04  Alexander Larsson  <alexl@redhat.com>
16485
16486         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
16487         multiply.
16488
16489         * gdk/linux-fb/gdkpango-fb.c:
16490         Copied some 26.6 scaling macros from pango to clean up the rounding.
16491         (pango_fb_font_get_glyph_info): Correct sign on x value.
16492
16493         * gdk/linux-fb/gdkprivate-fb.h:
16494         Removed unreferenced external functions.
16495
16496         * modules/linux-fb/Makefile.am: Use ` instead of '.
16497
16498         * modules/linux-fb/basic.c:
16499         Remove dead code. In particular the dummy lang engine which broke all
16500         pango layouts in GtkFB. Don't include tables-big.i anymore.
16501
16502         * modules/linux-fb/tables-big.i:
16503         Upgrade to latest version from pango. Left for reference, basic_ranges
16504         moved to basic.c.
16505         
16506 2000-12-04  Havoc Pennington  <hp@redhat.com>
16507
16508         Fix bugs Alex found:
16509         
16510         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
16511         to "draw"
16512
16513         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
16514
16515         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
16516
16517         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
16518         implementation in here, apparently the expose() implementation was
16519         dead code.
16520
16521 2000-12-04  Alexander Larsson  <alexl@redhat.com>
16522
16523         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
16524         Return positive descent.
16525
16526 2000-12-02  Havoc Pennington  <hp@pobox.com>
16527
16528         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
16529         method and signal
16530         
16531         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
16532         calls gdk_window_process_updates() to push the exposes through
16533         (gtk_widget_class_init): No more draw signal, no
16534         gtk_widget_real_draw()  
16535         
16536         * gtk/gtkbin.c (gtk_bin_draw): remove
16537
16538         * gtk/gtkbox.c (gtk_box_draw): remove
16539
16540         * gtk/gtkbutton.c (gtk_button_draw): remove
16541
16542         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
16543
16544         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
16545
16546         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
16547
16548         * gtk/gtkclist.c (gtk_clist_draw): remove
16549
16550         * gtk/gtkentry.c (gtk_entry_draw): remove
16551
16552         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
16553
16554         * gtk/gtkfixed.c (gtk_fixed_draw): remove
16555
16556         * gtk/gtkframe.c (gtk_frame_draw): remove
16557
16558         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
16559
16560         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
16561
16562         * gtk/gtklayout.c (gtk_layout_draw): remove
16563
16564         * gtk/gtklist.c (gtk_list_draw): remove
16565
16566         * gtk/gtklistitem.c (gtk_list_item_draw): remove
16567
16568         * gtk/gtkmenu.c (gtk_menu_draw): remove
16569
16570         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
16571
16572         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
16573
16574         * gtk/gtknotebook.c (gtk_notebook_draw): remove
16575
16576         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
16577
16578         * gtk/gtkpacker.c (gtk_packer_draw): remove
16579
16580         * gtk/gtkrange.c (gtk_range_draw): remove
16581
16582         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
16583
16584         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
16585
16586         * gtk/gtktable.c (gtk_table_draw): remove
16587
16588         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
16589
16590         * gtk/gtktext.c (gtk_text_draw): remove
16591
16592         * gtk/gtktextview.c (gtk_text_view_draw): remove
16593
16594         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
16595
16596         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
16597
16598         * gtk/gtktree.c (gtk_tree_draw): remove
16599
16600         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
16601
16602         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
16603
16604         * gtk/gtkviewport.c (gtk_viewport_draw): remove
16605
16606         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
16607
16608         * gtk/gtkvscale.c (gtk_vscale_draw): remove
16609
16610         * gtk/gtkwindow.c (gtk_window_draw): remove
16611
16612 2000-20-01  Anders Carlsson  <andersca@gnu.org>
16613
16614         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
16615         a GtkToggleButton is both insensitive and active, it was being
16616         drawn by the GtkButton draw handler which doesn't check the
16617         state. Now it's calling gtk_toggle_button_paint instead.
16618         
16619 2000-12-01  Havoc Pennington  <hp@redhat.com>
16620
16621         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
16622         dangling pointers to the appearance attributes from the 
16623         line display
16624
16625         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
16626         width/height to mean "full width/height of drawable"
16627
16628         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
16629         click to select word/line
16630         
16631         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
16632         when getting log attrs. Get a slice, so that pixmaps and stuff
16633         are properly handled.
16634
16635         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
16636         paste into the selection (replaces selection now, previously
16637         crashed or added to selection). Reveals longstanding btree bug -
16638         select multiple lines, middle-click on the selection, boom. This
16639         isn't related to my changes though.
16640
16641         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
16642         PangoLogAttrs changes
16643         (gtk_entry_move_backward_word): ditto
16644
16645         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
16646         functions return bool whether the iter moved onto a
16647         dereferenceable position.
16648  
16649         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
16650         functions for motion in terms of display lines.
16651
16652         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
16653         get the buffer a mark is inside
16654         
16655 2000-12-01  Alexander Larsson  <alexl@redhat.com>
16656
16657         * gdk/linux-fb/Makefile.am:
16658         * modules/linux-fb/Makefile.am:
16659         Freetype 2 final uses freetype-config
16660
16661         * gdk/linux-fb/gdkpango-fb.c:
16662         Upgrade to use Freetype 2 final.
16663         More flexible support for font aliases, this also fixes a bug with
16664         GtkFontSelector, as the aliases must be visible in the font/family list,
16665         or GtkFontSelector reads uninitialized memory.
16666
16667 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
16668
16669         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
16670         XGetIMValues to properly terminate variable argument list, and do
16671         NULL return check for ic_values and xim_styles.
16672
16673         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
16674         Restore preedit state after XmbResetIC().
16675         
16676         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
16677         XvaCreateNestedList() should take XvaNestedList, but not
16678         XvaNestedList*.
16679
16680         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
16681         preedit_draw_callback, preedit_caret_callback): Match
16682         "preedit-changed" signal name to "preedit_changed" to be
16683         consistent to the spec.
16684
16685         * gtk/gtkimcontextsimple.c (check_table):
16686         Match "preedit-changed" to "preedit_changed" to be consistent
16687         to the spec.
16688
16689 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
16690
16691         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
16692         gc->clip_region == NULL>
16693
16694 2000-11-30  Tor Lillqvist  <tml@iki.fi>
16695
16696         Changes by Hans Breuer:
16697         
16698         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
16699         Dont't use negative width and height as max_hints. This fixes
16700         Owen's recent testgtk changes for win32.
16701
16702         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
16703         gdk_win32_hdc_release): These are exported and may be called with
16704         other drawable types than our GdkDrawableImplWin32 (?).
16705
16706         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
16707         so always #define USE_BACKING_STORE.
16708
16709         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
16710         of printf for debugging output.
16711
16712         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
16713         
16714         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
16715
16716         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
16717         declaration.
16718
16719         * gtk/gtktexttypes.h: Ditto.
16720
16721         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
16722         (GDK_VoidSymbol) also if in case of arg check failure.
16723
16724         * gtk/gtkimcontextsimple.c
16725         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
16726         position to the pointer, but to the variable it points to.
16727
16728         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
16729
16730         * gtk/gtk.def: Updates.
16731
16732 2000-11-29  Elliot Lee  <sopwith@redhat.com>
16733
16734         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
16735         GTK_TYPE_TREE_MODEL.
16736
16737 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16738
16739         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
16740         Set the size of the font from the description.
16741         (gdk_text_width): Gross hack that calculates the width
16742         of text by text_length * size/2. This is necessary because
16743         GtkLabel does some ugly gtk_string_width call to calculate
16744         an good size.
16745         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
16746
16747 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
16748
16749         * docs/tutorial/gtk-tut.sgml: DND updates
16750
16751 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16752
16753         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
16754         If you pass width or height == 0 to gdk_window_clear_area they
16755         should be calculated from the window size.
16756
16757 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16758
16759         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
16760         a grab, but no grab-cursor, use the cursor from the grabbed
16761         window. (gdk_fb_window_send_crossing_events): Send normal
16762         enter/leave notifications if grab and owner_events == TRUE.
16763
16764 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16765
16766         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
16767         Do implicit button grabs, even if the window doesn't
16768         want the event.
16769         (gdk_fb_window_send_crossing_events): If there is a
16770         grab, only the grabbed window gets normal enter/leave
16771         notifications. On ungrab go from grabbed window to current.
16772         Don't send any notification to b when propagating from c -> b.
16773         If setting a grab on window, don't set prev_window.
16774         (handle_mouse_input): Send enter/leave events to the window the
16775         mouse is over, not the grabbed one.
16776         
16777 2000-11-28  Elliot Lee  <sopwith@redhat.com>
16778
16779         * gdk/gdkregion-generic.c: Zap warning.
16780         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
16781         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
16782
16783 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
16784
16785         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
16786         The cursor should be hidden if it is part of either the
16787         source or destination region. Not only if it is in both.
16788         (gdk_window_set_transient_for): Silence warnings.
16789
16790 2000-11-28  Alexander Larsson  <alexl@redhat.com>
16791
16792         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
16793         The default mode in X is Pie Arcs, therefore that is
16794         what Gtk+ uses.
16795
16796 2000-11-28  Alexander Larsson  <alexl@redhat.com>
16797
16798         * gdk/linux-fb/gdkinput-ps2.c:
16799         Implement correct EnterNotify/LeaveNotify:
16800         (gdk_fb_window_send_crossing_events): New function that sends
16801         all GdkCrossingEvents from the last mouse-window to the specified
16802         destination.
16803         (gdk_fb_window_visibility_crossing): Removed function.
16804         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
16805         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
16806         instead of gdk_window_get_pointer() for better readability.
16807
16808         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
16809         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
16810
16811         * gdk/linux-fb/gdkprivate-fb.h:
16812         removed gdk_fb_window_visibility_crossing, added
16813         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
16814
16815         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
16816         New function that finds the least common ancestor of two windows.
16817         (gdk_window_show, gdk_window_hide):
16818         Use gdk_fb_window_send_crossing_events.
16819         (gdk_fb_window_move_resize): Send configure events to toplevel
16820         windows. Use gdk_fb_window_send_crossing_events.
16821
16822 2000-11-27  Havoc Pennington  <hp@redhat.com>
16823
16824         * gtk/gtkprivate.h (enum): Remove a trailing comma
16825
16826 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
16827
16828         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
16829         the "changed" callback of the adjustment.  We need to redraw the
16830         spin button's arrows when the adjustment's range changes.
16831         (adjustment_changed_cb): Draw the arrows.
16832         (gtk_spin_button_value_changed): Draw the arrows.
16833
16834 2000-11-23  Alexander Larsson  <alexl@redhat.com>
16835
16836         * gdk/linux-fb/gdkselection-fb.c:
16837         Initial selection implementation.
16838
16839         * gtk/gtkselection.c:
16840         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
16841         requestor in gtk_selection_request.
16842         
16843         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
16844         Added gdk_selection_property atom.
16845
16846         * gdk/linux-fb/gdkprivate-fb.h:
16847         Export _gdk_selection_window_destroyed.
16848         Removed mask_off_x/y from GdkCursorPrivateFB.
16849         Removed hbearing, added top, left to PangoFBGlyphInfo.
16850
16851         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
16852         Call _gdk_selection_window_destroyed
16853         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
16854         the root window has been created.
16855         (static_dx_hack, static_dy_hack, compare_draw_rects,
16856         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
16857         in region. They are already sorted. Instead just traverse them in
16858         reverse if draw_direction < 0.
16859         
16860         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
16861         Double-clicks must be sent after the normal button_press.
16862         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
16863         
16864         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
16865         Pass _gdk_fb_screen_gc instead of NULL.
16866
16867         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
16868         Initialize gdk_selection_property.
16869         (gdk_event_make): Remove unused code.
16870
16871         * gdk/linux-fb/gdkcursor-fb.c:
16872         Make the pixmap for the cursor the same size as the mask. Also remove
16873         the mask_off_x/y fields in GdkCursorPrivateFB and combine
16874         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
16875         Now the whole cursor is visible.
16876
16877         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
16878         Fix bug where xdest+height instead of ydest+height was used
16879         to calculate if the source and dest overlapped. This fixes the
16880         redraw bug when the main window in testgtk was scrolled when
16881         partially covered by a tall window.
16882         Copy rectangles in region in order depending on draw_direction.
16883         Also moved the draw_direction flipping of start_y and end_y into
16884         the gc functions, as this might not be what all of them want.
16885         (gdk_fb_draw_lines): Support dashed lines.
16886         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
16887         so that the text is positioned correctly (was 1 pixel high).
16888
16889         gdk/linux-fb/gdkgc-fb.c:
16890         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
16891         all lines were drawn a pixel to short. Also checked the default of
16892         the rest of the values, and they're the same as X now.
16893
16894         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
16895         Clean up pixel positioning of the glyphs. Just use bgy->top and
16896         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
16897         to all divisions to get correct rounding behaviour.
16898
16899         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
16900         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
16901         Moved start_y/end_y flip into draw_drawable implementations.
16902         Flip also x rendering when draw_direction < 0.
16903         Remove unneccesary multiply with draw_direction.
16904
16905 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
16906
16907         * docs/tutorial/gtk-tut.sgml:
16908           - get rid of gtk_toggle_button_toggled FUD
16909           - start DND section - needs work - based on:
16910                 http://wolfpack.twu.net/docs/gtkdnd/
16911
16912 2000-11-22  Alexander Larsson  <alexl@redhat.com>
16913
16914         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
16915         Correct calculation of font metrics. Now GtkEntrys have sane
16916         size.
16917
16918 2000-11-22  Alexander Larsson  <alexl@redhat.com>
16919
16920         * gdk/gdktypes.h:
16921         Add new type GdkSpan
16922         
16923         * docs/reference/gdk/gdk-sections.txt,
16924         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
16925         gdk/gdkregion.h:
16926         Implement and document gdk_region_spans_intersect_foreach.
16927
16928         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
16929         Add new file gdkrender-fb.c which contains all core
16930         rendering code.
16931         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
16932         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
16933         (optimized rectangle fillers).
16934
16935         * gdk/linux-fb/gdkdrawable-fb2.c:
16936         Move all rendering code to gdkrender-fb.c.
16937         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
16938         Use the new span intersection functions in gdk_fb_fill_spans.
16939         gdk_fb_draw_rectangle() clips filled rectangles and calls
16940         gc->fill_rectangle with the result.
16941         gdk_fb_fill_spans() gets extra argument "sorted".
16942
16943         * gdk/linux-fb/gdkevents-fb.c:
16944         Remove unused includes and defines.
16945         New function gdk_fb_get_time() to get correct time for events.
16946
16947         * gdk/linux-fb/gdkinput-ps2.c:
16948         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
16949         Make sure to set the time of all events.
16950
16951         * gdk/linux-fb/gdkmain-fb.c:
16952         Use gdk_fb_get_time ().
16953
16954         * gdk/linux-fb/gdkprivate-fb.h:
16955         New virtual GC calls: fill_span & fill_rectangle.
16956         Export gdk_fb_get_time().
16957         gdk_fb_fill_spans() gets extra argument "sorted".
16958
16959         * gdk/linux-fb/mi*.c:
16960         Use GdkSpan instead of GdkRectangle.
16961         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
16962         from XFree 4 source)
16963         
16964 2000-11-22    <jrb@redhat.com>
16965
16966         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
16967         reversing the order in an if statement will do.  Doing so managed
16968         to make the treemodelsort half work.  Other half will follow after
16969         I get the insert function fully fixed.
16970
16971 2000-11-21  Elliot Lee  <sopwith@redhat.com>
16972         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
16973         more than 2 bits. Besides, I need to implement an evil hack. :)
16974
16975 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
16976
16977         * docs/tutorial/gtk-tut.sgml: minor corrections
16978
16979 2000-11-20  Jonathan Blandford <jrb@redhat.com>
16980         * gtk/gtktreemodelsort.h: Add convertion functions to let you
16981           convert to and from relative path's and iters.
16982
16983         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
16984           testing sorting functions a bit better.  Currently broken -- will
16985           fix in morning.
16986
16987 2000-11-20  Havoc Pennington  <hp@redhat.com>
16988
16989         * gtk/gtkwidget.c: Documented a bunch of functions in here
16990         (gtk_widget_realize): Warn if you try to realize
16991         a widget with no parent that isn't a toplevel
16992         (gtk_widget_intersect): return a gboolean
16993
16994 2000-11-20  Havoc Pennington  <hp@redhat.com>
16995
16996         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
16997         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
16998         scrolling to be implemented in GDK to finish. Also, right now
16999         we just size_allocate all children on every layout change,
17000         which is pretty lame. Test commented out of testtext.c, 
17001         until it works better.
17002
17003 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
17004
17005         * gdk/linux-fb/gdkdrawable-fb2.c:
17006         Removed unused arguments from gdk_fb_drawable_get_pixel().
17007
17008         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
17009         Renamed fidur specific mouse packet data in MouseDevice to
17010         generic. Used it in ps2 mouse handling code to avoid blocking
17011         reads.
17012
17013 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
17014
17015         * demos/gtk-demo/main.c: Changed to have the list become
17016         non-italic when the demo window is destroyed through an external
17017         event (like a close button).  Doing so found three bugs in the
17018         widget.
17019
17020         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
17021
17022         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
17023         we actually set the cell.
17024
17025         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
17026
17027         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
17028         free a leaked path.  Thanks memprof.
17029
17030 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
17031
17032         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
17033         off-by-one error when destroying allocated segments
17034         on failure. (Elliot)
17035
17036 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
17037
17038         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
17039         memleaks found by Evan Martin.
17040
17041 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
17042
17043         * Released 1.3.2
17044         
17045         * NEWS: Updates for 1.3.2
17046
17047 2000-11-17  Tor Lillqvist  <tml@iki.fi>
17048
17049         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
17050         but in general for window system specific events.
17051
17052         * gtk/gtk.def
17053         * gtk/makefile.mingw.in
17054         * gtk/makefile.msc.in: Update.
17055         
17056         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
17057
17058 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
17059
17060         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
17061         distribute gtk.immodules.
17062
17063         * gtk/Makefile.am (install-data-local): Don't install the
17064         gtk.immodules file created for the uninstalled modules;
17065         instead run gtk-query-immodules after install
17066
17067 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
17068
17069         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
17070         -rpath to the right install location.
17071
17072         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
17073         -export-dynamic.
17074
17075         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
17076         properly.
17077
17078 2000-11-15  Havoc Pennington  <hp@pobox.com>
17079
17080         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
17081         patch from Mikael Hermansson to temporarily stop blinking while
17082         the user is using the keyboard to type or navigate. 
17083
17084         Also, when blinking, stay on for longer than we stay off. Also,
17085         return from start_cursor_blink if !cursor_visible, to save
17086         checking that flag all over the place before we call
17087         start_cursor_blink.
17088
17089 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
17090
17091         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
17092         only contain a "fontset" line, which is now ignored.
17093
17094         * gtk/gtkentry.c (gtk_entry_button_release): Make 
17095         double-click-to-select-word work.
17096         
17097 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
17098
17099         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
17100         Don't move back one char when we are actually at the end of the 
17101         paragraph.
17102
17103 2000-11-15  Robert Brady  <robert@suse.co.uk>
17104
17105         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
17106         'o' < 'p'.
17107         
17108         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
17109         bind_textdomain_codeset.
17110
17111         (gtk_init_check): Make the warning about translating default:LTR
17112         sterner.
17113         
17114 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
17115
17116         * **/Makefile.am : remove unecessary rules for win32-specific
17117         config-substituted targets. If you want these rules, use
17118         --enable-maintainer-mode (called automatically by autogen.sh).
17119         Stops a lot of unneccessary make-time warnings.
17120
17121         * gtk/gtktext{layout,display}.c: Factor in total width as
17122         well as screen when figuring alignment for word-wrap as well as
17123         no wrap; this is necessary to handle lines that cannot be wrapped
17124         at all.
17125
17126 2000-11-15  Havoc Pennington  <hp@redhat.com>
17127
17128         * gtk/testtext.c: Implement essential color cycling feature
17129
17130 2000-11-15  Havoc Pennington  <hp@redhat.com>
17131
17132         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
17133         when we invalidate the main window.
17134
17135         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
17136         GtkTextView will now invalidate the side windows for us when text
17137         changes.
17138
17139 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
17140
17141         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
17142         unconditionally, since we may need to update the horizontal
17143         scrollbars even if the height didn't change.
17144
17145         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
17146         the extra attrs, since some of them affect size.
17147
17148         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
17149         x_offset correctly.
17150
17151 2000-11-15  Havoc Pennington  <hp@redhat.com>
17152
17153         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
17154         don't move the first line out into the margin, instead move the
17155         whole paragraph in order to make space for the first line within 
17156         the margin
17157
17158 2000-11-15  Havoc Pennington  <hp@redhat.com>
17159
17160         * gtk/gtktextview.c (changed_handler): offset redraw rect by
17161         xoffset in addition to yoffset, so horizontal scrolling doesn't
17162         break redraws
17163
17164 2000-11-15  Havoc Pennington  <hp@redhat.com>
17165
17166         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
17167         from the cursor
17168         (render_layout_line): fix reversed test that caused weird
17169         underlines to get drawn
17170
17171 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
17172
17173         * gdk/linux-fb/gdkprivate-fb.h:
17174         Fix debug macros.
17175         
17176 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
17177
17178         * gdk/linux-fb/gdkprivate-fb.h:
17179         Added virtual functions set_pixel, get_color,
17180         fill_span and draw_drawable to the GC.
17181         Added global _gdk_fb_screen_gc to use instead of
17182         NULL when drawing to the screen.
17183         Added _gdk_fb_gc_calc_state() prototype.
17184
17185         * gdk/linux-fb/gdkgc-fb.c:
17186         Call _gdk_fb_gc_calc_state() on any gc state change.
17187
17188         * gdk/linux-fb/gdkglobals-fb.c:
17189         Add _gdk_fb_screen_gc
17190                 
17191         * gdk/linux-fb/gdkdrawable-fb2.c:
17192         _gdk_fb_gc_calc_state() calculates best functions
17193         for the GC state and depth.
17194         Moved bpp specialized code to separate functions.
17195         Added optimized 24 bpp AA draw_drawable.
17196
17197         * gdk/linux-fb/gdkevents-fb.c:
17198         Silence gcc warning.
17199
17200         * gdk/linux-fb/gdkimage-fb.c:
17201         Use _gdk_fb_screen_gc
17202
17203         * gdk/linux-fb/gdkwindow-fb.c:
17204         Init and use _gdk_fb_screen_gc
17205
17206         * gdk/linux-fb/mitypes.h:
17207         Remove unused types.
17208
17209 2000-11-14  Havoc Pennington  <hp@pobox.com>
17210
17211         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
17212         to pixels
17213
17214 2000-11-14  Havoc Pennington  <hp@pobox.com>
17215
17216         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
17217
17218         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
17219         unknown char, no real reason we were using a variable. 
17220         Remove gtk_text_unknown_char variable. Fix all the text widget
17221         files accordingly.
17222
17223         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
17224         since the Unicode spec seems to prefer that character for our
17225         purposes.
17226
17227 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
17228
17229         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
17230         value of g_getenv() isn't freeable, so g_strdup it.
17231
17232         * modules/input/inuktitut.c: Inuktitut input method.
17233
17234         * modules/input/Makefile.am: Build this.
17235         
17236 2000-11-14  Elliot Lee  <sopwith@redhat.com>
17237
17238         * gtk/Makefile.am: Install gtk.immodules, needed for operation
17239         of gtk programs.
17240
17241 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
17242
17243         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
17244         reversed > that was causing Home to go to end of previous line.
17245
17246         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
17247         modified-keypresses (leave for bindings.)
17248
17249         * modules/input/Makefile.am: Remove useless -export-dynamic
17250         from module LDFLAGS.
17251
17252 2000-11-14  Havoc Pennington  <hp@redhat.com>
17253
17254         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
17255         higher.
17256
17257         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
17258         account. Also, render rise, underline, background, etc. for
17259         pixbufs as well as text. Also, draw underlines one pixel higher.
17260
17261         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
17262         PangoAttribute for the rise, so it gets drawn properly. Also,
17263         add the GtkTextAppearance attribute for pixbuf/widget segments
17264         as well; we should go ahead and have rise, underline, background,
17265         stipple work for those
17266
17267         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
17268         Pango
17269
17270 2000-11-15  Tor Lillqvist  <tml@iki.fi>
17271
17272         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
17273
17274         * gtk/gtk.def: Update.
17275
17276         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
17277         included.
17278         (gtk_rc_get_im_module_file): Use run-time installation directory
17279         on Win32.
17280
17281         * gdk/win32/rc/gdk.rc: Remove.
17282         * gdk/win32/rc/gdk.rc.in: New file.
17283         * gdk/win32/rc/Makefile.am: New file
17284         * gdk/win32/Makefile.am: Corresponding changes.
17285
17286         * gtk/gtk.rc: Remove.
17287         * gtk/gtk-win32.rc.in: New file.
17288         * gtk/Makefile.am: Corresponding changes.
17289
17290         * configure.in: Corresponding changes.
17291
17292         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
17293         has a built gtkcompat.h. Developers using CVS code on Win32 can
17294         hand-edit it from gtkcompat.h.in.
17295
17296         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
17297         gtkcompat.h from gtkcompat.h.win32.
17298
17299 2000-11-14  Havoc Pennington  <hp@redhat.com>
17300
17301         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
17302         to default to GDK_ACTION_MOVE if the drag is within a single
17303         widget. Defaults to GDK_ACTION_COPY between widgets.
17304
17305 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
17306
17307         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
17308
17309         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
17310
17311         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
17312         srcdir != builddir
17313
17314         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
17315
17316         * configure.in (GTK_VERSION): Up to 1.3.2
17317
17318         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
17319         gtkimcontextxim.h
17320
17321         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
17322         missing doc comment.
17323
17324 2000-11-14  Alexander Larsson  <alexl@redhat.com>
17325
17326         * modules/linux-fb/basic.c:
17327         Use the glib iconv wrappers.
17328
17329 2000-11-13  Havoc Pennington  <hp@pobox.com>
17330
17331         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
17332         still more bugs.
17333
17334         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
17335         scroll the GdkWindows before realization.
17336
17337 2000-11-13  Havoc Pennington  <hp@redhat.com>
17338
17339         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
17340         where GC didn't always get updated properly
17341
17342         * demos/gtk-demo/textview.c (create_tags): Use subattributes
17343         of fonts instead of setting the entire font
17344
17345         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
17346         setting entire font
17347
17348         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
17349
17350         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
17351         a bunch of individually-settable font attributes. You can still 
17352         use the "font" and "font_desc" args, they just set all the font
17353         attributes at once.
17354
17355 2000-11-13 Elliot Lee <sopwith@redhat.com>
17356
17357         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
17358
17359 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
17360
17361         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
17362         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
17363
17364         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
17365         work better.
17366
17367 2000-11-13  Havoc Pennington  <hp@redhat.com>
17368
17369         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
17370         the module file.
17371
17372         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
17373         dest->language
17374
17375         * gtk/testtext.c: Test pixels above/below/inside paragraphs
17376         settings
17377
17378         * gtk/gtktextview.c: Implement object args and setters/getters for
17379         all the aspects of the GtkTextAttributes that are not set from
17380         GtkWidget attributes. This is spacing, justification, margins,
17381         etc.
17382
17383         (gtk_text_view_set_arg)
17384         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
17385         args
17386         (gtk_text_view_class_init): Add args for justify, left_margin,
17387         right_margin, indent, and tabs
17388         
17389
17390         * gtk/gtktextlayout.c (set_para_values): fix to display indent
17391         attribute properly
17392
17393         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
17394         replace with indent attribute
17395
17396         * gtk/gtktextlayout.c (set_para_values): multiply indent by
17397         PANGO_SCALE
17398
17399         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
17400         rearranging code to do that
17401         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
17402         i.e. don't subtract the top_margin first, just to keep
17403         all margin-futzing in one place.
17404
17405         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
17406
17407         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
17408         special case of last line, Pango now handles this itself.
17409         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
17410         Y coordinate
17411         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
17412         (find_display_line_above): wasn't moving the byte index as it
17413         iterated over lines, so always returned byte 0. Also, port to use
17414         PangoLayoutIter.
17415         (find_display_line_below): same problem as
17416         find_display_line_above. Also, port to use PangoLayoutIter.
17417
17418 2000-11-13  Alexander Larsson  <alexl@redhat.com>
17419
17420         * gdk/linux-fb/*.[ch]:
17421         Massive reindent to gtk+ standard. My hands hurt.
17422
17423         * gdk/linux-fb/gdkcolor-fb.c:
17424         Move GdkColorPrivateFB from inherited to windowing_data
17425
17426         * gdk/linux-fb/gdkcursor-fb.c:
17427         _gdk_cursor_new_from_pixmap made static
17428
17429         * gdk/linux-fb/gdkdnd-fb.c:
17430         GdkDragContextPrivate moved to windowing_data
17431
17432         * gdk/linux-fb/gdkdrawable-fb2.c:
17433         Removed endian.h, use glib endianness macros instead
17434         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
17435         and GDK_DRAWABLE_IMPL_FBDATA
17436
17437         * gdk/linux-fb/gdkfont-fb.c:
17438         Add empty gdk_font_load(). Needed for linking of Gtk+.
17439
17440         * gdk/linux-fb/gdkimage-fb.c:
17441         Removed endian.h, use glib endianness macros instead
17442         Moved GdkImagePrivateFB to windowing_data
17443         gdk_image_new_bitmap didn't always allocate enough
17444         memory.
17445
17446         * gdk/linux-fb/gdkinput-ps2.c:
17447         Added semi-working support for MS serial mice.
17448
17449         * gdk/linux-fb/gdkprivate-fb.h:
17450         s/GdkWindowPrivate/GdkWindowObject/
17451         Removed GdkWindowPrivate typedef
17452         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
17453         Removed GDK_DRAWABLE_P
17454         Move GdkColorPrivateFB from inherited to windowing_data
17455         Moved GdkImagePrivateFB to windowing_data
17456
17457         * gdk/linux-fb/gdkvisual-fb.c:
17458         Removed some unused debug code.
17459
17460         * gdk/linux-fb/gdkwindow-fb.c:
17461         Use stock cursors instead of including X headers.
17462         s/GdkWindowPrivate/GdkWindowObject/
17463
17464         * gdk/linux-fb/mitypes.h:
17465         Removed unused types.
17466
17467         * modules/linux-fb/basic.c:
17468         Use the pango fribidi wrappers.
17469
17470 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17471
17472         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
17473         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
17474         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
17475         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
17476         GEqualFunc where applicable.
17477         
17478         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
17479         pango_font_description_equal as changed in pango.
17480         
17481         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
17482
17483         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
17484
17485         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
17486
17487         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
17488
17489         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
17490
17491         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
17492
17493         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
17494         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
17495
17496         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
17497         gtk_rc_styles_compare -> gtk_rc_styles_equal.
17498
17499 2000-11-12  Havoc Pennington  <hp@pobox.com>
17500
17501         * demos/gtk-demo/Makefile.am (democodedir): change demo install
17502         dir to datadir/gtk+-2.0/demo
17503
17504         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
17505         sorts of text widget and Pango font bugs. Urgh.
17506
17507         * demos/gtk-demo/Makefile.am (demos): Add textview.c
17508
17509         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
17510         tree that you should double click to see the demo. Fix 
17511         types of variables to reflect changed return values from 
17512         GtkTreeStore and GtkTreeViewColumn constructors.
17513
17514         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
17515         newly-created buffer to prepare for GObject semantics
17516
17517         * gtk/testtext.c: don't leak the buffer with GObject semantics
17518
17519         * gtk/testtextbuffer.c: ditto
17520         
17521 2000-11-12  Havoc Pennington  <hp@pobox.com>
17522
17523         Rename this testgtk to gtk-demo to avoid confusion, and 
17524         install it so people can use it as a supplement to 
17525         the documentation.
17526         
17527         * demos/gtk-demo: Moved from demos/testgtk
17528
17529         * demos/testgtk: Removed
17530
17531         * configure.in: make Makefile in gtk-demo
17532         
17533         * demos/gtk-demo/Makefile.am: Install sample source to 
17534         datadir/gtk-demo (maybe there's a better place?), and 
17535         rename the binary to gtk-demo
17536         
17537         * demos/gtk-demo/main.c (load_file): Load installed sample
17538         source if source isn't found in pwd.
17539
17540 2000-11-09  Havoc Pennington  <hp@pobox.com>
17541
17542         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
17543         argument to set the char displayed when visibility == FALSE
17544         (gtk_entry_create_layout): If !entry->visible, replace 
17545         all chars with the "invisible char"
17546
17547         * gtk/testgtk.c: Test the invisible_char deal
17548         
17549 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
17550
17551         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
17552         can't get a native font in the right encoding.
17553
17554 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
17555
17556         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
17557         respectively.
17558
17559 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
17560
17561         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
17562         Fix warning when moving between paragraphs.
17563
17564         * gtk/gtkentry.[ch]: Change move => move_cursor, 
17565         delete => delete_from_cursor, insert => insert_at_cursor
17566
17567 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
17568
17569         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
17570
17571         * modules/input/imthai-broken.c: A Thai input method for use if
17572         Thai keys are really generating Latin1 keysyms.
17573
17574         * modules/input/Makefile.am: Build these.
17575
17576 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
17577
17578         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
17579         g_filename_{to,from}_utf8 now takes an extra parameter.
17580
17581         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
17582         strftime into UTF-8.
17583
17584         (column_from_x, gtk_calendar_paint_day_names): Support RTL
17585         calendars.
17586
17587         (gtk_calendar_paint_day_names): Draw day names in the right 
17588         place.
17589         
17590 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
17591
17592         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
17593         problem with using result of g_get_charset() backwards -
17594         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
17595
17596         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
17597         negative min_width/height and max_width/height to
17598         mean "requisition"; this allows setting a window
17599         to be user-resizable in only one direction easily.
17600
17601         * gtk/testgtk.c (create_main_window): Remove hard-coded
17602         usize - set a default size in the vertical direction.
17603
17604 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
17605
17606         * gtk/gtkrange.c: Add some missing casts. Support 
17607         2 and 3 button clicks on the arrows to mean 
17608         "move by pages" and "jump to end". (Like gtkspinbutton)
17609
17610 2000-11-12 Hans Breuer <Hans@Breuer.Org>
17611
17612         * gdk/win32/makefile.msc : reflect build module changes
17613
17614         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
17615         from GdkPixmap*, cast implementation member instead.
17616
17617         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
17618         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
17619         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
17620         more Gdi functions return value checking. 
17621         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
17622         GdkImagePrivateWin32 *.
17623
17624         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
17625         menus useable again. Add #pragma message to keep reminded on this issue.
17626         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
17627         windows. This allows to enable backing store on Win32!
17628
17629         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
17630         in drawable is of impl type. Correct specific type checks appropriate.
17631  
17632         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
17633         GDK_WINDOW_DESTROYED before allocating new resources.
17634
17635         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
17636
17637         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
17638         (gdk_window_foreign_new) initialize parent handle.
17639         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
17640
17641         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
17642         Let the GDI invalidate the window on MoveWindow call to fix scrolling
17643         problems (e.g. main buttons in testgtk). 
17644
17645 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
17646
17647         * gtk/gtkentry.c (gtk_entry_key_press): Call 
17648         gtk_widget_activate for GDK_Return.
17649
17650         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
17651         of preedit cursor position.
17652
17653 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
17654
17655         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
17656         static.
17657
17658 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
17659
17660         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
17661         out support for multiple locales; that simple doesn't
17662         work reliably with current Xlib
17663
17664         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
17665         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
17666         Add support for positioning the cursor within the preedit string.
17667
17668 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
17669
17670         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
17671         at XIM input method module.
17672
17673         * gtk/gtktextview.c: Check for bindings after passing
17674         events to im context filter.
17675
17676 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
17677
17678         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
17679         empty attribute lists properly.
17680
17681 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
17682
17683         * gtk/queryimmodules.c (main): Return non-zero exit
17684         status if errors were encountered querying any
17685         modules.
17686
17687         * modules/input/Makefile.am (moduledir): remove
17688         leftover bin program target.
17689
17690         * docs/make-todo: Fix typo in error message.
17691
17692 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
17693
17694         * configure.in: Add modules/input/Makefile
17695
17696 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
17697
17698         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
17699         don't include gtkthemes.h.
17700
17701         * gtk/testgtk.c gtk/testtext.c: Set environment variables
17702         to point
17703
17704         * gtk/Makefile.am: Add new .c and .h files, build 
17705         gtk-query-immodules and use it to create a gtk.immodules
17706         file for use of test programs.
17707
17708         * gtk/gtkpreview.c: remove extra blank line.
17709
17710 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
17711
17712         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
17713         Add the ability to add extra tables beyond the default
17714         one, and also the ability to have compose sequences 
17715         that are prefixes of other compose sequences. 
17716
17717         * gtk/gtkimcontextsimple.c: Export a preedit string which
17718         consists of possible candidates for keystrokes that have
17719         been entered but not yet committed.
17720
17721         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
17722         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
17723
17724         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
17725         Add a function to add input-method switching menu items
17726         to a menu.
17727
17728         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
17729         when switching input methods.
17730
17731         * gtk/gtkimcontextsimple.[ch]: Change the format of
17732         the compose table to allow compose tables of different
17733         lengths / sequence.
17734
17735 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
17736
17737         * gtk/gtkimmodule.[ch]: Support routines for loading
17738         GtkIMContext implementations dynamically at runtime.
17739
17740         * modules/input/imcyrillic-translit.c: A sample input
17741         method (based on GtkIMContextSimple with an extra table),
17742         which demonstrates preedit strings and the module
17743         system for input modules
17744
17745         * gtk/queryimmodules.c: Program to query the available
17746         input modules and write the results into a file.
17747          
17748         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
17749         extra config options "im_module_file" (cache file for
17750         input method modules), and "im_module_path" - path
17751         to look for modules when generating cache file.
17752
17753         This doesn't scale.
17754
17755 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
17756
17757         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
17758         generic code from gtkthemes into a new abstraction
17759         GtkModule which has the logic for implementing
17760         a loadable module which implements a number of 
17761         GObject types.
17762
17763 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
17764
17765         * gtk/gtkeditable.[ch]: Convert GtkEditable from
17766         a class into an interface  
17767         
17768         * gtk/gtkoldeditable.[ch]: Move the old editable
17769         implementation into here, so legacy widgets can
17770         still rely on the implemenation. GtkOldEditable
17771         exports GtkEditable. Make selection handling
17772         code use new text conversion functions (and
17773         handle UTF-8 as a side-effect). Use GtkClipboard
17774         for CLIPBOARD.
17775
17776         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
17777         Adopt to match above changes.
17778
17779         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
17780         avoid GtkOldEditable implementation. Restructure
17781         to reduce number of places that modify state directly.
17782         Move to GtkBindingSet. Display the preedit string.
17783         Queue recomputation of PangoLayout and scroll position
17784         to improve effiency of doing complex changes naively.
17785         Add a menu with cut/copy/paste and input method selection.
17786
17787 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
17788
17789         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
17790         to set preedit string and attributes; display preedit string by
17791         inserting string and attributes at cursor when creating the
17792         GtkTextLineDisplay.
17793
17794         * gtk/gtktextlayout.c: Move all conversions between byte
17795         positions in PangoLayout and GtkTextIter into new functions
17796         line_display_iter_to_index/index_to_iter that properly
17797         handle the preedit string.
17798
17799         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
17800         it to return const char * (eventually will end up
17801         as GCONST char *, most likely.)
17802
17803         * gtk/gtktextview.[ch]: Handle the preedit string, call
17804         gtk_im_context_reset() as necessary, add a menu to switch
17805         input methods.
17806         
17807         * gtk/gtktextlayout.[ch]: Remove useless
17808         gtk_text_layout_get_log_attrs() function.
17809
17810 2000-11-11  Tor Lillqvist  <tml@iki.fi>
17811
17812         * gdk/gdk.def
17813         * gtk/gtk.def: Update.
17814
17815         * gdk/win32/*.c: Add last argument to g_type_register_static()
17816         calls.
17817
17818         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
17819
17820         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
17821         generated by older wheel mouse drivers. Get the correct y
17822         coordinate from WM_MOUSEWHEEL messages.
17823
17824         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
17825         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
17826         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
17827         Debugging functions.
17828
17829         * gdk/win32/gdkprivate-win32.h: Declare them.
17830
17831         * gdk/win32/gdkinput-win32.h: Add declaration for
17832         gdk_input_window_destroy().
17833
17834         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
17835
17836 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
17837
17838         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
17839         function to help handle keeping things in sync.
17840
17841 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
17842
17843         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
17844         BOXED marshallers.
17845
17846         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
17847         (gtk_list_store_class_init): use the new BOXED marshallers.
17848
17849         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
17850         new_with_values to new_with_types.
17851         (gtk_tree_store_get_column_type): add this.
17852         (gtk_tree_store_class_init): use the new BOXED marshallers.
17853
17854         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
17855         mirror some POINTER marshallers.
17856
17857 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
17858
17859         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
17860         allow more interesting iterators.  Also, made the lifecycle of
17861         iterators more explicit.
17862
17863         * gtk/gtktreemodelsort.[ch]: New model for sorting.
17864
17865         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
17866         types.
17867
17868 2000-11-09  Alexander Larsson  <alexl@redhat.com>
17869
17870         * demos/testgtk/menus.c:
17871         Changes to make the new testgtk compile after
17872         gtk_menu_append was removed.
17873
17874         * gdk/linux-fb/gdkdrawable-fb2.c
17875         (gdk_fb_get_depth, gdk_fb_get_visual,
17876         gdk_drawable_impl_fb_class_init): Implement
17877         these drawable functions. Now GtkImages work again.
17878
17879         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
17880
17881         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
17882         
17883         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
17884         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
17885         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
17886         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
17887
17888 2000-11-08  Havoc Pennington  <hp@pobox.com>
17889
17890         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
17891         visible_set args, don't know where these had gone, I thought they
17892         used to be there
17893
17894         * gtk/testtext.c: Add a menu item to apply invisibility tag;
17895         now we can test the feature and see that it's totally broken.
17896
17897 2000-11-08  Havoc Pennington  <hp@pobox.com>
17898
17899         Make DND copy pixbufs and tags when source and target share a 
17900         tag table.
17901         
17902         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
17903         in-process GTK_TEXT_BUFFER_CONTENTS target
17904         (gtk_text_view_drag_data_received): Paste from
17905         GTK_TEXT_BUFFER_CONTENTS if we receive it.
17906
17907 2000-11-08  Alexander Larsson  <alexl@redhat.com>
17908
17909         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
17910         API changes.
17911
17912         * gtk/gtkmenu.c: Add support for scrolling menus.
17913         Remove gtk_menu_append/prepend/insert, these have been moved to
17914         gtkcompat.h as #defines.
17915
17916         * gtk/gtkcompat.h.in:
17917         Add compatibility #defines for gtk_menu_append/prepend/insert
17918
17919         * gtk/gtkmenu.h: Add data needed for scrolling menus.
17920         GtkMenuPositionFunc gets an extra argument push_in.
17921         gtk_menu_append/prepend/insert removed.
17922         
17923         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
17924         positioning behaviour to fit to scrolling menus.
17925
17926         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
17927         into menuitem->submeny. That is wrong, and broke torn
17928         off submenus of torn off menus, since they were unrealized
17929         when the first menu was unrealized.
17930
17931         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
17932         gtk_menu_shell_select_item() since these need to be overridden in
17933         GtkMenu.
17934
17935         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
17936         positioning behaviour to fit to scrolling menus.
17937         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
17938         the current item so that it is prelighted when the menu pops up.
17939         This is a workaround to the fact that the menu doesn't get the
17940         initial enter event (due to grabs).
17941
17942         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
17943         s/gtk_menu_append/gtk_menu_shell_append/
17944
17945         * gtk/gtknotebook.c:
17946         s/gtk_menu_insert/gtk_menu_shell_insert/
17947
17948         * gtk/testgtk.c (create_menu, create_menus):
17949         Create the first menu with 50 items so that menu scrolling
17950         can be tested.
17951         
17952         
17953         Patch from Jonathan Blandford  <jrb@redhat.com>
17954
17955         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
17956         system to handle size requests.  First, we ask what the size of
17957         the toggle is.  Then, when allocating the size, we allocate the
17958         toggle_size first.  This way we can have multiple menu-item
17959         classes w/o needing a seperate class for each.
17960
17961         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
17962         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
17963
17964         * gtk/gtkcheckmenuitem.c
17965         (gtk_check_menu_item_toggle_size_request): New function to handle
17966         the toggle size-request.
17967
17968 2000-11-07  Havoc Pennington  <hp@redhat.com>
17969
17970         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
17971         Half-ass somewhat fix this function, so that scrolling to the
17972         insertion point works. Pango hacking is in the future to really
17973         fix it.
17974
17975         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
17976         length of data, no longer used.
17977
17978         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
17979         method contents in here, get rid of destroy method
17980         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
17981         that were backward. Remove debug spew.
17982         (cut_or_copy): Make the clipboard work with insert_range to
17983         preserve tags and pixbufs, not just the primary selection.
17984
17985 2000-11-07  Havoc Pennington  <hp@redhat.com>
17986
17987         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
17988         to gtk_text_mark_get_visible
17989
17990         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
17991         bug that was generating an invalid iterator
17992
17993         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
17994         ensure_char_offsets() in front of code placing the iter in an
17995         invalid state.
17996
17997         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
17998         make override_location arg const
17999         (paste): Replace the selection if we paste into the 
18000         current selection
18001
18002         * gtk/gtkselection.h: Remove "GtkSelectioData"
18003         (struct _GtkSelectionData): move the definition here.
18004
18005         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
18006         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
18007
18008         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
18009
18010         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
18011         (gtk_text_buffer_insert_range_interactive): implement
18012         (gtk_text_buffer_get_tags): Remove, replaced by
18013         gtk_text_iter_get_tags()
18014
18015         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
18016         limit parameter, to avoid infinite linear scan.
18017         (gtk_text_iter_backward_search): Add search limit
18018         (gtk_text_iter_forward_find_char): Add search limit
18019         (gtk_text_iter_backward_find_char): Add search limit
18020
18021 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
18022
18023         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
18024         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
18025         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
18026         gdk/linux-fb/gdkwindow-fb.c:
18027         use g_object_new() instead of g_type_create_instance() which
18028         is a private function for fundamental type implementations.
18029
18030         * gdk/linux-fb/gdkinput-ps2.c:
18031         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
18032         instead just store the current modifier state. Add a (somewhat broken)
18033         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
18034         Rename exported function gdk_input_ps2_get_mouseinfo to
18035         gdk_input_get_mouseinfo.
18036
18037         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
18038         gdk/linux-fb/gdkwindow-fb.c:
18039         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
18040         
18041
18042 2000-11-02  Havoc Pennington  <hp@redhat.com>
18043
18044         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
18045         use stock buttons. Should be 100% source compatible, appropriate
18046         filesel fields now point to dialog->vbox and dialog->action_area.
18047         On the bizarre side, dialog->action_area and filesel->action_area
18048         are not the same widget.
18049         (gtk_file_selection_init): Put some padding around the selection
18050         entry, so it isn't touching the GtkDialog separator.    
18051
18052         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
18053         use stock buttons, etc. Should also be source compatible.
18054         Set the dialog default title in _init not _new().
18055         
18056         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
18057         Use stock buttons; don't put a button box inside the existing
18058         dialog button box. Don't bother with push/pop colormap anymore.
18059
18060         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
18061         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
18062         for message dialog, and necessary for the font selection and color
18063         selection with help and apply buttons.
18064         
18065         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
18066         to the created button widget. Set GTK_CAN_DEFAULT on the button.
18067         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
18068         between buttons, put less padding around the action area.
18069         (gtk_dialog_run): Exit on unmap rather than on destroy. 
18070         This will also exit the loop if the widget is hidden.
18071         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
18072         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
18073         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
18074         special-case delete event.
18075
18076         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
18077         formatting
18078         
18079 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
18080
18081         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
18082         button to temporarily disable position recording in the
18083         "saved position" test.
18084
18085 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
18086
18087         * gtk/gtkthemes.c: added compat code that temporarily implements
18088         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
18089         going to be revamped by owen's upcoming GtkModule patches, but
18090         untill then people want gtk to build, right? ;)
18091
18092 2000-11-04  Havoc Pennington  <hp@pobox.com>
18093
18094         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
18095         list
18096
18097         * docs/Changes-2.0.txt: Add note about
18098         gtk_container_get_toplevels()
18099
18100         * gtk/gtktextview.h: formatting
18101         
18102         * gtk/gtktextview.c: don't start descriptions with "Returns",
18103         confuses gtk-doc
18104
18105 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
18106
18107         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
18108         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
18109
18110 2000-11-03  Havoc Pennington  <hp@redhat.com>
18111
18112         * gtk/gtktexttagtable.c: Docs
18113         (gtk_text_tag_table_size): return a signed int
18114
18115         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
18116         (gtk_text_tag_event): make the event_object a GObject
18117
18118         * gtk/gtktextview.c: Write API docs for all functions.
18119
18120         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
18121         for gtk_text_view_get_window_type() called on one of the private
18122         windows.
18123
18124         * gtk/gtktextview.c: Instead of accessing text_view->buffer
18125         directly, call get_buffer() which demand-creates a default
18126         buffer. So gtk_text_view_new() can be used to create a view with a
18127         default buffer in it, if you just want an empty text box users can
18128         put data in. Useful for GUI builders also.
18129
18130 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
18131
18132         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
18133         the charset encodign portion MUST be in lowercase.
18134         * gtk/gtkrc.az: added file for Azeri language
18135
18136 2000-11-03  Havoc Pennington  <hp@redhat.com>
18137
18138         Get widgets working on the btree/buffer side. Display of them 
18139         still doesn't work.
18140         
18141         * gtk/gtktextview.c: start implementing child widget stuff
18142
18143         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
18144
18145         * gtk/gtktextlayout.c: handle embedded widgets
18146
18147         * gtk/gtktextdisplay.c: handle embedded widgets
18148
18149         * gtk/gtktextchild.c: Implement all the child anchor goo
18150
18151         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
18152         function
18153
18154         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
18155         (insert_pixbuf_or_widget_segment): abstract out common portions of 
18156         creating a child anchor or a pixbuf segment.
18157         (gtk_text_btree_create_child_anchor): new function
18158         (gtk_text_btree_unregister_child_anchor): new function
18159
18160         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
18161         allocate_child signal on GtkTextLayout
18162
18163         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
18164         values
18165         (gtk_text_iter_get_child_anchor): new function
18166
18167         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
18168         default handler for the changed signal, which calls
18169         gtk_text_buffer_set_modified(), instead of just always emitting
18170         changed then calling set_modified() manually. I guess this is
18171         maybe more flexible. It seems logical.
18172
18173 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
18174
18175         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
18176         now.
18177
18178         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
18179
18180 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
18181
18182         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
18183         been marked static.
18184
18185 2000-11-02  Havoc Pennington  <hp@redhat.com>
18186
18187         * gtk/testgtk.c (create_labels): had a test backward
18188
18189         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
18190         fields, so the dest GC ends up with the correct clip origin, 
18191         etc. Fixes a bug where colored labels didn't redraw 
18192         properly.
18193
18194 2000-11-02  Alexander Larsson  <alexl@redhat.com>
18195
18196         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
18197         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
18198         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
18199         Add last argument to t_type_register_static call.
18200         
18201         * gdk/linux-fb/gdkdrawable-fb2.c:
18202         Add last argument to t_type_register_static call.
18203         export the get_image drawable virtual function.
18204
18205         * gdk/linux-fb/gdkimage-fb.c:
18206         Add last argument to t_type_register_static call.
18207         rename gtk_image_get to _gdk_fb_get_image and
18208         export it for use by gdkdrawable-fb2.
18209
18210         * gdk/linux-fb/gdkprivate-fb.h:
18211         export _gdk_fb_get_image.
18212
18213         * gdk/linux-fb/gdkselection-fb.c:
18214         Add new api call stubs.
18215
18216         * gtk/Makefile.am:
18217         Missing ( in linux-fb part.
18218
18219         * modules/linux-fb/Makefile.am:
18220         Must link with gdk_pixbuf or get unresolved symbol.
18221
18222 2000-11-01  Havoc Pennington  <hp@pobox.com>
18223
18224         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
18225         GTK_TYPE_TEXT_ITER and BOXED marshallers
18226
18227         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
18228
18229         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
18230         
18231         * gtk/gtk-boxed.defs: add GtkTextIter
18232
18233         * gtk/gtkmarshal.list: Add marshallers for text widget that 
18234         properly use OBJECT and BOXED
18235
18236 2000-11-01  Havoc Pennington  <hp@redhat.com>
18237
18238         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
18239
18240         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
18241         before returning it. 
18242         
18243 2000-11-01  Havoc Pennington  <hp@redhat.com>
18244
18245         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
18246         Clip the rectangle to be rendered to the drawable, since
18247         get_from_drawable() requires a region within the drawable
18248
18249 2000-11-01  Havoc Pennington  <hp@redhat.com>
18250
18251         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
18252         from coordinates.
18253
18254 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
18255
18256         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
18257         it isn't NULL.
18258
18259 2000-11-01  Havoc Pennington  <hp@pobox.com>
18260
18261         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
18262         on a label
18263         (gtk_label_finalize): unref the attr list if any.
18264
18265         * gtk/testgtk.c (create_get_image): close test on second click
18266         (make_message_dialog): close dialog if it exists
18267
18268         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
18269
18270         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
18271         gdk-pixbuf
18272
18273         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
18274         from Pango markup format
18275         (gtk_label_set_markup_with_accel): ditto but with accelerator
18276         parsing
18277
18278         * gtk/gtkimage.c (gtk_image_expose): reformatting.
18279
18280         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
18281         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
18282         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
18283         call gdk_window_get_origin().
18284
18285         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
18286         implement GDK_PIXBUF_ALPHA_FULL
18287         
18288 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
18289
18290         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
18291         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
18292         g_signal_handlers_disconnect_matched to block/unblock and disconnect
18293         multiple handlers respectively, instead of only treating the
18294         first handler found (bug reported by owen).
18295
18296 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
18297
18298         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
18299
18300         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
18301
18302         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
18303         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
18304         gtk/gtktreeviewcolumn.h: Fixed inline docs.
18305
18306         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
18307         widget.  Needs writing someday.
18308
18309         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
18310         the docs.
18311
18312 2000-10-30  Havoc Pennington  <hp@redhat.com>
18313
18314         * gtk/gtktextview.h, gtk/gtktextview.c:
18315         Rename delete_at_cursor delete_from_cursor, and 
18316         move to move_cursor.
18317
18318 2000-10-30  Havoc Pennington  <hp@redhat.com>
18319
18320         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
18321         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
18322         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
18323         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
18324         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
18325         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
18326         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
18327         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
18328         gtktexttypes.h, gtktextview.c, gtktextview.h:
18329
18330         Massive reindentation and reformatting. Arg alignment and comments
18331         still need fixing in various places.
18332
18333 2000-10-30  Havoc Pennington  <hp@redhat.com>
18334
18335         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
18336         to be named insert_at_cursor and delete_at_cursor so C++ can
18337         handle them.
18338
18339 2000-10-28  Tor Lillqvist  <tml@iki.fi>
18340
18341         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
18342         to get a double directory separator in case the home directory
18343         ends with one. This would cause trouble especially on Windows,
18344         where the path will be confused with the syntax for an an UNC
18345         (network share) path \\server\share\path.
18346         (gtk_rc_add_initial_default_files): Ditto.
18347
18348 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
18349
18350         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
18351
18352         * gtk/gtktextview.c: Use correct marshallers.
18353
18354 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
18355
18356         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
18357         use new iter stuff, and added all the appropriate signals et al.
18358
18359         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
18360         code is internal to gtk only.
18361
18362 2000-10-28  Tor Lillqvist  <tml@iki.fi>
18363
18364         * gtk/gtk.def
18365         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
18366         glib-genmarshal etc.
18367
18368 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
18369
18370         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
18371         parallel builds.
18372
18373 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
18374
18375         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
18376
18377 2000-10-27  Robert Brady  <robert@suse.co.uk>
18378
18379         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
18380         en_GB (British), ia (Interlingua).
18381
18382 2000-10-26  Havoc Pennington  <hp@redhat.com>
18383
18384         * gtk/gtktextiter.c (my_strrstr): fix constness warning
18385
18386         Fixed output of:
18387         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
18388         
18389         * gtk/gtktextsegment.c (char_segment_new): rename
18390         (_char_segment_new_from_two_strings): rename
18391         (_toggle_segment_new): rename
18392         
18393         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
18394         (make_clipboard_widget): make it static
18395         (text_get_func): static
18396         (text_clear_func): static
18397
18398         * gtk/gtkcolorsel.c (adjustment_changed): make this function
18399         static
18400         (hex_changed): make it static
18401         (hsv_changed): make it static
18402         (opacity_entry_changed): make it static
18403
18404         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
18405         (toggle_segment_check_func): rename with _gtk
18406
18407         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
18408         (_widget_segment_new): rename
18409         (_widget_segment_add): rename
18410         (_widget_segment_remove): rename
18411         (_widget_segment_ref): rename
18412         (_widget_segment_unref): rename
18413
18414         * gtk/gtktextmark.c (_mark_segment_new): Rename
18415         _gtk_mark_segment_new   
18416
18417 2000-10-26  Havoc Pennington  <hp@redhat.com>
18418
18419         * gtk/gtkmarshal.list: add new marshallers used by the text widget
18420         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
18421         types
18422
18423         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
18424         marshaller types
18425
18426         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
18427         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
18428         license on these files.
18429
18430         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
18431         work.
18432
18433         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
18434         runtime random number different for each tree, instead of 
18435         a constant I made up.
18436
18437 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
18438
18439         * gtk/Makefile.am: buncha cleanups, kludged build sources
18440         dependencies with a Makefile: oldest-source-stamp dependancy
18441         for the moment. automake is really fighting us here, with
18442         intentionally not allowing user-defined rules or dependancies
18443         prior to it's -include $(DEP_FILES) statement. sucks rocks!
18444
18445         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
18446         to public headers. tehy have a comment stating that they are
18447         "semi-public" aren't included by gtk.h and if enums popup there,
18448         they can be /*< skip >*/-ed.
18449
18450         * gtk/gtktextlayout.h: 
18451         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
18452         added LGPL... <SIGH>
18453
18454 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
18455
18456         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
18457         GtkTreeIter.  Added iterators everywhere.
18458
18459         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
18460
18461         * gtk/gtktreeviewselection.c: Changed to use the iterators.
18462
18463         * gtk/gtktreestore.c: Changed to use the iterators.
18464
18465         * gtk/gtkliststore.c: Commented out the code.  Will convert to
18466         iterators tomorrow.
18467
18468         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
18469         iterators tomorrow.
18470
18471         * gtk/treestoretest.c: Changed to use iterators.
18472
18473         * demos/testgtk/main.c: Moved to use the new iterator system.
18474
18475 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
18476
18477         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
18478         localization misbehaviour.
18479
18480         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
18481         a useless type without copy/free.
18482
18483         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
18484         of GTK_TYPE_CTREE_NODE.
18485
18486 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
18487
18488         * gtk/gtksignal.c:
18489         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
18490         applicable.
18491
18492         * gtk/gtk-boxed.defs (GtkSelectionData): specify
18493         gtk_selection_data_copy and gtk_selection_data_free
18494         do GtkSelectionData work as params in signals.
18495
18496 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
18497
18498         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
18499         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
18500         couldn't they at least give it a non-standard name?
18501         
18502         * gtk/gtktextlayout.c: arg! yet another implementation of
18503         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
18504
18505         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
18506         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
18507         home. now i know this _is_ a conspiracy.
18508
18509         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
18510         ::state-changed.
18511
18512         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
18513         (gtk_accel_group_create_add): marshaller signature fixups.
18514
18515         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
18516         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
18517
18518         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
18519         anymore.
18520
18521 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
18522
18523         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
18524         due to the signal system changes, it wouldn't build currently. to
18525         be fixed soon.
18526
18527         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
18528
18529         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
18530         so it needs gtk_marshal_VOID__ENUM() instead of
18531         gtk_marshal_NONE__UINT().
18532
18533         * gdk/gdk*.c: adapted type registration functions.
18534
18535         * gtk/gtkbindings.c:
18536         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
18537         gone.
18538
18539         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
18540
18541         * gtk/gtkobject.c:
18542         (gtk_object_destroy):
18543         (gtk_object_shutdown): fixed recursion guards. basically we have to
18544         catch the case where any of GObject.shutdown() or gtk_object_destroy()
18545         is called during ::destroy, and avoid recursion there.
18546
18547         * gtk/gtktypeutils.c:
18548         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
18549         boxed_copy/boxed_free. this needs a more general solution based on a
18550         publically installed code-generator utility.
18551
18552         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
18553         glib's gobject has support for that now.
18554         define GtkSignalMarshaller in terms of GSignalCMarshaller.
18555
18556 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
18557
18558         * gtk/gtksignal.[hc]:
18559         * gtk/gtkmarshal.[hc]:
18560         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
18561         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
18562         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
18563         care of that.
18564
18565         * *.c: marshaller name fixups.
18566
18567         * gtk/gtkmarshal.list: added a comment briefing the format.
18568
18569 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
18570
18571         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
18572         compatibility macros here now. more specifically, most of
18573         the API is preserved (yes, _most_, nonwithstanding the
18574         following exceptions listed, the API is stil lHUGE ;)
18575         things that got removed completely:
18576         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
18577         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
18578         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
18579         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
18580         gtk_signal_remove_emission_hook().
18581         non-functional functions variants:
18582         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
18583         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
18584         not supported anymore.
18585         (gtk_signal_compat_matched): new internal function to aid
18586         implementation of the compatibility macros, it  provides
18587         functionality to block/unblock/disconnect handlers based
18588         on func/data.
18589
18590         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
18591
18592         * *.c: adaptions to new type registration API signatures.
18593
18594 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
18595
18596         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
18597
18598 2000-10-25  Robert Brady  <robert@suse.co.uk>
18599
18600         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
18601         gdk_property_delete): If window == NULL, assume the root window.
18602         (restoring the behaviour that was in 1.2).
18603         
18604         * gtk/testtext.c (save_buffer): Allow creation of new files when
18605         saving.
18606
18607         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
18608         calls to read().
18609
18610 2000-10-25  Tor Lillqvist  <tml@iki.fi>
18611
18612         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
18613
18614         * gdk/win32/gdkdrawable-win32.c
18615         * gdk/win32/gdkimage-win32.c
18616         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
18617         X11 backend.
18618
18619         * gdk/win32/gdkcc-win32.c
18620         * gdk/win32/gdkcolor-win32.c
18621         * gdk/win32/gdkfont-win32.c
18622         * gdk/win32/gdkinput-win32.c
18623         * gdk/win32/gdkmain-win32.c
18624         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
18625
18626 2000-10-24  Havoc Pennington  <hp@redhat.com>
18627
18628         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
18629         it a static function
18630
18631         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
18632         redraw text when a tag is applied to it.
18633
18634         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
18635         (gtk_text_tag_affects_nonsize_appearance): private functions to
18636         see if a tag requires various kinds of redraw/layout to be queued
18637         up.
18638
18639         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
18640
18641         * gtk/testtext.c (fill_example_buffer): Put the cursor 
18642         at the start of the buffer, so search works by default
18643
18644         * gtk/gtktextiter.c (lines_match): init match_start always
18645
18646         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
18647         function, get iter at a line + a byte index
18648
18649         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
18650         to set byte position within a line
18651         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
18652
18653 2000-10-23  Havoc Pennington  <hp@redhat.com>
18654
18655         * gtk/testtext.c: Re-enable the "find" dialog
18656
18657         * gtk/testgtk.c: Add test for gdk_drawable_get_image
18658         
18659         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
18660         the arguments to gdk_draw_drawable were in the wrong order
18661         (gdk_window_paint_init_bg): This function was ignoring the
18662         init_region, instead of clipping to it, so the entire backing
18663         pixmap was cleared on every begin_paint()
18664         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
18665         was in here again, the loop kept using the same GtkWindowPaint
18666         over and over.
18667         (gdk_window_begin_paint_region): Fix a bug where we had two
18668         x_offset instead of x_offset and y_offset
18669
18670         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
18671         before we get the image.
18672         (gdk_draw_drawable): get the composite before we draw the drawable.
18673         (gdk_drawable_real_get_composite_drawable): default
18674         get_composite_drawable implementation that returns the drawable 
18675         itself
18676
18677         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
18678         get_composite_drawable virtual function
18679
18680         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
18681         list-walking bug
18682
18683         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
18684         make this work if the source drawable is a GdkDrawableImplX11
18685         instead of a public drawable type. This is really broken; the
18686         problem is that GdkDrawable needs a virtual method get_xid(), but
18687         of course that doesn't work in practice. Enter RTTI.
18688
18689         Also, improve mismatched depth message.
18690
18691         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
18692         GdkPixmap
18693
18694         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
18695         install _gdk_x11_get_image as our implementation of get_image
18696         
18697         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
18698         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
18699
18700         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
18701         gdk_drawable_get_image
18702
18703         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
18704
18705         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
18706         get_image
18707
18708         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
18709         trailing semicolon after for loop
18710
18711 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
18712
18713         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
18714         where font_desc for widget's context lagged widget's font_desc by
18715         one step.
18716
18717 2000-10-22  Tor Lillqvist  <tml@iki.fi>
18718
18719         * gdk/win32/gdkgc-win32.c
18720         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
18721
18722         * gtk/makefile.mingw.in
18723         * gtk/gtk.def: Updates.
18724
18725         * gtk/testgtk.c: sleep() is called _sleep in MS's C
18726         library.
18727
18728         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
18729
18730         * gtk/makefile.msc: Remove
18731
18732         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
18733
18734         * gtk/Makefile.am: Add it.
18735
18736         * configure.in: Generate it.
18737
18738         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
18739         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
18740         something even if not implemented, to satisfy picky MSVC.
18741
18742         Patches by Hans Breuer:
18743         
18744         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
18745         SetBkMode() and SetTextAlign() before calling
18746         pango_win32_render().
18747
18748         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
18749         Set hcliprgn to NULL after destroying it.
18750         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
18751
18752         * gdk/win32/gdkgeometry-win32.c
18753         (_gdk_windowing_window_queue_antiexpose): More effective
18754         implementation.
18755
18756         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
18757         depth as default, not the visual's.
18758
18759         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
18760         against empty title.
18761
18762         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
18763         IMAGE_PRIVATE_DATA.
18764
18765         * gdk/win32/gdkimage-win32.c: Use it.
18766
18767 2000-10-22  Robert Brady  <robert@suse.co.uk>
18768
18769         * configure.in: Check for bind_textdomain_codeset
18770
18771         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
18772         present, make use of it.
18773
18774         Add a translatable string "default:LTR" which, if translated
18775         to "default:RTL", will cause the default direction to be
18776         Right-to-Left.
18777
18778         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
18779         direction if marked as flippable.
18780
18781         * gtk/gtkhscale.c: Mark widget as flippable.
18782         
18783 2000-10-04  Havoc Pennington  <hp@redhat.com>
18784
18785         * gtk/testgtk.c (create_buttons): create some stock buttons
18786         with the default accel group
18787         (create_image): test some new GtkImage features
18788         (make_message_dialog): test GtkMessageDialog
18789         (create_modal_window): fix someone's bizzarro indentation
18790
18791         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
18792         GTK_WIN_POS_CENTER_ON_PARENT. 
18793         Add "destroy with parent" setting, which means the window goes
18794         away with its transient parent.
18795         (gtk_window_get_default_accel_group): get the default accel group
18796         for the window.
18797         (gtk_window_set_destroy_with_parent): set/unset destroy with
18798         parent flag
18799         (gtk_window_read_rcfiles): invalidate icon set caches
18800         after reloading rcfiles 
18801
18802         * gtk/gtkenums.h (GtkWindowPosition): add
18803         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
18804         on its parent window when the dialog is mapped for the first time.
18805
18806         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
18807         a simple message dialog class
18808         
18809         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
18810         handler to emit response signal, and maybe later it would
18811         honor a hide_on_delete flag - though that isn't there yet.
18812         Set border width on the vbox to 2, so we get some padding.      
18813         Use a button box for the action area.
18814         (gtk_dialog_key_press): synthesize a delete event if Esc
18815         is pressed and the GtkWidget key press handler didn't 
18816         handle the escape key.
18817         (gtk_dialog_new_with_buttons): new function creates a dialog
18818         with some default buttons in it.
18819         (gtk_dialog_add_action_widget): add an activatable widget
18820         as a button in the dialog - you can also add a non-activatable
18821         widget by accessing the action area directly.
18822         (gtk_dialog_add_button): add a simple button - stock ID or 
18823         label - to the action area
18824         (gtk_dialog_response): emit response signal
18825         (gtk_dialog_run): block waiting for the dialog, return 
18826         the response. Override normal delete_event behavior, so that 
18827         delete_event does nothing inside gtk_dialog_run().
18828         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
18829         emitted when an action widget is clicked or the dialog gets
18830         delete_event
18831
18832         * gtk/gtk.h: add gtkmessagedialog.h
18833
18834         * gtk/Makefile.am: add gtkmessagedialog.[hc]
18835
18836 2000-10-18  Havoc Pennington  <hp@redhat.com>
18837
18838         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
18839         where any number of empty lines would get skipped
18840
18841         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
18842         edge.
18843
18844         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
18845         warning about invalid iterators (explain more thoroughly)
18846         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
18847
18848         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
18849         big
18850
18851         * demos/*.c: Add error handling
18852
18853         * gtk/gtktextbuffer.c: don't modify const iterators
18854
18855         * gtk/gdk-pixbuf-loader.c: Add full error handling here
18856
18857         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
18858         on file load
18859
18860         * gtk/gtkiconfactory.c: Update to reflect addition of error
18861         handling to gdk-pixbuf loaders
18862
18863 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
18864
18865         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
18866         move to new modularized testgtk.
18867
18868 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
18869
18870         * gtk/gtktreeview.c: Draw the arrows correctly.
18871
18872         * gtk/gtktreemodel.c: Added user docs.
18873
18874         * gtk/gtk.h: remove gtktreedatalist.h.
18875
18876         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
18877         parent when generating my type.
18878
18879         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
18880         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
18881
18882 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
18883
18884         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
18885         GtkTreeModel from object to interface.
18886
18887 2000-10-16  Havoc Pennington  <hp@redhat.com>
18888
18889         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
18890         compilation
18891
18892 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
18893
18894         * gtk/gtktreeselection.c: Add API documentation to all public
18895         functions.
18896
18897         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
18898         functions.
18899
18900 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
18901
18902         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
18903         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
18904         docs to all public functions.
18905
18906         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
18907         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
18908         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
18909         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
18910         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
18911         issue.
18912
18913 2000-10-14  Robert Brady  <robert@suse.co.uk>
18914
18915         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
18916
18917 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
18918
18919         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
18920         values other then G_TYPE_STRING.
18921         * gtk/gtktreeselection.c: Minor commenting updates.
18922         * gtk/gtktreeview.c: Format updates.
18923
18924 2000-10-09  Tor Lillqvist  <tml@iki.fi>
18925
18926         * README.win32: Update.
18927
18928         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
18929         lines that had been deleted by mistake (?).
18930
18931         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
18932         also the case fg==white and bg==black (but still not randomly
18933         coloured cursors). Thanks to Wolfgang Sourdeau.
18934
18935         * gdk/win32/*.c: Silence gcc -Wall.
18936
18937         * gtk/gtk.def: Add missing entry points.
18938
18939         Fixes by Hans Breuer:
18940
18941         * gdk/makefile.msc
18942         * gdk/win32/makefile.msc: Update.
18943
18944         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
18945         some MSVC thing, presumably), cause breakpoint on failures. Add
18946         GDK_NOR case. Call g_log_set_always_fatal.
18947
18948         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
18949         should be pased by reference.
18950         
18951         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
18952         
18953         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
18954
18955         * gdk/win32/gdkevents-win32.c
18956         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
18957
18958         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
18959         implementation object.
18960
18961         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
18962         not just windows.
18963         
18964         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
18965         Use the wrapper object.
18966         
18967 2000-10-06  Havoc Pennington  <hp@redhat.com>
18968
18969         * Makefile.am (SRC_SUBDIRS): contrib subdir
18970
18971         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
18972         so it can be used in Xlib version
18973
18974         * demos/testpixbuf.c (update_timeout): error checking from 1.0
18975         tree
18976
18977         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
18978         change from 1.0 tree that returns first frame of animation
18979         if the loaded file is an animation.
18980
18981         * contrib: add new directory to hold stuff that comes with GTK+
18982         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
18983         
18984         * configure.in: add contrib/*
18985
18986 2000-10-05  Havoc Pennington  <hp@redhat.com>
18987
18988         * demos/testpixbuf-save.c: add pixbuf save test
18989
18990         * demos/Makefile.am: add testpixbuf-save.c
18991
18992 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
18993
18994         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
18995         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
18996         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
18997         * gtk/gtktreeselection.[ch]: Replaced
18998         "node_selected"/"node_unselected" signal with "selection_changed"
18999         signal.
19000
19001 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
19002
19003         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
19004         tree widget.
19005
19006 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
19007
19008         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
19009         drawing.
19010
19011 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
19012
19013         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
19014         Move list pointer forwards before removing item from
19015         list. (Crash reported by Salmaso Raffaele)
19016
19017         * gdk/gdkwindow.h: Remove spurious trailing ,
19018
19019         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
19020         dependencies on uninstalled libraries, sorry folks.
19021
19022 2000-10-04  Havoc Pennington  <hp@redhat.com>
19023
19024         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
19025         gtk/gtkiconfactory.c: Fix copyrights    
19026
19027         * demos/testpixbuf.c: add inline pixbuf test
19028         
19029 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
19030
19031         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
19032         Add gdk_window_iconify.
19033
19034         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
19035         (gdk_window_set_geometry_hints): Add win_gravity
19036         to geometry structure.
19037
19038         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
19039         Implement _NET_WM_PING.
19040
19041         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
19042         Set _NET_WM_PID on the client leader.
19043
19044         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
19045         Handle UTF-8 better.
19046
19047         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
19048         UTF-8 better, set _NET_WM_NAME as well. Only set
19049         icon name if it hasn't previously been explicitely 
19050         set.
19051
19052 2000-10-03  Havoc Pennington  <hp@redhat.com>
19053
19054         * gtk/testtextbuffer.c: clean up trailing whitespace,
19055         add extensive tests for tag toggle iteration.
19056         
19057         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
19058         distance
19059
19060         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
19061         optimize case where the tag root is on level 1
19062         (gtk_text_line_previous_could_contain_tag): attempt to implement
19063         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
19064         functionality
19065
19066         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
19067         Implement this, though not very efficiently.
19068
19069         * gtk/gtktextiterprivate.h: reformat
19070
19071         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
19072         iterator
19073
19074         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
19075         this to properly revalidate the iterators.
19076
19077         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
19078         properly at the end of the line (and therefore on empty lines)
19079
19080         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
19081         maybe we should return a value...
19082
19083 2000-10-03  Tor Lillqvist  <tml@iki.fi>
19084
19085         * config.h.win32: Guard definition of alloca(). glib.h now handles
19086         that.
19087
19088         * gdk/gdk.def
19089         * gtk/gtk.def: Add new entry points.
19090
19091         Changes just to make GTK+ build without errors on Win32. No hope
19092         of it working in its current state, though...:
19093         
19094         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
19095         some functions from the X11 backend, just to make GTK+ build.
19096
19097         * gdk/makefile.mingw.in
19098         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
19099         number. Add new object files.
19100
19101         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
19102         GetMessageTime to get timestamp (where on X11 uses
19103         gdk_x11_get_server_time()).
19104
19105 2000-10-02  Havoc Pennington  <hp@pobox.com>
19106
19107         * gtk/gtktextview.c: text_window_* weren't static and should have
19108         been.
19109         Start work on child widgets; not yet complete, syncing to 
19110         office computer.
19111
19112         * gtk/gtktextchild.h: change this to contain a public interface,
19113         starting work on child interfaces.
19114         * gtk/gtktextchildprivate.h: move private interfaces here
19115
19116         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
19117
19118         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
19119         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
19120         gtk/gtktextmark.c: copyright notices
19121
19122         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
19123         internal functions      
19124
19125         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
19126         internal function
19127
19128         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
19129         Reformatting    
19130
19131 2000-09-30  Havoc Pennington  <hp@pobox.com>
19132
19133         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
19134         NULL start/end pointers
19135
19136         * gtk/gtktextbuffer.c: Write some docs
19137         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
19138         NULL, so you can just check whether there's a selection.        
19139
19140         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
19141         cleanup_line or segments_changed ourselves, it gets done 
19142         in unlink_segment
19143
19144         * gtk/gtktextmark.h:
19145         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
19146         
19147         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
19148
19149         * gtk/gtktextmark.c: delete some more old Tk cruft
19150
19151         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
19152         mark before removing it, so we can emit MARK_DELETED with a valid
19153         pointer.
19154         (gtk_text_buffer_mark_set): hold ref across signal emission
19155
19156         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
19157         whining about attempts to delete special marks
19158
19159         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
19160         underscore, since it's internal.
19161
19162         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
19163         now implemented in terms of iterators in gtktextiter.h
19164
19165         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
19166         New function, destructively sets contents of buffer. Also 
19167         a convenient way to clear the buffer by setting text to ""
19168
19169         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
19170         multiline string literal
19171
19172         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
19173         text changes.
19174
19175         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
19176         is not dereferenceable
19177         (gtk_text_iter_forward_lines): fix return value
19178
19179 2000-09-29  Havoc Pennington  <hp@redhat.com>
19180
19181         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
19182
19183         * gtk/gtktextview.c: Implement drag thresholding; change functions 
19184         that set border window size to have nicer name
19185         (gtk_text_view_mark_set_handler):  Fix this to have the 
19186         right signature.
19187
19188         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
19189
19190         * gtk/testtext.c: Update with API changes, put line numbers on 
19191         both sides.
19192         
19193         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
19194         with this
19195
19196         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
19197         pixbuf; delete a big block of #if 0 Tk code
19198
19199         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
19200         insert_pixmap with insert_pixbuf
19201
19202 2000-09-29  Martin Baulig  <baulig@suse.de>
19203
19204         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
19205         confusion with the GdkPixbuf of the GNOME 1.x platform.
19206
19207 2000-09-29  Havoc Pennington  <hp@pobox.com>
19208
19209         * gtk/gtktextview.c: Implement the side windows.
19210
19211         * gtk/testtext.c: Implement simple line numbering in the 
19212         left side window; seems to make scrolling sloooow. Oops.
19213         Also, cursor blink is for some reason causing redraws
19214         of the line numbers. Should investigate...
19215
19216 2000-09-28  Havoc Pennington  <hp@redhat.com>
19217
19218         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
19219         scrolling child windows, and draw focus rectangle properly.
19220         
19221         (gtk_text_view_buffer_to_window_coords):
19222         Coordinate transformation to deal with all these freaking windows
19223         and offsets
19224         (gtk_text_view_window_to_buffer_coords): transform the other way
19225
19226         * gtk/testtext.c (create_buffer): Update to match Pango API change
19227
19228         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
19229         anonymous tags
19230         (foreach_unref): don't emit remove signal from finalize, just
19231         set tag's parent to NULL
19232
19233 2000-09-26  Havoc Pennington  <hp@redhat.com>
19234
19235         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
19236         Fix some warnings       
19237
19238 2000-09-26  Havoc Pennington  <hp@redhat.com>
19239
19240         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
19241         headers into the private header list
19242
19243         * Makefile.am (pkgconfig_DATA): install pkg-config files
19244
19245         * configure.in: add pkg-config files
19246
19247         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
19248
19249         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
19250         outstanding icon caches on theme change.
19251
19252         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
19253         important types:
19254
19255         (GtkIconSource): Specification for creating a pixbuf 
19256         appropriate for a direction/state/size triplet from 
19257         a source pixbuf or filename
19258
19259         (GtkIconSet): List of GtkIconSource objects that are used to
19260         create the "same" icon (e.g. an OK button icon), and cache for
19261         rendered icons
19262
19263         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
19264         up the icon set for a given stock ID.  GTK maintains a stack of
19265         GtkIconFactory to search, and applications or libraries can add
19266         additional icon factories on top of the stack
19267         
19268         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
19269         the set of GtkIconSource specified for a given stock ID into 
19270         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
19271         RcStyle, under the specified stock ID.
19272
19273         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
19274         render_icon used to derive a GdkPixbuf from a GtkIconSource.
19275         This allows people to theme how prelight, insensitive, etc. are
19276         done.
19277
19278         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
19279         icon factories for a style, and return the resulting 
19280         icon set if any.
19281
19282         (gtk_style_render_icon): Render an icon using the render_icon 
19283         method in the GtkStyleClass.
19284
19285         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
19286         Use the style for a given widget to look up a stock ID, get the
19287         icon set, and render an icon using the render_icon method 
19288         of the style
19289
19290         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
19291         (contains information about a stock item), the built-in stock item
19292         IDs, and functions to add/lookup stock items.
19293
19294         * gtk/stock-icons/*: Stock icons that come with GTK
19295
19296         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
19297         a button based on a GtkStockItem
19298         (gtk_button_new_accel): Takes a uline string and accel group, and
19299         installs the accelerator.
19300
19301         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
19302         image-display widget.
19303
19304 2000-09-25  Havoc Pennington  <hp@redhat.com>
19305
19306         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
19307
19308         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
19309         Fix a bug when removing node data, we didn't properly 
19310         re-splice the linked list after removing the data.
19311
19312         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
19313         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
19314
19315         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
19316
19317         * gtk/gtktextlayout.c (set_para_values): Set tab array 
19318         for the layout from the GtkTextTag.
19319
19320         * gtk/gtktexttypes.h: delete tab and search cruft, 
19321         remove g_convert() in favor of GLib version
19322
19323         * gtk/gtktexttypes.c: remove tab implementation from here,
19324         move to Pango
19325
19326         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
19327         tab stuff using new PangoTabArray from Pango
19328
19329         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
19330         unused border_width stuff
19331
19332 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
19333
19334         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
19335         glib) and now useless utf_to_latin1() latin1_to_utf()
19336
19337         * gtk/gtktextview.[ch]: Change ::move_insert and
19338         ::delete_text action signals to ::move and ::delete;
19339         create the signals with the right enumeration type,
19340         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
19341         C-v bindings, change Home, End to move to beginning/end
19342         of line, Add C-Home C-End to move to beginning/end
19343         of buffer. Change ::cut_text to ::cut_clipboard, etc;
19344         combine ::scroll_text into ::move; use new GtkSelectionData
19345         functions to simplify DND text handling.
19346         
19347         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
19348         deletion enumerations here, rename enumeration values to 
19349         be consistently plural.
19350
19351         * gtk/gtktextbuffer.c: Use new clipboard interfaces
19352         for cut/copy/paste and primary selection.
19353
19354         * gtk/gtktextbuffer.[ch]: Remove excess time and
19355         'interactive' arguments from cut/copy/paste;
19356         rename cut to cut_clipboard, etc; remove
19357         gtk_text_buffer_get_clipboard_contents().
19358
19359         * gtk/gtktextlayout.[ch]: Add 
19360         gtk_text_layout_move_iter_to_line_end() to move the iter to 
19361         line ends.
19362
19363         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
19364         Functions to set or get a UTF-8 string on the selection
19365         data.
19366
19367         * gtk/gtkclipboard.[ch]: New, simplified selection handling
19368         interfaces.
19369
19370         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
19371         created widgets - one of these is useless if we don't.
19372
19373         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
19374         a public function clear all targets registered for the
19375         widget.
19376
19377         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
19378         Never call gtk_widget_realize() - that was just asking
19379         for bizarre side-effects.
19380
19381         * gtk/gtkselection.c (gtk_selection_owner_set): Call
19382         gdk_selection_owner_set even if the widget is the
19383         same so that we reliably update the timestamp on
19384         the server.
19385
19386         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
19387         gdk_x11_get_server_time() function.
19388         
19389         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
19390         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
19391         Add some tricky filtering on serial numbers for
19392         selection clear events to fix up long-standard
19393         race condition FIXME's in gtkselection.c.
19394
19395         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
19396         routines to convert from utf8 to compound text or
19397         STRING and from a text property to UTF-8.
19398
19399         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
19400         a convenience function gdk_get_current_event_time().
19401
19402         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
19403         and free selection_data->data properly
19404
19405 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
19406
19407         * gtk/gtkthemes.c: Remove some unecessary includes.
19408
19409 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
19410
19411         * gtk/gtktextdisplay.c
19412         * gtk/gtktextlayout.c
19413         * gtk/gtktexttag.c
19414         * gtk/gtktexttag.h
19415         * gtk/testtext.c: Change the overstrike property to strikethrough,
19416         to closer match pango.
19417
19418 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
19419
19420         * gtk/gtktextview.c: Fix up visibility so that focus,
19421         cursor_visible and blink interact properly.  Reenable cursor blink
19422         which had been roughly disabled. Make blink and focus
19423         properly per-view.
19424
19425         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
19426         Add a flag for whether to display insertion cursor and
19427         a function to set the flag.
19428
19429         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
19430         get_line_y() to get_line_yrange(), to be a bit more generally
19431         useful.
19432
19433 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
19434
19435         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
19436           do stop_navigating_submenu, to clear last timeout properly.
19437           Also in gtk_menu_motion_notify move ignore_enter above
19438           the conditional to make it always happen as suggested by Owen
19439
19440 2000-09-07  Tor Lillqvist  <tml@iki.fi>
19441
19442         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
19443
19444         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
19445         w32api headers.
19446
19447         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
19448         declarations.
19449
19450         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
19451         (gdk_win32_get_colormap): A line had been deleted by mistake.
19452
19453         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
19454         (gdk_event_translate): Handle more virtual keycodes to be able to
19455         generate GDK events for Control-comma, Control-period, etc.
19456
19457         * gtk/gtk.def: Add some missing entry points.
19458
19459 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
19460
19461         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
19462         Doc comment fixing. (Mostly non-matching parameter names.)
19463
19464         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
19465         comments a little to avoid looking like a doc comment.
19466
19467         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
19468         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
19469         conversions be changed to GError?)
19470
19471         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
19472         Move private #defines into .c file.
19473
19474         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
19475         order of argument addition, remove duplicates.
19476
19477         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
19478         parent class is FrameClass, not BinClass.
19479
19480         * gtk/gtk.h: Add gtkinvisible, which was missing.
19481         (It's occasionalyl useful for client apps, if seldom.)
19482
19483         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
19484         #define.
19485
19486 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
19487
19488         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
19489         coordinates when creating window, instead of GDK-space
19490         coordinates. (Avoid BadValue on too large windows.)
19491
19492 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
19493
19494         * configure.in (use_mmx_asm): Remove conftest* after use along the
19495         lines of AC_TRY_COMPILE.        
19496         
19497         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
19498         of g_dirname, which is deprecated.
19499         (gtk_rc_parse_any): Removed calls to
19500         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
19501
19502         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
19503         Removed calls to g_hash_table_{freeze,thaw}, as they are
19504         deprecated now.
19505
19506         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
19507         instead of g_basename.
19508         
19509 2000-09-04 Elliot Lee <sopwith@redhat.com>
19510         
19511         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
19512         ANSI warning.
19513
19514 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
19515
19516         * gtk/gtkwidget.h:  Add some documenting comments about 
19517           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
19518           just as owen said on irc.
19519
19520         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
19521           set HAS_DEFAULT.  Only set it if there isn't another window
19522           holding it (a focus window which RECEIVES_DEFAULT) and only unset
19523           it if the widget is not the focused window with RECEIVES_DEFAULT.
19524           This fixes weird double default bugs in dialogs which has things
19525           call gtk_window_set_default at times.
19526
19527 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
19528
19529         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
19530         Nils Barth and David Santiago to improve submenu
19531         navigation. The patch does this by creating a triangular
19532         region from the point where the pointer leaves the
19533         menu to the submenu.  While the pointer is in
19534         that region and a timeout has not expired, events 
19535         that would cause the active submenu to change are
19536         ignored.
19537
19538 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
19539
19540         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
19541         moving a toplevel window immediately after sizing it would
19542         result in it being sized back to the old size since 
19543         impl->width, impl->height aren't updated until we hear
19544         back from the server. There is still a (longstanding) bug
19545         here that gdk_window_get_size() will give the wrong size
19546         until we do hear back.
19547
19548 2000-08-31  Havoc Pennington  <hp@redhat.com>
19549
19550         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
19551         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
19552         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
19553         Rename GtkTextStyleValues to GtkTextAttributes
19554
19555 2000-08-31  Havoc Pennington  <hp@pobox.com>
19556
19557         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
19558         for rapid testing whether an iterator is the end iterator
19559         (gtk_text_btree_new): init end line cache
19560         (gtk_text_line_is_last): use fast cached line to 
19561         see if we're the last line.
19562         (get_last_line): use cached line here too, should 
19563         speed up some random unrelated code.
19564         
19565 2000-08-30  Havoc Pennington  <hp@pobox.com>
19566
19567         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
19568         signals.
19569
19570         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
19571         delete_text signals. This allows the signals to be used for
19572         implementing undo.
19573
19574         * gtk/gtktextbuffer.c: Change signal handler signatures; 
19575         provide "interactive" argument when emitting insert_text or
19576         delete_text signal.
19577         
19578 2000-08-30  Havoc Pennington  <hp@pobox.com>
19579
19580         * gtk/gtktextbuffer.c: Docs
19581
19582 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
19583
19584         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
19585         from switch statements, since Tor removed the enumeration
19586         value.
19587         
19588         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
19589         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
19590
19591 2000-08-29 Elliot Lee <sopwith@redhat.com>
19592         * */*.h: Use G_GNUC_CONST.
19593
19594 2000-08-27  Havoc Pennington  <hp@pobox.com>
19595
19596         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
19597         minor indentation fixes, inserted some FIXME about stuff I
19598         realized was broken while documenting it.
19599         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
19600         GTK convention  
19601
19602 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
19603
19604         * gtk/testgtk.c (create_styles): Fix double free of
19605         font desc.
19606
19607 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19608
19609         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
19610         
19611         * gtk/testgtk.c (create_styles): Add a test for modifying
19612         the style through gtk_widget_modify_*.
19613
19614         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
19615         a function to get the current modifier style.
19616
19617         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
19618         of the passed in GtkRcStyle instead of ref'ing it.
19619
19620         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
19621
19622 2000-08-20  Tor Lillqvist  <tml@iki.fi>
19623
19624         * gdk/gdkimage.h
19625         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
19626         shared memory image+pixmap GdkImage type, or
19627         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
19628         I am dropping that.
19629
19630         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
19631         actually call gtk_init_abi_check(), passing also
19632         sizeof(GtkWindow). Ditto for gtk_init_check(). 
19633
19634         * gtk/gtk.def
19635         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
19636         New functions, used to check that the GTK+-using code has been
19637         compiled using the correct compiler and switches. In particular,
19638         with gcc one has to use the -fnative-struct switch as GTK+ is
19639         compiled with that.
19640
19641 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
19642
19643         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
19644         ->prev fields when merging lists. (Found simultaneously
19645         by Pawel Salek and Jakub Jelinek)
19646
19647 2000-08-12  Tor Lillqvist  <tml@iki.fi>
19648
19649         * gdk/gdk.def
19650         * gtk/gtk.def: Add missing entries.
19651
19652         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
19653         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
19654
19655         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
19656         function. Dummy implementation at this point.
19657
19658         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
19659         rules. Undefine GTK_COMPILATION when compiling the test programs.
19660         
19661         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
19662
19663 2000-08-11  Tor Lillqvist  <tml@iki.fi>
19664
19665         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
19666         to convert back and forth from UTF-8 and the "system" (or "current
19667         locale") charset when necessary. Indentation/spacing cleanup.
19668
19669 2000-08-10  Havoc Pennington  <hp@redhat.com>
19670
19671         * Makefile.am (snapshot): Change the format of the snapshot
19672         version to match glib
19673
19674         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
19675         from EXTRA_DIST since it doesn't seem to exist
19676
19677 2000-08-10  Tor Lillqvist  <tml@iki.fi>
19678
19679         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
19680         version of the directory name (not the UTF-8 one) when building
19681         the path name to stat().
19682
19683 2000-08-03  Elliot Lee  <sopwith@redhat.com>
19684
19685         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
19686         PANGO_ATTR_SHAPE set.
19687
19688 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
19689
19690         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
19691         Peter Osterlund to simplify the code while keeping the
19692         functionality the same.
19693
19694 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
19695
19696         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
19697         is_viewable() test further inside the function, since removing the 
19698         window from the redraw list without clearing ->update_area
19699         was also very broken.
19700
19701 2000-08-02  Tor Lillqvist  <tml@iki.fi>
19702
19703         * configure.in: Check for <unistd.h>.
19704
19705 2000-08-01  Martin Baulig  <baulig@suse.de>
19706
19707         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
19708         to display the message that this is a development version of GTK+.
19709
19710 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
19711
19712         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
19713         was depending on widget->allocation instead of the width of text_area,
19714         which was incorrect for subclasses like GtkSpinButton.
19715
19716         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
19717         with width == 1 tests that should be width == -1.
19718
19719 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
19720
19721         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
19722         (broken, Elliot, every single window blank on X) custom code with call
19723         to gdk_window_is_viewable() which a) prevents code duplicate and
19724         b) works. 
19725
19726 2000-07-31  Elliot Lee  <sopwith@redhat.com>
19727
19728         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
19729         to get the GDK_PARENT_ROOT() macro to work.
19730         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
19731         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
19732         of, windows that aren't shown.
19733         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
19734         pointer grab stuff.
19735
19736 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
19737
19738         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
19739           s/gtk_main_iteration/g_main_iteration/
19740
19741           Did this already in change:
19742                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
19743           don't know how it got reverted.
19744
19745 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
19746
19747         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
19748         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
19749
19750         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
19751         not gdk_pixbuf.
19752
19753 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
19754
19755         * configure.in,po/{sp,sr}.po: Added Serbian files
19756
19757 2000-07-30  Tor Lillqvist  <tml@iki.fi>
19758
19759         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
19760
19761         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
19762         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
19763         GIOChannel implementation.
19764
19765         * gdk/win32/gdkinput.c
19766         * gdk/win32/gdkpango-win32.c: Update license name here, too.
19767
19768         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
19769         definition to match prototype.
19770
19771         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
19772
19773 2000-07-27  Elliot Lee  <sopwith@redhat.com>
19774
19775         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
19776         function, to allow handling image formats that cannot be detected
19777         by looking at content alone.
19778
19779 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
19780
19781         * docs/tutorial/*.gif *.jpg *.eps
19782           Update these to the same look-n-feel.
19783           Why does including images in DocBook suck so badly?
19784
19785 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
19786
19787         * gtk/gtktable.c: applied patch from Phil Thompson
19788         <phil@river-bank.demon.co.uk> that enables space settings for
19789         the last row/columns as well.
19790
19791 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
19792
19793         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
19794         updates the license headers to the GNU Lesser General Public License,
19795         as well as updating the copyright year to 2000.
19796
19797 2000-07-26  Robert Brady  <rwb197@zepler.org>
19798
19799         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
19800           and po/Makefile, was installing and looking for them under gtk20
19801           and gtk2 respectively.
19802
19803 2000-07-25  Havoc Pennington  <hp@redhat.com>
19804
19805         * gtk/testtext.c: Comment out some stuff that depends on the rest
19806         of my patches.
19807
19808 2000-07-25  Havoc Pennington  <hp@redhat.com>
19809
19810         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
19811         buffer
19812
19813 2000-07-25  Havoc Pennington  <hp@redhat.com>
19814
19815         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
19816         widget changes.
19817
19818         * gtk/gtktextview.h: To be consistent with usage of "line"
19819         throughout the API to mean "newline-terminated thingy", change
19820         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
19821         to MOVEMENT_LINE.
19822
19823         (GtkTextView): Add flags for default editability, and whether to
19824         show the cursor. Add functions to get/set that. Add 
19825
19826         (gtk_text_view_get_iter_location): new function
19827
19828         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
19829         gtktextlayout.h
19830         (g_convert): Add g_convert temporarily, will go in glib in a bit
19831         
19832         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
19833         GtkTextTagTableForeach instead of brokenly using GHFunc.
19834         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
19835
19836         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
19837         moved to public header.
19838
19839         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
19840         "invisible", since "elide" was a bad name.
19841         (gtk_text_tag_get_priority): Added
19842
19843         (GtkTextStyleValues): put this in public header, along with
19844         functions to use it.
19845
19846         * gtk/gtktextmarkprivate.h: Include more headers, since we no
19847         longer include gtktextbtree.h.
19848
19849         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
19850         gtk_text_mark_deleted
19851
19852         * gtk/gtktextlayout.h: Don't include the "really private" headers,
19853         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
19854         to make this possible. Now we only need to install
19855         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
19856         (However the Makefile.am isn't changed yet because of the
19857         logistics of merging gtk-hp-patches piecemeal)
19858
19859         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
19860         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
19861         gtk_text_iter_get_line is now used in the public API for a
19862         different purpose.
19863
19864         * gtk/gtktextiter.h: Clean up function names to be more
19865         consistent. Always call char offset "offset" and byte index
19866         "index". A "line" is always a line number. 
19867
19868         (gtk_text_iter_is_last): new function, more efficient than 
19869         the existing way to check
19870         (gtk_text_iter_is_first): new function, also more efficient
19871
19872         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
19873
19874         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
19875         gtk_text_iter_forward_char, etc.
19876
19877         (gtk_text_iter_forward_to_tag_toggle): Renamed from
19878         forward_find_tag_toggle, since this isn't a linear search
19879
19880         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
19881
19882         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
19883         New functions, search for a buffer substring.
19884
19885         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
19886         interactive and default editable (since we need to store that info
19887         until we receive the selection data).
19888
19889         Remove all the _at_char and at_line etc. versions of functions;
19890         only have iterator versions.
19891
19892         Add _interactive() versions of functions, that consider the
19893         editability of text. (FIXME add interactive flag to the 
19894         insert/delete signals per Darin's suggestion)
19895
19896         (gtk_text_buffer_get_tag_table): new function, demand-creates the
19897         tag table if necessary
19898
19899         Remove declaration of gtk_text_buffer_get_iter_from_string
19900
19901         (_gtk_text_buffer_get_btree): private/internal function, added.
19902         
19903
19904         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
19905         (gtk_text_line_is_last): new function
19906
19907 2000-07-25  Havoc Pennington  <hp@redhat.com>
19908
19909         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
19910         using GtkProgressBar. See Changes-2.0.txt for details.
19911
19912         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
19913         "pulse_step" which are the equivalent of
19914         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
19915         Implement new API.
19916         
19917         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
19918         (use_text_format) to mark whether text set on the progress bar is
19919         a format string. Deprecate entire GtkProgress interface.
19920
19921         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
19922         (gtk_progress_build_string): make this a no-op if use_text_format
19923         is FALSE
19924
19925         * docs/Changes-2.0.txt: Describe progress bar changes.
19926
19927 2000-07-25  Tor Lillqvist  <tml@iki.fi>
19928
19929         * Makefile.am: Include the build directory.
19930
19931         * configure.in: Generate build/Makefile, build/win32/Makefile,
19932         gdk/, gdk/win32/, and gtk/makefile.mingw.
19933
19934         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
19935         Add GETTEXT_PACKAGE.
19936         
19937         * gdk/gdk.def
19938         * gtk/gtk.def: Updates.
19939
19940         * gdk/gdkfont.h
19941         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
19942         need them any longer.
19943
19944         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
19945
19946         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
19947         PANGOWIN32_LIBS and gdk_pixbuf.
19948
19949         * gdk/win32: Compiles, but no doubt doesn't work at all.
19950
19951         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
19952
19953         * gdk/win32/gdkinput.c: New file, temporarily.
19954         
19955         * gdk/win32/gdkinput-win32.h: New file
19956
19957         * gdk/win32/gdkinputprivate.h: Remove.
19958
19959         * gdk/win32/gdkpango-win32.c: New file.
19960
19961         * gtk/makefile.mingw.in: New file
19962
19963         * gtk/makefile.cygwin: Removed
19964         
19965         * gtk/Makefile.am: Update accordingly.
19966
19967         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
19968         made externally visible.
19969
19970         * gtk/gtkmain.c: Use it.
19971         
19972         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
19973         is enough.
19974
19975         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
19976
19977 2000-07-24 Elliot Lee <sopwith@redhat.com>
19978         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
19979         individual backends already.
19980         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
19981         again. Yes, there really is a good reason for this, if you are using the gdkregion
19982         internals, and if you're not, why do you care?
19983         * gdk/gdkwindow.c: Fix inverted condition
19984         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
19985         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
19986         * gtk/gtkrange.c: Redraw trough when moving.
19987         * gtk/gtktypeutils.c: Fix warning by adding const cast.
19988         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
19989
19990 2000-07-23  Tor Lillqvist  <tml@iki.fi>
19991
19992         * configure.in: Check for mkstemp and sigsetjmp. Output
19993         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
19994
19995         More work on GDK for Win32. Still in an intermediate state.
19996
19997         * gdk/makefile.cygwin
19998         * gdk/win32/makefile.cygwin: Removed.
19999         
20000         * gdk/makefile.mingw.in
20001         * gdk/win32/makefile.mingw.in: New files.
20002
20003         * gdk/Makefile.am
20004         * gdk/win32/Makefile.am: Generate and distribute them.
20005
20006         * gdk/win32/gdkwindow-win32.h
20007         * gdk/win32/gdkdrawable-win32.h
20008         * gdk/win32/gdkpixmap-win32.h: New files.
20009
20010         * gdk/win32/gdkcolor-win32.c
20011         * gdk/win32/gdkcursor-win32.c
20012         * gdk/win32/gdkdrawable-win32.c
20013         * gdk/win32/gdkgc-win32.c
20014         * gdk/win32/gdkimage-win32.c
20015         * gdk/win32/gdkprivate-win32.h
20016         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
20017         Rename fields and variables called xcursor, xid, etc (these names
20018         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
20019
20020 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
20021
20022         * gtk/gtkentry.[ch]: Fix some problems with vertical
20023         alignment.
20024
20025         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
20026         char/byte confusion.
20027
20028 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
20029
20030         * gtk/gtktextview.c (changed_handler): Fix bug where
20031         redraw wasn't being done properly when height of
20032         dirty region changed.
20033
20034         * demos/Makefile.am: Remove various references to
20035         -lgmodule
20036
20037 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
20038
20039         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
20040         PangoAttrShape to reserve space for pixmaps, add 
20041         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
20042         in the display functions.
20043         
20044         * gtk/testgtk.c (create_layout): Set some more exotic
20045         scrolled window options
20046
20047         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
20048         Add function to set the shadow type of a window, to allow
20049         putting a shadow around widgets such as GtkLayout or GnomeCanvas
20050         which don't draw their own frame.
20051
20052 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
20053
20054         * docs/tutorial/package-db-tutorial.sh: New file for
20055           packaging DocBook format tutorial
20056
20057 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
20058
20059         * docs/tutorial/gtk-tut.sgml: Minor updates
20060
20061         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
20062
20063 2000-07-19  Tor Lillqvist  <tml@iki.fi>
20064
20065         * gtk/gtksignal.c: Fix C++ comment.
20066
20067         * gtk/gtkimmulticontext.c
20068         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
20069         don't return value from void functions.
20070
20071         * gtk/gtk.def: Add gtk_rc_style_unref.
20072
20073 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
20074
20075         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
20076         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
20077         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
20078         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
20079         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
20080         gtk/gtktypeutils.h: Include files outside of the extern "C"
20081         block. Makes some C++ compiler happy. Reported by Denis Vakatov
20082         <vakatov@peony.nlm.nih.gov>.
20083
20084 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
20085
20086         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
20087           Completes first pass. Hurrah!
20088
20089 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
20090
20091         * docs/tutorial/gtk-tut.sgml: More clean ups.
20092
20093 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
20094
20095         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
20096         paint the background of the text area which was accidentally
20097         removed at some point.
20098
20099         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
20100           
20101          - Move most of the functionality from the theme vtable
20102            into GtkRcStyleClass and GtkStyleClass. The moved
20103            vtable functions were changed a bit in the move to
20104            work better in their new home.
20105
20106          - Get rid of the engine and engine_data fields from
20107            GtkRcStyle and GtkStyle; instead the theme
20108            engine derives theme-specific subclasses of GtkRcStyle
20109            and GtkStyle
20110
20111          - Add extra dlsym() found entry point to themes,
20112            theme_create_rc_style().
20113
20114         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
20115         in gtk_style_real_copy.
20116
20117         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
20118         to register a type associated with an engine. (The engine
20119         won't be unloaded as there is an instance of the type.)
20120
20121
20122 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
20123
20124         * docs/tutorial/gtk-tut.sgml: Clean ups.
20125
20126 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
20127
20128         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
20129           of cleaning up to do.
20130
20131 2000-07-15  Tor Lillqvist  <tml@iki.fi>
20132
20133         * gdk/testgdk.c: New file, quick hack to test backends for
20134         pixel-by-pixel correctness of the most simple graphic operations.
20135
20136 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
20137
20138         * Really release 1.3.1
20139         
20140         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
20141         include structure.
20142
20143 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
20144
20145         * Released 1.3.1
20146
20147 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
20148
20149         * gtk/gtktextlayout.c: use FALSE for size_only most
20150         of the time when calling gtk_text_layout_get_line_display()
20151         to avoid causing double reshapes when a redraw follows
20152         immediately after.
20153
20154 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
20155
20156         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
20157         appropriate region and gdk_window_process_updates() so trough
20158         updating doesn't lag behind the window being scrolled.
20159
20160         * gdk/gdkgc.c: Make parent_class pointer static.
20161          
20162 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
20163
20164         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
20165         include <string.h>.
20166          
20167         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
20168         cut-and-paste error in computing memory offset for 4 channels.
20169
20170 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
20171
20172         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
20173         gtk_rc_append_default_pixmap_path(), since it wasn't
20174         adding an interesting path and we don't have a meaningful
20175         default for this value.
20176
20177 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
20178
20179         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
20180         gtk-config to gtk-config-2.0 move gtk_.m4 to
20181         gtk-2.0.m4
20182
20183         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
20184         gdk/Makefile.am demos/Makefile.am: Change 
20185         library names to libgtk-1.3.la, etc, so that we
20186         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
20187
20188         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
20189         gdk/Makefile.am gdk/x11/Makfile.am
20190         Move include files into /usr/include/gtk-2.0, 
20191         /usr/lib/gtk-2.0/include/
20192          
20193         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
20194         gtk/gtkintl.h: Change package for gettext from 
20195         gtk+ to gtk20. Put hack in autogen.sh to modify
20196         po/Makefile.in.in after gettextize to make this
20197         possible.
20198
20199         * gtk+.spec: Some updates, not tested.
20200
20201         * gdk-pixbuf/Makefile.am: Move loaders into
20202         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
20203
20204         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
20205         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
20206         to THEMENAME/gtk-2.0/. Move engine directory  to
20207         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
20208         
20209 2000-07-12  Tor Lillqvist  <tml@iki.fi>
20210
20211         Win32 changes, still doesn't build though.
20212
20213         * gdk/makefile.cygwin
20214         * gdk/win32/makefile.cygwin
20215         * gtk/makefile.cygwin: Updates.
20216
20217         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
20218         default values for fg and bg pixel as X11 does (0 and 1), not
20219         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
20220         Use 0 for pen width by default (treated as 1 anyway later, but for
20221         apps that might check the value in the GdkGC).
20222         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
20223         interface to gdk_gc_predraw and _postdraw.
20224
20225         * gdk/win32/gdkwin32.h
20226         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
20227
20228         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
20229         extraneous semicolon.
20230
20231         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
20232
20233         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
20234         not the Win32 bitspixel value.
20235
20236         * gdk/win32/gdkcc-win32.c:
20237         * gdk/win32/gdkcolor-win32.c 
20238         * gdk/win32/gdkprivate-win32.h
20239         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
20240         GDK object structure.
20241
20242 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
20243
20244         * docs/tutorial/gtk_tut_12.es.sgml (name): 
20245         * docs/tutorial/gtk_tut_it.sgml (name): 
20246         * docs/tutorial/gtk_tut_fr.sgml (name): 
20247         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
20248         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
20249
20250 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
20251
20252         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
20253           small changes.
20254
20255 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
20256
20257         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
20258         a bug here, never been here and never fixed anything ;(
20259         (don't segfault if tree->root_tree is NULL, which happens prior
20260         to widget realization, but puke instead).
20261
20262 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
20263
20264         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
20265         add the necessary tokens.
20266
20267         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
20268         (gtk_rc_style_to_style): copy thicknesses.
20269         (gtk_rc_init_style): apply thicknesses.
20270         (gtk_rc_parse_style): parse xthickness and ythickness.
20271
20272         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
20273
20274         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
20275         (gdk_window_new): 
20276         (_gdk_windowing_window_init): 
20277         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
20278         (gdk_pixmap_create_from_data): 
20279         (gdk_bitmap_create_from_data): 
20280         (gdk_pixmap_new): 
20281         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
20282         (gdk_image_new): 
20283         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
20284         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
20285         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
20286         (gdk_colormap_get_system): 
20287         (gdk_colormap_new): 
20288         * gdk/gdkwindow.c (gdk_window_init): 
20289         * gtk/gtkstyle.c (gtk_style_new):
20290         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
20291         * gdk/gdkpixmap.c (gdk_pixmap_init): 
20292         * gtk/gtkrc.c (gtk_rc_style_new):
20293         use g_object_new() instead of g_type_create_instance() which
20294         is a private function for fundamental type implementations.
20295
20296 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
20297
20298         * configure.in: Add check for db2html
20299
20300 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
20301
20302         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
20303         hack to set glib_debug_objects based on gtk_debug_flags.
20304
20305 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
20306
20307         * INSTALL.in: Update the Prerequisites section.
20308
20309         * Makefile.am demos/Makefile.am docs/Makefile.am
20310         docs/tutorial/Makefile.am gdk/x11/Makefile.am
20311         gdk/linux-fb/Makefile.am: Dist fixes
20312
20313 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
20314
20315         * NEWS: 10,000 foot view of 1.3.1 changes.
20316
20317 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
20318
20319         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
20320         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
20321         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
20322         gdk/x11/gdkmain-x11.c: 
20323
20324         Patch from George Lebl to add a GdkGrabStatus enumeration to use
20325         as a return value of gdk_*_grab(). Previously, we just
20326         returned the X11 values directly.
20327
20328 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
20329
20330         * gdk/x11/Makefile.am: Patch from George Lebl to 
20331         install all the headers in the right place.
20332
20333 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
20334
20335         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
20336           initial conversion to DocBook.
20337
20338 2000-07-04  Tor Lillqvist  <tml@iki.fi>
20339
20340         * README.win32: Improve a bit.
20341
20342         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
20343         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
20344         Alt+0nnn on the numpad (used to enter characters by numeric code
20345         from current DOS or ANSI codepage) working correctly, as in other
20346         Windows apps.
20347
20348         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
20349         same argument validity tests as in X11 version.
20350         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
20351
20352         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
20353         definitions in case missing from headers.
20354
20355         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
20356         destroy the window-specific cursor.
20357         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
20358         calling GetModuleHandle(NULL).
20359         (gdk_window_set_cursor): Reworked to always copy the passed cursor
20360         with CopyCursor before setting it as the window-specific
20361         cursor. It is OK for the caller to destroy the GdkCursor (and thus
20362         also its Windows cursor) after calling this function. Destroy any
20363         previous window-specific cursor.
20364
20365 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
20366
20367         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
20368         font charset is iso8859-1, not iso-8859-1.
20369
20370 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
20371
20372         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
20373         Use g_get_charset() instead of g_get_codeset().
20374
20375         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
20376         Comment out some strdup'ing functions to keep timj
20377         happy until we finish fighting this out.
20378
20379 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
20380
20381         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
20382         <= width or height.
20383
20384         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
20385         from 1.2 for parent/child states.
20386
20387         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
20388         of typos.
20389
20390         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
20391         event structures, replace with a generic axes field. Replace 
20392         deviceid/sourec with GdkDevice *device.
20393
20394         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
20395         to extract particular axis use value from event. (Also
20396         can be used for normal X/Y.)
20397
20398         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
20399         allow for arbitrary number of axes, namespace everything
20400         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
20401         everywhere.
20402
20403         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
20404         Get rid of the gdk_input_vtable setup if favor of simply
20405         defining the functions in gdkinput-none/gxi/xfree.c in
20406         a similar fashion to the way that the port structure is 
20407         done.
20408
20409         * gtk/gtkdnd.c: Fix fields of synthesized button press event
20410         for new event structures. 
20411
20412         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
20413         new device interfaces.
20414
20415 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
20416
20417         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
20418         set the initial text.
20419
20420         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
20421         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
20422         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
20423         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
20424
20425         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
20426         pango_layout_set_font_description to simplify.
20427
20428 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
20429
20430         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
20431         pango_layout_set_font_description to simplify.
20432
20433 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
20434
20435         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
20436         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
20437         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
20438
20439         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
20440         PANGO_PIXELS() macro.
20441
20442 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
20443
20444         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
20445         that returns a PangoContext owned by the widget and updated to
20446         match future changes in the widget. Also, make 
20447         gtk_widget_create_pango_layout() use this context. If we ever
20448         add a ::changed signal to PangoContext, this will make things
20449         much more convenient. 
20450
20451         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
20452         in the appropriate places instead of destroying the layouts and
20453         creating new ones.
20454
20455         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
20456         in a few strategic places.
20457
20458 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
20459
20460         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
20461         gtk_widget_size_request() on reparented child, if one. Otherwise,
20462         queue_resize() on the child never results in it getting size-requested
20463         at all.
20464
20465         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
20466         in option menus, so that (with luck) people won't copy it into
20467         their apps in the future.
20468
20469         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
20470         to gtk_option_menu_calc_size. This isn't perfect, but should fix
20471         a lot of problems with changing the size of the menu's menu
20472         items after adding it to the option menu.
20473
20474         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
20475
20476         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
20477         the text direction for a widget changes.
20478
20479         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
20480         ::direction_changed to get rid of various hacks.
20481
20482 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
20483
20484         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
20485         name.
20486
20487 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
20488
20489         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
20490         flag to the structure. Do not call XFreePixmap on pixmaps created
20491         by gdk_pixmap_foreign_new().
20492
20493 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
20494
20495         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
20496         value using GdkRGB functionality given GdkColormap and GdkColor.
20497         (name not final, waiting for inspiration.)
20498         
20499         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
20500         set the foreground/background of a GC using the GC's colormap
20501         and GdkRGB. (name not final, waiting for inspiration.)
20502
20503         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
20504         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
20505
20506         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
20507         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
20508         purely a function of the corresponding colormap. Make
20509         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
20510
20511         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
20512         gdk_pixbuf_*create_from_xpm_* in terms of
20513         gdk_pixbuf_new_from_xpm_data(), move into platform independent
20514         code.
20515
20516         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
20517         advantage of the new draw_rgb_32_image_dithalign.
20518
20519         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
20520
20521         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
20522         on each created GC.
20523
20524         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
20525
20526         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
20527         which we initialize from the drawable when the GC is created,
20528         if the drawable has a colormap.
20529
20530         * gdk/x11/gdkgc-x11.c: include string.h for memset.
20531
20532         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
20533
20534         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
20535
20536 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
20537
20538         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
20539         actually returning expose events, make sure to set
20540         the count field properly.
20541
20542         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
20543         accidentally reintroced bug which always cleared
20544         the graphics_exposures value. 
20545
20546 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
20547
20548         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
20549
20550 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
20551
20552         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
20553
20554 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
20555
20556         * docs/faq/gtk-faq.sgml: Start of Section 6.
20557
20558 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
20559
20560         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
20561         
20562         (Fixes problem with drawing childless frames. Pointed out
20563         by and a first patch from Anders)
20564         
20565         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
20566         compute a child_allocation, even if we don't have a child.
20567
20568         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
20569         Always chain to the parent's impl, even if we don't have a child.
20570
20571 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
20572
20573         * gdk/gdkrgb.c: If possible, create only a single shm segment and
20574         use multiple parts of it instead of creating a bunch of separate
20575         segments, since the maximum number of segments per system is not
20576         large. (This might be worth backporting to GTK+-1.2.x if we make a
20577         new release )
20578
20579         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
20580         structure in preparation for per-colormap GdkRGB.
20581
20582         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
20583         to False when we get EINVAL from shmget so that the caller of
20584         gdk_image_new can retry with a smaller segment size.
20585
20586 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
20587
20588         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
20589
20590 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
20591
20592         * configure.in: make the current version number 1.3.1 (binary age 0,
20593         interface age 0).
20594         
20595         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
20596         gtkcompat.h is all we want.
20597
20598         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
20599         GLib primitive types. fixed g_type_register_fundamental() argument
20600         ordering.
20601
20602         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
20603         compiles.
20604
20605         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
20606         object code cleanup, comment trigraph fixes, etc...
20607
20608 2000-06-23  Havoc Pennington  <hp@redhat.com>
20609
20610         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
20611         instead of making up a bogus name for first_para_mark
20612
20613         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
20614         0 as a context ID
20615
20616 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
20617
20618         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
20619
20620 2000-06-21  Havoc Pennington  <hp@pobox.com>
20621
20622         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
20623         we didn't check window->bg_pixmap != GDK_NO_BG.
20624
20625         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
20626         gdk-pixbuf
20627
20628 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
20629
20630         * docs/faq/gtk-faq.sgm: Move file to here.
20631           TODO: Update Makfile.am 
20632
20633 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
20634
20635         * docs/gtk-faq.sgm: Add Section 2
20636
20637 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
20638
20639         * docs/gtk-faq.sgm: New file. Start of DocBook
20640           version of the FAQ.
20641
20642 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
20643
20644         * configure.in (GDK_PIXBUF_MAJOR): Define version
20645         numbers for GDK_PIXBUF_*, as they get substituted
20646         into a header file. Need to consider versioning
20647         for gdk-pixbuf more carefully later.
20648
20649 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
20650
20651         Work with srcdir != builddir.   
20652         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
20653         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
20654         * demos/testpixbuf.c: Likewise.
20655         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
20656         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
20657         <gdk/x11/gdkx.h>.
20658         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
20659         "gdk-pixbuf.h".
20660         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
20661
20662 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
20663
20664         * TODO.xml: Change 1.4 version numbers to 2.0.
20665
20666 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
20667
20668         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
20669         fixups to GTK+ standard.
20670
20671 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
20672
20673         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
20674         gdk-pixbuf.
20675
20676         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
20677         fixups for GObject.
20678
20679         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
20680         gdk-pixbuf with GDK dependencies moved into GDK.
20681         
20682         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
20683         move gdk-pixbuf-loader here until GObject has signals.
20684
20685         * demos/: New directory of demos. Move demos from
20686         gdk-pixbuf here.
20687
20688         * demos/pixbuf-init.c: Small bit of code to check for
20689         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
20690         set GDK_PIXBUF_MODULEDIR appropriately.
20691
20692         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
20693         define which no longer makes sense.
20694
20695 2000-06-21  Havoc Pennington  <hp@redhat.com>
20696
20697         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
20698         gtk_get_default_language
20699
20700         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
20701         new function to get the default language
20702
20703         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
20704         s/gtk_text_view_style_values/gtk_text_style_values/
20705
20706         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
20707         Add a "language" field to tags.
20708
20709         (gtk_text_tag_set_arg): Fix bug in setting
20710         "bg_full_height_set" tag.
20711
20712 2000-06-21  Havoc Pennington  <hp@redhat.com>
20713
20714         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
20715         in the interfaces
20716
20717         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
20718         stuff instead when possible.
20719
20720         * gtk/gtktexttypes.h: Delete some unused constants
20721
20722         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
20723         testtextbuffer.c: use glib instead of custom unicode routines
20724
20725 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
20726
20727         * docs/es/: Removed mistakenly added generated sgml
20728
20729         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
20730         Remove outdated info files.
20731
20732         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
20733         Moved tutorial files into subdir
20734
20735         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
20736         subdir.
20737
20738         * docs/man/gtk_button.pod: Remove. (contents will be
20739         integrated into gtk-reference button page.)
20740
20741         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
20742         docs/faq/Makefile.am: Adjust for new organization
20743
20744 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
20745
20746         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
20747         not $(MKINSTALLDIRS)
20748
20749 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
20750
20751         * gtk/testgtk.c (create_text): Finish the job Elliot started
20752         of removing font setting test for text widget. (Since text widget
20753         and GdkFont are not deprecated, and cause portability problems.)
20754
20755 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
20756
20757         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
20758         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
20759         Remove use of libunicode in favor of new GLib functions.
20760
20761         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
20762         nano-x, framebuffer. The X11 include is just a hack until we get
20763         the necessary functions in gdkcolor.h, so there is no reason to
20764         add other includes of platforms.
20765
20766         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
20767         window bigger than the screen change.
20768
20769         * gtk/testgtk.c: Revert some random changes from Elliot
20770         that had no particular point and were causing testgtkrc
20771         not to function correctly.
20772         
20773         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
20774         because GdkSegment and GdkRegionBox have the same fields,
20775         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
20776         results in clearer code.
20777
20778         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
20779         gdk_input_translate_coordinates): Fix missed GdkObjectification
20780
20781 2000-06-18  Elliot Lee  <sopwith@redhat.com>
20782
20783         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
20784         * gtk/gtk{plug,socket}.h: Missed commits from previous.
20785
20786 2000-06-20  Havoc Pennington  <hp@redhat.com>
20787
20788         * modules/linux-fb/Makefile.am: Make this compile
20789         without framebuffer enabled
20790
20791         * gdk/linux-fb/Makefile.am: Add conditional to not build
20792         framebuffer unless specified in configure
20793
20794         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
20795         the size of the target instead of source if -1 was passed for
20796         width/height
20797
20798         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
20799         width/height confusion.
20800
20801 2000-06-19  Havoc Pennington  <hp@redhat.com>
20802
20803         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
20804         GDK_DRAWABLE_XID. In the future, we probably want to make it
20805         faster with G_DISABLE_CHECKS turned on.
20806
20807 2000-06-14  Havoc Pennington  <hp@redhat.com>
20808
20809         * gdk/Makefile.am: add gdkpixmap.c
20810
20811         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
20812         s/gdk_image_init/_gdk_windowing_image_init
20813
20814         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
20815         ref/unref
20816
20817         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
20818
20819         * gdk/gdkcompat.h: remove GdkWindowType compat, since
20820         GdkWindowType is now non-deprecated; 
20821         change gdk_window_get_type() compat to be
20822         gdk_window_get_window_type().
20823
20824         * gdk/gdkdnd.h: make GdkDragContext a GObject.
20825
20826         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
20827         virtual GObject. Make all functions call into the vtable.
20828         Move gdk_image_put() guts in here. Remove GdkDrawableType
20829         and gdk_drawable_get_type(), these are now GdkWindow-specific.
20830         draw_image, get_depth, get_size, set_colormap, get_colormap,
20831         get_visual added to the vtable.
20832         
20833         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
20834         GObject. Virtualize everything. 
20835         (gdk_gc_new_with_values): remove check for destroyed window,
20836         because now GdkWindow::create_gc will check this.
20837         (gdk_gc_set_values): New function to set GC values, this 
20838         was already implemented but wasn't in the header
20839
20840         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
20841
20842         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
20843         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
20844         remove _gdk_window_class; add _gdk_window_impl_get_type() and
20845         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
20846         _gdk_windowing_window_init, rename gdk_image_init to
20847         _gdk_windowing_image_init.
20848         
20849         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
20850         (gdk_draw_layout): Remove check for destroyed window, 
20851         because all the drawable methods already check it.
20852         
20853         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
20854         Add gdkpixmap.c which contains implementation of GdkDrawable
20855         virtual table (by chaining to a platform-specific implementation
20856         object).
20857         
20858         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
20859         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
20860         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
20861         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
20862         GdkColormapPrivate. 
20863
20864         * gdk/gdktypes.h: #include <glib-object.h>
20865
20866         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
20867         Move most functionality to platform-specific implementation
20868         object. GdkWindow itself now handles the backing store, then
20869         chains to the platform-specific implementation.
20870         (gdk_window_get_window_type): return GdkWindowType of the window.
20871         (gdk_window_peek_children): New routine, returns the children of 
20872         a GdkWindow
20873         (gdk_window_get_children): Was in X11-specific code and did 
20874         XQueryTree. Changed to simply return a copy of window->children; 
20875         so it can go in cross-platform code.
20876         
20877         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
20878
20879         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
20880         GdkColormap; just changed to use the new private data instead
20881         of casting to GdkColormapPrivate.
20882
20883         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
20884         gdk_cursor_new().
20885
20886         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
20887         (private data member in the GObject). 
20888         (xdnd_manager_source_filter): Function had broken 
20889         error handling, fix it (use gdk_error_trap_push).
20890
20891         * gdk/x11/gdkdrawable-x11.c: This file now implements
20892         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
20893         base class is purely for the convenience of the X port,
20894         and not part of the interface to cross-platform GDK.
20895
20896         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
20897         
20898         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
20899         specific to X, and returned by the create_gc virtual method
20900         of GdkDrawableImplX11. 
20901         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
20902         rather than gchar, this was also changed in the GdkGC vtable.
20903         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
20904         mask is 0, return immediately, instead of checking every flag.
20905         This is faster, and keeps us from segfaulting if values is NULL
20906         and the mask contains some nonzero flags.
20907
20908         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
20909         GdkWindow.
20910
20911         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
20912         GdkWindowPrivate is gone.
20913
20914         * gdk/x11/gdkim-x11.c: rename things that got renamed.
20915
20916         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
20917         remove the image_put stuff that got transferred to GdkDrawable.
20918         
20919         * gdk/x11/gdkinput.c: renamings
20920
20921         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
20922
20923         * gdk/x11/gdkpixmap-x11.c: GObject conversion
20924
20925         * gdk/x11/gdkprivate-x11.h: indentation fixes
20926
20927         * gdk/x11/gdkproperty-x11.c: renamings
20928
20929         * gdk/x11/gdkselection-x11.c: renamings
20930
20931         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
20932         implements the platform-specific "impl" object.
20933         Moved gdk_window_get_children to gdk/gdkwindow.c
20934
20935         * gdk/x11/gdkx.h: Remove all the private structs and private datas
20936         that no longer exist. Add declaration of GdkGCX11 object here.
20937         Fix all the macros to still work. 
20938
20939         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
20940         GdkDragContext from the boxed types since they are now GObjects.
20941
20942         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
20943         moved xthickness/ythickness into the instance. GtkStyleClass
20944         functions are now in the standard vtable for GtkStyle, so you have
20945         to create a GObject subclass to write a theme engine.
20946         (gtk_style_copy): fixed a leaked PangoFontDescription
20947         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
20948         can be the standard GObject function.
20949         
20950         * Throughout GTK:
20951         s/style->klass->[xy]thickness/style->[xy]thickness
20952         s/pango_layout_unref/g_object_unref/
20953
20954         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
20955         
20956         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
20957         accessing GDK internals.
20958
20959         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
20960         accessing GDK internals.
20961
20962 2000-06-18  Elliot Lee  <sopwith@redhat.com>
20963
20964         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
20965
20966         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
20967         problem by calculating event position relative to the trough
20968         rather than the slider.
20969         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
20970
20971         * gdk/gdkgc.h: Add GDK_NOR.
20972
20973         * configure.in, Makefile.am: Add modules top level dir
20974         * configure.in: Only use pangox library if building x11 target.
20975         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
20976
20977 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
20978
20979         * gtk/gtkcolorsel.c: Change private class member to be named
20980         private_data throughout the file.
20981
20982         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
20983         private_data to avoid clashing with keyword.
20984
20985 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
20986
20987         * gdk/gdkdnd.h: Add comment to remove warning.
20988
20989 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
20990
20991         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
20992         Byelorussian language; changed the Makefile and file names 
20993         to reflect that.
20994
20995 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
20996
20997         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
20998         rather than gdk_window_hide; this makes things work
20999         correctly if the window is programmatically hidden while
21000         iconified.
21001
21002 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
21003
21004         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
21005         cut and paste typo where wrong pixmap was being
21006         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
21007
21008 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
21009
21010         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
21011         Add helper function to compute format / bytes 
21012         relationship. Use in a couple places to fix up
21013         errors which assume 8 * format.
21014
21015         * gtk/gtkselection.c (gtk_selection_request): Use 32
21016         rather than 8 * sizeof (GdkAtom), to work correctly
21017         on Alpha.
21018
21019 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
21020
21021         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
21022         libgtk.la
21023         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
21024         versions
21025
21026         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
21027         checking macros return NULL since the function has a return value.
21028
21029 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
21030
21031         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
21032         GTK+ from building at all.
21033
21034         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
21035
21036 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
21037
21038         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
21039         gtk/Makefile.am: make it possible to configure gtk for different
21040         targets on the same platform. The library name is now 
21041         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
21042         flag. Only the x11 target compiles right now.
21043         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
21044         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
21045         * gdk/nanox/gdk*generic*: delete generic region code.
21046         * gdk/linux-fb/gdk*generic*: delete generic region code.
21047         * README.nanox: update information.
21048         
21049 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
21050
21051         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
21052         prepend not append. (Pointed out by Brett Hall.)
21053
21054 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
21055
21056         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
21057
21058 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
21059
21060         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
21061         need this later, and this makes sure that the atexit for
21062         glib gets called after that for GDK, so atexits are
21063         properly ordered for object leak checking.
21064
21065         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
21066
21067         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
21068         pango_x_shutdown_display()
21069
21070         * gtk/simple.c (main): Close window on destroy.
21071
21072 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
21073
21074         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
21075         to treat initial creation different from setting with 
21076         regards to the graphics-exposures parameter, so add a parameter
21077         indicating whether this is initial or not.
21078
21079 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
21080
21081         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
21082         to sort of work by adding an extra return_exposes arg
21083         to gdk_event_translate() - it might be better to simply
21084         deprecate the function altogether and force people to rewrite
21085         without it. gdk_window_scroll() handles most of it, and where
21086         gdk_window_scroll() doesn't work, simply redrawing more does.
21087
21088         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
21089         assertion.
21090
21091         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
21092
21093         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
21094         bunch of pretty much useless /* Print debugging info */ comments 
21095         which had drifted away from the code they were commenting.
21096
21097 2000-06-02  Havoc Pennington  <hp@pobox.com>
21098
21099         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
21100         is in working order.
21101         
21102         * gtk/testtext.c: Change to reflect anonymous mark API
21103
21104         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
21105
21106         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
21107         field, which was unused.
21108
21109         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
21110         saves some typing.
21111
21112         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
21113
21114         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
21115         flag on the insertion point and selection bound
21116
21117         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
21118         make mark-manipulation functions take a GtkTextMark* instead of a
21119         mark name.
21120         
21121         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
21122         GtkTextMarkBody; will be used to detect attempts to delete
21123         the permanent marks (insert and selection bound)
21124
21125         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
21126
21127 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
21128
21129         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
21130         flag to on.
21131
21132         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
21133         Honor DOUBLE_BUFFRED_FLAG
21134
21135         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
21136         function to set the DOUBLE_BUFFERED flag.
21137
21138         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
21139         or not exposes done on the widget should be double-buffered.
21140
21141         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
21142         to be what would be expected. (Fixes problem with a
21143         g_return_if_fail() validating a TextDirection enumeration)
21144
21145 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
21146
21147         * gtk/gtkwidget.c: Remove all references to 
21148         offscreen flag which was no longer used.
21149
21150         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
21151
21152         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
21153         for non-null label_widget->parent.
21154
21155         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
21156         which no longer was used.
21157
21158         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
21159
21160         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
21161         for null arguments.
21162
21163         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
21164         check for destroyed windows.
21165
21166 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
21167
21168         * gtk/gtkimmulticontext.c: Add a finalize method and unref
21169         the slave context there.
21170
21171         * gtk/gtkinvisible.[ch]: Make reference counting behavior
21172         identical to GtkWindow.
21173
21174 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
21175
21176         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
21177         pangox to here, so we can write them independent of rendering
21178         system, using GDK primitives.
21179
21180         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
21181         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
21182         since we have a rendering-system independent implementation in
21183         terms of draw_glyphs().
21184         
21185         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
21186         function to render a single line.
21187
21188         * gdk/x11/gdkpango.c: Move the guts of this file mostly
21189         into ../gdkpango.c, which simplifies things, since we
21190         don't have to deal with raw X gc's.
21191
21192 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
21193
21194         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
21195         get the logical attributes for a given GtkTextLine.
21196
21197 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
21198
21199         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
21200         g_locale_get_codeset() to g_get_codeset() change.
21201
21202 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
21203
21204         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
21205         descriptions.
21206
21207         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
21208         the entry.
21209
21210         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
21211         redoing (vastly simplifying) for Pango. Still needs quite
21212         a bit of work. (Size selection is currently poor. List of 
21213         predefined sizes is not a good idea, since all of these
21214         sizes won't necessarily be distinct.)
21215
21216 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
21217
21218         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
21219         CODESET results for LANG=C.
21220
21221 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
21222
21223         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
21224         which takes a stringized pango font description;
21225         ignore the older 'font' and 'fontset' declarations.
21226
21227         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
21228         field with a GdkFont derived via gdk_font_from_description(),
21229         for compatibility. (Should we just remove it entirely?
21230         Probably too much compatibility breakage, but people
21231         should be migrating to the new Pango stuff as quickly
21232         as possible.)
21233
21234 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
21235
21236         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
21237
21238 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
21239
21240         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
21241         redoing; there are some bugs in size allocation right
21242         now, the semi-existant distinction between header / day
21243         fonts was removed, but, with Pango, could actually
21244         be made functional in a nice way.
21245         
21246         * gtk/testcalender: Move calender from examples into this
21247         directory as a test program. (We really need to restrcture
21248         testgtk into a whole directory full of tests for every
21249         widget or functionality group, separated into multiple .c
21250         files.)
21251
21252 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
21253
21254         * gtk/testgtk.c (file_exists): Fix stupid typo that
21255         was keeping RC file from being loaded.
21256
21257         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
21258         RC file font code.
21259
21260 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
21261
21262         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
21263         Add function to load a GdkFont from a PangoFontDescription.
21264
21265 2000-05-29  Tor Lillqvist  <tml@iki.fi>
21266
21267         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
21268         variable should be of type GdkEventPrivate.
21269
21270 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
21271
21272         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
21273         to have any widget for the label, use a GtkLabel widget
21274         to display the text. (Based partially on a patch from
21275         Anders Carlson.)
21276
21277         (Quite a bit of code reorganization - strip 90% of the
21278         guts out of gtkaspectframe and add a single virtual
21279         func to GtkFrameClass - compute_child_allocation.)
21280
21281 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
21282
21283         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
21284         (Removed clist->row_center_offset field because caching
21285         it wasn't saving time or code, added private function
21286         _gtk_clist_create_cell_layout()).
21287
21288 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
21289
21290         * gtk/gtkaccellabel.c: Pangoized.
21291
21292         * gtk/[hv]ruler.c: Pangoized
21293
21294 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
21295
21296         * gtk/gtkfilesel.c (gtk_file_selection_init):
21297         Use gtk_clist_set_column_auto_resize() to remove need
21298         need for manual column width computations.
21299
21300 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
21301
21302         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
21303         ensuring Pango correctness, and considerably simplifying the
21304         code.
21305         
21306         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
21307
21308         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
21309         getting of numbers of lines.
21310
21311         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
21312         to the actual requested width of the lable, not to the wrap
21313         width we set.
21314
21315         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
21316
21317         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
21318           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
21319
21320         * gtk/gtktextview.c: Fix structure inheritance.
21321
21322         * gtk/gtkprogressbar.c: Pangoize.
21323
21324 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
21325
21326         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
21327         in a function.
21328
21329         * gtk/gtktextlayout.c (find_display_line_above): Fixed
21330         bug with computing line tops.
21331
21332         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
21333
21334 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
21335
21336         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
21337         and y_offset coordinates to do what we need now. (The offset between
21338         buffer and layout coordinates has been reintroduced, but is a 
21339         bit different than before.)
21340
21341         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
21342         handle the adjustments ourselves, and scroll as necessary using
21343         the new gdk_window_scroll().
21344         
21345         The advantage of this is that when we are incrementally revalidating,
21346         we are essentially rearranging things around the visible portion
21347         of the screen. With the old setup, the visible portion of the
21348         screen was moved around in the layout, so scrolling and redrawing
21349         to track that caused jumping of the display. Since we now
21350         control the scrolling ourselves, we can suppress this and
21351         only redraw when things actually change.
21352
21353 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
21354
21355         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
21356         the region not just redisplay it after-all, since we store the
21357         cursors in the LineDisplay. (Ugly interactions here between
21358         GtkLayout and GtkTextBTree here.)
21359         
21360         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
21361
21362 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
21363
21364         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
21365         Added function to scroll contents of a window while keeping the
21366         window constant. Works by XCopyArea or guffaw-scrolling depending
21367         on the details of how the window is set up. (guffaw-scrolling
21368         still needs to be filled in.)
21369
21370 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
21371
21372         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
21373         move the debugging that was tied to a global variable
21374         to that.
21375
21376         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
21377
21378         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
21379         validated flag, in line data instead of setting height/width to
21380         -1. This allows us to perform operations with partially invalid
21381         buffer (using the old size for invalid lines) and thus to do
21382         incremental vaidation. Keep height/width aggregates up to date
21383         when deleting text and rebalancing the tree.
21384
21385         * gtk/gtktextbtree.[ch]: Add functions validate a line
21386         (gtk_text_btree_validate_line), and to validate up
21387         to a number of pixels (gtk_text_btree_validate).
21388
21389         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
21390         that indicates that something is changed and a revalidation
21391         pass is needed. Change ::need_repaint to ::changed, and
21392         make it take old and new yranges instead of a rectangle.
21393
21394         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
21395         the line_data_destroy() function from 
21396         gtk_text_btree_add_view() to a virtual function in 
21397         GtkTextLayout
21398
21399         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
21400         since we are handling partial repaints in a different fashion
21401         now.
21402
21403         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
21404         of the selection instead of queueing a repaint on the
21405         entire widget.
21406
21407         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
21408         get_selection_bounds() down to btree, make the function
21409         in buffer a wrapper around the btree function.
21410
21411         * gtk/gtktextlayout.[ch]: Add functions to check if the
21412         layout is valid and to recompute either a range of pixels
21413         aroudn a line or a certain total number of pixels.
21414
21415         * gtk/gtktextlayout.[ch]: Cache a single line display;
21416         now that we only redraw the needed portions, the hit rate
21417         for this cache is quite high.
21418         
21419         * gtk/gtktextview.[ch]: Keep track of the first paragraph
21420         on the screen so that when re-laying-out the buffer, we can
21421         keep the same place. This requires connecting to ::value_changed
21422         on the adjustments
21423
21424         * gtk/gtktextview.[ch]: Add idle functions to revalidate
21425         the buffer after we receive an ::invalidated signal.
21426         
21427 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
21428
21429         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
21430         to max of allocation and layout size, not just to the
21431         layout size.
21432
21433         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
21434         Invalidate window so it gets redrawn properly.
21435
21436         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
21437         to mean the entire window.
21438
21439         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
21440         into public header.
21441
21442 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
21443
21444         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
21445         to get the name of a mark.
21446
21447         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
21448         to find the paragraph from a y position.
21449
21450 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
21451
21452         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
21453         nodes have width/height >= 0, not > 0.
21454
21455 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
21456
21457         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
21458         Add a size_only flag, so when we only need the size, we don't create
21459         useless appearance attributes.
21460
21461         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
21462         duplicate setting of font description.
21463
21464         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
21465
21466 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
21467
21468         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
21469         EXTRA_DIST. It does not work well when the file that
21470         everything depends on is not in the tarball.
21471
21472 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
21473
21474         * gtk/testgtk.c: Some hacks and fixes so that it basically
21475         works when not sitting in the GTK+ build tree.
21476
21477 2000-05-03  Havoc Pennington  <hp@redhat.com>
21478
21479         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
21480         Properly determine the ordering of the tag root and the current
21481         line within the tree. Previous algorithm only worked if the tag
21482         root's immediate parent was the common root of both the current
21483         line and the tag root.
21484
21485 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
21486
21487         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
21488         alignment.
21489
21490         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
21491         the widget text directional dynamically.
21492
21493         * gtk/gtktextview.[ch]: Added functions to get and set default
21494         wrap mode.
21495
21496 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
21497
21498         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
21499         in cursor location computation.
21500
21501 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
21502
21503         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
21504         vadjusment values properly when layout gets smaller.
21505
21506         * gtk/gtktextview.c (need_repaint_handler): Areas being
21507         passed in are far completely inaccurate, and sometimes
21508         too small, so, for now, just queue a redraw on the
21509         whole visible region.
21510
21511 2000-04-25  Havoc Pennington  <hp@redhat.com>
21512
21513         * gtk/gtktextbtree.c (summary_destroy): new function to 
21514         destroy tag summary nodes
21515         (gtk_text_line_next_could_contain_tag): this function was 
21516         totally broken if the line passed in wasn't below the tag
21517         root. Fix it.
21518         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
21519         "wildcard" case, we have to do a linear scan. Blah.
21520         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
21521         we have to do the linear scan
21522         (tag_removed_cb): When a tag is removed from the tag table, 
21523         remove the GtkTextTagInfo node from the btree.
21524         (gtk_text_btree_spew): Implement the spew function, for 
21525         our debugging pleasure.
21526
21527 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
21528
21529         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
21530         a problem with referring to the wrong buffer.
21531
21532         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
21533
21534         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
21535         font description to gtk_style_new() - otherwise things
21536         don't work without a .gtkrc file.
21537
21538         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
21539         tags table if we create it ourself, too.
21540
21541         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
21542         it was conflicting with XKB modifiers.
21543
21544         * gtk/gtktextview.[ch]: Add simple support for 
21545         GtkIMContext.
21546
21547 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
21548
21549         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
21550         with deletion from last commit.
21551
21552 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
21553
21554         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
21555         in the context from the current locale.
21556         
21557         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
21558         context, not hardcoded value.
21559
21560         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
21561         not logical.
21562
21563 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
21564
21565         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
21566         attributes - that doesn't handle partial-glyph selection
21567         properly. Instead use new pango_layout_line_get_x_ranges()
21568         functionality to draw the selection.
21569
21570         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
21571         now properly handles out-of-range coordinates.
21572
21573         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
21574
21575         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
21576         public.
21577
21578         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
21579         for paragraphs opposite to the base direction of the widget.
21580
21581         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
21582
21583         * gtk/gtktextlayout.c: Don't split segments on marks, since that
21584         causes Arabic words to reshape as you cursor through.
21585
21586         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
21587         cursor position when moving vertically with the arrow keys and
21588         scrolling with page-up/page-down. (Arrow keys save only the X,
21589         scrolling saves both X and Y.)
21590
21591         This means you can line-up / line-down or page-up / page-down
21592         without losing your place, and also that moving vertically
21593         with the cursor keys keeps the same X position, not the same
21594         character count:
21595
21596         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
21597         arrow keys move by display lines, not paragraphs.
21598
21599 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
21600
21601         * gtk/gtklayout.c: Make sure that the bin window is at least
21602         as big as the allocation. (Should we also make sure that the
21603         bin window is big enough to completely cover widget->window?)
21604
21605         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
21606         function to get the onscreen rectangle.
21607
21608         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
21609         for offsets in window coordinates.
21610
21611 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
21612
21613         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
21614         confusion.
21615
21616         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
21617         from the widget direction.
21618
21619         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
21620         Add a "direction" attribute.
21621
21622         * gtk/gtktextview.c: global s/tkxt/text_view/.
21623
21624         * gtk/testtext.c: Added long block of text in Arabic, to test out
21625         the direction attributes. (Some problems with the shaping system
21626         for arabic become obvious - like the fact the cursor splits words
21627         into unjoined pieces.)
21628
21629 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
21630
21631         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
21632
21633         * gtk/gtktextlayout.c: Fix up alignment.
21634
21635         * gtk/testtext.c: Add some tests for centering, wrapping.
21636
21637 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
21638
21639         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
21640         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
21641         If we wrote GTK+-specific layout-render function this could just replace
21642         the draw_layout() operation in the vtable.
21643
21644         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
21645         pango_layout_get_cursor_pos() and use that function.
21646
21647         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
21648         is a non-static symbol.
21649
21650         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
21651         with gtk_text_btree_find_line_by_y()
21652
21653         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
21654         renderer that handles GtkTextAppearance attributes.
21655
21656         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
21657
21658           - Move the values in the style that don't affect geometry into a
21659             GtkTextAppearance structure.
21660           - Change underline to take a PangoUnderline and "font" a string
21661             representation of a font description
21662           - Add a "font_desc" attribute which takes a FontDescription structure.
21663
21664         * gtk/gtktextlayout.[ch]:
21665
21666           - Get rid of the display-line list per each line. Instead, we
21667             generate, on demand, a GtkTextLineDisplay structure which]
21668             contains a PangoLayout * and other necesary information
21669             (offsets, cursor locations) for displaying a paragraph.
21670           - Get rid of the code to wrap lines, create display chunks,
21671             etc. Instead, we just go through a paragraph and convert
21672             it into the necessary inputs to a PangoLayout.
21673           - Implement a new attribute type, GtkTextAttrAppearance. This
21674             holds a GtkTextAppearance, and is used to pass colors, 
21675             stipple, etc, through from the layout to the display without
21676             having to use lots and lots of individual attributes.
21677           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
21678             in terms of PangoLayout functions.
21679         
21680         * gtk/gtktextview.c: 
21681          
21682           - Handle passing the necessary PangoContext to the layout
21683           - Some fixups in painting to deal with the automatic backing store
21684             and offsetting of GTK+-1.4
21685           - Add a style_set handler so that the default style reacts
21686             properly to theme changes.
21687         
21688         * gtk/gtktext?*.[ch]: Random code-style fixes.
21689
21690         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
21691
21692 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
21693
21694         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
21695         in original form preparatory to Pango-ization and gdkimcontext-ization.
21696
21697 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
21698
21699         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
21700         so that we can derive from gtkimcontext in language bindings properly.
21701
21702 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
21703
21704         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
21705         Add a compose table including (almost) all the compose combinations
21706         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
21707         data in the XIM implementation.
21708
21709         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
21710         Moved functions to convert keyvalues from and to unicode here from
21711         the win32 port and made them public.
21712
21713 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
21714
21715         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
21716
21717 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
21718
21719         * gtk/gtkimcontext.[ch]: Base class for new input context system
21720
21721         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
21722         the real input context implementation to be loaded from modules
21723         and switched on the fly.
21724
21725         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
21726         context that just does direct keysymbol => unicode translation.
21727
21728         * gtk/gtkentry.[ch]: Start switching editing over to using
21729         GtkInputContext. (No handling of preedit yet.)
21730
21731 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
21732
21733         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
21734         many substitutions. (klass should not be subsituted.)
21735
21736 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
21737
21738         * configure.in: Add checks for Pango
21739
21740         * configure.in docs/Makefile.am: Add test for sgml2html
21741         and allow 'make dist' without building html, but print out
21742         warnings in that case. (For making snapshots)
21743
21744         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
21745         Add Pango libraries and C flags
21746
21747         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
21748         Add function (gdk_draw_layout) to draw a pango layout.
21749
21750         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
21751         for getting Pango contexts for GDK.
21752
21753         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
21754
21755         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
21756         editing.
21757
21758         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
21759         keysym => unicode translations. More languages can be added
21760         here, but real input-method support is needed.
21761
21762         * docs/Changes-1.4.txt: Added note about entry behavior.
21763         
21764         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
21765         to set the reading direction for a widget and the global direction.
21766         Add test which allows toggling the global direction. Two private
21767         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
21768
21769         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
21770           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
21771
21772         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
21773
21774         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
21775         underlining now handled by Pango.
21776
21777         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
21778         to RCStyle and Style. (Having both this and the old font name and GdkFont 
21779         is temporary.)
21780
21781         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
21782         convenience functions for creating contexts and layouts for widgets.
21783
21784         * gtk/testgtk.c: Enhance label tests with multilingual labels.
21785
21786 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
21787
21788         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
21789         titles to be active, even if they aren't visible.
21790         (gtk_clist_column_titles_passive):  Ditto.
21791
21792 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
21793
21794         * gtkmenu.c:
21795         * gtkmenu.h:
21796         * gtktypeutils.h: Spelling/grammar fixes in comments.
21797
21798 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
21799
21800         * gdk/nanox/*.h: add missing header files.
21801
21802 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
21803
21804         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
21805         send_event to TRUE.
21806         (gtk_drawing_area_size): queue a resize.
21807
21808 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
21809
21810         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
21811         the handlers, also invalidate them. bug nailed down by Karl Nelson
21812         <kenelson@ece.ucdavis.edu>.
21813
21814 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
21815
21816         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
21817         "(nil)" foundries, patch from Grigorios Magklis.
21818
21819         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
21820         on non-available fonts, based on a patch by Grigorios Magklis
21821         <maglis@cs.rochester.edu>.
21822
21823 2000-05-18  Elliot Lee  <sopwith@redhat.com>
21824
21825         * gdk/x11/gdkregion-generic.c: If a region does not have any
21826         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
21827         instead of GDK_OVERLAP_RECTANGLE_IN.
21828
21829 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
21830
21831         * gtk/gtklayout.c (gtk_layout_map): Remove references to
21832         OFFSCREEN, as it is no longer necessary.
21833
21834 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
21835
21836         * gtk/gtkcolorsel.c: Patch from David Santiago
21837         <mrcooger@cyberverse.com> to change things so that the 
21838         indicator of the active palette entry is done independently,
21839         not via the focus, since it should always be visible.
21840
21841 2000-05-17  Tor Lillqvist  <tml@iki.fi>
21842
21843         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
21844         refcount leaks as in the X11 backend.
21845
21846         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
21847         cosmetics.
21848
21849         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
21850         backend. Add _gdk_windowing_window_destroy().
21851
21852         * gtk/gtkcolorsel.c: Include correct backend-specific header.
21853         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
21854         either, but these probably do exist on nanox?)
21855         
21856         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
21857         which isn't necessarily defined by <math.h>.
21858
21859         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
21860         ancestry past GtkObject.
21861
21862         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
21863         from DLL on Win32.
21864
21865         * gtk/gtk.def: Update corresponding to recent changes.
21866
21867         * gtk/makefile.{cygwin,msc}: Updates.
21868
21869 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
21870
21871         * docs/Changes-1.4.txt: A bit of editing.
21872
21873         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
21874         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
21875         to clear the update area for the window, and clear it
21876         when hiding a window.
21877
21878         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
21879         if window destroyed.
21880
21881         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
21882
21883         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
21884         gdk_window_destroy() to the generic code, since there was a lot of 
21885         window-system-independent logic it in. Add a function:
21886         
21887          _gdk_window_destroy() 
21888
21889         to the internal API to destroy a window without unreferencing it.
21890         Add a function:
21891
21892          _gdk_windowing_window_destroy()
21893
21894         That does the windowing-system-dependent part of destroying 
21895         the window.
21896
21897 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
21898
21899         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
21900
21901 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
21902
21903         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
21904         Make gtk_widget_shape_combine_mask() keep a reference count on
21905         the pixmap since it keeps it around.
21906
21907 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
21908
21909         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
21910         leak.
21911
21912         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
21913         leak with event filters.
21914
21915 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
21916
21917         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
21918         signal handlers with the right data arguments. (Fixes
21919         some warnings when a widget was repeatedly set as a drag
21920         destination.)
21921
21922         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
21923         window so we can avoid avoid setting the DND properties on the
21924         toplevel window repeatedly.
21925
21926 2000-05-13  Tor Lillqvist  <tml@iki.fi>
21927
21928         * gdk/win32/gdkwin32.h: Define more message types missing from
21929         mingw headers.
21930
21931         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
21932         call gdk_window_destroy_notify(). It was never called. This
21933         probably meant that the GdkWindow was never freed. Thanks Owen for
21934         noticing (!).
21935
21936         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
21937         window as destroyed before calling DestroyWindow(). DestroyWindow()
21938         causes a call to the window procedure (gdk_WindowProc), which
21939         calls gdk_event_translate(), which calls
21940         gdk_window_destroy_notify(), which gets confused unless the window
21941         is set as destroyed.
21942
21943         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
21944         this function to indicate it's win32 only. Put inside #ifdef
21945         G_ENABLE_DEBUG.
21946
21947         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
21948         debugging function. (gdk_event_translate:) Add a default branch
21949         that uses the above function to print debug messages with all
21950         Windows messages symbolically.
21951
21952         * gdk/win32/gdkprivate-win32.h: Declare it, and
21953         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
21954
21955 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
21956
21957         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
21958         public header file.
21959
21960 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
21961
21962         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
21963
21964         * gtk/gtktext.c: made the adjustments no-construct args, simply
21965         provide default adjustments.
21966         (gtk_text_destroy): release adjustments.
21967
21968         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
21969         adjustment argument non-construct.
21970
21971         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
21972         instead of in finalize.
21973         (gtk_progress_get_text_from_value): 
21974         (gtk_progress_get_current_text): 
21975         (gtk_progress_set_value): 
21976         (gtk_progress_get_percentage_from_value): 
21977         (gtk_progress_get_current_percentage): 
21978         (gtk_progress_set_percentage): 
21979         (gtk_progress_configure): ensure an adjustment is present.
21980
21981 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
21982
21983         * gtk/gtkcolorsel.[hc]:
21984         * gtk/gtkcolorseldialog.[hc]:
21985         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
21986         their parent implementation, use bit fields for boolean values, don't
21987         create unused widgets, usage of glib types, braces go on their own
21988         lines, function argument alignment, #include directives etc. etc. etc..
21989
21990         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
21991
21992 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
21993
21994         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
21995
21996         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
21997         of NULL.
21998
21999         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
22000         to freed data.
22001         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
22002
22003         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
22004         to NULL when the toplevel is getting destroyed.
22005         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
22006         (gtk_menu_destroy): 
22007         (gtk_menu_init): store the information of whether we have to
22008         readd the initial child ref_count during destruction in a new
22009         GtkMenu field needs_destruction_ref_count.
22010
22011         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
22012         here, those reading: learn from my mistake! ;)
22013         in order for set_?adjustment to support a default adjustemnt if
22014         invoked with an adjustment pointer of NULL, the code read (pseudo):
22015         if (v->adjustment) unref (v->adjustment);
22016         if (!adjustment) adjustment = adjustment_new ();
22017         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
22018         now imagine the first unref to actually free the old adjustment and
22019         adjustment_new() creating a new adjustment from the very same memory
22020         portion. here, the latter comparision will unintendedly fail, and
22021         all hell breaks loose.
22022         (gtk_viewport_set_hadjustment):
22023         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
22024         after unreferencing it.
22025
22026         * gtk/gtkcontainer.[hc]: removed toplevel registration
22027         functions: gtk_container_register_toplevel(),
22028         gtk_container_unregister_toplevel() and
22029         gtk_container_get_toplevels() which had wrong semantics
22030         anyways: it didn't reference and copy the list.
22031
22032         * gtk/gtkwindow.c: we take over the container toplevel registration
22033         bussiness now. windows are registered across multiple destructions,
22034         untill they are finalized. the initial implicit reference count
22035         users are holding on windows is removed with the first destruction
22036         though.
22037         (gtk_window_init): ref & sink and set has_user_ref_count, got
22038         rid of gtk_container_register_toplevel() call. add window to
22039         toplevel_list.
22040         (gtk_window_destroy): unref the window if has_user_ref_count
22041         is still set, got rid of call to
22042         gtk_container_unregister_toplevel().
22043         (gtk_window_finalize): remove window from toplevel list.
22044         (gtk_window_list_toplevels): new function to return a newly
22045         created list with referenced toplevels.
22046         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
22047
22048         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
22049         adjustment a non-construct arg.
22050         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
22051         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
22052         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
22053
22054         * gtk/gtkrange.c: added some realized checks.
22055         (gtk_range_destroy): get rid of the h/v adjustments in the
22056         destroy handler instead of finalize. remove timer.
22057         (gtk_range_get_adjustment): demand create adjustment.
22058
22059         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
22060         we simply create them on demand now and get rid of them in
22061         the destroy handler.
22062         (gtk_viewport_destroy): get rid of the h/v adjustments in the
22063         destroy handler instead of finalize.
22064         (gtk_viewport_get_hadjustment): 
22065         (gtk_viewport_get_vadjustment): 
22066         (gtk_viewport_size_allocate): demand create h/v adjustment
22067         if required.
22068
22069         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
22070         gtk_widget_real_destroy () functionality.
22071         (gtk_widget_real_destroy): reinitialize with a new style, instead
22072         of setting widget->style to NULL.
22073
22074 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
22075
22076         * gtk/gtkcalendar.c:
22077         * gtk/gtkbutton.c: ported _get_type() implementation over to
22078         GType, either to preserve memchunks allocation facilities,
22079         or because Gtk+ 1.0 GtkTypeInfo was still being used.
22080
22081         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
22082         over. prepare for ::destroy to be emitted multiple times.
22083         removed reference tracer magic. chain into GObjectClass.shutdown()
22084         to emit ::destroy signal.
22085
22086         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
22087         fundamental.
22088
22089         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
22090         cludge.
22091
22092         * gtk/gtksocket.c:
22093         * gtk/gtkplug.c:
22094         * gtk/gtklayout.c:
22095         * gtk/gtklabel.c:
22096         * gtk/gtkargcollector.c:
22097         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
22098         not being a fundamental anymore, and to work with the new
22099         type system (nuked fundamental type varargs clutter).
22100
22101         * gtk/*.c: install finalize handlers in the GObjectClass
22102         part of the class structure.
22103         changed direct GTK_OBJECT()->klass accesses to
22104         GTK_*_GET_CLASS().
22105         changed direct object_class->type accesses to GTK_CLASS_TYPE().
22106
22107         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
22108         GType. made most of the GTK_*() type macros and Gtk* typedefs
22109         simple wrappers around macros and types provided by GType.
22110         most notably, a significant portion of the old API vanished:
22111         GTK_TYPE_MAKE(),
22112         GTK_TYPE_SEQNO(),
22113         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
22114         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
22115         GTK_TYPE_ARGS,
22116         GTK_TYPE_CALLBACK,
22117         GTK_TYPE_C_CALLBACK,
22118         GTK_TYPE_FOREIGN,
22119         GtkTypeQuery,
22120         gtk_type_query(),
22121         gtk_type_set_varargs_type(),
22122         gtk_type_get_varargs_type(),
22123         gtk_type_check_object_cast(),
22124         gtk_type_check_class_cast(),
22125         gtk_type_describe_tree(),
22126         gtk_type_describe_heritage(),
22127         gtk_type_free(),
22128         gtk_type_children_types(),
22129         gtk_type_set_chunk_alloc(),
22130         gtk_type_register_enum(),
22131         gtk_type_register_flags(),
22132         gtk_type_parent_class().
22133         replacements, where available are described in ../docs/Changes-1.4.txt.
22134         implemented compatibility functions for the remaining API.
22135
22136         * configure.in: depend on glib 1.3.1, use gobject module.
22137
22138 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
22139
22140         * TODO.xml: Various updates to current status.
22141
22142 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
22143
22144         * gtk.m4: Print out version when test succeeds.
22145
22146 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
22147
22148         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
22149         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
22150         
22151         (Original triangle color selector from Simon Budig
22152         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
22153         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
22154         Santiago <mrcooger@cyberverse.com>)
22155
22156         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
22157         out into a separate widget.
22158
22159         * gtk/testgtk.c: Add some checkbuttons for toggling palette
22160         and opacity controls.
22161
22162 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
22163
22164         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
22165         snuck in prematurely.
22166
22167 2000-05-07  Tor Lillqvist  <tml@iki.fi>
22168
22169         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
22170         had deleted a ! operator by mistake, which caused
22171         GDK_SELECTION_CLEAR events never to be generated, which caused
22172         only the first copy to the clipboard from an gtkeditable to
22173         actually cause a copy to the Windows clipboard.
22174
22175 2000-05-06  Tor Lillqvist  <tml@iki.fi>
22176
22177         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
22178         compilation, too. Current mingw gcc distributions include the
22179         necessary headers. Also the necessary IIDs are now in mingw
22180         headers/libraries, and own definitions unnecessary.
22181
22182         More hacking on OLE2 DND, still doesn't work though, and thus
22183         ifdeffed out.
22184
22185         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
22186         here, too.
22187
22188 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
22189
22190         * gdk/nanox/*: nano-X port work in progress.
22191         * gdk/simple.c: simple test for Gdk.
22192         * README.nanox: notes about the port: read this first!
22193         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
22194         with nano-X.
22195
22196 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
22197
22198         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
22199         gdk_window_clear() into common code, implement in terms of
22200         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
22201         not redirected to the backing rectangle.
22202
22203 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
22204
22205         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
22206         EXTRA_DIST. It does not work well when the file that
22207         everything depends on is not in the tarball.
22208
22209 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
22210
22211         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
22212         with recursion where process_updates() is called from
22213         an expose handler. (GtkTextView is highly broken in
22214         doing this, but it should work, so it is a nice test
22215         case.)
22216
22217 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
22218
22219         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
22220         handle the case where updates are queued during processing of
22221         updates.
22222
22223 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
22224
22225         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
22226         window is on gdk_display - use that instead of segfaulting.
22227
22228 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
22229
22230         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
22231         broken and require an empty arg, give it to them.
22232
22233 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
22234
22235         * gtk/gtklabel.h: indentation fixes.
22236
22237 2000-05-02  Tor Lillqvist  <tml@iki.fi>
22238
22239         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
22240         draw too narrow or too low arcs, they seem to fail, at least with
22241         some display drivers.
22242
22243         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
22244
22245         Large changes to the Win32 backend, partially made necessary by
22246         the changes to the backend-independent internal
22247         structures. Attempts to implement similar backing store stuff as
22248         on X11. The current (CVS) version of the Win32 backend is *not* as
22249         stable as it was before the no-flicker branch was merged. A
22250         zipfile with that version is available from
22251         http://www.gimp.org/win32/. That should be use by "production"
22252         code until this CVS version is usable. (But note, the Win32
22253         backend has never been claimed to be "production quality".)
22254
22255         * README.win32: Add the above comment about versions.
22256
22257         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
22258
22259         * gdk/gdk.def: Update.
22260
22261         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
22262         presumably be replaced by some more better mechanism as 1.4 gets
22263         closer to release shape.
22264
22265         * gdk/makefile.{cygwin,msc}: Update.
22266
22267         * gdk/win32/*.c: Correct inclusions of the backend-specific and
22268         internal headers. Change code according to changes in these. Use
22269         gdk_drawable_*, not gdk_window_* where necessary.
22270
22271         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
22272         our old DND.
22273
22274         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
22275         to interpret single characters as UTF-8. Thanks to Hans Breuer.
22276         Use correct function name in warning messages.
22277
22278         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
22279         GSourceFuncs gdk_event_prepare and gdk_event_check.
22280         (gdk_event_get_graphics_expose): Do implement, use
22281         PeekMessage. Thanks to Hans Breuer.
22282         (event_mask_string): Debugging function to print an GdkEventMask.
22283         (gdk_pointer_grab): Use it.
22284
22285         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
22286         (old) book I used claimed was Hangul actually is CJK Unified
22287         Ideographs Extension A. Also, Hangul Syllables were missing.
22288         Improve logging.
22289
22290         * gdk/win32/gdkgc-win32.c: Largish changes.
22291
22292         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
22293         g_win32_getlocale() from GLib, and not setlocale() to get current
22294         locale name.
22295
22296         * gdk/win32/gdkprivate-win32.h
22297         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
22298         gdkwin32.h, similarily as in the X11 backend.
22299
22300         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
22301         assignment was used instead of equals in if test. Thanks to Hans
22302         Breuer.
22303
22304         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
22305         the X11 version.
22306
22307         * gdk/win32/makefile.{cygwin,msc}
22308         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
22309         path to the Win32 headers that works also with the mingw compiler.
22310
22311         * gtk/gtkstyle.c: Include <string.h>.
22312
22313 2000-04-26  Havoc Pennington  <hp@redhat.com>
22314
22315         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
22316         replacing the broken gtk_label_get ()
22317
22318 2000-04-15  Havoc Pennington  <hp@pobox.com>
22319
22320         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
22321         this keeps scanner scripts from getting confused.
22322
22323         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
22324         data, rather than void
22325
22326 2000-04-15  Tor Lillqvist  <tml@iki.fi>
22327
22328         * gtk/gtkclist.c (gtk_clist_motion)
22329         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
22330         with is_hint FALSE, get x and y from the event. They used to be
22331         used uninitialised. The Win32 backend never sends motion events
22332         marked as hints. This for instance fixes the annoying file and
22333         font selector behaviour in the Win32 version.
22334
22335 2000-04-14  Tor Lillqvist  <tml@iki.fi>
22336
22337         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
22338         gtk_private_n_signals variables, they are used by some software,
22339         sigh.
22340
22341         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
22342         installation directory from the Registry, where the installer
22343         should have put it.
22344
22345 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
22346
22347         * gdk/x11/Makefile.am: Fix problem with installation directory for
22348         gdkx.h
22349
22350         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
22351         <mrcooger@cyberverse.com> so that when selecting menus with the
22352         mouse, the first item will not be selected, but when selecting
22353         with an accelerator, or navigating left-right on a menubar with
22354         the menus popped up, the first item will be selected.
22355
22356 2000-04-05  Dan Damian  <dand@dnttm.ro>
22357
22358         * configure.in: Added "ro" to ALL_LINGUAS.
22359
22360 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
22361
22362         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
22363         indentation.
22364
22365         * Makefile.am (EXTRA_DIST): Fix typo.
22366
22367         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
22368         to catch gdkconfig.h
22369
22370         * gtk/gtkitemfactory.c: Added FIXME.
22371
22372 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
22373
22374         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
22375         s/return_if_fail/return_val_if_fail/g and add a return value.
22376
22377 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
22378
22379         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
22380         merge slipup.
22381
22382         * gdk/gdkinput.h: Fix missing line from merge.
22383
22384 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
22385
22386         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
22387         instead of gdkprivate.h.
22388
22389 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
22390
22391         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
22392         parent class to correctly be GtkDialogClass.
22393
22394 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
22395
22396         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
22397         toplevel windows and their immediate children by their parents,
22398         since the size of toplevel windows is out of our immediate
22399         control and we don't get any real benefit from trying to track
22400         this size for clipping.
22401
22402         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
22403         for input_only windows.
22404
22405         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
22406         to fix some hacks and make sure that we don't try to set the
22407         background of input only windows.
22408
22409 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
22410
22411         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
22412         the _really_ internal stuff, and leave gdkprivate.h for the fake private
22413         stuff that we've traditionally exposed.
22414
22415         * gdk/**.c: Use gdkinternals.h where appropriate.
22416
22417         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
22418         not include gdkprivate-x11.h, move all stuff of conceivable public
22419         interest into gdkx.h; keep all really private stuff in
22420         uninstalled header gdkprivate-x11.h.
22421
22422         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
22423         image->image_put on windows through a new function _gdk_window_draw_image()
22424         to allow us to do backing store for images. (Sort of ugly)
22425
22426         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
22427         contexts locally so that we can offset them properly when drawing 
22428         onto backing pixmaps.
22429
22430         * gdk/gdkinput.h: Reindented
22431
22432         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
22433         pixmap or color for the window, so we can properly initialize
22434         our double-buffer pixmaps, and also so that we temporarily set
22435         a background of None while scrolling.
22436
22437         * gdk/gdkregion.h: Revise region boolean operators to have an
22438         interface that is actually convenient - switch from creating new
22439         regions on every op, to "methods" that modify existing regions
22440         (A = A OP B). 3 argument forms which allow dest == src, would also
22441         be possible, but the current interfaces seem to map nicely
22442         onto what needs to be done. (There is quite a lot of region
22443         code in GDK now.)
22444
22445         * gdk/gdkregion.h: Add constructor from rectangle and a copy
22446         operator.
22447
22448         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
22449         gdkpoly-generic.h: Copy region code from Xlib, switch it over
22450         to 32 bit coordinates, modify it to be mostly GTK+ style
22451         and to have interfaces that match gdkregion.h.
22452
22453         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
22454         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
22455         create a backing pixmap and redirect all drawing to
22456         that backing pixmap until a matching gdk_window_end_paint().
22457
22458         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
22459         Create a special drawable class for GtkWindow's that 
22460         redirects the drawing to the backing pixmap as necessary
22461         and then calls the real operations in _gdk_windowing_window_class.
22462
22463         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
22464         Store invalid region for each window. Generate expose events for invalid
22465         region in an idle. This replaces both the expose compression
22466         and the redrawing queuing in GTK+. It is both more efficient and
22467         simpler than either one individually and far more so then the
22468         combination.
22469
22470         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
22471         Emulate 32 bit coordinates for windows with 16 bit coordinates
22472         by offsetting drawing, guffaw scrolling techniques and
22473         mapping/unmapping child windows as necessary.
22474
22475         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
22476         where, when invalid regions are processed, the region is stored,
22477         and if expose events come in that are detectably duplicate
22478         the processed exposes (by comparison of event serial numbers),
22479         the stored region is subtracted out of those exposes.
22480
22481         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
22482         regions newly exposed when scrolling or resizing windows.
22483         This, combined with forcing processesing of queued invalidated
22484         regions, gives nice flicker-free scrolling.
22485
22486         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
22487         invalidated regions after every scroll.
22488
22489         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
22490         emulation in GDK. Its, for all practical purposes just a
22491         GtkViewport/GtkFixed hybrid now.
22492
22493         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
22494         (16-bit) structures as necessary instead of just casting.
22495
22496         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
22497         in terms of the structures from gdkregion-generic.c, using appropriate
22498         offsets from GDK to X11 coordinates. Cache clip mask and
22499         origin and ts origin locally and only flush to the server
22500         when drawing, to avoid constantly setting and resetting these
22501         values when offsetting GC's for scrolling and backing pixmaps.
22502
22503         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
22504
22505         * gtk/gtkcontainer.c: Call process_all_updates at end
22506         of resizing to reduce flicker. (Avoids having redraw
22507         lag arbitrarily behind resize under some circumstances)
22508
22509         * gtk/gtkentry.c: Remove old backing store code, and simply take
22510         advantage of the new backing store capabilities of GDK.
22511
22512         * gtk/gtkmain.c: Simple implementation of widget backing
22513         store - simply push a paint while handling each expose.
22514         (Should really be configurable widget for widget.)
22515         
22516         * gtk/gtkwidget.c: Remove all the old complicated redraw
22517         code, and simply invalidate the GDK windows from
22518         gdk_window_queue_clear(), etc. (Sigh, so much carefully
22519         debugged complexity ... gone to the winds.)
22520
22521         Remove all the code for suppressing expose events while
22522         resizes are pending; this isn't needed since the invalid
22523         areas won't be processed until after the resizes are
22524         processed, since they are in a lower priority idle.
22525
22526 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
22527
22528         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
22529         and height of dest rectangle for non-intersecting rectangles.
22530
22531 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
22532
22533         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
22534         for GdkRectangle.
22535
22536 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
22537
22538         * gdk/gdk{events,image,private,types,window}.h
22539          gdk/x11/gdkinputprivate.h: Change all coordinates
22540          from int16 to int. Also, Change width and height from
22541          unsigned to signed to avoid all the stupid C 
22542          signedness bugs.
22543
22544 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
22545
22546         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
22547         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
22548         Add some more detailed checking.
22549
22550         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
22551         New function to retrieve the depth of a drawable.
22552
22553         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
22554         field, reorder fields to save memory. 
22555
22556 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
22557
22558         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
22559         of the background image instead of scaling the background down to
22560         a line.
22561
22562         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
22563         which temporarily set slider to wrong size.
22564
22565         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
22566         queue_clear().
22567
22568 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
22569
22570 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
22571
22572         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
22573
22574 2000-03-17  Tor Lillqvist  <tml@iki.fi>
22575
22576         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
22577         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
22578
22579         * gdk/win32/gdkfont-win32.c
22580         * gdk/win32/gdkproperty-win32.c
22581         * gdk/win32/gdkselection-win32.c
22582         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
22583         now declared such.
22584
22585 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
22586
22587         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
22588
22589 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
22590
22591         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
22592         is called without trapping X errors.
22593
22594 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
22595
22596         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
22597         way into the fontset lists.
22598
22599 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
22600
22601         * gtk/gtkthemes.h: add extern "C" scope.
22602
22603 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
22604
22605         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
22606         to make appends to the list constant. (gtk-guy-990901-0.patch)
22607
22608 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
22609
22610         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
22611         for the typename hash table.
22612
22613 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
22614
22615         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
22616         to make sure we never divide by zero. 
22617         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
22618
22619 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
22620
22621         * gtk/gtkfontsel.c: Apply patch from
22622         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
22623         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
22624
22625         Also, some cleanups in atom handling.
22626
22627 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
22628
22629         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
22630         not GtkWidget.
22631
22632 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
22633
22634         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
22635         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
22636         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
22637         more guint wrap-around bugs before going to bed.
22638
22639 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
22640
22641         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
22642         guint wrap arounds in allocation.width.
22643
22644         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
22645         process untill we fit the allocation given.
22646
22647 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
22648
22649         * gtk/gtkwidget.c:
22650         (gtk_widget_unrealize): guard widget access with ref/unref
22651         around signal emission.
22652         (gtk_widget_hide): same here, but also check its destroyed
22653         state before queueing a resize.
22654
22655 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
22656
22657         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
22658         of gtk_default_insensitive_bg as insensitive base color.
22659
22660         * gtk/gtktext.c (gtk_text_style_set): set the background color according
22661         to the widget's state.
22662         (gtk_text_realize): same here.
22663         (gtk_text_state_changed): same here.
22664         (draw_bg_rect): compare background color against base[] from
22665         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
22666
22667 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
22668
22669         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
22670         grabs are active, unless a delete event is send to the toplevel
22671         of the currently grab holding widget.
22672
22673 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
22674
22675         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
22676         debugging g_print's.
22677
22678 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
22679
22680         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
22681         ever make the scrolled-window requisition ever depend on the 
22682         visibility state of the scrollbars for the AUTOMATIC policy. 
22683         This breaks the GTK+ requisition model, and causes loops.
22684
22685 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
22686
22687         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
22688         the default font to avoid problems with XFree86-4.0 where the
22689         default charset is iso10646-1, not iso8859-1.
22690
22691 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
22692
22693         * acinclude.m4
22694         * config.guess
22695         * config.sub
22696         * ltconfig
22697         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
22698
22699         * gtk/Makefile.am: minor cosmetic consistency tweak
22700
22701 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
22702
22703         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
22704         the activate_time to 0, so that we handle a quick
22705         press/release press/release properly and don't suppress
22706         the second release. (Red Hat bug #7545)
22707
22708 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
22709
22710         * gtk/gtkctree.c (row_delete):
22711         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
22712         bugs with destruction notifier, *always* update internal
22713         structures *before* calling user code.
22714
22715 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
22716
22717         A few more fixes for bug #5487, #2051, #2677.
22718         * gtk/gtkclist.c : 
22719         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
22720         not GDK_BUTTON_PRESS.
22721         (resync_selection): resync only if selection_mode is
22722         GTK_SELECTION_EXTENDED
22723         * gtk/gtkctree.c (resync_selection): same here
22724
22725 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
22726
22727         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
22728         gdk_drag_get_selection() and gtk_menu_detach().
22729
22730         [ From Jeroen Ruigrok/Asmodai ]
22731
22732 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
22733
22734         * gtk/gtknotebook.c (gtk_notebook_size_request): 
22735         page->tab_label can be NULL.
22736
22737 2000-01-25  Havoc Pennington  <hp@pobox.com>
22738         
22739         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
22740         arg is boolean
22741
22742         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
22743
22744         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
22745
22746         * gdk/gdkproperty.c (gdk_property_get): return boolean
22747
22748         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
22749
22750         * gdk/gdkim.c (gdk_im_ready): return boolean
22751
22752         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
22753
22754         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
22755         glib clash, should fix glib)
22756
22757         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
22758         (gdk_get_show_events): return gboolean, and canonicalize 
22759         to TRUE/FALSE
22760
22761         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
22762         colormap is private
22763         (gdk_colors_alloc): gboolean whether to be contiguous
22764         (gdk_color_equal): return gboolean since we are a predicate
22765         and not a qsort() (this looks semi-wrong due to glib breakage,
22766         IMO glib should be fixed)
22767         
22768         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
22769         (gdk_get_use_xshm): return gboolean
22770         (gdk_pointer_is_grabbed): return gboolean
22771
22772         * gdk/gdk.h: Change prototypes to match all the above changes,
22773         and re-run egtk-format-protos as required.
22774
22775 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
22776
22777         * gtk/gtkctree.c (resync_selection): 
22778         * gtk/gtkclist.c (resync_selection):
22779
22780         Return immediately if clist->drag_pos < 0. This is a workaround
22781         for the corrupt state that the clist gets into when a
22782         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
22783
22784         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
22785         
22786         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
22787         variable from recent commit.
22788
22789 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
22790
22791         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
22792
22793 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
22794
22795         * gtk/Makefile.am: prefix all autogenerated source that get build in
22796         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
22797         in builddir. since we subsequently cd into srcdir for autogeneration,
22798         the paths have to be stripped from the target file names, thusly we
22799         use $(@F) as target names now.
22800         put a comment about configure.in's --disable-rebuilds option,
22801         which can be used for non-writable source directories, for development
22802         setups though, srcdir has to be *writable*.
22803
22804 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
22805
22806         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
22807           Finish the job of allowing event to be NULL.
22808           (Fixes bug #4283, reported by Chris Blizzard)
22809
22810         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
22811           things so that the cursor appears on screen, properly
22812           take into account INNER_BORDER.
22813           (Fixes bug #4754, reported by Antonio Campos)
22814
22815 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
22816
22817         * gtk/gtknotebook.c (gtk_notebook_map): Don't
22818           show the tab_label unless it itself is visible.
22819
22820           gtk/gtknotebook.c (gtk_notebook_size_request):
22821           Do a better job of making sure that the visibility
22822           of the tab label corresponds to whether it should
22823           be mapped or not.
22824
22825 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
22826
22827         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
22828           Use the requisition, not the allocation, since the
22829           allocation has not necessarily been computed yet.
22830           (Pointed out by Eugene Osintsev)
22831
22832 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
22833
22834         * gtk/gtkstyle.c (gtk_style_new): Dont' set
22835           style/base[GTK_STATE_INSENSITIVE] both to
22836           gtk_default_insensitive_bg!
22837           (Bug #2187, reported by Jonathan Blandford)
22838
22839         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
22840           Add Alt_L, Alt_R to list of invalid accelerators.
22841           (Bug #3736, reported by Vlad Harchev)
22842
22843 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
22844
22845         * gtk/gtkfilesel.c (open_ref_dir): Fix several
22846         bugs which occured after an attempt to open 
22847         invalid home directory left cmpl_state->reference_dir == NULL.
22848
22849          - completion on files in home directory didn't work
22850          - completion on an empty string caused  segfault
22851
22852          (Bug #3678, reported by Steve Ratcliffe)
22853
22854         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
22855         cut and paste error that was causing scales to
22856         be incorrectly positioned.
22857         (Bug #2956,
22858          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
22859
22860 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
22861
22862         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
22863         when checking for dcgettext, if we've found we needed
22864         it for dgettext.
22865 +
22866 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
22867
22868         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
22869         queue_clear on NO_WINDOW widgets during a reparent,
22870         since at that point the window and widget heirarchies
22871         are out of sync. This stops crashing in some cases
22872         (the scrolled window reparent test, for instance), and
22873         _probably_ won't cause drawing errors.
22874
22875         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
22876         test do what it was supposed to do and be robust against
22877         window closings, etc. (Bug #2443)
22878
22879 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
22880
22881         * gtk/gtkentry.c: Fix return values on mouse events.
22882         (Bug #2686, Sky <seb_sky@yahoo.com>)
22883
22884         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
22885         (pointed out by George Lebl)
22886
22887         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
22888         (From Ettore Perazzoli  <ettore@helixcode.com>)
22889  
22890 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
22891
22892         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
22893         clicks between rows or outside calender area correctly.
22894         (Patch from Damon Chaplin)
22895
22896         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
22897         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
22898           Call destroy function when overwriting existing data. 
22899           (Pointed out by Damon Chaplin)
22900
22901 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
22902
22903         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
22904           which was causing problems on various systems with Xmu.
22905           This hasn't been needed for a very long time.
22906           (Fixes #1185 3167)
22907
22908 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
22909
22910         * gdk/gdki18n.h: Include <ctype.h> when defining
22911           gdk_isw* in terms of is* as a fallback.
22912           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
22913
22914 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
22915
22916         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
22917           realize the widget when it is size allocated!
22918           (old, old bug)
22919
22920         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
22921           Removed unused call to gdk_window_get_size() that
22922           showed up when the above was fixed.
22923
22924 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
22925
22926         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
22927           fix up widget->window when the widget is a
22928           NO_WINDOW container widget.
22929
22930 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
22931
22932         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
22933           to account for the fact that feof() does _not_ 
22934           return TRUE on errors, and thus avoid infinite loops
22935           when trying to use gdk_pixmap_create_from_xpm()
22936           on unreadable values.
22937
22938 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
22939
22940         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
22941
22942 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
22943
22944         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
22945           gdk_gc_set_dashes to take gint8 instead of gchar to
22946           make it clearer that it is _not_ a NULL terminated string.
22947
22948         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
22949           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
22950           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
22951           arguments.
22952
22953 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
22954
22955         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
22956         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
22957         background size relative to our allocation, guard against small
22958         allocations, we may have not yet been size allocated.
22959
22960 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
22961
22962         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
22963         not just version == 3. We implement all 3 + most of 4 - 
22964         (we don't support matching text/plain;charset=iso-8859-1
22965         to a dest that expects text/plain). We'll still advertise
22966         3 to be safe, but any client implementing version >= 3
22967         must interoperate with 3.
22968         
22969 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
22970
22971         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
22972         background and gc members, add a warning in gtk_tooltips_set_color()
22973         indicating that this function is deprecated.
22974
22975 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
22976
22977         * docs/gtkfaq.sgml: FAQ Update:
22978           - Minor cleanups (Emmanuel, me)
22979           - New questions:
22980                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
22981                 How can I retrieve the text from a GtkMenuItem? (timj)
22982                 How do I validate/limit/filter the input to a GtkEntry? (me)
22983                 Memory does not seem to be released when I free the list
22984                         nodes I've allocated (timj)
22985
22986 2000-03-07  Tor Lillqvist  <tml@iki.fi>
22987
22988         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
22989         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
22990         for which it is no use to call GetLastError onWin9x.
22991         (gdk_other_api_failed) New function, for general error
22992         reporting without calling GetLastError.
22993         (gdk_win32_api_failed) OTOH, this function always calls
22994         GetLastError. (gdk_win32_last_error_string) Remove this function,
22995         GLib has the equivalent now.
22996
22997         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
22998         call them with function name, file name and line number in the
22999         arguments.
23000
23001         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
23002         functions.
23003         
23004         * gtk/gtk.def: Add some missing entry points.
23005
23006         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
23007         gtk_paned_set_gutter_size, which don't exist any longer, as void.
23008         
23009         Fixes by Hans Breuer:
23010
23011         * gdk/makefile.msc: Update for debugging.
23012
23013         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
23014         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
23015         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
23016         in the dash_list.
23017
23018         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
23019         the x11 backend.
23020
23021         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
23022
23023         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
23024
23025 2000-03-04  Tor Lillqvist  <tml@iki.fi>
23026
23027         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
23028         just pixel value of background colour.
23029
23030         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
23031         containing code snippet previously duplicated in a couple of
23032         places.
23033         
23034         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
23035         gdk_colormap_color.
23036
23037         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
23038         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
23039         events for autorepeated Shift, Control and Alt keys. Use
23040         gdk_colormap_color.
23041
23042         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
23043         pointer is inside the window the cursor of which we are setting,
23044         call SetCursor immediately.
23045
23046         * gdk/win32/makefile.cygwin
23047         * gtk/makefile.cygwin: If we don't have the build number stamp
23048         file, use zero.
23049
23050         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
23051         gtk_paned_set_gutter_size as empty.
23052
23053         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
23054         
23055 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
23056
23057         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
23058           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
23059           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
23060           docs/gtk_tut.sgml docs/gtk.texi TODO:
23061
23062           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
23063
23064 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
23065
23066         * gtk/gtkcalendar.c: Implement num_marked_dates,
23067           and don't emit mutiple day_selected signals on
23068           month_prev.
23069
23070 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
23071
23072         * docs/make-todo (lineno): let title and logo be configurable so
23073         that GNOME can use this script too.
23074
23075         * TODO.xml: added logourl and a title
23076
23077 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
23078
23079         * TODO.xml: Added some UI items, and an explanatory
23080         comment at the top of the file.
23081
23082 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
23083
23084         * TODO.xml: some updates, added abunch of new entries.
23085         a note for those fiddeling with this file, when done
23086         with it, invoke:
23087         $ ./docs/make-todo TODO.xml >/dev/null
23088         and correct output errors before comitting changes.
23089
23090 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
23091
23092         * TODO.xml: Added XML-structured TODO file.
23093         * docs/make-todo: python script to turn TODO.xml into
23094           pretty XML output. 
23095
23096 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
23097
23098         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
23099         the function to let it draw the seven dots, instead of the old,
23100         much maligned, method.
23101         (draw_dot): New function to draw a dot.
23102
23103         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
23104         to draw the handle inside the border width as opposed to outside.
23105         Use paint function instead of gdk_draw_point.
23106
23107         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
23108         to draw the handle inside the border width as opposed to outside.
23109         Use paint function instead of gdk_draw_point.
23110
23111         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
23112         Change indenting to be more GTK like.
23113
23114 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
23115
23116         * docs/gtk_tut.sgml: New section on GtkCalendar
23117         * examples/calendar: Update example code
23118
23119 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
23120
23121         * docs/gtkfaq.sgml: FAQ Update
23122
23123 2000-02-19  Anders Carlsson  <andersca@gnu.org>
23124
23125         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
23126         to prevent the scroll event to be propagated upwards.
23127
23128 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
23129
23130         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
23131         OwnerGrabButtonMask from button entries for
23132         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
23133
23134         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
23135         to the event mask (which will result in button/press release
23136         being added to the event mask on Unix) so scrolling works
23137         for layouts in scroll windows.
23138
23139         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
23140
23141         Patch from Anders Carlsson  <andersca@gnu.org> to add
23142         a scroll event.
23143
23144         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
23145         scrolling to the "Test Scrolling" part of testgtk.
23146  
23147         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
23148  
23149         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
23150         it against GDK_SCROLL.
23151  
23152         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
23153         way of mouse wheel scrolling.
23154  
23155         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
23156  
23157         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
23158  
23159         * gtk/gtkmain.c: Removed previous mouse wheel hack.
23160  
23161         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
23162         gdk_event_mask_table.
23163  
23164         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
23165         GdkEventScroll handler.
23166  
23167         * gdk/gdkevents.h: Added GdkEventScroll structure.
23168  
23169 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
23170
23171         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
23172         and Anders Carlsson to change the Paned widgets so that they
23173         can be dragged from anywhere along the length. Also change
23174         the way that this is drawn to make this apparent.
23175
23176         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
23177         from George Lebl to check that option_menu->menu is present
23178         before getting history.
23179
23180 2000-02-14  Tor Lillqvist  <tml@iki.fi>
23181
23182         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
23183         before the assertion for non-NULL segment list.
23184
23185         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
23186         Seems that pattern brushes *must* be 8x8 pixels! At least on my
23187         machine, but it might be display driver dependent. Sigh, so make
23188         sure the stipple is that size. Does Windows suck or what?
23189
23190         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
23191         places.
23192
23193 2000-02-13  Havoc Pennington  <hp@pobox.com>
23194
23195         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
23196         refcount to 1
23197         (gdk_cursor_new): init refcount to 1
23198
23199         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
23200
23201 2000-02-13  Tor Lillqvist  <tml@iki.fi>
23202
23203         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
23204         so that we don't have to do unnecessary settings to the HDC.
23205
23206         * gdk/win32/gdkdrawable-win32.c
23207         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
23208         gdk_gc_predraw.
23209
23210         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
23211         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
23212         GDI paths, call WidenPath to get the outline of the stroken path,
23213         and then fill the outline (with the brush that was built from the
23214         stipple).
23215
23216         * gdk/win32/gdkgc-win32.c: Factor out common code from
23217         _gdk_win32_gc_new and gdk_win32_gc_set_values into
23218         gdk_win32_gc_values_to_win32values. Use correct colour for
23219         SetBkColor() (Until now the code actually used a random colour in
23220         the call to SetBkColor()... but that didn't show up as not many
23221         GDI APIs use the background colour. Pattern (opaque stippled)
23222         brushes do.)
23223
23224         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
23225         gdk_win32_api_failed): New functions for error logging.
23226
23227         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
23228         WIN32_API_FAILED to call them, passing function or file name and
23229         line number.
23230
23231         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
23232
23233         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
23234         GdkColor for foreground and background in GdkGCWin32Data.
23235
23236         * gdk/makefile.cygwin: Link in the resource object separately.
23237
23238         * gdk/win32/rc/gdk.rc
23239         * gtk/gtk.rc (New file)
23240         * gdk/win32/makefile.cygwin
23241         * gtk/makefile.cygwin: Update build number in DLLs automatically,
23242         as in GLib.
23243
23244 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
23245
23246         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
23247         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
23248         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
23249         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
23250         parameters given and cursor->ref_count. coding style fixups.
23251
23252         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
23253         not GtkWidget.
23254         
23255         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
23256         fix up widget macros and add _GET_CLASS() variant.
23257         
23258         * gtk/*.c: some GtkType fixups.
23259
23260 2000-02-09  Tor Lillqvist  <tml@iki.fi>
23261
23262         * gdk/win32/gdkproperty-win32.c
23263         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
23264         were reversed.
23265
23266 2000-02-04  Tor Lillqvist  <tml@iki.fi>
23267
23268         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
23269         g_filename_to_utf8 to convert the font names Windows gives us from
23270         whatever is the default codepage to UTF-8.
23271         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
23272         in the other direction.
23273
23274         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
23275         error in debugging output.
23276
23277 2000-02-02  Tor Lillqvist  <tml@iki.fi>
23278
23279         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
23280         and height parameters to gdk_window_clear_area(). Not minus one.
23281
23282 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
23283
23284         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
23285         checks if the widget passed to gtk_drag_get_data() was not the
23286         dest widget.
23287
23288 2000-02-01  Tor Lillqvist  <tml@iki.fi>
23289
23290         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
23291         g_filename_from_utf8 functions (which were added a moment ago to
23292         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
23293         size buffers.
23294
23295         gtk_file_selection_get_filename returns the filename in the C
23296         runtime encoding. It calls g_filename_from_utf8, but copies the
23297         returned string to a static buffer, which is returned. I think
23298         this is better than returning the result from g_filename_from_utf8
23299         directly, which would mean all apps that use it would have to free
23300         the return value. Or should this function care about this issue at
23301         all? Maybe a new function with clearly defined semantics.
23302
23303         * gtk/gtkfilesel.h: Add comment about
23304         gtk_file_selection_get_filename returning the filename in the C
23305         runtime's encoding.
23306
23307         * README.win32
23308         * gdk/gdk.def
23309         * gdk/makefile.{cygwin,msc}
23310         * gtk/gtk.def: Updates.
23311
23312         * gdk/gdkcursor-win32.c: Initialise refcount.
23313
23314 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
23315
23316         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
23317
23318 2000-01-30  Havoc Pennington  <hp@pobox.com>
23319
23320         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
23321         destroy
23322
23323         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
23324
23325         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
23326         implemented in platform-specific code
23327
23328         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
23329
23330         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
23331         underscore in front
23332
23333         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
23334         put an underscore in front
23335
23336         * gdk/gdkcursor.c: new file, implements
23337         gdk_cursor_ref/gdk_cursor_unref
23338
23339         * gdk/gdkcursor.h: Refcount GdkCursor
23340
23341         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
23342
23343 2000-01-29  Tor Lillqvist  <tml@iki.fi>
23344
23345         * gdk/gdkwindow.h
23346         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
23347
23348 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
23349
23350         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
23351         structures to properly inherit from GtkWidget not GtkBin.
23352
23353 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
23354
23355         * gtk+.spec.in: Added lib/gtk+/include/* to %files
23356         (bug #5178 - Peter Wainright)
23357         
23358         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
23359         so that it will be installed.
23360         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
23361
23362 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
23363
23364         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
23365         for the GtkStyleClass vtable const.
23366
23367         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
23368         take a const string argument like GtkTranslateFunc. This will
23369         require changes in use code.
23370
23371 2000-01-19  Tor Lillqvist  <tml@iki.fi>
23372
23373         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
23374         semantics (to mimic the X11 backend, which just calls XClearArea)
23375         is to check for zero width (and height), and in that case use the
23376         window's width minus x (height minus y). This fixes for instance
23377         some redraw problems with gtkclist, which were easily noticeable
23378         in the gtk file selection widget.
23379
23380         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
23381         windows.
23382
23383 2000-01-13  Tor Lillqvist  <tml@iki.fi>
23384
23385         * configure.in
23386         * gdk/Makefile.am
23387         * gdk/x11/Makefile.am
23388         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
23389         (bug #5177).
23390         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
23391         out later.
23392
23393 2000-01-09  Tor Lillqvist  <tml@iki.fi>
23394
23395         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
23396         WM_MOVE for iconified or invisible windows. This fixes various
23397         problems when minimising windows. Thanks to Bernd Herd.
23398
23399 2000-01-05  Tor Lillqvist  <tml@iki.fi>
23400
23401         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
23402         backend's draw_lines method, not draw_points.
23403
23404 2000-01-02  Tor Lillqvist  <tml@iki.fi>
23405
23406         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
23407         before Owen's reorganisation: Don't have queued_events and
23408         queued_tail statics in this file, but use gdk_queued_events and
23409         gdk_queued_tail. This makes exposure event compression work again.
23410
23411         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
23412         seem to be needed?
23413
23414 1999-12-30  Tor Lillqvist  <tml@iki.fi>
23415
23416         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
23417         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
23418         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
23419         doesn't do anything.
23420
23421         * gdk/gdk.def: Add gdk_xid_table_insert.
23422
23423         * gdk/win32/gdkprivate-win32.h
23424         * gdk/win32/gdkevents-win32.c
23425         * gdk/win32/gdkinput-win32.c
23426         
23427         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
23428         extension_events field in the GdkWindowWin32Data struct. Use only
23429         the extension_events field in GdkWindowPrivate. Previously one was
23430         set, and the other one tested, which broke tablet
23431         functionality. Thanks to Keishi Suenaga for pointing this out.
23432
23433 1999-12-18  Tor Lillqvist  <tml@iki.fi>
23434
23435         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
23436         When handling a single character (text length == 1), don't handle
23437         it as if it was UTF-8.
23438
23439 1999-12-11  Tor Lillqvist  <tml@iki.fi>
23440
23441         * Makefile.am: Distribute README.win32.
23442         
23443         * gdk/Makefile.am
23444         * gdk/win32/Makefile.am: Distribute Win32 files.
23445
23446         * gdk/makefile.msc: New file.
23447
23448         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
23449         after label).
23450
23451         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
23452         gdk_error_code as GDKVAR, as they are referred outside GDK.
23453
23454         * gdk/win32/makefile.msc: Update.
23455
23456         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
23457         tweaks. Check only if at least one of those Unicode subrange bits
23458         we care for is set. If no code page bits are set, guess (wildly)
23459         based on the charset.
23460
23461         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
23462
23463         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
23464         non-NULL.
23465
23466         * gtk/gtkdnd.c
23467         * gtk/gtklayout.c
23468         * gtk/gtkplug.c
23469         * gtk/gtkselection.c
23470         * gtk/gtksocket.c
23471         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
23472         appropriate. There must be a cleaner way to handle this?
23473
23474         * gtk/gtkrc.c: Must include windows.h on Win32.
23475
23476         * gtk/testgtk.c: No need to include gdkx.h.
23477
23478         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
23479
23480 1999-12-07  Tor Lillqvist  <tml@iki.fi>
23481
23482         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
23483         the rbearing is set to the same as the width, but this should be
23484         fixed.
23485
23486 1999-12-06  Tor Lillqvist  <tml@iki.fi>
23487
23488         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
23489         function. If Windows doesn't tell us what Unicode subranges a font
23490         covers, guesstimate based on the codepages it covers. This will
23491         hopefully help those Windows versions or fonts that don't give us
23492         any useful Unicode subrange information with GetTextCharsetInfo.
23493         Call this function in gdk_font_load_internal.
23494
23495         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
23496         minor changes.
23497
23498 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
23499
23500         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
23501         New function, long needed.
23502
23503 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
23504
23505         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
23506         only_if_exists argument of gdk_atom_intern to
23507         bool.
23508
23509 1999-11-25  Tor Lillqvist  <tml@iki.fi>
23510
23511         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
23512         Fix two copy&paste errors.
23513
23514         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
23515         win32 has changed.
23516
23517         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
23518         GdkWin32SingleFont struct.
23519
23520         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
23521         subranges of loaded fonts. Clear font signature first, in case
23522         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
23523         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
23524
23525         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
23526         Unoffset clip region.
23527
23528 1999-11-23  Tor Lillqvist  <tml@iki.fi>
23529
23530         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
23531         event->any.window before calling filter functions.
23532
23533 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
23534
23535         * gtk/gtkgamma.h: Adapt cast macros to standard.
23536
23537 [ Merges from 1.2 ]
23538
23539 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
23540
23541         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
23542         If translation does not include a '/', use entire
23543         translation instead of crashing.
23544
23545 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
23546
23547         * docs/gtk_tut.sgml:
23548         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
23549
23550 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
23551
23552         * gtk/gtkselection.c (gtk_target_list_remove): Use
23553         g_list_remove_link, not g_list_remove.
23554
23555         [ From Geert Bevin <gbevin@thunderstorms.org> ]
23556         
23557 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
23558
23559         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
23560         statement upon unselection (how the heck did that slip in?).
23561
23562 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
23563
23564         * gtk/gtktext.c (gtk_text_freeze): 
23565         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
23566         in frozen state (and aparently crashes). patch provided by Anders
23567         Melchiorsen <and@kampsax.dtu.dk>.
23568
23569 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
23570
23571         * fix insensitive default/focus widget activation,
23572         reported by Matt Goodall <mgg@isotek.co.uk>.
23573
23574         * gtk/gtkwindow.c (gtk_window_key_press_event): 
23575         (gtk_window_activate_default):
23576         (gtk_window_activate_focus):
23577         return handled=FALSE for actiavtion of insensitive default
23578         widgets. return handled=TRUE for activation of insensitive
23579         focus widgets. don't activate in either case.
23580
23581 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
23582
23583         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
23584         and $glib_cflags to match library order and in the
23585         theory that an old version of GLib is more likely to
23586         be in the include directory for X then vice-versa.
23587         (Bug #2776)
23588
23589 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
23590
23591         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
23592         to determine the locale for fontsets, not LC_MESSAGES;
23593         the user may want English messages with a handling
23594         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
23595         will still be broken) (Bug #2891)
23596
23597 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
23598
23599         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
23600
23601 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
23602
23603         * gtk/gtkrc.ko: Changed the Korean default fontset.
23604
23605 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
23606
23607         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
23608         where when scrolling to the left or top double exposes
23609         were done, causing major slowdowns.
23610
23611 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
23612
23613         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
23614         names to lowercase and alphanumeric, before looking
23615         them up.
23616
23617         * gtk/Makefile.am: Install codeset variant gtkrc files
23618         with normalized names.
23619
23620 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
23621
23622         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
23623         popup menus when the menu is already visible, but its parent
23624         is still hidden, (happens after tornoff window got hidden).
23625
23626 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
23627
23628         * gtk/Makefile.am (install-data-local): Fix
23629         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
23630         deleted, causing error messages on install.
23631
23632 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
23633
23634         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
23635         the handle as well, since we now sometimes ignore
23636         exposes on the handle while resizing.
23637
23638 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
23639
23640         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
23641         extra g_free introduced in one of the last one or two 
23642         commits.
23643
23644 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
23645
23646         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
23647         consistent, put each style that a gtkrc.* file creates
23648         in a unique namespace, remove old files before installing.
23649
23650 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
23651
23652         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
23653         gtk_rc_init is called multiple times. (Yes, people who
23654         do that have bugs in their code.)
23655
23656 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
23657
23658         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
23659         Remove it since it's generated by the Makefile anyway
23660
23661 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
23662
23663         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
23664         device->info.axes for core pointer.
23665
23666 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
23667
23668         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
23669         idle_id, to deal with obsolete, broken C libraries.
23670
23671 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
23672
23673         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
23674         allocation->x/y twice!
23675
23676         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
23677         consistent with gtk_vscale_pos_trough().
23678
23679 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
23680
23681         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
23682         be queueing a resize on a toplevel container between
23683         the time we show it and when we map it. So, we need
23684         to test GTK_WIDGET_VISIBLE() for toplevels, and only
23685         use GTK_WIDGET_DRAWABLE() for child windows.
23686
23687 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
23688
23689         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
23690         (fixes bug #2144)
23691
23692 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
23693
23694         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
23695         container DRAWABLE (instead of VISIBLE), so we don't queue
23696         resizes on non-toplevel containers.
23697
23698 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
23699
23700         * gtk/gtkselection.[ch]: Make the data argument
23701         const guchar *.
23702
23703 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
23704
23705         * gtk/gtkwindow.c: Try to behave sensibly if 
23706         the focus widget is the window itself. (Should
23707         we allow this at all?)
23708
23709 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
23710
23711         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
23712         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
23713         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
23714         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
23715         in prototypes and implementations consistent (Tomas Ogren).
23716
23717         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
23718         before the widget is unparented (reported by damon).
23719
23720         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
23721         since we provide unsigned data anyways.
23722
23723 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
23724
23725         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
23726         the call to gtk_tooltips_layout_text() until later.
23727
23728         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
23729         Call gtk_widget_ensure_style() before using the style.
23730
23731 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
23732
23733         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
23734         for old widgets that don't propagate draws to all
23735         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
23736
23737 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
23738
23739         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
23740         for a redraw but just the widget that requested the resize.
23741
23742 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
23743
23744         * gtk/gtkcontainer.c: added new widget level method
23745         gtk_container_set_reallocate_redraws() and a GtkContainer flag
23746         reallocate_redraws : 1 to reflect the setting, exported this through
23747         the argument system as a boolean ::reallocate_redraws.
23748
23749         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
23750         on the widget because the allocation changes, do so as well for
23751         widget->parent if the parent has reallocate_redraws set to TRUE.
23752         with that containers requesting reallocation redraws get automatically
23753         redrawn if their children changed allocation (this unfortunately
23754         affects also other children that didn't change allocation, but we
23755         cannot work around that before 1.3).
23756
23757 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
23758
23759         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
23760         _and_ height are >0 (not _or_).
23761
23762         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
23763         instead of gtk_container_queue_resize(), which is a core gtk internal
23764         function (must have been on crack when i queued that).
23765
23766         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
23767         we can check more reliably if we want to discard expose events.
23768         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
23769         flag.
23770         
23771         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
23772         we simply trust these events. for deciding whether to discard exposes,
23773         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
23774         
23775 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
23776
23777         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
23778         queues of areas that are completely off screen.
23779
23780         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
23781         logic for handleboxes.
23782
23783         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
23784         check on width/height.
23785
23786 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
23787
23788         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
23789         we are fine with using $@ the way we do (if we actually encounter
23790         brokeness with $@ in VPATH builds because of additional path prefixes,
23791         we need to use $(@F) actually).
23792
23793 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
23794
23795         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
23796         short lived bugs, that would allow language bindings to do surgeries
23797         to our guts.
23798
23799 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
23800
23801         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
23802         where comparison was being done against an uninitialized
23803         value causing intermittant results depending on
23804         compiler flags. Also make it clearer that we aren't
23805         ever initializing the child as 0x0 (though this will
23806         be caught in gtk_widget_size_allocate())
23807
23808 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
23809
23810         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
23811         gtk_window_unset_transient_for() call after we do checks
23812         involving the old transient parent.
23813         [ From Lance Capser <lmc@cyberhighway.net> ]
23814
23815 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
23816
23817         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
23818         an empty file.
23819
23820 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
23821
23822         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
23823         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
23824
23825 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
23826
23827         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
23828         `$@' is valid only in the build dir, not after we've done 
23829         `cd $srcdir'.  Also use `test -f' instead of less portable
23830         `test -e'.
23831
23832 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
23833
23834         * gtk/gtktext.c (correct_cache_insert): Rewrite
23835          for simplicity, and hopefully correctness.
23836          (Fixes bug #1322, which was a segfault when
23837           on some insertions with the properties around
23838           the insertion set up just wrong.)
23839
23840         * gtk/gtktext.c (gtk_text_adjustment): When we receive
23841          a "changed" signal, clamp the new value to the adjustment
23842          bounds to avoid segfaulting if someone tries to change
23843          the adjustment to a bogus value. (Bug #1795)
23844
23845 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
23846
23847         * gtk/gtkmain.c: Ignore unexpected destroy notifies
23848         for children, for toplevel windows handle them
23849         like delete_event.
23850
23851         * gtk/gtkplug.c: Add an unrealize handler so that
23852         we unref plug->socket_window when we are done
23853         with it.
23854
23855 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
23856
23857         * gtk/gtktext.c (clear_area): Fix stupid signedness
23858          problem that was causing background to sometimes
23859          be misaligned.
23860
23861 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
23862
23863         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
23864         
23865         * gtk/gtkmenu.c (gtk_menu_position): Make
23866          sure we never position menus with negative x, y,
23867          since gtk_widget_set_uposition() can't handle that.
23868
23869         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
23870          Modify the positioning code a bit so that we always
23871          put the top-left corner onscreen. (This is for
23872          UI reasons, gtk_menu_position() now takes care of
23873          gtk_widet_set_uposition() brokeness.)
23874
23875 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
23876
23877         * gtk/Makefile.am: fixed up things for -jx, x > 1.
23878
23879 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
23880
23881         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
23882           RC style that is passed in. The lack of the ref
23883           before was a bug. If people worked around this
23884           bug, this will introduce a slight memory leak
23885           in their code. The code should typically look like:
23886
23887             rc_style = gtk_rc_style_new ();
23888             [...]
23889             gtk_widget_modify_style (widget, rc_style);
23890             gtk_rc_style_unref (rc_style);
23891
23892         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
23893           the style if it was already set.
23894
23895         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
23896           style if it was set before.
23897
23898 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23899
23900         * gtk/testgtk.c (main): Add a check to see if we
23901           are being run from the correct directory and
23902           to quit nicely if we are not.
23903
23904         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
23905           static.
23906
23907 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
23908
23909         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
23910
23911         * gtk/gtkwindow.c:
23912         queue resizes unconditionally (gtk_widget_queue_resize will figure
23913         what to do if the window is not realized).
23914         (gtk_window_move_resize): only recenter the window
23915         for GTK_WIN_POS_CENTER_ALWAYS.
23916         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
23917         the same way as GTK_WIN_POS_CENTER.
23918
23919 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
23920
23921         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
23922         with (!(info->last_flags & GDK_HINT_POS)) instead of
23923         (!info->last_flags & GDK_HINT_POS).
23924
23925         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
23926         new_height unconditionally, because we use these values even if
23927         !default_size_changed && !hints_changed.
23928         comented the (default_size_changed || hints_changed) case with
23929         respect to resize rejects from the window manager.
23930
23931         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
23932         in the zvt condition hack, since this includes the window hints, set
23933         the hints after the handling_resize case.
23934
23935         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
23936         window is initially shown with to the geometry.
23937
23938 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
23939
23940         * gtk/gtkwindow.c (gtk_window_move_resize):
23941         s/size_changed/default_size_changed/g so i know what's
23942         really going on (frying brain on smaller flame now).
23943
23944 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
23945
23946         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
23947         we have size_changed upon handling_resize. this is a gross
23948         workaround for the broken zvt widget and should be removed in
23949         1.3 again (search for FIXME).
23950         Owen provided an accurate comment for this:
23951
23952         /* We could be here for two reasons
23953          *  1) We coincidentally got a resize while handling
23954          *     another resize.
23955          *  2) Our computation of size_changed was completely
23956          *     screwed up, probably because one of our children
23957          *     is broken. It's probably a zvt widget.
23958          *
23959          * For 1), we could just go ahead and ask for the
23960          * new size right now, but doing that for 2)
23961          * might well be fighting the user (and can even
23962          * trigger a loop). Since we really don't want to
23963          * do that, we requeue a resize in hopes that
23964          * by the time it gets handled, the child has seen
23965          * the light and is willing to go along with the
23966          * new size. (this happens for the zvt widget, since
23967          * the size_allocate() above will have stored the
23968          * requisition corresponding to the new size in the
23969          * zvt widget)
23970          *
23971          * This doesn't buy us anything for 1), but it shouldn't
23972          * hurt us too badly, since it is what would have
23973          * happened if we had gotten the configure event before
23974          * the new size had been set.
23975          */
23976
23977 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
23978
23979         * gtk/gtkrc.c: deal properly with the fact that RC
23980           style lists may include rc styles more than once.
23981
23982         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
23983           unused static function.
23984
23985         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
23986           stack of directories of RC files currently being
23987           parsed and implicitely add them to pixmap path.
23988           
23989           This fixes a bug where the directory would get
23990           appended then overwritten by pixmap_path declarations.
23991
23992           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
23993
23994         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
23995           theme's exit function. (Patch from Peter Wainwright,
23996           bug #1454)
23997
23998         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
23999           Add a destroy() handler to take care of removing
24000           group for menu item. (Fixes bug #1197)
24001
24002         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
24003           in warning message.
24004
24005 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
24006
24007         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
24008         roundtrip to figure window's width and height, since we know that
24009         anyways from widget->allocation.
24010
24011 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
24012
24013         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
24014           the hints after we request the new size.
24015
24016 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
24017
24018         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
24019           GTK_WIDGET_REALIZED() assertion - we can compute the
24020           hints before we are realized.
24021
24022         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
24023           hint changing so that we have a value of hints_changed
24024           when we decide whether to constrain the window size.
24025
24026         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
24027
24028         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
24029         change back to G_MAXINT.
24030
24031 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
24032
24033         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
24034         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
24035         contain uncluttered values.
24036         (gtk_window_compute_hints): simply assert that window is realized
24037         and that geometry_info is valid, since we rely on this anyways.
24038         (gtk_window_constrain_size): major cleanups to the code.
24039         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
24040         for the base size, instead of the minimums. use 32767 as max width
24041         and height (like in gtkwindow.c) instead of G_MAXINT.
24042
24043 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
24044
24045         * cleaned up the GtkContainer.need_resize flag handling mess, we
24046         only need to force resize requests when we were prematurely
24047         realized, or our widget tree was modified when we were temporarily
24048         hidden. handling these cases directly upon showing the window (i.e.
24049         while the GdkWindow is still unmapped) avoids the need to wait for
24050         a configure event response and therefore makes the GUI more snappier
24051         and avoids blank windows during the roundtrip.
24052
24053         * gtk/gtkwidget.c:
24054         (gtk_widget_hide): 
24055         (gtk_widget_show): don't queue resizes on toplevels, they know how
24056         to deal with matters.
24057
24058         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
24059         flag directly for not visible resize containers and spare us unecessary
24060         signal emissions.
24061
24062         * gtk/gtkwindow.c:
24063         (gtk_window_realize): if we need to enforce premature size allocation,
24064         queue a container resize so we are correctly resized later on.
24065         (gtk_window_init):
24066         (gtk_window_size_request):
24067         don't freak around with the ->need_resize flag,
24068         gtk_container_queue_resize() will care about that.
24069         (gtk_window_show):
24070         handle initial resizing issues here, we can handle matters better in
24071         this place, especially since we know that our GdkWindow is still
24072         unmapped.
24073         (gtk_window_move_resize):
24074         don't care about ->need_resize at all.
24075         handle size changes properly that occoured while we waited for a
24076         configure event.
24077
24078 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
24079
24080         * gtk/gtkwidget.c (gtk_widget_set_uposition):
24081         * gtk/gtkwindow.[hc] (gtk_window_reposition):
24082         Move the hint setting code from gtk_widget_set_uposition
24083         to here; set the hints so that we respect any previously
24084         set geometry hints.
24085
24086         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
24087         change the window hints here or move the window here,
24088         let that happen in gtk_window_move_resize().
24089
24090 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
24091
24092         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
24093         to already queued resizes (and therefore redraws) on a widget, check
24094         its anchestry as well.
24095
24096         * gtk/gtkcontainer.c:
24097         (gtk_container_queue_resize): clear resize widgets for resize
24098         containers before aborting prematurely. this is especially important
24099         for toplevels which may need imemdiate processing or their resize
24100         handler to be queued.
24101         (gtk_container_dequeue_resize_handler): added new internal function for
24102         gtkwindow.c.
24103
24104         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
24105         configure event, take possible changes in window position into account
24106         as well.
24107         if we request a new window size, queue up a resize handler that will
24108         last until the configure event response arrives.
24109         combined the ->need_resize case (initial show) with the general size
24110         (hints) changed case and added even more comments.
24111         if !auto_shrink, only revert to the old allocation if the new size
24112         is smaller than the current allocation.
24113
24114 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
24115
24116         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
24117                            gtk_window_set_geometry_hints
24118                            gtk_window_set_default_size):
24119         When hints are set, queue a resize so that the hints will
24120         be eventually reset on the toplevel.
24121
24122         * gtk/gtkwindow.c (gtk_window_show): Use
24123         gtk_window_compute_default_size(). Clear the need_resize flag
24124         on the initail map so that we don't unnecessarily trigger the
24125         resize code.
24126
24127         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
24128         into separate functions. Compare the hints we are setting
24129         with what we set last time so that we can accurately
24130         tell when we need to reset the hints.
24131
24132         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
24133         function to figure out the size from requisition
24134         and default_size.
24135
24136         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
24137         from fvwm to constrain a size to the geometry hints.
24138
24139         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
24140         to compare two sets of geometry hints.
24141
24142         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
24143         from gtk_window_set_hints(), just compute the hints,
24144         don't set them.
24145
24146         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
24147         code from gtk_window_move_resize() to separate function,
24148         rationalize a bit.
24149
24150 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
24151
24152         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
24153         structure into a new private structure.
24154
24155         * gtkrc.c: Split GtkRcStyle into public/private.
24156         In the private part, add a list of pointers to the
24157         RcStyle lists this RcStyle participates in.
24158
24159         * gtkrc.c: When a RcStyle is free, remove all
24160         lists referencing it from the 
24161         realized_style_ht hash, and free those lists.
24162         
24163         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
24164         gtk_rc_init(), since that adds the default styles
24165         to the list of parsed RC files again.
24166
24167         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
24168         
24169 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
24170
24171         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
24172         checks that ensure that a widget's allocation is at least 1 in width
24173         and height. (GNOME note: this doesn't affect old panel code anymore,
24174         because GtkSocket will request width and height of at least 1 since
24175         Fri Jul 23).
24176
24177         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
24178         allocated yet (happens if the user realizes the window prematurely),
24179         size request and allocate it.
24180         (gtk_window_size_allocate): guard against guint underflows.
24181
24182 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
24183
24184         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
24185         in gtk_built_sources, so gtk.defs gets built prior to all other
24186         sources.
24187
24188 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
24189
24190         * gtk/Makefile.am:
24191         invoke indent on gtkmarshal.*. 
24192         rewrote source generation rules, use COPYING as oldest source tag for
24193         a piggyback rule to generate all sources from (don't touch it ;).
24194         major cleanups, strip spaces on build rules for GNU Make.
24195
24196         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
24197         source and target files from commandline arguments. don't invoke indent.
24198
24199 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
24200
24201         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
24202         notebook after switch to avoid drawing problems.
24203         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
24204         
24205         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
24206         show them instead. 
24207         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
24208
24209 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
24210
24211         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
24212         notebook after switch to avoid drawing problems.
24213         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
24214         
24215         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
24216         show them instead. 
24217         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
24218
24219 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
24220
24221         * gtk/gtkwindow.c:
24222         we use window->need_resize from configure_event now, to indicate that
24223         the gtkwindow should keep its allocation (e.g. because the user resized
24224         the window through window manager handles). resize_count is now reliably
24225         used to figure whether we got the allocation we requested from the
24226         window manager.
24227         configure events get queued as resizes now, the real stuff (size
24228         computation and allocation) now only goes on in gtk_window_move_resize().
24229         GtkWindow's requisition now contains its *real* requisition (like all
24230         other widgets), *not* taking usize into account.
24231         geometry_info->last_{width|height} is now updated from set_hints() only
24232         so it always contains the last hints we set for the window manager.
24233         made some event handlers return TRUE instead of FALSE.
24234         the overall code should be much more straight forward now, and the
24235         significant code portions are accompanied by comments now.
24236         (gtk_window_set_hints):
24237         removed requisition argument and made it
24238         fetch the requisition through gtk_widget_get_child_requisition.
24239         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
24240         does that now.
24241         (gtk_window_show):
24242         ensure that the widget is realized before calling 
24243         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
24244         ensure that we got properly size requested and allocated before
24245         realization.
24246         (gtk_window_configure_event):
24247         ignore plain window moves, or reallocate the widget tree through the
24248         resize queue otherwise.
24249         (gtk_window_move_resize):
24250         mostly rewrote this function to figure window manager hints more
24251         reliably, coalesce window moves and resizes to reduce configure events
24252         and do actuall size allocations.
24253
24254 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
24255
24256         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
24257         that have a resize pending, because a redraw is already queued for them.
24258
24259         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
24260         hack to clear resize_widgets.
24261
24262         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
24263         for resize containers prior to size allocation. (this is also a bit
24264         ugly, but avoids side effects for stopped emissions and is thus more
24265         reliable).
24266         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
24267
24268         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
24269         function from gtk_tooltips_expose, as we connect to ::expose_event
24270         *and* ::draw now.
24271
24272 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
24273
24274         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
24275         checks.
24276         (gtk_target_list_unref): Likewise.
24277
24278         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
24279
24280 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
24281
24282         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
24283         guard against division by zero. (Fixes bug #1339)
24284
24285 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
24286
24287         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
24288         Prevent the trivial leak of information of allowing
24289         word motion when the entry is not visible.
24290
24291 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
24292
24293         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
24294         modality to error dialog as well as confirmation dialogs.
24295         (Bug #1803, reported by Rosanna Wing Sze Yuen)
24296
24297 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
24298
24299         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
24300         tree->view_lines.
24301         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
24302
24303         * gtk/Makefile.am (install-data-local): Solaris apparently
24304         has various troubles with ln -f; use rm first instead.
24305         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
24306
24307 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
24308
24309         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
24310         use `cp' followed by `rm' (the `rm' was already there).
24311
24312 July 30, 1999 Elliot Lee <sopwith@redhat.com>
24313         
24314         * configure.in: Fix autoconf warnings about cross compilation by
24315         trying to provide sane defaults for AC_TRY_RUN.
24316         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
24317         put them into $(srcdir) when generated. Also add a dependency of
24318         gtksignal.h on gtkmarshal.h for -j builds. 
24319         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
24320
24321 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
24322
24323         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
24324         GDK_THREADS_{LEAVE,ENTER} pair.
24325         (From Paul Fisher <pnfisher@redhat.com>)
24326
24327 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
24328
24329         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
24330         width and height are always >0 (owen).
24331
24332 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
24333
24334         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
24335         change that assured that a widget's allocated with and height are
24336         always >1, since this breaks *buggy* panel code. unfortunately this
24337         back-breaks the gimp's color selector.
24338
24339         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
24340         allocation is always >0 in width and height, before sending the
24341         configure event; this is a *gross* hack to get the gimp back to work.
24342         
24343         * marked both cases with TODO-1.3
24344
24345 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
24346
24347         * gtk/gtktext.c: Don't display wrap indicators when
24348         text is not editable and word wrap is on.
24349
24350 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
24351
24352         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
24353         option menus here as they are not derived from menu shell, assure that
24354         the option menu has a menu we can add items to.
24355
24356 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
24357
24358         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
24359         width/height to (gint) before calculations and check against < 0 to
24360         avoid guint wraparounds.
24361
24362 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
24363
24364         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
24365         width and height is never zero. sanity check both dimensions against
24366         32767 and issue a warning if the allocation is greater than that.
24367
24368 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
24369
24370         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
24371         to g_main_pending() as well.
24372
24373 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
24374
24375         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
24376         call to g_main_iteration() - since that will regrab
24377         GTK+ lock to process events.
24378
24379 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
24380
24381         * gtk/gtkwindow.c
24382         - Regularize with the rest of GTK+ by making widget->requisition
24383           not reflect the set_usize()
24384         - Always recompute geometry hints, then check if they
24385           changed before sending them to the X server. The
24386           previous checks for changes would fail in a number
24387           of circumstances. 
24388
24389 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
24390
24391         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
24392
24393 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
24394
24395         * gtk/gtkdnd.c:
24396         - Code cleanups
24397         - Instantaneously update on modifier key presses
24398         - Allow cancellation of the drag with Escape.
24399
24400 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
24401
24402         * gtk/testgtk.c (create_handle_box): Set the policy
24403         to auto_shrink - otherwise the appearance is rather
24404         strange when flipping between horizontal and vertical.
24405
24406 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
24407
24408         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
24409         (gtk_window_set_default_size): don't change a value if it's < 0.
24410         queue a resize.
24411
24412 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
24413
24414         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
24415
24416 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
24417
24418         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
24419         add an extra "/" when concating "/" + filename.
24420         (From Matt Grossman <mattg@oz.net>)
24421
24422 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
24423
24424         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
24425         for fg_gc if we set it for drawing pixmap.
24426
24427 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
24428
24429         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
24430         
24431         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
24432         already set, call old engine's destroy function and
24433         unref the old engine.
24434
24435 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
24436
24437         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
24438
24439 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
24440
24441         * gtk/gtkaccelgroup.h: mark certain functions as internal.
24442
24443 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
24444
24445         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
24446         expand behaviour changed.
24447
24448         * gtk/gtklabel.c (gtk_label_set_pattern):
24449         (gtk_label_set_justify):
24450         (gtk_label_set_line_wrap):
24451         don't bother invoking queue_clear, the reallocation does
24452         that for us, always free_words so the upcoming resize will
24453         relayout the label's contents.
24454
24455 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
24456
24457         * applied argument implementation patches from Elena Devdariani
24458         <elena@cogent.ca>.
24459
24460         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
24461         ::space_style, ::relief
24462         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
24463         * gtk/gtkpreview.c: ::expand
24464         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
24465         * gtk/gtknotebook.c: ::homogeneous
24466         * gtk/gtklabel.c: ::wrap
24467         * gtk/gtklist.c: ::selection_mode
24468         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
24469         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
24470         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
24471         * gtk/gtkclist.c: ::sort_type
24472         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
24473         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
24474
24475 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
24476
24477         * gtk/gtkstyle.c: Removed ill-thought-out part of last
24478         comment.
24479
24480 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
24481
24482         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
24483         counting right when we have to attach a new style
24484         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
24485
24486         * gtk/gtkstyle.c: Documented the refcounting
24487         peculularities of gtk_style_attach.
24488
24489 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
24490
24491         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
24492         window types.
24493
24494         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
24495         of GTK_TOPLEVEL for creating the window.
24496
24497 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
24498
24499         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
24500         the last argument (reported by Per Winkvist).
24501         
24502 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
24503
24504         Fixes for invisible XOR lines (Frank Loemker
24505         <floemker@TechFak.Uni-Bielefeld.DE>)
24506         
24507         * gtk/gtkclist.c (gtk_clist_realize): Always use
24508         a non-zero pixel for GDK_XOR.
24509
24510         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
24511         Use GDK_INVERT instead of GDK_XOR.
24512
24513 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
24514
24515         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
24516         signals if h/voffsets differ from adjustment values.
24517         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
24518
24519 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
24520
24521         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
24522         ::selection-done emissions up to the topmost menu shell.
24523
24524 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
24525
24526         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
24527         the user data on the window before destroying it.
24528
24529         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
24530         unrealize handler to take care of destroying 
24531         notebook->panel properly. 
24532         (Bug #1198 - Morten Welinder <terra@diku.dk>)
24533
24534         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
24535         of g_new and g_realloc to stop memory leak. (Actually,
24536         we could just use g_realloc(), but I'm not 100% sure
24537         that is portable).
24538         (Bug #1196 - Morten Welinder <terra@diku.dk>)
24539
24540 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
24541
24542         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
24543
24544         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
24545         for fontsets.
24546
24547         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
24548         with bin/button confusion.
24549
24550 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
24551
24552         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
24553         and show how preselection of radio items is done.
24554
24555 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
24556
24557         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
24558         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
24559         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
24560         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
24561         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
24562         * gtk/gtktable.c (gtk_table_attach): 
24563         * gtk/gtklist.c (gtk_list_insert_items): 
24564         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
24565         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
24566         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
24567         * gtk/gtkbin.c (gtk_bin_add): 
24568         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
24569         * gtk/gtkfixed.c (gtk_fixed_put): 
24570         * gtk/gtklayout.c (gtk_layout_put):
24571         general fixups to container_add logic. always realize child if
24572         child->parent is realized, only map the child and queue a resize
24573         if child and child->parent are both visible.
24574
24575 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
24576
24577         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
24578         instead of gtk_container_foreach to walk and unrealize children, so
24579         composite children get also unrealized.
24580         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
24581         (gtk_widget_map): assert that the widget is visible (basic constrain).
24582         (gtk_widget_real_map): assert that the widget is realized (basic
24583         constrain).
24584
24585 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
24586
24587         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
24588
24589 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
24590
24591         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
24592         file for iso-8859-2 locales.
24593
24594         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
24595
24596 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
24597
24598         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
24599          (Pointed out by andy@rz.uni-karlsruhe.de and others).
24600          Remove some suspicious and useless lines. 
24601
24602 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
24603
24604         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
24605         width,height = 0, 0 to mean - here to edge of window,
24606         instead of -1, -1, since the former is all we support.
24607
24608 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
24609
24610         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
24611         when removing from quit_functions list.
24612
24613 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
24614
24615         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
24616
24617 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
24618
24619         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
24620          When redrawing characters on non-visible entry, use appropriate
24621          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
24622
24623 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
24624
24625         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
24626         from drag coordinates.
24627         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
24628         use drag_dest_cell.
24629
24630         * gtk/gtktree (drag_dest_cell)
24631         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
24632         (Bug #1129)
24633
24634 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
24635
24636         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
24637         translate_* fields.
24638         (gtk_item_factory_finalize): invoke translate_notify independant from
24639         translate_data.
24640         (gtk_item_factory_set_translate_func): likewise.
24641         (gtk_item_factory_destroy): only remove ifactory pointer from those
24642         widgets that belong to us (stupid me).
24643
24644 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
24645
24646         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
24647         rc_style list when lookup succeeeds.
24648
24649 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
24650
24651         * gtk/gtkctree.c (resync_selection): 
24652         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
24653         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
24654         bug.
24655
24656 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
24657
24658         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
24659         Add some missing GDK_THREADS_ENTER()/LEAVE around
24660         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
24661
24662 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
24663
24664         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
24665         rather than emit_by_name.
24666
24667         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
24668         on the widget across multiple signal emissions.
24669         (gtk_editable_delete_text): same here.
24670         (gtk_editable_class_init): set widget_class->activate_signal after
24671         editable_signals[ACTIVATE] has been created.
24672
24673 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
24674
24675         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
24676         position here prematurely -- we might not have the
24677         right ->min_position and ->max_position yet.
24678
24679 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
24680
24681         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
24682         Add error traps so if the other end of the connection
24683         dies, we survive.
24684
24685         * gtk/gtkselection.c (gtk_selection_notify): Clean
24686         up properly when selection property retrieval fails.
24687         
24688         * gtk/gtkselection.c (gtk_selection_request): Correctly
24689         reject SelectionRequest notifies where the handler
24690         returns no data.
24691
24692 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24693
24694         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
24695         when we've previously highlighted.
24696
24697         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
24698         emit two "drag_leave" signals for Motif drops.
24699
24700         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
24701         back the correct status messages when dropping from
24702         Motif onto a proxy window that is rejecting the
24703         drop.
24704
24705 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
24706
24707         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
24708         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
24709         to compare two argument values. added gtk_arg_to_valueloc() to set a
24710         variable from an arg through its location (pointer).
24711
24712         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
24713         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
24714         as gfloat*, uchars are collected as guchar*, ints are collected as
24715         gint*, etc...
24716
24717 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
24718
24719         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
24720         Include <string.h> instead of <strings.h>.
24721
24722         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
24723         (actually, a lot more duplicate includes occur if
24724          you trace through the sequence of #include's)
24725         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
24726         
24727 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
24728
24729         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
24730         gtk-a-higuti-990322-[0-3]
24731
24732         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
24733         that was causing -DX_LOCALE not to work.
24734
24735         * gtk/gtkrc.c (gtk_rc_init):
24736         X_LOCALE will never have LC_MESSAGES defined
24737
24738 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
24739
24740         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
24741         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
24742
24743         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
24744         left/right as well (gtk-michael-980726-0.patch.gz).
24745
24746         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
24747         for pointer values, use gchar instead of char. fixed uline allocation
24748         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
24749         chunks instead of G_ALLOC_ONLY.
24750         (gtk_label_size_request): always alter requisition as passed and leave
24751         widget->requisition alone.
24752         (gtk_label_set_text): allow NULL strings.
24753         (gtk_label_new): likewise.
24754
24755 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
24756
24757         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
24758
24759 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
24760
24761         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
24762         *and* mapped (i.e. drawable).
24763         (gtk_bin_expose): only send exposes to drawable children.
24764
24765         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
24766         (gtk_box_expose): only send exposes to drawable children.
24767
24768         * gtk/gtkhscale.c (gtk_hscale_draw): 
24769         * gtk/gtkvscale.c (gtk_vscale_draw):
24770         hm, this is an ugly one. we first compute the size of our trough area
24771         here (window relative) and then check intersection with the draw_area
24772         which is parent relative because we're a NO_WINDOW widget, so we need
24773         to offset the trough area by allocation.x and allocation.y before the
24774         check. (this must not be done for the background area though, since
24775         that's already computed parent relative).
24776
24777 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
24778
24779         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
24780         unrealize title buttons.
24781
24782 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
24783
24784         * gtk/gtkclist.c (gtk_clist_column_title_passive)
24785         (gtk_clist_column_title_active): 
24786         only connect/disconnect to GtkWidgetClass::event to block mouse events.
24787
24788         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
24789         zero initialize event, removed superfluous gdk_window_get_pointer call
24790
24791         * gtk/gtklist.c (gtk_list_vertical_timeout)
24792         (gtk_list_horizontal_timeout): removed superfluous
24793         gdk_window_get_pointer call
24794
24795 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
24796
24797         * plugging problems reported by "Bruce Mitchener, Jr."
24798         <bruce@puremagic.com> due to a purify session.
24799
24800         * gtk/gtkstyle.c:
24801         (gtk_style_ref): 
24802         (gtk_style_unref): assert ref_count to be > 0.
24803
24804         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
24805         the requisition.
24806         (gtk_clist_set_shift): likewise.
24807
24808         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
24809         adjustments.
24810
24811         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
24812         event before sending it and set send_event to TRUE (which needs to
24813         be done for *all* synthesized events).
24814         (gtk_list_vertical_timeout): likewise.
24815
24816         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
24817         leaks.
24818
24819         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
24820         to TRUE when synthesizing events.
24821
24822 [ *** end of merges from 1.2 *** ]      
24823         
24824 1999-11-21  Tor Lillqvist  <tml@iki.fi>
24825
24826         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
24827         (or copied from gdkconfig.h.win32 on Win32, sigh).
24828
24829         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
24830
24831         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
24832
24833         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
24834
24835         * gdk/gdkconfig.h.win32: New file.
24836
24837         * gdk/win32/makefile.cygwin: Build just a static archive here.
24838
24839         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
24840         for the DLL from the static archive built above.
24841
24842         * gdk/gdk.def: Moved here from the win32 subdirectory.
24843
24844         * gdk/win32/*: Adapt for the changed private struct organisation.
24845
24846         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
24847
24848 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
24849
24850         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
24851         for wheel mice (buttons 4 and 5).
24852
24853 1999-11-18  Tor Lillqvist  <tml@iki.fi>
24854
24855         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
24856         drawables use just the pixel field in the foreground and
24857         background GdkColor of the GdkGC.
24858
24859         gdk_gc_set_{fore,back}ground() are called in the GIMP with
24860         GdkColors containing uninitialized (red,green,blue) fields, and
24861         just the pixel field filled in, and furthermore in the
24862         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
24863         It thus turns out that we really don't need to have the full
24864         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
24865         it later to have just the pixel values.
24866
24867 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
24868
24869         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
24870
24871 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
24872
24873         * docs/gtkfaq.sgml: threads example from Erik Mouw.
24874         New question on GtkLabel background colors.
24875
24876         * docs/gtk_tut.sgml:
24877           - Correct the example code callback
24878             function definitions.
24879           - Update the gtkdial example code, from Frans van Schaik.
24880           - Update setselection.c to current API.
24881
24882         * examples/Makefile examples/*/*.c: Update to code
24883         listed in tutorial.
24884
24885 1999-11-10  Tor Lillqvist  <tml@iki.fi>
24886
24887         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
24888         subrange table (from the "Developing International Software for
24889         WIndows 95 and Windows NT" book) was missing the Hangul syllable
24890         block... Get the loaded font's charset correctly.
24891
24892         (Note that this, and the other *-win32.c files, still really are
24893         the old ones, the win32 subdirectory is not ready for compilation
24894         yet after the reorg.)
24895
24896 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
24897
24898         * gtk/gtkclist.c: Fix off-by-one bug in parameter
24899         check.
24900
24901 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
24902
24903         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
24904         on results of XQueryDeviceState().
24905
24906 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
24907
24908         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
24909         we need to accesss only ->children. We need an accessor
24910         for the children.
24911
24912         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
24913         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
24914         to get rid of gdkx.h include.
24915         
24916         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
24917         and random references to 'None'.
24918
24919         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
24920         Get rid of unused #include <gdk/gdkx.h>
24921
24922         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
24923         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
24924         gdkconfig.h.
24925
24926 1999-11-08  Tor Lillqvist  <tml@iki.fi>
24927
24928         * gdk/win32/gdkdraw.c
24929         * gdk/win32/gdkfont.c
24930         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
24931         following yesterday's changes. (Unrelated to Owen's reorg.)
24932
24933 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
24934
24935         * gdk/x11/gdkinput-gxi.c: Add missing include,
24936           fix GdkWindowPrivate => GdkDrawablePrivate.
24937
24938         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
24939
24940         * gdk/x11/Makefile.am (xinput_sources): Add missing
24941         backslash to fix building with --with-xinput=none
24942
24943 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
24944
24945         Move all X specific code into the x11/ directory.
24946         Aside from shuffling things around, did the following:
24947
24948        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
24949          gdk_arg_context_* - a simple argument parsing system
24950          in the style of popt.
24951
24952        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
24953          gdk/x11/gdkprivate-x11.h:
24954          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
24955          add ->klass and ->klass_data fields. The klass_data
24956          field points to an auxilliary structure that is
24957          windowing system dependent.
24958
24959        * gdk/gdkfont.c: Make most of the measurement functions
24960          simply wrappers around gdk_text_extents().
24961
24962        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
24963          _gdk_font_strlen() function that hides the weird
24964          behavior in gtk+-1.[02] where a string is interpreted
24965          differently for 8-bit and 16-bit fonts.
24966
24967        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
24968          to store common code for synthesizing double/triple
24969          press events.
24970         
24971        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
24972          Make all the function that modify an existing GC
24973          simply wrappers around gdk_gc_set_values().
24974          
24975        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
24976          for throwing out later.
24977
24978        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
24979          GdkImagePrivate and GdkColormapPrivate to have a
24980          windowing system dependent part (GdkFontPrivateX etc.)
24981          that "derives" from the system-independent part.
24982
24983        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
24984          Got rid of the included-source-files for XInput in
24985          favor of automake conditionals. (Which didn't exist
24986          when XInput support was originally added.)
24987
24988        * gdk/gdkrgb.c: Remove the visual id from the debugging
24989          statements since that is X11 specific; print out
24990          type/depth info instead.
24991          
24992
24993 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
24994
24995         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
24996         loading duplicates of hashed fonts.
24997
24998         * gdk/gdk.c (gdk_keysym_convert_case): rename
24999         gdk_XConvertCase to gdk_keysym_convert_case, allow
25000         results to be NULL in the GTK+ style.
25001
25002         * gdk/gdkcompat.h: Started compatibility header
25003         for renames.
25004
25005 1999-11-07  Tor Lillqvist  <tml@iki.fi>
25006
25007         * gdk/win32/gdkprivate.h: New font private structures, related to
25008         fontsets.
25009
25010         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
25011         gdk_font_list_free(). On X11, will just be wrappers to
25012         XListFonts() and XFreeFontNames(). On Win32, the code previously
25013         in gtkfontsel.c is now here.
25014
25015         New function gdk_font_xlfd_create(). On X11 will get the FONT
25016         property of the font (for GDK_FONT_FONTs), or call
25017         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
25018         builds a XLFD style name from the font information in the LOGFONT
25019         struct(s).
25020
25021         New function gdk_font_xlfd_free(), which correspondingly frees the
25022         string returned by gdk_font_xlfd_create().
25023
25024         Implement fontsets on Win32. Add a function that iterates over a
25025         wide char string and calls a callback function for each substring
25026         of wide chars from the same Unicode subrange (and thus probably
25027         available in the same real font).
25028
25029         Improve the XLFD emulation a bit.
25030
25031         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
25032
25033         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
25034         Beta3, WM_IME_CHAR messages don't seem to contain the composed
25035         multi-byte char as with the Active IMM on Win9x. Oh well, handle
25036         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
25037         ImmGetCompositionStringW() to get the composed Unicode chars.
25038
25039         * gdk/win32/gdkgc.c
25040         * gdk/win32/gdkdraw.c: Changes needed because of the font private
25041         struct changes.
25042
25043         * gdk/win32/gdk.def: Add the new functions.
25044
25045 1999-11-04  Tor Lillqvist  <tml@iki.fi>
25046
25047         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
25048         get the Platform SDK to get <dimm.h>.
25049
25050         * gdk/win32/gdkevents.c: More event handling fixes and
25051         simplification. Never generate motion events with is_hint true. We
25052         used to do that on bogus grounds earlier. Windows sends
25053         WM_MOUSEMOVE messages on button events even if the mouse hasn't
25054         moved, ignore these.
25055
25056         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
25057
25058         * gdk/win32/gdkglobals.c
25059         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
25060         the TrackMouseEvent function, and use it.
25061
25062         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
25063         char before calling WideCharToMultiByte in order to get a string
25064         for the window title.
25065
25066         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
25067
25068         * gdk/win32/gdk.def: Remove obsolete functions.
25069
25070         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
25071         /nodefaultlib and /defaultlib switches.
25072
25073         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
25074
25075 1999-10-31  Tor Lillqvist  <tml@iki.fi>
25076
25077         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
25078         EuroSign).
25079
25080         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
25081         same type as GdkWChar, especially on Win32.
25082
25083         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
25084
25085         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
25086         before passing to Windows GDI for drawing etc. Convert to the
25087         system default codepage before passing to Windows as window
25088         titles.
25089
25090         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
25091         support changing input locale on the fly.
25092
25093         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
25094         on-the-fly changes. Convert incoming characters from the current
25095         codepage to Unicode (and then to a UTF-8 multi-byte string) based
25096         on the current input language. Use keysym<->Unicode mapping tables
25097         and functions borrowed from xterm sources.
25098
25099         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
25100         editions of Win9x, use the ActiveX-based Active IMM (Input Method
25101         Manager) if available. IMEs and the Active IMM are available under
25102         the disguise of Chinese, Korean and Japanese support for IE and
25103         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
25104         support is present in all editions (as long as you install it).
25105
25106         Call DispatchMessage from gdk_events_queue() (and thus
25107         gdk_WindowProc()), instead of duplicating the code in
25108         gdk_WindowProc().
25109
25110         Reworked the grab handling and propagation code, factored out
25111         duplicated code snippets into separate functions. Other cleanups,
25112         too.
25113
25114         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
25115         the <dimm.h> header describing the Active IMM.
25116
25117         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
25118         just do the same as for "single" fonts.
25119
25120         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
25121         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
25122         the new keysyms from gdkkeysyms.h.
25123
25124         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
25125         fontset, so that gtkentry uses wide characters.
25126
25127         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
25128         GTk+'s system directory "gtk+", not "gtk".
25129
25130 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
25131
25132         * docs/gtkfaq.sgml: FAQ update
25133
25134 1999-10-21  Tor Lillqvist  <tml@iki.fi>
25135
25136         * gdk/win32/gdkprivate.h: Add more font private data.
25137
25138         * gdk/win32/gdkfont.c
25139         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
25140         fonts and strings. Now works much better. You still have to
25141         have a correct font selected, though. No fontset emulation yet.
25142
25143 1999-10-19  Tor Lillqvist  <tml@iki.fi>
25144
25145         * gtk/maketypes.awk: Use G_OS_WIN32.
25146
25147         * gtk/gtk.def: Add some missing entry points. Also some non-public
25148         ones, but PyGTK porter claims to need them.
25149
25150         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
25151         built-in type generation.
25152
25153 1999-10-14  Tor Lillqvist  <tml@iki.fi>
25154
25155         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
25156         GDK_FONT_FONT fonts (which is all we have for now, we don't
25157         emulate fontsets). The X11 version uses plain XDrawString in that
25158         case, too. The string passed to gdk_draw_text_wc seems to be in
25159         fact (at least, when used by gtkentry and gtktext) either in a
25160         single-byte charset, or a DBCS. Not Unicode.
25161
25162         This fixes the problem in gtkfontsel, where even if you had
25163         selected a font with a non-Latin1 charset (windows-greek, for
25164         instance), the preview still used Latin-1 glyphs.
25165
25166         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
25167         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
25168         (gdk_font_load): Recognize the demibold etc weights, even if we
25169         don't have the corresponding constants in the headers.
25170         (gdk_font_hash_insert): Use same hash mechanism as in the X11
25171         version. Should save font resources a bit, when we don't have
25172         multiple HFONTs for the same font.
25173
25174         * gdk/win32/gdkprivate.h: Add the names field as in the X11
25175         version.
25176
25177 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
25178
25179         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
25180         X values
25181
25182 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
25183
25184         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
25185         layout support (as mentioned on
25186         http://www.jcinteractive.com/gnome-ui/software/widgets/)
25187
25188 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
25189
25190         * gtk/fnmatch.c
25191         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
25192
25193 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
25194
25195         * configure.in (ALL_LINGUAS): Added Galician (gl)
25196
25197 1999-10-05  Tor Lillqvist  <tml@iki.fi>
25198
25199         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
25200
25201         * gdk/win32/gdkcompat.c: New file, actually provide an
25202         implementation for the deprecated functions. (Just temporarily.)
25203
25204         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
25205
25206         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
25207
25208         * gdk/win32/gdk.def gtk/gtk.def: Updates.
25209
25210 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
25211
25212         * configure.in: Added "uk" to ALL_LINGUAS.
25213         
25214 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
25215
25216         * configure.in: correct checking for BeOS check
25217
25218         * gdk/gdktypes.h
25219         * gtk/fnmatch.c
25220         * gtk/gtkfilesel.c
25221         * gtk/gtkitemfactory.c
25222         * gtk/gtkmain.[ch]
25223         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
25224
25225 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
25226
25227         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
25228         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
25229         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
25230         by Bulgarian). 
25231
25232 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
25233
25234         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
25235         Fix a reference to window_private->destroyed.   
25236
25237         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
25238         (ugly) setting of an internal GdkWindow member to use
25239         a _slightly_ cleaner macro.
25240
25241         * gdk/gdkprivate.h: Split GdkWindowPrivate into
25242         GdkDrawablePrivate and GdkWindowPrivate.
25243         Add extra macros for accessing GDK_DRAWABLE_ components.
25244
25245         * *.[ch]: Massive adjustments for the above, use the
25246         new macros in a lot of places.
25247
25248 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
25249
25250         * gdk/gdktypes.h: Make GdkDrawable the base type,
25251         not GdkWindow.
25252
25253 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
25254
25255         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
25256
25257 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
25258
25259         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
25260
25261 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
25262
25263         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
25264         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
25265
25266         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
25267
25268         * docs/gtk-config.1: Now autogenerated.
25269         * docs/Changes-1.4.txt: started
25270         
25271 1999-10-03  Tor Lillqvist  <tml@iki.fi>
25272
25273         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
25274         to #ifdef also here.
25275
25276         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
25277         Owen did to the X11 backend.
25278
25279         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
25280         ScrollWindowEx when blitting inside a window, it can't be correct
25281         in the general case.
25282
25283         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
25284         WM_GETMINMAXINFO is easier.
25285
25286         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
25287         depth equal to the bitspixel value, not the visual's depth.
25288
25289         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
25290         to 24 even if the bitspixel value is 32.
25291
25292         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
25293         need to check for depth==32 when bpp==32, depth will always be 24.
25294
25295 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
25296
25297         * docs/Changes-1.4.txt: Started
25298         
25299         * gtk/Makefile.am (gdk_headers): Include all the new headers.
25300
25301         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
25302         
25303         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
25304         into C file.
25305         
25306         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
25307         header to gdkinputprivate.h.
25308
25309         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
25310         unused since before 1.2.
25311
25312 1999-09-30  Tor Lillqvist  <tml@iki.fi>
25313
25314         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
25315         expand possible hex escapes in the font family (put there by
25316         logfont_to_xlfd if the font name isn't a legal XLFD font family,
25317         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
25318         On Win32, add hex escapes here, too.
25319
25320 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
25321
25322         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
25323         to #ifdef GDK_WINDOWING_X11.
25324
25325 [ Merges from gtk-1-2 ]
25326
25327 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
25328
25329         * configure.in: fixed "GNU Make" check to pass with new make version
25330         3.77.95.
25331
25332 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
25333
25334         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
25335         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
25336         AM_PATH_GTK() macros don't get confused by the -pre1.
25337
25338 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
25339
25340         * configure.in (REBUILD): Change check for perl5
25341           to check explicitely for v >= 5.002. (5.001
25342           does not work with our scripts.)
25343
25344 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
25345
25346         * configure.in: evaluate $PERL for the perl version check. added
25347         --disable-rebuilds to give the user an option to completely disable
25348         any source autogeneration rules.
25349
25350 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
25351
25352         * configure.in: evaluate $ac_make when checking for GNU Make.
25353
25354 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
25355
25356         * docs/Makefile.am: added generation.txt.
25357
25358         * Makefile.am: require automake 1.4, build README from README.in and
25359         INSTALL from INSTALL.in in dist-hook.
25360         
25361         * README.in:
25362         * INSTALL.in: new files to autogenerate README and INSTALL from.
25363
25364         * configure.in: figure whether we have GNU Make
25365
25366         * docs/generation.txt: minor additions/corrections.
25367
25368 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
25369
25370         * docs/gtkfaq.sgml: FAQ Update
25371
25372 July 30, 1999 Elliot Lee <sopwith@redhat.com>
25373         
25374         * configure.in: Fix autoconf warnings about cross compilation by
25375         trying to provide sane defaults for AC_TRY_RUN.
25376
25377 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
25378
25379         * ltconfig
25380         * ltmain.sh: upgrade to libtool 1.3.3
25381
25382 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
25383
25384         * INSTALL: Indicate that the --with-glib= configure
25385         time flag is unsupported.
25386
25387 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
25388
25389         * docs/generation.txt: Added a file that gives
25390         documenation about the autogeneration process for
25391         various autogenerated files.
25392         
25393 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
25394
25395         * configure.in (LIBS): Look for libgmodule in the
25396         right location.
25397
25398 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
25399
25400         * docs/gtk_tut.sgml: Removed references to
25401         code examples in my directory on gtk.org as
25402         they should all be in the tutorial now.
25403
25404         * docs/gtk_tut.sgml: Added sources for dial-test
25405         and scribble-xinput programs that were previously
25406         missing.
25407
25408 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
25409
25410         * TODO: Added entry about menu keyboard navigation, removed
25411         some finished items.
25412
25413 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
25414
25415         * acinclude.m4: Standardize on func_dgettext
25416         not func_gettext, so that the checks for dgettext
25417         actually are paid attention to.
25418
25419 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
25420
25421         * configure.in (LIBS): Add $INTLLIBS into $LIBS
25422         directly, rather than repeating the checks for
25423         gettext.
25424
25425         * INSTALL: Added information about gettext and
25426         NLS support.
25427
25428         * acinclude.m4 (LIBM): Check for dgettext, not
25429         just gettext. This should hopefully fix things wrt
25430         systems with old versions of GNU gettext installed.
25431
25432 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
25433
25434         * configure.in (LIBS): Look for libgmodule in the
25435         right location.
25436
25437 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
25438
25439         * autogen.sh: add --enable-maintainer-mode
25440
25441         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
25442
25443 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
25444
25445         * docs/gtk-config.1.in:
25446           docs/Makefile.am:
25447           configure.in: gtk-config is now generated.
25448
25449         * docs/gtk-config.1: Removed, now generated.
25450
25451 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
25452
25453         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
25454         handle CreateNotify itself, still put out a debuging message for
25455         --gdk-debug=events. made the ReparentNotify debugging message more
25456         verbose.
25457         wrap xcoords translation for ConfigureEvents into an error trap,
25458         a destroy event may already be pending, and in that case, the
25459         actuall coordinate values are not at all critical.
25460
25461 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
25462
25463         * gdk/gdkcc.c: Stop leaking the color_hash all over
25464         the place. Simplify and improve the logic.
25465
25466 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
25467
25468         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
25469         for prototypes and function implementations consistent (reported
25470         by Tomas Ogren).
25471
25472 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
25473
25474         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
25475         send_event set in debugging output.
25476         (gdk_compress_exposures): default initialize the event so we don't
25477         operate on bogus values (namely send_event).
25478
25479 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
25480
25481         * gdk/gdkwindow.c: When we receive an unexpected
25482         destroy notify on one of our windows, don't just
25483         warn about it, also mark our windows as destroyed.
25484
25485 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
25486
25487         * gdk/gdkfont.c (gdk_font_hash_insert): Add
25488           name => font and name => fontset hashes. The 
25489           name => fontset hash is a _big_ win since we
25490           weren't previously caching fontsets at all and loading
25491           fontsets is expensive. The name => font hash
25492           is less of a win, but it does save us from doing
25493           repeated XQueryFont calls on the same font.
25494
25495         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
25496           list so we can remove font/fontset from hash.
25497
25498 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
25499
25500         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
25501           and slightly confusing test. [ XInternAtom (,,TRUE)
25502           will never return None ].
25503
25504 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
25505
25506         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
25507           gdk/gdkwindow.c (gdk_window_set_hints):
25508
25509         Don't omit setting the properties if flags == 0 -
25510         there may be an existing set of properties there
25511         already. (Very old bug. Would it be better to
25512         delete the property instead?)
25513
25514         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
25515           spelling error in comment.
25516
25517 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
25518
25519         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
25520           to avoid stomping over gdk_error_warnings.
25521
25522         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
25523           as (bits_per_pixel + 7) / 8. This gives the same
25524           result as before for multiples of 8, but actually
25525           a "reasonable" value for 1bit or 4bit displays.
25526
25527 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
25528
25529         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
25530         GNU Make.
25531
25532 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
25533
25534         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
25535         discarding configure events.
25536
25537 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
25538
25539         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
25540         refcount is greater than zero.
25541
25542         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
25543
25544         * gdk/gdkfont.c (gdk_font_unref): Likewise.
25545
25546         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
25547
25548         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
25549
25550 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
25551
25552         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
25553         that format 32 => sizeof(item) == 4. It really is
25554         sizeof(long).
25555
25556 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
25557
25558         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
25559         core dump at all on X IO errors, only core dump
25560         if --enable-debug for X errors.
25561
25562 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
25563
25564         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
25565         unknown window:" message. disabled ConfigureNotify discarding code,
25566         because it led to events being processed out of order.
25567
25568 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
25569
25570         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
25571
25572         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
25573         we export this function, supress error warnings and don't reset the
25574         error code in the first half of this function.
25575
25576         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
25577         code (instead of just -1) so gdk_error_trap_pop() reveals something
25578         actually informative about the error that happened.
25579
25580         * gdk/*.c:
25581         don't rely on gdk_error_code being -1 if an error occoured, but just
25582         gdk_error_code != 0.
25583
25584 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
25585
25586         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
25587         pointer *before* invoking the filter function, so we at least don't
25588         crash if a filter is removed that is currently executed. window filters
25589         *really* need to be made truely reentrant at some point.
25590
25591 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
25592
25593         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
25594         PropertyNotify debug messages.
25595
25596 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
25597         
25598         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
25599         
25600         * gdk/gdkim.c: Fix cut-and-paste errors for 
25601         x/y and PreeditAttributes/StatusAttributes.
25602
25603 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
25604
25605         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
25606         G_MAXINT to 2^16 to alleviate overflow problems in
25607         various window managers.
25608
25609 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
25610
25611         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
25612         for fontsets.
25613
25614 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
25615
25616         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
25617         Initialize size_hints.x and size_hints.y because kwm
25618         brokenly pays attention to them.
25619         (Bug #1181 -  Lars Heete <hel@admin.de>)
25620
25621 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
25622
25623         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
25624         return value of gdk_list_visuals(). 
25625         (Bug #1193 - Morten Welinder <terra@diku.dk>)
25626
25627 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
25628
25629         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
25630         XSetIMValues to (void *) when comparing to NULL, to workaround
25631         the problem of some compilers barfing since older X headers don't
25632         have the prototype for it.
25633
25634 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
25635
25636         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
25637         for pseudocolor where colormap->colors was double
25638         allocated.
25639
25640         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
25641         color value in the hash table with the pixel filled
25642         in so when we do later hash table lookups, the color
25643         value is correct.
25644         
25645 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
25646
25647         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
25648         making the call
25649
25650 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
25651
25652         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
25653         pointed out by Morten Welinder <terra@diku.dk>.
25654
25655 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25656
25657         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25658           default filter from the list
25659
25660 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25661
25662         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25663           default filter from the list
25664
25665 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
25666
25667         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
25668
25669         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
25670         g_strdup_printf instead of calcing the length separately
25671
25672 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
25673
25674         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
25675         that we don't do in many other places. (Fixing duplicate 
25676         #include of config.h)
25677
25678         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
25679         Otherwise, #ifndef XINPUT_NONE check in the latter
25680         doesn't work. (Bug #546)
25681
25682 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
25683
25684         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
25685         "None" case insensitive.
25686
25687 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
25688
25689         * gdk/gdkselection.c: 
25690         Add error traps so if the other end of the connection
25691         dies, we survive.
25692
25693 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
25694
25695         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
25696         dest_xid field into two fields - one for the window
25697         to send in messages, one to indicate the last looked
25698         up window for caching purposes. This is needed, so
25699         that Leave messages get the correct window.
25700
25701 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
25702
25703         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
25704         Fix warning created by people mucking around
25705         with the gsource API.
25706
25707         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
25708         Change mapping between GIOCondition and GdkInputCondition
25709         to match the way the Linux kernel does it. This should
25710         fix problems where closed pipes were no longer signalling
25711         GDK_INPUT_READ on systems with a native poll().
25712
25713 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
25714
25715         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
25716         explicitly for the string "None" - it is in the XPM
25717         spec and some servers treat unknown colors in odd ways
25718         (like asking the user!)
25719
25720 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
25721
25722         * gdk/gdkevents.c: made "->" into a "." of previous change so
25723         it compiles
25724
25725 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
25726
25727         * gdk/gdkevents.c (gdk_compress_exposures): Set the
25728         window field of the event structure before calling
25729         user filters.
25730
25731 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
25732
25733         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
25734         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
25735
25736 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
25737
25738         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
25739         intermediate text property - prevents major memory
25740         leak when gdk_use_mb.
25741         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
25742
25743 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
25744
25745         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
25746         gtk-a-higuti-990322-[0-3]
25747
25748         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
25749         sizeof(wchar_t) != sizeof (GdkWChar)
25750
25751         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
25752         that was causing -DX_LOCALE not to work.
25753
25754         * gtk/gtkrc.c (gtk_rc_init):
25755         X_LOCALE will never have LC_MESSAGES defined
25756
25757         * gdk/gdk.c (gdk_init_check):
25758         Remove --xim-preedit and --xim-status from argv properly.
25759
25760         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
25761         that the client window is present on the X server
25762         before we pass it to the input method.
25763
25764 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
25765
25766         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
25767         if --display is specified on the command line, than
25768         the drag window will not be created on that display.
25769         
25770 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
25771
25772         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
25773         lookups with only_if_exists == TRUE were inserting
25774         bogus values into the atom cache.
25775
25776 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
25777
25778         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
25779         then reset it to NULL.
25780
25781         * gdk/gdkcolor.c:
25782         (gdk_colors_free): 
25783         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
25784         key for g_hash_table_remove() in both functions, this prevents us
25785         from accessing possibly uninitialized portions of a GdkColor structure
25786         where we are only interested in its pixel value.
25787
25788 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
25789
25790         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25791         font hash table, if we have a GdkFontPrivate entry for this font
25792         already, simply increment its reference count, provided by Olaf Dietsche
25793         <olaf.dietsche+list.gtk@netcologne.de>.
25794
25795 1999-09-21  Tor Lillqvist  <tml@iki.fi>
25796
25797         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
25798         just to be sure.
25799
25800         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
25801         unused variables, leftovers from the X11 version.
25802
25803         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
25804
25805         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
25806         downcase fields on X11.
25807
25808 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
25809         
25810         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
25811         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
25812
25813 1999-09-17  Tor Lillqvist  <tml@iki.fi>
25814
25815         * gdk/win32/gdk.def: Add gdk_threads_mutex.
25816
25817         * gtk/makefile.msc: Correct path to libintl.
25818
25819         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
25820         use of gint vs. int, and gint vs. gboolean in headers and
25821         definitions. Use GtkType for the *_get_type functions. Note that
25822         these changes preserve binary compatibility.
25823
25824         * gdk/gdk.c
25825         * gdk/win32/gdk.c
25826         * gdk/gdk.h: Fix inconsistencies: gint vs int.
25827
25828         * gtk/gtkmain.c
25829         * gtk/gtkclist.c
25830         * gtk/gtkmenufactory.c
25831         * gtk/gtknotebook.c
25832         * gtk/gtkwidget.c: Fix inconsistencies, also gint
25833         vs. gboolean.
25834
25835         * gtk/gtkcolorsel.[ch]
25836         * gtk/gtkcombo.[ch]
25837         * gtk/gtkdrawingarea.[ch]
25838         * gtk/gtkgamma.[ch]
25839         * gtk/gtkhandlebox.[ch]
25840         * gtk/gtkhpaned.[ch]
25841         * gtk/gtkhruler.[ch]
25842         * gtk/gtkplug.[ch]
25843         * gtk/gtkpreview.[ch]
25844         * gtk/gtkruler.[ch]
25845         * gtk/gtksocket.[ch]
25846         * gtk/gtkstatusbar.[ch]
25847         * gtk/gtktoolbar.[ch]
25848         * gtk/gtkvbbox.[ch]
25849         * gtk/gtkvpaned.[ch]
25850         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
25851         functions.
25852
25853         * gtk/gtkgamma.h: Fix bug, missing () in call of
25854         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
25855
25856 1999-09-14  Tor Lillqvist  <tml@iki.fi>
25857
25858         * gdk/gdkcolor.c (gdk_colormap_new)
25859         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
25860         colormap->colors was allocated twice.
25861
25862         * gdk/win32/gdk.c: Remove some unused stuff.
25863
25864         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
25865         colormap.
25866
25867         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
25868         * gtk/gtklabel.h (gtk_label_get_type)
25869         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
25870         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
25871         in a couple of places, not guint.
25872
25873 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
25874
25875         * configure.in,po/et.po: added Estonian language file
25876
25877 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
25878
25879         * configure.in,po/da.po: added Danish file
25880
25881 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
25882
25883         * docs/gtkfaq.sgml: Minor FAQ Update
25884
25885 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
25886
25887         * docs/gtkfaq.sgml: FAQ update
25888
25889 1999-08-27  Tor Lillqvist  <tml@iki.fi>
25890
25891         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
25892         way to get window contents continually refreshed while resizing. I
25893         didn't like the effects myself, so it's not on by default.
25894
25895         * gdk/win32/gdkprivate.h: New flag variable
25896         gdk_event_func_from_window_proc, FALSE by default.
25897
25898         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
25899         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
25900         are passed --gdk-event-func-from-window-proc.
25901
25902         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
25903         and we have am event_func, call it instead of enqueing the event.
25904
25905 1999-08-23  Tor Lillqvist  <tml@iki.fi>
25906
25907         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
25908         Kelley: Set expose_count in GdkEventExposes correctly.
25909
25910         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
25911         MULTIPLE_WINDOW_CLASSES).
25912
25913         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
25914         for bug in NT, apparently NT *does* draw the end pixel, too, in
25915         LineTo with a one-pixel pen, so we don't have to do it ourselves.
25916
25917 1999-08-21  Tor Lillqvist  <tml@iki.fi>
25918
25919         Improvements by Hans Breuer: 
25920
25921         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
25922
25923         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
25924         CS_?REDRAW flags as they cause lots of (late) redraws when "show
25925         window contents while dragging" is turned on. Allocate at least
25926         one unique class for every GdkWindowType. If support for single
25927         window-specific icons is ever needed (eg. Dialog specific), every
25928         such window should get its own class.
25929
25930 1999-08-19  Tor Lillqvist  <tml@iki.fi>
25931
25932         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
25933         error that caused crashes.
25934
25935 1999-08-17  Tor Lillqvist  <tml@iki.fi>
25936
25937         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
25938         window, use ScrollWindowEx, and call UpdateWindow. This prevents
25939         bugs when for instance part of the window was outside the
25940         display. Thanks to Philippe Colantoni for finding and fixing this.
25941
25942 1999-08-16  Tor Lillqvist  <tml@iki.fi>
25943
25944         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
25945         endpoint calculations which were totally wrong. (A little RTFMing
25946         helps a lot ;-)
25947
25948         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
25949         from a separate directory, not from gettext, because of licensing
25950         issues (we want to use the LGPL version).
25951
25952         * README.win32: Mention the intl from glibc vs from gettext issue.
25953
25954 1999-08-13  Tor Lillqvist  <tml@iki.fi>
25955
25956         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
25957         in the key event handling: Now AltGr chars work again. Also,
25958         now Alt-digits are passed up as well as Control-digits.
25959         Pass keypad plus and minus as normal plus and minus.
25960
25961 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
25962
25963         * docs/gtkfaq.sgml: FAQ Update
25964
25965 1999-07-25  Tor Lillqvist  <tml@iki.fi>
25966
25967         * README.win32
25968         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
25969         the Wintab SDK.
25970
25971         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
25972         OK, but getting closer. Guard against bogus tilt data from Wacom
25973         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
25974         enable easier building without Wintab.
25975
25976         * gdk/win32/gdkinput.h
25977         * gdk/win32/gdkevents.c 
25978         * gdk/win32/gdkwindow.c: Minor changes related related to above.
25979         
25980         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
25981         code. As we have just one visual on Win32, no sense to have it in a
25982         table, and no need for the hash table.
25983
25984         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
25985         better on white background.
25986
25987 1999-07-21  Tor Lillqvist  <tml@iki.fi>
25988
25989         * README.win32: Update gcc build instructions. Mention gettext is
25990         GPL.
25991
25992         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
25993         supported cursor size with GetSystemMetrics.
25994
25995         * gdk/win32/gdkfont.c
25996         * gtk/gtkfontsel.c: Guard against some font weight and charset
25997         symbols being undefined (in mingw32 headers).
25998
25999         * gdk/win32/makefile.cygwin
26000         * gtk/makefile.cygwin
26001         * gtk/gtkthemes.c: No longer need to have differently named
26002         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
26003
26004 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
26005
26006         * docs/gtkfaq.sgml: Long awaited FAQ update.
26007
26008 1999-07-15  Tor Lillqvist  <tml@iki.fi>
26009
26010         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
26011         it. Obscure bit manipulation needed.
26012
26013         * gdk/win32/gdkevents.c: Logging.
26014         
26015         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
26016         style (file name include compiler name) for theme engines.
26017
26018 1999-07-13  Tor Lillqvist  <tml@iki.fi>
26019
26020         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
26021
26022         * gdk/win32/gdkevents.c: Fix long-standing bug in key
26023         events. The key.string wasn't zero-terminated, still we strdup'ed
26024         it in gdk_event_copy(). Synthesize crossing events for button
26025         events before possible propagation.
26026
26027         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
26028
26029         * gdk/win32/makefile.cygwin
26030         * gtk/makefile.cygwin: Use new DLL naming style for the
26031         GCC-compiled ones.
26032
26033         * gdk/win32/makefile.msc
26034         * gtk/makefile.msc: Cosmetics mostly.
26035
26036         * gtk/gtk.def: Add missing entry points.
26037
26038         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
26039
26040 1999-07-09  Tor Lillqvist  <tml@iki.fi>
26041
26042         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
26043         or height is zero. Don't print a warning if Pie or Arc fails, they
26044         always fail (?) for very narrow ellipses.
26045
26046         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
26047         the part or the destination window corresponding to source area
26048         outside of the source drawable's boundary.
26049
26050         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
26051         anything if less than two points.
26052
26053         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
26054         return NULL. Gtk cut-and-paste inside a single program works
26055         better this way. (It always gets the clipboard contents from
26056         Windows, not from its own copy, which is cleared anyway. I can't
26057         say I fully understand what happens... Emulating the X selection
26058         and property stuff is a bit of a mess.)
26059
26060         * gdk/win32/gdkevents.c
26061         * gdk/win32/gdkproperty.c: A bit more verbose logging.
26062
26063         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
26064         that never got deleted). Revamp gdk_region_shrink.
26065
26066         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
26067         after use.
26068
26069         * gtk/gtk.def: Add some missing entry points.
26070
26071         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
26072         component.
26073
26074 1999-07-04  Tor Lillqvist  <tml@iki.fi>
26075
26076         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
26077         Control-digits specially.
26078
26079 1999-07-03  Tor Lillqvist  <tml@iki.fi>
26080
26081         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
26082
26083 1999-06-28  Tor Lillqvist  <tml@iki.fi>
26084
26085         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
26086         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
26087         finding this.)
26088
26089 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
26090
26091         * gtk+.spec.in: Corrected some typos in files section.
26092         
26093 1999-06-15  Tor Lillqvist  <tml@iki.fi>
26094
26095         * README.win32: Mention using GNU gettext.
26096         * config.h.win32: Enable NLS stuff.
26097         * gtk/makefile.msc: Use GNU gettext.
26098         * gdk/win32/gdkdnd.c: Minor header reorg.
26099         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
26100         cosmetics.
26101         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
26102         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
26103
26104 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
26105
26106         * acinclude.m4
26107         * config.guess
26108         * config.status
26109         * ltconfig
26110         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
26111
26112 1999-05-30  Tor Lillqvist  <tml@iki.fi>
26113
26114         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
26115         SafeAdjustWindowRectEx. Don't override all calls to
26116         AdjustWindowRectEx by it, but use it only in two places: When
26117         creating a new top-level window and when moving a top-level
26118         window.
26119
26120         Use screen coordinate rectangle, not client rectangle, in
26121         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
26122         when we try to place a window so that the decoration (mainly,
26123         title bar) isn't visible.
26124
26125         These changes fix the bug that showed up for instance as the
26126         GIMP's saved top-level windows moving right and down (by an amount
26127         equal to the window decoration) for each session. This bug showed
26128         up also in testgtk's "Saved Position".
26129
26130         gdk_window_resize also redone a bit.
26131
26132 1999-05-25  Tor Lillqvist  <tml@iki.fi>
26133
26134         * gtk/testgtkrc: Add (commented out) Windows-style theme
26135         include line.
26136
26137         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
26138
26139 1999-05-18  Tor Lillqvist  <tml@iki.fi>
26140
26141         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
26142         gdkx.h to a gdk subdirectory, so that applications can include
26143         these with <gdk/*.h> without trouble.
26144
26145         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
26146         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
26147         have their bitmap destroyed.
26148
26149         * gdk/win32/gdk.def: Add gdk_root_parent.
26150
26151 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
26152
26153         * configure.in
26154           gtk-config.in
26155           ltconfig
26156           ltmain.sh     
26157           gtk/Makefile.am: changes to compile nicely (with xlib) 
26158           on BeOS
26159
26160 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
26161
26162         * acinclude.m4
26163         * config.guess
26164         * config.sub
26165         * ltconfig
26166         * ltmain.sh: upgrade to libtool 1.3
26167
26168 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
26169
26170         * gtk/gtkclist.c:
26171         * gtk/gtkctree.c: merges from gtk-1-2
26172
26173 1999-04-25  Tor Lillqvist  <tml@iki.fi>
26174
26175         Support added for building using a GNU toolchain on Win32,
26176         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
26177
26178         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
26179         * config.h.win32: Changes for gcc.
26180         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
26181         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
26182         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
26183         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
26184         Protect shl stuff unavaiilable with mingw32 headers.
26185         * gdk/win32/gdkevents.c: Fix typo.
26186         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
26187         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
26188         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
26189         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
26190         the mingw32 headers.
26191         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
26192         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
26193         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
26194         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
26195         Test for NATIVE_WIN32, not _MSC_VER.
26196         * gtk/gtkmain.c: No use warning about developer version on Win32,
26197         there aren't any non-developer versions anyhow.
26198         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
26199         * gtk/makefile.msc: Use pthread from another directory. Minor other
26200         changes. 
26201
26202 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
26203
26204         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
26205           default filter from the list
26206
26207 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
26208
26209         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
26210          when gtk_widget_grab_default() is called for a widget that
26211          is not within a GtkWindow.
26212
26213 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
26214
26215         * docs/gtk_tut.sgml, examples/clist.c: use a
26216           scrolled window in the clist example. Minor
26217           tutorial fixes.
26218
26219 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
26220
26221         * docs/gtk_tut.sgml: Style check from David King
26222           <dking@youvegotmail.net>
26223
26224 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
26225
26226         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
26227         compile with unknown value of GDK_WINDOWING
26228
26229 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
26230
26231         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
26232         after the rule is fired.
26233         (install-exec-local): Install gdkconfig.h only if the contents are
26234         different from the currently installed gdkconfig.h.
26235
26236 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
26237
26238         * gdk/Makefile.am (configexecincludedir): Rename from 
26239         configincludedir so that gdkconfig.h will be installed 
26240         as part of `make install-exec'. 
26241
26242 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
26243
26244         * acinclude.m4
26245         * config.guess
26246         * config.sub
26247         * ltconfig
26248         * ltmain.sh: upgrade to libtool 1.2f
26249
26250         * autogen.sh: libtool is not required to autogen gtk+
26251
26252         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
26253         needed)
26254
26255 1999-03-18  Tor Lillqvist  <tml@iki.fi>
26256
26257         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
26258         declaring gdk variables exported/imported from the DLL. New image
26259         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
26260         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
26261         GDK_DRAG_PROTO_OLE2.
26262
26263         * gdk/gdk.h: Merge in Win32 version: Two new functions,
26264         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
26265         declared only for the Win32 version, but could be in the X11
26266         version as well. (Needed for a Xlib-less gdk_imlib.)
26267         gdk_color_hash should have only one parameter. Declare
26268         gdk_threads_mutex with GDKVAR.
26269         
26270         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
26271         just one parameter.
26272
26273         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
26274         per pixel, not bits.
26275
26276         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
26277         Fetch bpp (which means bits-per-pixel here) from another place on
26278         Win32. Accept also depth==32 (which we might get on Win32) with
26279         bpp==32.
26280
26281         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
26282         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
26283         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
26284         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
26285         in the backend-dependent directory, not in the common gdk
26286         directory.
26287
26288         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
26289         headers.
26290
26291 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
26292
26293         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
26294         want to use the Gtk+ devel version (which is true, and yes - even i am
26295         currently working with the 1.2.x branch). so everyone reading this, you
26296         probably want to issue
26297         cvs checkout -r glib-1-2 glib
26298         and
26299         cvs checkout -r gtk-1-2 gtk+
26300         as your next two comands.
26301
26302 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
26303
26304         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
26305         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
26306
26307         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
26308         file. strongly deprecated the GTK_HAVE_* macros, we provide
26309         GTK_CHECK_VERSION() for people that need to check for certain
26310         Gtk+ versions.
26311
26312         * gtk/gtkcompat.h: removed this from CVS.
26313         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
26314         idea right from the start, it just didn't seem like that back then.
26315
26316 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
26317
26318         * merges from gtk-1-2:
26319
26320 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
26321
26322         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
26323         item factory class has been created.
26324         (gtk_item_factory_parse_rc): likewise.
26325
26326         * gtk/gtkmenu.c:
26327         keep proper references for old_active_menu_item.
26328         (gtk_menu_reparent): unset the usize of the new parent,
26329         so the menu can sanely be size requested and we don't get nasty screen
26330         artefacts upon next reparentation.
26331         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
26332         enter notify. only synthesize enter notifies if the pointer really is
26333         inside the event window.
26334         (gtk_menu_popdown): use gtk_menu_shell_deselect().
26335         (gtk_menu_popup): move the background setting stuff into
26336         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
26337
26338         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
26339         gtk_menu_shell_select_item() to select the new item.
26340         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
26341         do the right thing for deselection as well.
26342
26343 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
26344
26345         * gtk/gtkwidget.[hc]:
26346         (gtk_widget_accelerators_locked): return whether a widget's accelerators
26347         are locked.
26348
26349         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
26350         existing accelerators if the widget's accelerators are locked.
26351
26352 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
26353
26354         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
26355
26356         * gtk/gtkmenu.c: truely forward key press and key release events to
26357         the menu widget from the toplevel or tearoff window. we can't simply
26358         connect to that, we need to stop further processing of the events as
26359         well.
26360
26361 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
26362
26363         * gtk/gtkmenu.c:
26364         (gtk_menu_key_press): pass event->keyval, event->state to
26365         gtk_accelerator_valid, instead of event->keyval twice.
26366         refuse to install single letter accelerators for menus that use
26367         single letter shortcuts.
26368
26369         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
26370         gtk_menu_ensure_uline_accel_group().
26371
26372         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
26373         which will always return an uline accel group, made
26374         gtk_menu_get_uline_accel_group() return NULL if the group isn't
26375         yet created.
26376
26377 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
26378
26379         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
26380
26381         * gtk/gtkclist.c (gtk_clist_column_title_passive):
26382         Leave button sensitive, trap  button_press, button_release,
26383         motion_notify, enter_notify and leave_notify events instead.
26384         (gtk_clist_column_title_active): disconnect event handler.
26385         (gtk_clist_drag_data_get): fixed memory leak. Reported by
26386         Guillaume Laurent <glaurent@worldnet.fr>
26387
26388 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
26389
26390         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
26391         width/height mixups.
26392
26393         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
26394         if needed.
26395
26396 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
26397
26398         * gtk/testgtk.c (create_item_factory): unref the item factory after
26399         window's destruction.
26400
26401         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
26402         count on the menu shell around the menu item's activation, since the
26403         signal emission may cause menu shell destruction.
26404
26405         * gtk/gtkitemfactory.c:
26406         the previous code leaked one accel group per menu. we use
26407         gtk_menu_get_uline_accel_group() now to fix that, and with that
26408         also create the underline accelerator group of the menus only if
26409         required (i.e. an underline accelerator has been specified).
26410         (gtk_item_factory_construct):
26411         (gtk_item_factory_create_item): removed code that would create an
26412         extra accel group for the menu (and leak references).
26413         (gtk_item_factory_create_item): adapted the underline accelerator
26414         installation code to properly feature gtk_menu_get_uline_accel_group().
26415
26416         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
26417         menu->accel_group, this may return NULL if the accelerator group
26418         hasn't been set yet.
26419         added gtk_menu_get_uline_accel_group() to retrive the underline
26420         accelerator group of the menu, this will be created on demand
26421         and proper care is taken about its reference count.
26422
26423         * gtk/gtkitemfactory.h:
26424         * gtk/gtkitemfactory.c:
26425         dumped the approach of keeping a widgets by action list on the
26426         factory since the factory<->widget destroy negotiation didn't work
26427         and would be hard to get going at all. instead we keep a list of
26428         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
26429         persistant throughout a program's life time).
26430         also, i removed the static const gchar *key_* variables, and made
26431         them inline strings (they weren't actually used anyways).
26432         (gtk_item_factory_add_item): update ifactory->items.
26433         (gtk_item_factory_destroy): destroy ifactory->items (and remove
26434         the item factory pointer from the remaining ifactory widgets).
26435         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
26436         list to find the widget.
26437         (gtk_item_factory_get_item): new function that works around
26438         gtk_item_factory_get_widget() limitations, this function will only
26439         return menu items, even for <Branch> entries.
26440
26441 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
26442
26443         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
26444         font hash table, if we have a GdkFontPrivate entry for this font
26445         already, simply increment its reference count, provided by Olaf Dietsche
26446         <olaf.dietsche+list.gtk@netcologne.de>.
26447
26448         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
26449         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
26450
26451 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
26452
26453         * gtk/gtkcontainer.c:
26454         (gtk_container_add_with_args):
26455         (gtk_container_addv):
26456         (gtk_container_add): before adding a child to a conatiner, make sure
26457         it is (default) constructed, this is neccessary because under certain
26458         circumstances the child will get relized and mapped immediatedly, in
26459         which case it has to be constructed already.
26460
26461 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
26462
26463         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
26464         values > 1 as TRUE also.
26465
26466 1999-03-16  Tor Lillqvist  <tml@iki.fi>
26467
26468         * README.win32: New file.
26469                 
26470         * configure.in: Check for lstat.
26471
26472         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
26473         completeness.
26474
26475         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
26476
26477         * gtk/gtk.def: Removed CRs.
26478
26479         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
26480         ..\gdk\win32).
26481
26482         * gdk/win32/makefile.msc: Correct upwards relative paths.
26483         
26484 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
26485
26486         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
26487           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
26488           it was connecting a void function to expose_event and the int
26489           returning function to the draw signal
26490
26491 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
26492
26493         * configure.in:
26494         Use correct path to libgmodule.la when ref'ing uninstalled copy
26495         of glib.  (Already in stable branch, Bug #417)
26496
26497 1999-03-15  Tor Lillqvist  <tml@iki.fi>
26498
26499         Win32 merge and general portability stuff:
26500                 
26501         * acconfig.h,configure.in: Check for <sys/time.h>.
26502
26503         * gdk/win32: New directory (actually, been there for a while).
26504         
26505         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
26506         NATIVE_WIN32, and use these. Always case fold on Win32. No
26507         backslashed escapes on native Win32.
26508
26509         * gtk/{gtk.def,makefile.msc}: New files.
26510
26511         * gtk/Makefile.am: Add above new files.
26512         
26513         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
26514         instead of <strings.h>.
26515
26516         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
26517         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
26518         <unistd.h> appropriately.
26519
26520         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
26521         Use ABS() (from <glib.h>) instead of abs().
26522         
26523         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
26524         of gtk (and thus glib) headers, so that WIN32 will be
26525         defined. With MS C, include <direct.h> for mkdir prototype.
26526
26527         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
26528         some casts, needed by MS C.
26529
26530         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
26531         implemented).
26532
26533         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
26534         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
26535         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
26536
26537         * gtk/gtkmain.h: Mark variables for export/import on Win32.
26538                 
26539         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
26540         the event is not a hint, or its window is not the slider. Needed
26541         on Win32, at least.
26542
26543         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
26544         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
26545         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
26546         a subdirectory of the Windows directory as gtk system
26547         configuration directory.
26548
26549         * gtk/gtkselection.c: No chunks on Win32.
26550
26551         * gtk/gtksocket.c: Not implemented on Win32.
26552
26553         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
26554
26555         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
26556
26557         * gtk/maketypes.awk: Declare variables with a macro that expands to
26558         necessary export/import magic in the case of Win32.
26559                 
26560         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
26561
26562 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
26563
26564         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
26565         since those were meant only for gdki18n.h.  
26566         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
26567         for widechar tests.
26568         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
26569
26570 1999-03-13  Tor Lillqvist  <tml@iki.fi>
26571
26572         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
26573         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
26574
26575         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
26576         installed) to CFLAGS.
26577
26578         * gdk/Makefile.am: Add rules for gdkconfig.h.
26579
26580         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
26581         APIs.
26582
26583         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
26584         gdkx.h anyway when compiling for X11.
26585         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
26586         general): Merge in Win32 version.
26587         
26588         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
26589         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
26590         expansion (if we don't have HAVE_PWD_H), allow for drive
26591         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
26592         included code from Craig Setera's port to Win32 (the one that uses
26593         X11, and the cygwin dll), even if it probably will be abandoned.
26594
26595         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
26596         the user entered one herself.  This way one can complete *.h and
26597         don't get matches on any .help files, for instance.
26598         
26599 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
26600
26601         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
26602         font hash table, if we have a GdkFontPrivate entry for this font
26603         already, simply increment its reference count, provided by Olaf Dietsche
26604         <olaf.dietsche+list.gtk@netcologne.de>.
26605
26606         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
26607         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
26608
26609 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
26610
26611         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
26612         the number of calls to gdk_draw_point() (and thus to X) by
26613         clipping the points by hand.
26614
26615         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
26616         the clip parameter.
26617         (gtk_handle_box_paint): Only paint the handle if the expose area
26618         intersects it.
26619
26620 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
26621
26622         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
26623
26624 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
26625
26626         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
26627         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
26628
26629 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
26630
26631         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
26632          textmode (O_TEXT) for OS/2 version.
26633
26634 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
26635
26636         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
26637         GtkSpinButton, "input" and "output", to make the output more flexible.
26638         The user has to provide a mapping between adjustment->value and the
26639         output string (and vice versa, if the spin button is editable). 
26640         See testgtk for examples.
26641
26642 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
26643
26644         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
26645         new one.
26646         
26647         * configure.in: set gtk+ version to 1.3.0.
26648
26649         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,