]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
emit row_deleted before we start unreffing the nodes ourselves
[~andy/gtk] / ChangeLog.pre-2-4
1 Tue Feb 12 14:27:41 2002  Kristian Rietveld  <kris@gtk.org>
2
3         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
4         row_deleted before we start unreffing the nodes ourselves
5         (gtk_tree_model_sort_increment_stamp): always increment the stamp,
6         and not only if the stamp equals 0 (pointed out by Darin Adler)
7
8         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): we want
9         to continue the while loop and not the nested for loop.
10
11 Tue Feb 12 02:19:49 2002  Tim Janik  <timj@gtk.org>
12
13         * gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
14         the extra space allocated for the homogeneous case, as we don't
15         properly deal with readjusting table allocation within it. (for  this
16         purpose, a GtkAlignment can be used as table parent).
17
18 2002-02-11  Darin Adler  <darin@bentspoon.com>
19
20         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
21         Consider reordering the row even when there's no sort column, if
22         there's a default sort function.
23         (gtk_tree_model_sort_rows_reordered): Use symbolic constants.
24         (gtk_tree_model_sort_level_find_insert): Add code to handle the
25         case where there is no sort column, but a default sort function.
26         (gtk_tree_model_sort_insert_value): Add code to handle the case
27         where there is no sort column an no default sort function.
28         (gtk_tree_model_sort_set_model): Use symbolic constant.
29         (gtk_tree_model_sort_reset_default_sort_func): Use symbolic constant.
30
31 2002-02-11  Sven Neumann  <sven@gimp.org>
32
33         * gtk/gtkfilesel.c: converted the "Delete File" dialog to
34         GtkMessageDialog. Marked missing strings for translation.
35
36 Mon Feb 11 22:03:15 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
37
38         * gtk/gtkpaned.[ch]: Opaque resizing + prelighting for paned widget.
39         * gtk/gtkvpaned.c, gtk/gtkhpaned.c: move reszing logic to gtkpaned.c
40
41 Mon Feb 11 21:42:17 2002  Kristian Rietveld  <kris@gtk.org>
42
43         Implements DnD scrolling and fixes #71139
44
45         * gtk/gtktreeview.c (gtk_tree_view_vertical_autoscroll): new function,
46         (scroll_row_timeout): new function,
47         (gtk_tree_view_drag_motion): create scroll_timeout, so
48         scroll_row_timeout gets called
49
50 Mon Feb 11 17:54:46 2002  Kristian Rietveld  <kris@gtk.org>
51
52         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
53         member of hadjustment correct, so the hscrollbars of lists smaller
54         than 1 page (in width) are somewhat saner
55
56 2002-02-11  jacob berkman  <jacob@ximian.com>
57
58         * gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to
59         match implementation
60
61 Mon Feb 11 16:48:34 2002  Kristian Rietveld  <kris@gtk.org>
62
63         * gtk/gtkliststore.c (gtk_list_store_set_valist): set value of
64         func to NULL during initialization (we don't use func in the
65         !SORTED case, so we just silent the compiler here) (#71029)
66
67 Mon Feb 11 16:40:44 2002  Kristian Rietveld  <kris@gtk.org>
68
69         * gtk/gtktreeview.c (gtk_tree_view_set_model): install presize
70         handler, so the validate_rows_handler will always be run (#70997)
71
72 Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
73
74         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
75         value of new_location by one if cmp_a > 0 and we hit the end of
76         the list and pass NULL instead of a 'NULL-iter' with
77         _rows_reordered (#71060)
78
79 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
80
81         * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
82         imti-et.c} po/POTFILES.in: Add three Ethiopic input methods from
83         Daniel Yacob.
84
85 2002-02-10  Anders Carlsson  <andersca@gnu.org>
86
87         * gtk/gtkcalendar.c (gtk_calendar_class_init): Set finalize handler;
88         (gtk_calendar_finalize): Rename gtk_calendar_destroy to 
89         gtk_calendar_finalize since ::destroy can be called multiple times, 
90         resulting in double-freeing memory.
91
92 2002-02-10  Hans Breuer  <hans@breuer.org>
93
94         * gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
95         rect size by the scroll amount
96
97         * gdk/win32/gdkwindow-win32.c
98         * gdk/win32/gdkselection-win32.c : added some casts to
99         make it compile with msvc's strict type checking
100
101         * gtk/fnmatch.c : #include <ctype.h> again for tolower
102         prototype. The fnmatch() code assumes to be in the crt 
103         locale though it is feeded by utf8 strings from gtkfilesel.c
104
105         * gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
106         _CompletionDir instead of referencing already freed memory
107
108         * gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
109         gtk_rc_parse_string (theDefaultTooltipColor) once as it
110         was intended
111
112         * tests/makefile.msc : added more tests
113
114         * tests/testgtk.c (create_list) : don't try to load gtkenums.h
115         from the current directory use ../gtk/gtkenums.h instead
116
117 2002-02-10  Kjartan Maraas  <kmaraas@gnome.org>
118
119         * gtk/gtksizegroup.c: Fix a double «The» typo in a string.
120         
121 2002-02-09  Matthias Clasen  <matthias@local>
122
123         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Avoid segfault
124         for selectable tab labels (even without a segfault, they make the
125         notebook almost unusable, though).  (#69985)
126
127 2002-02-08  Matthias Clasen  <matthias@local>
128
129         * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Silently do 
130         nothing if the parent is not a menu.  (#66492)
131
132 2002-02-06  Matthias Clasen  <matthiasc@poet.de>
133
134         * gtk/gtkitemfactory.c (gtk_item_factory_from_widget,
135         gtk_item_factory_path_from_widget): Try fetching the return value 
136         from menu_item->submenu as a fallback.  (#69020)
137         
138 Sat Feb  9 22:57:43 2002  Kristian Rietveld  <kris@gtk.org>
139
140         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): convert
141         the iter to a child iter again, after doing _iter_children. It's
142         possible that _iter_children added some rows and updated the stamp.
143
144 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
145
146         * gtk/gtktextchild.c: Use == rather than = in sanity
147         checks.  Ouch!
148
149 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
150
151         * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
152         curled braces so that it doesn't always return.  Also indent
153         both CHECK_IN_BUFFER* macros properly, and make use of
154         G_STMT_START/G_STMT_END.
155
156 Sat Feb  9 13:27:14 2002  Owen Taylor  <otaylor@redhat.com>
157
158         * gtk/gtkbindings.h: Add prototype for
159         _gtk_binding_reset_parsed().
160
161 Sat Feb  9 13:19:20 2002  Owen Taylor  <otaylor@redhat.com>
162
163         * configure.in gtk/Makefile.am gtk/theme-bits/*: Add
164         tools and images used for creating the check/radio
165         button images in the default theme.
166
167 Sat Feb  9 13:58:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
168
169         * gtk/gtkpaned.[ch]: Keyboard navigation for GtkPaned
170         F6: cycle between panes.
171         F8: focus handle (#53584)
172         
173         * tests/testgtk.c: Add test cases for GtkPaned keyboard 
174         navigation.
175         
176 Sat Feb  9 00:16:31 2002  Owen Taylor  <otaylor@redhat.com>
177
178         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): 
179         XCopyArea with subwindow_mode = IncludeInferiors.
180         (#70999)
181
182         * demos/testpixbuf-save.c (configure_cb): Fix a minor
183         memory management problem.
184
185 Fri Feb  8 20:24:58 2002  Owen Taylor  <otaylor@redhat.com>
186         
187         * gtk/gtkbindings.c (binding_compose_params): Fix problem
188         with string-valued parameters (#70012, Johan Dahlin.)
189
190         * gtk/gtkentry.c (gtk_entry_delete_whitespace): Fix 
191         white space deletion.
192
193 Fri Feb  8 21:25:56 2002  Jonathan Blandford  <jrb@redhat.com>
194
195         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): fix
196         evil ref bug where the wrong row and a deleted row was unreffed.
197         Found by Darin Adler <darin@bentspoon.com>
198
199 Fri Feb  8 18:46:13 2002  Owen Taylor  <otaylor@redhat.com>
200
201         * gtk/gtkbindings.[ch] (_gtk_binding_reset_parsed): Add
202         a function to delete all bindings add by
203         gtk_binding_parse_binding() when rereading RC files.
204
205         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Reset
206         binding set content as well as RC content.
207
208         * gtk/gtkbindings.c (binding_compose_params): Fix 
209         various GValue handling problems.
210
211         * gtk/gtkentry.c (gtk_entry_class_init): Remove bindings 
212         for C-b, C-f, M-b, M-f, C-a, C-e, C-w, C-y, M-space, C-u,
213         C-k, M-\, M-d, C-d.
214
215         * gtk/gtktextview.c (gtk_text_view_class_init): Remove
216         same bindings as GtkEntry, plus C-n, C-p, C-space
217
218         * gtk/gtkrc.key.default gtk/gtkrc.key.emacs gtk/Makefile.am:
219         Add Emacs and Default key themes.
220         
221 2002-02-08  Darin Adler  <darin@bentspoon.com>
222
223         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
224         Remove a tiny bit more dead code.
225
226 2002-02-08  Darin Adler  <darin@bentspoon.com>
227
228         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
229         Fix stale pointer bug.
230
231 Fri Feb  8 14:30:14 2002  Owen Taylor  <otaylor@redhat.com>
232
233         * gtk/gtkclist.c (title_focus_in): Return FALSE if
234         not showing the titles. (#70959, Thomas Leonard)
235
236 2002-02-08  Darin Adler  <darin@bentspoon.com>
237
238         * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
239         * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
240         * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
241         * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
242         * gtk/fnmatch.c: Remove <ctype.h> include.
243         * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
244         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
245         g_unichar_toupper, toupper -> g_unichar_totile
246         * gtk/gtkbindings.c: Remove <ctype.h> include.
247         * gtk/gtkfontsel.c: Remove <ctype.h> include.
248         * gtk/gtkiconfactory.c: Remove <ctype.h> include.
249         * gtk/gtkinputdialog.c: Remove <ctype.h> include.
250         * gtk/gtklabel.c: Remove <ctype.h> include.
251         * gtk/gtkmain.c: Remove <ctype.h> include.
252         * gtk/gtkmenu.c: Remove <ctype.h> include.
253         * gtk/gtkoldeditable.c: Remove <ctype.h> include.
254         * gtk/gtkrc.c: Remove <ctype.h> include.
255         * gtk/gtktextbtree.c: Remove <ctype.h> include.
256         * gtk/gtktextiter.c: Remove <ctype.h> include.
257         * gtk/gtktextsegment.c: Remove <ctype.h> include.
258
259 2002-02-08  Sven Neumann  <sven@gimp.org>
260
261         * gtk/gtkfilesel.c
262         * gtk/gtkgamma.c
263         * gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
264
265 2002-02-08  Darin Adler  <darin@bentspoon.com>
266
267         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
268         (gtk_tree_model_sort_unref_node): Pass the ref_node and
269         unref_node calls through to the child model.
270
271 2002-02-08  Laszlo Peter  <laca@ireland.sun.com>
272
273         * gtk/gtktextchild.c: s/__FUNCTION__/G_GNUC_FUNCTION/
274         * gtk/gtktextview.c: ditto
275
276 2002-02-07  Havoc Pennington  <hp@pobox.com>
277
278         * gtk/gtkspinbutton.h (struct _GtkSpinButtonClass): add
279         change_value virtual function, to fix build
280
281         * gtk/gtkpixmap.c (gtk_pixmap_class_init): parent_class was 
282         from GtkWidget not GtkMisc. Not that it ever mattered.
283
284 Thu Feb  7 19:52:00 2002  Owen Taylor  <otaylor@redhat.com>
285
286         * gtk/gtknotebook.[ch]: Add ::move-focus-out signal
287         to handle Control[-Shift]-Tab and Control-arrow
288         bindings and implement bindings as per #53612.
289
290         * gtk/gtktextview.c (gtk_text_view_move_focus): Fix 
291         fetching the toplevel for plug-socket.
292
293         * gtk/gtknotebook.c (gtk_notebook_class_init): Remove
294         bindings for Return/Enter to select the page.
295
296         * gtk/gtknotebook.c (gtk_notebook_change_current_page):
297         Beep at ends.
298
299         * gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
300         and beep at ends.
301
302         * gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
303         the page with the arrow keys, focus the first widget,
304         not the directionally closest widget.
305
306 Thu Feb  7 19:00:10 2002  Owen Taylor  <otaylor@redhat.com>
307
308         * gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
309         to using  binding set for doing key bindings. (#62622,
310         Requested by Skip Montaro)
311
312         * gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
313         bindings as overrides along with control-tab bindings.
314
315         * gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
316         type for ::focus_tab signal.
317
318 Thu Feb  7 19:39:27 2002  Kristian Rietveld  <kris@gtk.org>
319
320         Fixes #70782 and some drag dest rectangle/line issues
321
322         * gtk/gtktreeview.c (gtk_tree_view_set_model): set
323         GTK_TREE_VIEW_IS_LIST flag (we can switch from a TreeStore to a
324         ListStore for example)
325         (gtk_tree_view_get_path_at_pos): revert previous change, we
326         shouldn't correct for the header, because we are taking bin_window
327         coordinates here
328         (gtk_tree_view_set_drag_dest_row): queue old drag_dest row and
329         upper/lower neighbors for draw, so the drag dest rectangle/line will
330         be cleared correctly
331         (gtk_tree_view_get_dest_row_at_pos): correct for treeview header
332         here, as drag_y is relative to the widget and _get_path_at_pos wants
333         coords relative to bin_window, draw black outline rectangle after
334         drawing the cells
335
336 Thu Feb  7 10:53:12 2002  Owen Taylor  <otaylor@redhat.com>
337
338         * gtk/gtkentry.c (gtk_entry_draw_text): Use layout text
339         (which may be affected by invisible char) to compute
340         selection bounds, not entry text. (#70733, Alex Larsson)
341
342 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
343
344         * gtk/gtkwidget.[ch]:
345         Change show_help signal to return gboolean instead of void. This
346         allows the keypress which invokes the signal to be propagated to the
347         focus widgets ancestors if not handled by the focus widget.
348         
349         * gtk/gtktoolips.[ch]
350         Change _gtk_tooltips_show_tip () to return a gboolean indicating
351         whether widget has tooltip to display.
352         
353 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
354
355         * gtk/gtkwidget.[ch]:
356         Change popup_menu signal to return gboolean instead of void. This
357         allows the keypress which invokes the signal to be propagated to the
358         focus widgets ancestors if not handled by the focus widget.
359
360         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtktextview.c:
361         Change signature of popup_menu signal handler to return gboolean
362         instead of void and return TRUE in the signal handler
363
364 2002-02-07  Anders Carlsson  <andersca@gnu.org>
365
366         * gdk/x11/xsettings-common.c (xsettings_setting_free): Free 
367         the setting name.
368
369 Wed Feb  6 23:28:39 2002  Kristian Rietveld  <kris@gtk.org>
370
371         Fixes #70708
372
373         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): we're dealing
374         with widget coordinates here, so take the header height into
375         account while converting
376         (gtk_tree_view_widget_to_tree_coords): take header height into
377         account
378         (gtk_tree_view_tree_to_widget_coords): ditto
379         (gtk_tree_view_get_dest_row_at_pos): we were passing coords
380         relative to the tree with _get_path_at_pos, while that function
381         wants coords relative to the widget
382
383 2002-02-06  Havoc Pennington  <hp@redhat.com>
384
385         * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
386         (gtk_text_view_get_window): add warning about how you
387         can't get the private window. #70683, and avoid default: in the
388         switch so we get "enum value unhandled" warnings
389
390 2002-02-06  Havoc Pennington  <hp@redhat.com>
391
392         * gtk/gtktextchild.c: Add warnings if you try to use a child
393         anchor that isn't inside a buffer. Really kind of lame; 
394         we should separate the anchor from the buffer. But not worth 
395         fixing for now. #70601
396
397 Wed Feb  6 18:25:24 2002  Kristian Rietveld  <kris@gtk.org>
398
399         * gtk/gtktreemodelsort.c: rip out all the debugging ifdefs, as
400         modelsort seems to be stable (and nobody complained :)
401
402 Tue Feb  5 19:13:42 2002  Owen Taylor  <otaylor@redhat.com>
403
404         * gdk/x11/gdkgeometry-x11.c (gdk_window_queue): Keep
405         the length of the anti-expose queue finite, by if
406         it gets too long, first doing a XSync() and checking
407         the event queue, and if that doesn't work, simply
408         discarding all anti-expose items in the queue.
409
410         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix ordering
411         on ConfigureNotify (#56349, Thomas Leonard)
412
413 2002-02-05  Havoc Pennington  <hp@redhat.com>
414
415         * gtk/gtkimage.c (gtk_image_expose): offset area being gotten from
416         pixmap by the align/padding offsets, so we don't get warnings
417         in gdk_pixbuf_get_from_drawable (and so it works, of course)
418
419 2002-02-05  Matthias Clasen  <matthiasc@poet.de>
420
421         * gtk/gtkrc.c (gtk_rc_parse_file): Remove a (now) misleading comment.
422
423 2002-02-05  Federico Mena Quintero  <federico@ximian.com>
424
425         * gdk/gdkwindow.h: Do not #include <gdk/gdkwindow.h>.
426
427 Tue Feb  5 22:54:16 2002  Kristian Rietveld  <kris@gtk.org>
428
429         * gtk/gtkliststore.c (gtk_list_store_insert_after): let's set the
430         path, which we're going to pass with the emission of row_inserted, to
431         the iter we inserted and not its sibling.
432
433 2002-02-04 Padraig O'Briain <padraig.obriain@sun.com>
434
435         * gtk/gtkmenu.c (gtk_menu_popup):
436         Fix leak of GdkEvent (#70519)
437
438 Mon Feb  4 10:40:28 2002  Owen Taylor  <otaylor@redhat.com>
439
440         * gtk/gtkstyle.c (gtk_default_draw_resize_grip):
441         Fix from Matthias Clasen to clear background appropriately
442         for theme by calling gtk_style_apply_default_background().
443         (#70449)
444
445 Mon Feb  4 10:06:49 2002  Owen Taylor  <otaylor@redhat.com>
446
447         * gdk/x11/gdkevents-x11.c: gtk-double-click-time,
448         not gtk-double-click-timeout. (#70501)
449
450 2002-02-04  Havoc Pennington  <hp@pobox.com>
451
452         * gtk/gtksignal.c (gtk_signal_connect_while_alive): 
453         (gtk_signal_connect_object_while_alive): rename 
454         "signal" arg to "name" to avoid compiler warnings
455         about shadowing signal(). #70453
456
457 2002-02-03  Anders Carlsson  <expander-master@gtk.org>
458
459         * gtk/gtkstyle.c (gtk_default_draw_expander): Add 
460         flipping support to the expanders.
461
462 Sat Feb  2 21:54:01 2002  Owen Taylor  <otaylor@redhat.com>
463
464         RC file lookup improvements (#68234, suggestions
465         from Matthias Clasen.)
466
467         * gtk/gtkrc.c (gtk_rc_parse_file): Look for the 
468         locale suffix variants (gtkrc.en_US, gtkrc.en) for
469         all RC files we parse, not just the default RC
470         files.
471
472         * gtk/gtkrc.c (gtk_rc_parse_default_files): Remove
473         support for charset specific RC files.
474
475 Sat Feb  2 20:16:04 2002  Owen Taylor  <otaylor@redhat.com>
476
477         * gtk/gtkmenushell.c (_gtk_menu_shell_select_first): 
478         Non-exported _gtk_menu_select_first() function that
479         selects the first item of the menu in a standard
480         way. (Skipping tearoffs.)
481
482         * gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
483         gtkmenuitem.c: Use _gtk_menu_shell_select_first().
484
485         * gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
486         if we are starting the timeout from a keypress so
487         we can set menushell->ignore_enter properly.
488
489         * gtk/gtknotebook.c (focus_child_in): Return something
490         meaningful if there are no children.
491
492         * gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
493         problem.
494
495 Sat Feb  2 19:15:42 2002  Owen Taylor  <otaylor@redhat.com>
496
497         * gtk/gtkmenu.c (gtk_menu_popup): Fix some bugs in
498         the determination of xgrab_shell.
499
500 Sat Feb  2 17:43:00 2002  Owen Taylor  <otaylor@redhat.com>
501
502         * gtk/gtkentry.c (gtk_entry_grab_focus): Add a GtkSetting
503         (gtk-entry-select-on-focus) controlling whether the
504         contents of an entry are selected on focus in.
505
506         * gtk/gtkmenu.c (gtk_menu_key_press): Add a GtkSetting
507         (gtk-can-change-accels) controlling whether accelerators can be
508         changed on the fly or not. (#51902)
509
510         * gtk/gtkmenu.c (gtk_menu_key_press): Allow unmodified
511         accelerators, now that accelerator changing can be turned
512         off for those who won't expect it. (#61285)
513
514         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow 
515         Backspace/Delete/KP_Delete as valid accelerators.
516
517         * gtk/gtkmenu.c (gtk_menu_key_press): Allow setting of
518         Delete/Backspace as accelerators by making them toggle
519         the menu item between empty and the pressed key.
520         (#58605)
521
522         * tests/testgtkrc: Remove the objectionably short cursor blink
523         time setting.
524
525 Sat Feb  2 16:43:31 2002  Owen Taylor  <otaylor@redhat.com>
526
527         * gtk/gtkmenu.c (gtk_menu_popup): To get around the fact
528         that we may have a owner_events = FALSE grab in effect
529         when we pop up a window, make a temporary grab on a
530         different window, then grab on the real window. Fixes
531         a problem where if a context menu popped up under the 
532         cursor, the first item would be stuck unselected.
533         (#59812, reported by Arnaud Charlet.)
534
535 2002-02-02  Peter Williams  <peterw@ximian.com>
536
537         * gtk/Makefile.am (install-data-local): Install gtkrc.default
538         from $(srcdir) for when $(builddir) is different.
539
540 Sat Feb  2 19:00:39 2002  Kristian Rietveld  <kris@gtk.org>
541
542         * gtk/Makefile.am: remove TESTGTK_RCFILE define
543
544 Sat Feb  2 11:37:21 2002  Owen Taylor  <otaylor@redhat.com>
545
546         * gtk/gtkmenu.c (gtk_menu_popup): Remove the 
547         "select first item if popped up from keypress" hack --
548         was causing more problems than it was worth 
549         (#53191, #68483)
550
551         * gtk/gtktextview.c (popup_targets_received): 
552          gtk/gtkentry.c (popup_targets_received): If activated
553         from keyboard, select first item of popup menu.
554
555 Sat Feb  2 18:07:51 2002  Kristian Rietveld  <kris@gtk.org>
556
557         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
558         of vadjustment correct, so the vscrollbars of lists smaller than
559         1 page are somewhat saner (#66905)
560
561         * gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
562         increment the stamp, liststore is a model with persisting iters
563
564 Fri Feb  1 23:54:00 2002  Owen Taylor  <otaylor@redhat.com>
565
566         * gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support 
567         engine "" {} to mean override to the default 
568         engine. (#70205)
569
570 Fri Feb  1 23:25:33 2002  Owen Taylor  <otaylor@redhat.com>
571
572         * gtk/gtktooltips.c (gtk_tooltips_init): Parse the
573         RC string here when the first object is created
574         rather than in the class_init to not break doc 
575         building. (#70341, Havoc Pennington.)
576
577         * gtk/gtkrc.c (parse_include_file): Use the directories
578         for the currently parsed files as the starting point
579         to look for include files. (#59975)
580
581 Fri Feb  1 20:21:56 2002  Manish Singh  <yosh@gimp.org>
582
583         * gtk/gtkinputdialog.c: use gtk_label_new_with_mnemonic for labels
584         that actually have mnemonics
585
586 Fri Feb  1 19:57:59 2002  Owen Taylor  <otaylor@redhat.com>
587
588         * configure.in: Fix use of ! in shell.
589
590         * gtk/gtktooltips.c (gtk_tooltips_class_init) gtkrc.default: 
591         Move the setting of default tooltips colors to gtktooltips.c
592         from gtkrc.default. (Use default priority so themes will
593         override.) (#58542)
594
595 Fri Feb  1 17:48:51 2002  Owen Taylor  <otaylor@redhat.com>
596
597         * gtk/gtkrc.c (gtk_rc_get_style): Fix ordering of
598         priorities so that priorities take precendence over
599         the ordering by type. (#70205)
600
601         * test/testgtkrc tests/testgtk.c (create_rc_file): Add 
602         some labels to test priorities in testgtkrc.
603
604 Fri Feb  1 00:37:49 2002  Kristian Rietveld  <kris@gtk.org>
605
606         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): use
607         y coordinate relative to the tree and not the treeview window
608         (fixes the PgDn/PgUp brokenness)
609
610 Fri Feb  1 23:40:31 2002  Kristian Rietveld  <kris@gtk.org>
611
612         * gtk/gtktreeview.c (gtk_tree_view_button_press): adjust
613         cell_area and background_area for possible treeview scroll
614         (fixes #70283, #70065)
615
616 Fri Feb  1 22:20:13 2002  Kristian Rietveld  <kris@gtk.org>
617
618         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): use
619         height - page_size not height - allocation->height (fixes #66269)
620
621 Fri Feb  1 15:22:23 2002  Owen Taylor  <otaylor@redhat.com>
622
623         * gtk/gtkimage.c (gtk_image_class_init): Fix typo
624         in property description. (Christian Rose.)
625
626 Fri Feb  1 14:50:36 2002  Owen Taylor  <otaylor@redhat.com>
627
628         * gtk/gtkrc.c (gtk_rc_parse_string): Handle reparsing
629         any strings if the theme changes. (#69465)
630
631         * tests/testgtk.c: Add a test for gtk_rc_parse_string().
632
633 Fri Feb  1 20:50:29 2002  Kristian Rietveld  <kris@gtk.org>
634
635         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): set tree to
636         NULL if tree_view->priv->tree is NULL (#70152, patch by John Harper).
637
638 Fri Feb  1 12:51:20 2002  Owen Taylor  <otaylor@redhat.com>
639
640         * gtk/gtknotebook.c (focus_child_in): Catch the
641         cur_page == NULL (no children) case. (#70287,
642         Paolo Maggi.)
643
644 Fri Feb  1 12:12:12 2002  Owen Taylor  <otaylor@redhat.com>
645
646         * gtk/gtkfilesel.c (attempt_file_completion): 
647         s/directory/folder/ in all labels and messages.
648
649 Fri Feb  1 08:57:38 2002  Owen Taylor  <otaylor@redhat.com>
650
651         * gtk/gtkmain.c (gtk_exit_func): Remove this useless
652         atexit handler. (existance pointed out by Stefan Kost)
653
654         * gtk/gtkmain.c (gtk_init_check): Warning fixes.
655
656 Thu Jan 31 18:46:10 2002  Jonathan Blandford  <jrb@redhat.com>
657
658         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): unref the
659         model after the last use, not before.
660
661 Thu Jan 31 14:50:16 2002  Owen Taylor  <otaylor@redhat.com>
662
663         * gtk/gtkrc.default gtk/Makefile.am: Install a Default
664         RC file that sets the tooltips color to yellow. (#58542)
665
666         * gtk/gtksettings.c (gtk_settings_class_init): make 
667         the default theme "Default", not NULL.
668
669 Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
670
671         * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
672         another missing static.
673
674         * gtk/gtkimmodule.c (n_loaded_contexts): And another.
675
676         * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
677         build gxid sources at all except in the vanishingly
678         rare case of --with-xinput=xfree.
679
680 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
681
682         * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
683
684         * gdk/x11/gdkimage-x11.c: (get_full_image): ditto.
685
686         * gdk/x11/gxid_lib.[ch]: (_gxid_claim_device), (_gxid_release_device):
687         renamed from gxid_(claim|release)_device.
688
689         * gdk/x11/gdkinput-gxi.c: (_gdk_input_enable_window),
690         (_gdk_input_disable_window): upd for gxid change.
691
692         * gtk/gtkimage.c: (animation_timeout): make static.
693
694         * gtk/gtkstyle.c: (draw_thin_shadow), (draw_spin_entry_shadow): make
695         static.
696
697         * gtk/gtktextutil.c: (bidi_menu_entries): make static.
698
699 Thu Jan 31 10:21:05 2002  Owen Taylor  <otaylor@redhat.com>
700
701         * gtk/gtkplug.c (gtk_plug_focus): Handle the case where
702         bin->child is NULL. (#70153, Padraig O'Briain)
703
704         * gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): 
705         Actually call gettext() on the labels; previously they
706         were marked with N_() but we never called gettext().
707
708 Wed Jan 30 20:15:49 2002  Jonathan Blandford  <jrb@redhat.com>
709
710         * gtk/gtktreestore.c (gtk_tree_store_set_valist): save last minute
711         changes before committing.
712
713         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
714
715 Wed Jan 30 18:46:14 2002  Jonathan Blandford  <jrb@redhat.com>
716
717         * gtk/gtkliststore.c (gtk_list_store_set_valist): only emit the
718         signal if an interesting column changes.
719
720         * gtk/gtktreestore.c: ditto.
721
722         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): change behavior so
723         that it no longer grabs 
724
725 2002-01-30  Manish Singh  <yosh@gimp.org>
726
727         * gtk/gtkhandlebox.c (gtk_handle_box_destroy): remove unused
728         variable.
729
730         * gtk/gtkwindow.c (gtk_window_get_icon): function returns a value,
731         so return NULL with g_return_val_if_fail instead of g_return_if_fail.
732
733 2002-01-30  Matthias Clasen  <matthiasc@poet.de>
734
735         * gtk/*.c: Remove excess g_return_if_fail calls from static
736         and virtual functions.  (#57615)
737         
738 2002-01-30  Anders Carlsson  <andersca@gnu.org>
739
740         * gtk/gtkstyle.c (gtk_default_render_icon): Allow a -1 icon size.
741
742 Wed Jan 30 20:29:01 2002  Tim Janik  <timj@gtk.org>
743
744         * gtk/gtkscale.c (gtk_scale_set_digits): fix revrted bug fix.
745         (use a define for max digits).
746
747 Wed Jan 30 13:55:59 2002  Owen Taylor  <otaylor@redhat.com>
748
749         * gtk/gtkwindow.c (gtk_window_show): Try to make
750         sure that we have some focused widget on map. (#50339)
751
752         * gtk/gtkdialog.c (gtk_dialog_map): Handling picking
753         a focus widget here differently so that if a
754         response button gets picked, it's the default one.
755
756         * tests/testgtk.c (make_message_dialog): Set the 
757         default response for the dialogs.
758
759 Tue Jan 29 22:52:36 2002  Owen Taylor  <otaylor@redhat.com>
760
761         * Released 1.3.13
762
763         * configure.in: Micro version 13, interface, binary
764         age 0. Require GLIB-1.3.13, Pango 0.24.
765
766         * docs/Makefile.am (EXTRA_DIST): Add widget_geometry.txt,
767         sizing-test.txt, tree-column-sizing.txt
768
769         * docs/Makefile.am (EXTRA_DIST): Don't distribute
770         Changes-1.2.txt, Changes-2.0.txt, README.linux-fb,
771         since they are no longer canonical.
772
773         * gtk/gtk.def: Convert spaces to tabs in front of
774         gtk_widget_set_accel_path in case it matters.
775
776         * NEWS: Updated for 1.3.13.
777
778 Tue Jan 29 22:31:07 2002  Owen Taylor  <otaylor@redhat.com>
779
780         * gtk/gtkwidget.[ch] gtkmenuitem.c gtkitemfactory.c: Export 
781         gtk_widget_set_accel_path().
782
783         * gtk/gtk.def: Add gtk_widget_set_accel_path.
784
785 Tue Jan 29 21:50:28 2002  Owen Taylor  <otaylor@redhat.com>
786
787         * gtk/gtkaccelmap.[ch] gtk/gtkbindings.[ch] gtk/gtkwidget.[ch]:
788         Consistently use GdkModifierType. (#66950, Mark Patton)
789
790         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
791         For consistency with gtk_button_new_from_stock(), fall back
792         to gtk_image_menu_item_new_with_mnemnonic(). (#65944,
793         Havoc Pennington)
794         
795         * gtk/gtkitemfactory.[ch] (gtk_item_factory_path_from_widget): 
796         Make G_CONST_RETURN. (#68527, Matt Wilson)
797
798 Tue Jan 29 20:56:13 2002  Owen Taylor  <otaylor@redhat.com>
799
800         * gtk/gtk[vh]scale.c (gtk_[vh]scale_new_with_range): Document
801         that the end points are included in the range. (#69783,
802         Jeffrey Baker)
803
804 Tue Jan 29 20:38:04 2002  Owen Taylor  <otaylor@redhat.com>
805
806         * gtk/gtkscale.[ch]: Revert the last changes to make the
807         number of digits only effect drawing, instead, don't
808         round unless we are in the 'draw_value' mode -- this
809         is the behavior of GTK+-1.2, and keeps the behavior that
810         if the user sees a displayed value, it is the correct value.
811
812 Tue Jan 29 19:51:05 2002  Owen Taylor  <otaylor@redhat.com>
813
814         * gtk/gtkenums.h: Deprecate GtkPreviewType,
815         GtkSignalRunType, GtkSideType, GtkSubmenuPlacement, GtkSubmenuDirection
816         (#68183, Matthias Clasen)
817
818         * gtk/gtkmenuitem.h: Remove _gtk_menu_item_set_placement() from
819         the public header to avoid having to use GtkSubmenuPlacement.
820
821         * gtk/{gtkmenuitem.c,gtkmenubar.c,gtkmenushell.c}: #define
822         GTK_MENU_INTERNALS to preserve access to GtkSubmenu*.
823
824         * gdk/gdki18n.h: Deprecate contents. (Darin Adler.)
825
826 Tue Jan 29 19:32:47 2002  Owen Taylor  <otaylor@redhat.com>
827
828         * gtk/gtktextview.c (gtk_text_view_get/set_property): 
829         Fix wrong usage of g_value_set/get_object for PROP_TABS
830         and memory leak in getter for PROP_TABS. (Jeff Franks)
831
832 Tue Jan 29 19:04:41 2002  Owen Taylor  <otaylor@redhat.com>
833
834         * gtk/gtkstyle.c (gtk_style_render_icon): Document that
835         a size of (GtkIconSize)-1 means don't scale.
836
837         * gtk/gtkstyle.c (gtk_default_render_icon): Obey the
838         -1 convention.
839
840         * gtk/gtkimage.c (gtk_image_expose): Pass in -1 to
841         gtk_style_render_icon() to make sure that we catch it
842         obviously if the style's render function tries to
843         scale.
844
845 Tue Jan 29 18:50:59 2002  Owen Taylor  <otaylor@redhat.com>
846
847         * gtk/gtkimage.c (gtk_image_expose): Optimize exposes of
848         partial insensitive images.
849
850 2002-01-24  Havoc Pennington  <hp@redhat.com>
851
852         * gtk/gtkimage.c (gtk_image_expose): create insensitive version of
853         the image regardless of storage type, #63305
854
855         * demos/gtk-demo/images.c: add toggle button to demonstrate that
856         GtkImage makes its contents insensitive
857
858 Tue Jan 29 17:40:02 2002  Owen Taylor  <otaylor@redhat.com>
859
860         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
861         Call _gdk_draw_pixbuf(), thus enabling using this function
862         for pixbufs with alpha. (#68801)
863
864         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Move
865         implementation of gdk_pixbuf_render_to_drawable()
866         to here.
867
868 Tue Jan 29 17:16:17 2002  Owen Taylor  <otaylor@redhat.com>
869
870         * gtk/gtklayout.c: Patch from Jacob Berkman to fix problem
871         when the height/width of a layout was set before the
872         adjustments were added. (#66294)
873
874         * gtk/gtktreeview.c: Warning cleanups.
875
876 Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
877
878         * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
879         fix to size of torn off window (#60271, Detlef Reichl)
880
881         * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
882         by Ross Burton)
883
884 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
885
886         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
887         cursor_path after usage
888         (gtk_tree_view_real_start_interactive_search): use new g_signal
889         and g_object calls
890         (gtk_tree_view_search_dialog_destroy): use g_object calls and free
891         selected_iter if set
892         (gtk_tree_view_search_position_func): rework so it will never ever
893         appear offscreen (#68492)
894         (gtk_tree_view_search_move): use new g_object calls
895         (gtk_tree_view_search_init): free selected_iter if set, use new
896         g_object calls
897         (gtk_tree_view_leave_notify): don't destroy interactive search
898         dialog
899
900 Tue Jan 29 23:07:03 2002  Kristian Rietveld  <kris@gtk.org>
901
902         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
903         send focus in event
904         (gtk_tree_view_search_dialog_destroy): send focus out event (#66466)
905
906 2002-01-29  Anders Carlsson  <andersca@gnu.org>
907
908         * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
909         size in the size entry.
910
911 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
912
913         * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
914         gtk_tree_view_set_cursor() instead of gtk_tree_selection_select_iter().
915
916         * gtk/gtkfontsel.c (gtk_font_selection_init): Add mnemonic to
917         preview field. (#52433, patch from Anders Carlsson)
918         
919         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Remove the 
920         dialog separator. (#69558, Alex Larsson, patch from Anders Carlsson)
921
922 Tue Jan 29 15:24:59 2002  Owen Taylor  <otaylor@redhat.com>
923
924         * gtk/gtkfontsel.[ch]: Switch over to GtkTreeView from
925         GtkCList. Remove the entries above the font/face lists 
926         since they were a little confusing. (Not sure about this 
927         change, so the code is still there the entries are
928         just hidden.) (#68890)
929
930         * gtk/gtkfilesel.c: Switch over to GtkTreeView from
931         GtkCList. Add mnemonics for fileops. Allow Control/Shift
932         Tab to focus out.
933
934         * gtk/gtkfilesel.c: Make fileop dialogs transient-for
935         the fileselector. (#69336, patch from Melvin Hadasht)
936
937         * gtk/gtkgamma.c (button_clicked_callback): Fix handling
938         of gamma dialog a bit. (#69336, Matthias Clasen.)
939
940 Tue Jan 29 14:56:28 2002  Owen Taylor  <otaylor@redhat.com>
941
942         * gtk/gtksocket.c (toplevel_focus_out_handler): Return boolean
943         (and FALSE from focus_in / focus_out handlers. (#69528,
944         Padraig O'Briain)
945
946 Tue Jan 29 14:47:54 2002  Owen Taylor  <otaylor@redhat.com>
947
948         * gtk/gtkmain.c (gtk_init_check): Remove the scary startup
949         warning. (#69480)
950
951 Tue Jan 29 14:24:49 2002  Owen Taylor  <otaylor@redhat.com>
952
953         * gtk/gtkwindow.c (gtk_window_class_init): Add <Control>Tab
954         bindings for "move-focus" so that Control-Tab to escape from
955         something that eats Tab just works if not otherwise overriden.
956
957         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range) 
958         * gtk/gtkvscale.c (gtk_vscale_new_with_range)
959         * gtk/gtkhscale.c (gtk_hscale_new_with_range): Use a page_size
960         of zero for the adjustment, since at times we think that the range
961         is lower to upper - page_size. A page size equally to the 
962         step_increment is, in any case, not meaningful.
963
964 2002-01-29  Tor Lillqvist  <tml@iki.fi>
965
966         * README.win32: Add comment about gtk-1-3-win32-production branch
967         currently being ahead in functionality and code cleanliness (in
968         gdk/win32). Just in case somebody looks at the code in gdk/win32
969         here and starts fixing it, when it is going to change soonish
970         anyway.
971
972 2002-01-29  Sven Neumann  <sven@gimp.org>
973
974         * gtk/gtkrc.c: don't install an empty icon_set if none of the image
975         files could be found in the pixmap_path (bug #69398).
976         
977 2002-01-29  Sven Neumann  <sven@gimp.org>
978
979         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
980         that showed up when using the color picker.
981
982 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
983
984         * gtk/gtkscale.[hc]: fix default value for ::digits property,
985         leave as 1 as per havoc's request.
986         don't apply the draw_digits value to range->round_digits,
987         so we don't perform gross quantization by default.
988
989 2002-01-25  Havoc Pennington  <hp@redhat.com>
990
991         * gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion
992         failure by creating the line data, but not validating it at this
993         stage. Also, remove old code related to the "bogus newline" mess
994         that removed all tags from the last char in the buffer if you
995         tried to delete it.
996         (_gtk_text_line_data_new): put this here and prepend underscore,
997         remove from gtktextlayout.c
998
999 Mon Jan 28 19:57:39 2002  Owen Taylor  <otaylor@redhat.com>
1000
1001         * modules/input/imhangul.c modules/input/imhangul-defs.h
1002         po/POTFILES.in. Add port of Emacs korean-hangul input
1003         method from Yusuke Tabata (#67665)
1004
1005 Mon Jan 28 18:25:10 2002  Owen Taylor  <otaylor@redhat.com>
1006
1007         * gtk/gtkentry.c (gtk_entry_draw_frame): Paint shadow
1008         before focus to give theme engines a bit morea
1009         flexibility. (#69857)
1010
1011 Mon Jan 28 16:23:20 2002  Jonathan Blandford  <jrb@redhat.com>
1012
1013         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
1014         g_assert.
1015
1016 2002-01-28  Jon Trowbridge  <trow@gnu.org>
1017
1018         * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
1019         GtkTreeView's model, set prelight_node, prelight_tree,
1020         button_pressed_node and button_pressed_tree to NULL. (#69603)
1021
1022 2002-01-28 Bill Haneman <bill.haneman@sun.com>
1023
1024         * gtk/gtkstyle.c:
1025         Make sure that the default expanders are drawn with
1026         an outline thickness appropriate to the size of the
1027         expanders (RINT expander_size/7).
1028         Added static gtk_style_draw_polygon_with_gc(), to
1029         reduce code duplication.
1030
1031         * gtk/gtktreeview.c: (gtk_tree_view_bin_expose):
1032         Use focus_line_thickness when drawing focus lines.
1033
1034         * gtk/gtktreeviewcolumn.c:(gtk_tree_view_column_cell_get_size):
1035         Adjust requested width to include focus line thickness.
1036         (gtk_tree_view_column_cell_render_or_focus):
1037         Calculate a focus line rectangle which gets larger as the focus
1038         line thickness increases, to avoid overwriting cell content.
1039         Render left-aligned content at x+focus_line_width.
1040         (gtk_tree_view_column_cell_draw_focus):
1041         Don't draw a focus line around an editable text cell, since the
1042         text caret already indicates keyboard focus.
1043         Pass a GtkStateType appropriate to the focussed cell's state
1044         to gtk_paint_focus.
1045
1046 Mon Jan 28 14:44:40 2002  Jonathan Blandford  <jrb@redhat.com>
1047
1048         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
1049         activate/edit the row if shift is not pressed, #69248
1050
1051 2002-01-28  Anders Carlsson  <andersca@gnu.org>
1052
1053         * gtk/gtkcurve.c (gtk_curve_set_vector): Fix build.
1054
1055 2002-01-28  Matthias Clasen  <matthiasc@poet.de>
1056
1057         * gtk/{gtkalignment.c,gtkaspectframe.c,gtkbutton.c,
1058         gtkcellrenderer.c,gtkcellrendererpixbuf.c,gtkcombo.c,
1059         gtkcontainer.c,gtkcurve.c,gtkframe.c,gtklabel.c,
1060         gtkmessagedialog.c,gtknotebook.c,gtkspinbutton.c,gtktable.c,
1061         gtktext.c,gtktextview.c,gtktreeview.c,gtktreeviewcolumn.c,
1062         gtkviewport.c,gtkwidget.c}: General property notification 
1063         cleanup. (#69066)
1064
1065 2002-01-28  Anders Carlsson  <andersca@gnu.org>
1066
1067         * gtk/gtkaccelgroup.c (gtk_accel_groups_activate): & with the
1068         default mod mask so accels work when numlock is on.
1069
1070 Sun Jan 27 23:23:23 2002  Kristian Rietveld  <kris@gtk.org>
1071
1072         * gtk/gtkrbtree.[ch]: add _gtk_rbtree_mark_invalid (my previous
1073         commit already needed this ...)
1074
1075 Sun Jan 27 22:13:02 2002  Kristian Rietveld  <kris@gtk.org>
1076
1077         Fix for bug #69586
1078
1079         * gtk/gtktreeprivate.h: get rid of tab_offset, introduce
1080         expander_size
1081
1082         * gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
1083         expander_size caching (from style), fix CELL_HEIGHT macro,
1084         use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
1085         row height calculation, added style_set callback
1086
1087 2002-01-27  Anders Carlsson  <andersca@gnu.org>
1088
1089         * gtk/gtklabel.c (gtk_label_create_window): Set the cursor to
1090         GDK_XTERM.
1091
1092         * gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.
1093
1094         * gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.
1095
1096         * gtk/gtktextview.c (set_invisible_cursor): New function.
1097         (gtk_text_view_obscure_mouse_cursor): Likewise.
1098         (gtk_text_view_key_press_event): Call obscure_cursor if text 
1099         has been inserted.
1100         (gtk_text_view_motion_event): Restore the mouse cursor.
1101
1102         * gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
1103         (set_invisible_cursor): New function.
1104         (gtk_entry_obscure_mouse_cursor): Likewise.
1105         (gtk_entry_key_press): call obscure_cursor if text has been inserted.
1106         (gtk_entry_motion_notify): Restore the mouse cursor.
1107
1108 2002-01-27  Sven Neumann  <sven@gimp.org>
1109
1110         * gtk/gtkstyle.c (sanitize_size): removed unused return value.
1111
1112 Sat Jan 26 19:27:23 2002  Owen Taylor  <otaylor@redhat.com>
1113
1114         * gtk/gtksocket.c (gtk_socket_grab_notify): Don't
1115         send MODALITY_ON/OFF if socket->same_app (More fixes for #69735)
1116
1117 Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>
1118
1119         * gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
1120         in the grab_widget == NULL case. (Bug reported by 
1121         Padraig O'Briain, #69735)
1122
1123         * gtk/gtkplug.c (handle_modality_on): Realize the modality
1124         window so gtk_widget_event() doesn't complain :-((((.
1125
1126 2002-01-25  Federico Mena Quintero  <federico@ximian.com>
1127
1128         Merge from gdk-pixbuf stable.
1129
1130         * gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
1131         conversion --- swap the individual 16 bit values instead of taking
1132         everying as a 32 bit value.
1133         (rgb565lsb): Likewise.
1134         (rgb555lsb): Likewise.
1135         (rgb555msb): Likewise.
1136
1137 2002-01-25  Alex Larsson  <alexl@redhat.com>
1138
1139         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_drawable_impl_fb_class_init):
1140         Implement copy_to_image instead of get_image
1141         
1142         * gdk/linux-fb/gdkimage-fb.c:
1143         Implement _gdk_image_new_for_depth, _gdk_windowing_get_bits_for_depth and
1144         _gdk_fb_copy_to_image.
1145         Based in part on patch from Mathieu Lacage <mathieu_lacage@realmagic.fr>
1146
1147         * gdk/linux-fb/gdkmain-fb.c:
1148         Make ENABLE_FB_MANAGER region larger.
1149
1150         * gdk/linux-fb/gdkprivate-fb.h:
1151         Change _gdk_fb_get_image to _gdk_fb_copy_to_image.
1152
1153 2002-01-25  Sven Neumann  <sven@gimp.org>
1154
1155         * gtk/gtkwindow.c (gtk_window_get_size): changed the comment so
1156         that gtk-doc doesn't get confused.
1157
1158 Fri Jan 25 14:03:36 2002  Tim Janik  <timj@gtk.org>
1159
1160         * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
1161         that the passed in arrow is always _UP or _DOWN, this catches
1162         false invocations which lead to drawing artefacts.
1163         (start_spinning): likewise, i.e. sanity check the passed in arrow.
1164         (gtk_spin_button_button_release): fix arrow redrawing.
1165         (gtk_spin_button_button_press): must set click_child for
1166         button3 even if we don't take spinning action right away.
1167
1168         * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
1169         valid values for click_child.
1170
1171 Thu Jan 24 23:03:24 2002  Kristian Rietveld  <kris@gtk.org>
1172
1173         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
1174         return current FALSE if x is smaller than the current visible area,
1175         not than the requested area, don't correct y coordinate,
1176         TREE_WINDOW_Y_TO_RBTREE_Y will do that. Fixes #67477.
1177
1178 Thu Jan 24 15:41:08 2002  Jonathan Blandford  <jrb@redhat.com>
1179
1180         * gtk/gtktreeview.c
1181          (gtk_tree_view_motion_draw_column_motion_arrow): fix column
1182          reordering fully.
1183          (gtk_tree_view_size_allocate): fix evil bug.
1184
1185 Thu Jan 24 11:53:19 2002  Owen Taylor  <otaylor@redhat.com>
1186
1187         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't clear
1188         the model until we clean up all the other objects
1189         that might refer to the object.
1190
1191 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
1192
1193         * gtk/gtkaccessible.h: include gtk/gtkwidget.h
1194
1195 Wed Jan 23 20:28:59 2002  Owen Taylor  <otaylor@redhat.com>
1196
1197         * gtk/gtknotebook.c (gtk_notebook_draw_arrow): 
1198         Use insensitive state for insensitive arrows, not
1199         just an "etched state". (#67172, Adrian Custer)
1200
1201 2002-01-23  Manish Singh  <yosh@gimp.org>
1202
1203         * gtk/gtkentry.c (gtk_entry_set_text): use a variable that's actually
1204         been declared.
1205
1206 2002-01-23  Damon Chaplin  <damon@ximian.com>
1207
1208         * configure.in (gtk_doc_min_version): set minimum gtk-doc version to
1209         0.9, since we need to use the new --type-init-func argument for
1210         gtkdoc-scangobj.
1211
1212 2002-01-23  Matthias Clasen  <matthiasc@poet.de>
1213
1214         * gtk/gtkentry.c, gtk/gtkwidget.c: Remove excessive
1215         g_return_if_fail() calls. (#57615)
1216
1217         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries): Make
1218         it work for paths with underline accelerators. (#69247)
1219
1220 Wed Jan 23 15:12:16 2002  Owen Taylor  <otaylor@redhat.com>
1221
1222         * gtk/gtkspinbutton.c (gtk_spin_button_state_changed): 
1223         Stop spinning if widget becomes insensitive. (#56248)
1224
1225 Wed Jan 23 14:44:12 2002  Owen Taylor  <otaylor@redhat.com>
1226
1227         * gtk/gtkspinbutton.c (EPSILON): Decrease value since
1228         we now use doubles.
1229
1230 Tue Jan 22 16:58:37 2002  Jonathan Blandford  <jrb@redhat.com>
1231
1232         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Fix sizing bug
1233         I introduced accidentally, #69358
1234
1235 2002-01-22 Padraig O'Briain <padraig.obriain@sun.com>
1236
1237         * gtk/gtktreestore.c (gtk_tree_store_iter_children):
1238         Update last change to prevent core dump
1239
1240 Mon Jan 21 01:21:54 2002  Kristian Rietveld  <kris@gtk.org>
1241
1242         * gtk/gtktreestore.c: add some more stamp checks (pointed out
1243         by Anders Carlsson)
1244
1245         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
1246         assume _row_changed will insert sort (because _row_changed doesn't
1247         need to follow this signal), so apply insert sort here
1248         (gtk_tree_model_sort_level_find_insert): header doesn't need to be
1249         set here, so use a return instead of g_return_val_if_fail.
1250
1251 Mon Jan 21 18:28:17 2002  Jonathan Blandford  <jrb@redhat.com>
1252
1253         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update
1254         top_row.  Remove extraneous print statements.
1255
1256 2002-01-21  Matthias Clasen  <matthiasc@poet.de>
1257
1258         * gtk/gtkitemfactory.c (gtk_item_factory_popup, 
1259         gtk_item_factory_popup_with_data): Document allowed values
1260         for ifactory.
1261
1262         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make 
1263         it work for paths with underline accelerators.
1264
1265 Fri Jan 18 16:31:21 2002  Jonathan Blandford  <jrb@redhat.com>
1266
1267         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
1268         window.
1269
1270 Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
1271
1272         * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
1273         case where there is no default widget and the entry
1274         is the focus widget, since this also causes infinite
1275         recursion. (#69158)
1276
1277 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
1278
1279         * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
1280         rather than lazilygdk_get_program_class(), since we don't want
1281         -name to override it. (#69123, Ryan Lovett)
1282
1283 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
1284
1285         * gdk/gdk.c: Fix wrong types for command line arguments 
1286         (#69124, Ryan Lovett)
1287
1288         * gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
1289         parsing '--arg VALUE'.
1290
1291         * gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
1292
1293 2002-01-21  Havoc Pennington  <hp@pobox.com>
1294
1295         * gdk/gdkwindow.c (gdk_window_add_filter): mention that window 
1296         arg can be NULL
1297
1298 Sat Jan 19 20:49:41 2002  Kristian Rietveld  <kris@gtk.org>
1299
1300         * demos/gtk-demo/editable_cells.c: fix a load of open line ends
1301         (cell_edited): modified patch from German Poo Caaman~o
1302         to fix up old_text declaration and free the memory
1303         (do_editable_cells): unref the model after creating the treeview
1304
1305         * demos/gtk-demo/list_store.c: fix a load of open line ends,
1306         (add_columns): set the sort column id, so we can sort
1307
1308         * demos/gtk-demo/tree_store.c: fix a load of open line ends,
1309         (do_tree_store): unref the model after creating the treeview
1310
1311 2002-01-19  Havoc Pennington  <hp@pobox.com>
1312
1313         * gtk/gtkwindow.c: link to new X11 section in a lot of places when
1314         mentioning the window manager.
1315
1316         * gtk/gtkwidget.c (gtk_widget_hide_on_delete): don't mention
1317         window manager since we're portable.
1318
1319 Sat Jan 19 08:47:41 2002  Jeff Garzik  <jgarzik@mandrakesoft.com>
1320
1321         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
1322         Wrap case values in GPOINTER_TO_UINT().  Fixes build with gcc 3.x.
1323
1324         * gtk/gtkmain.c:  Include sys/types.h if G_OS_UNIX.
1325         Fixes build with gcc 3.x and -ansi.
1326
1327 Fri Jan 18 23:01:37 2002  Owen Taylor  <otaylor@redhat.com>
1328
1329         * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
1330         an engine declaration occurs in a reopened style, and
1331         g_free() of objects when errors occur.
1332
1333 2002-01-18  Matthias Clasen  <matthiasc@poet.de>
1334
1335         * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
1336         Clarify documentation. (#69026)
1337
1338         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
1339         missing initialization of adjustment. (#69025)
1340
1341 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
1342
1343         Simplify Makefiles. 
1344         <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
1345         * gdk/Makefile.am: Remove use of automake conditionals to pick
1346         library to build.
1347         * gtk/Makefile.am: Likewise.
1348         
1349         * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
1350         * gtk/Makefile.am (LDFLAGS): Likewise.
1351
1352 Thu Jan 17 20:13:14 2002  Owen Taylor  <otaylor@redhat.com>
1353
1354         * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
1355         missing allocation.x/y offsets. (#68962, Jacob
1356         Berkman)
1357
1358         * gtk/gtknotebook.c (gtk_notebook_size_allocate):
1359         Queue a redraw on the entire widget if we hide
1360         the last page or show the first. (Also #68962)
1361         
1362 2002-01-17  Havoc Pennington  <hp@redhat.com>
1363
1364         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
1365         GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
1366         starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
1367         as in the keynav spec, though it makes the interpretation of
1368         GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
1369         of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
1370         any sense anyhow.
1371
1372 Thu Jan 17 16:34:55 2002  Jonathan Blandford  <jrb@redhat.com>
1373
1374         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
1375         some reason, I was activating a row while just selecting it.
1376         Reported by andersca.
1377         (gtk_tree_view_size_request): add a
1378         validate_rows_handler to give us a rough width of the widget.
1379
1380         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
1381         Queue a resize here just in case.  It's needed in over half the
1382         cases, and I don't want to do a diff to figure out exactly when
1383         it's needed.
1384
1385 2002-01-17  Matthias Clasen  <matthiasc@poet.de>
1386
1387         * gtk/gtkinputdialog.c,
1388         gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
1389         Mark children as composite. (#66360)
1390
1391         * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
1392         composite children some more. (#66360)
1393
1394 2002-01-17  Havoc Pennington  <hp@redhat.com>
1395
1396         * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
1397         function (which I then decided not to use but I think it's needed
1398         to fix #68963
1399
1400         * gtk/gtktextview.c: add page_horizontally action signal and
1401         implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig, 
1402         hackily modified to avoid adding GTK_MOVEMENT_ API. Part of 
1403         #53934
1404
1405         * gtk/gtkmarshalers.list: add NONE:INT,BOOL
1406
1407 Thu Jan 17 17:02:38 2002  Owen Taylor  <otaylor@redhat.com>
1408
1409         * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
1410         gtk_selection_remove_all() here, not in destroy/
1411         finalize. (#66636, Sergey Vlasov)
1412
1413         * gtk/gtkselection.c (gtk_selection_request): Fix
1414         reentrancy problem with multiple conversions.
1415
1416         * gtk/gtkselection.c (gtk_selection_remove_all): 
1417         Don't remove incrs, we don't need the widget for
1418         maintain the incr.
1419
1420         * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
1421         the widget field from here, we don't need it.
1422
1423 Thu Jan 17 13:08:34 2002  Owen Taylor  <otaylor@redhat.com>
1424
1425         * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
1426         here, and save/restore the X error handler to allow
1427         people using GTK+ to set the X error handler to something
1428         custom without disturbing the operation of GDK.
1429
1430         * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push) 
1431         * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
1432         dummy implementations.
1433
1434         * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c 
1435         gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
1436         for all error trapping.
1437
1438         * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
1439
1440         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
1441         problem where we would add the results anyways,
1442         and then add it again if no error occurred, and problem
1443         where we could leave _gdk_error_warnings() unset.
1444
1445 Wed Jan 16 20:28:38 2002  Owen Taylor  <otaylor@redhat.com>
1446
1447         * gtk/gtkfilesel.c: Fix "deleting" filename by adding
1448         another boolean parameter to file_selection_populate() -
1449         whether to clear the entry. Also, never fill in the
1450         entry when the user clicks on something in the 
1451         directory list. (#6791, Reported by Jos Dehaes and many,
1452         many, many others.)
1453
1454 2002-01-16  Havoc Pennington  <hp@redhat.com>
1455
1456         * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
1457         cursor_y_pos with clamped delta rather than theoretical delta
1458         (#68788). Also, if we can't page up/down further then jump 
1459         to top/bottom of the document.
1460
1461 Wed Jan 16 19:33:41 2002  Owen Taylor  <otaylor@redhat.com>
1462
1463         * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
1464         the dialog on map. (#52877, inspired by request from
1465         Murray Cumming)
1466
1467 Wed Jan 16 19:23:04 2002  Owen Taylor  <otaylor@redhat.com>
1468
1469         * gtk/gtkbindings.c (gtk_binding_entry_activate): 
1470         Support "optional" bindings. If a binding signal
1471         has a boolean return value, and returns FALSE it
1472         is as if it didn't exist all.
1473
1474         * gtk/gtkbindings.c (binding_compose_params): Switch
1475         over to GValue.
1476
1477         * gtk/gtknotebook.[ch]: Make the select_page() and
1478         change_current_page() signals only take effect when
1479         the focus is on the tab area so that key presses
1480         in children pass up to the toplevel correctly.
1481
1482 Wed Jan 16 12:16:37 2002  Owen Taylor  <otaylor@redhat.com>
1483
1484         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix 
1485         calculation error in the (shouldn't happen) case where
1486         option_menu->height < child_requisition.height. (Patch
1487         from Jacob Berkman, #66969)
1488
1489 2002-01-15  Matthias Clasen  <matthiasc@poet.de>
1490
1491         * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
1492
1493         * gtk/gtkscale.h (gtk_scale_value_width): Remove useless 
1494         compatibility macro. (#67730) 
1495
1496 Wed Jan 16 10:54:38 2002  Owen Taylor  <otaylor@redhat.com>
1497
1498         * configure.in: Fix typo in --help output.
1499         (Arnaud Charlet).
1500
1501 Wed Jan 16 10:18:42 2002  Owen Taylor  <otaylor@redhat.com>
1502
1503         * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add 
1504         gtkstockpixbufs.h.
1505
1506         * configure.in: Make TIFF, JPEG, PNG loaders mandatory
1507         unless you configure with --without-libtiff, etc.
1508         (#54045, Brian Cameron)
1509
1510 2002-01-16  Padraig O'Briain <padraig.obriain@sun.com>
1511
1512         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
1513         Avoid unexpected warning message when navigating menu (#68517)
1514
1515 2002-01-15  Jody Goldberg <jody@gnome.org>
1516
1517         * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
1518         GtkLayout may have been scrolled _before_ it was realized.
1519
1520 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
1521
1522         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
1523         the timer on destroy, or when we are notified that we are
1524         shadowed by a modal dialog.
1525
1526         * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
1527         not needed any more.
1528
1529         * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
1530         weren't sent out for the default grab group.
1531
1532         * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
1533         were getting events because they were part of the previous grab.
1534
1535 Tue Jan 15 12:23:33 2002  Owen Taylor  <otaylor@redhat.com>
1536
1537         * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page): 
1538         focus the activated tab, not the page. (#53612)
1539
1540         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
1541         the last focus descendant of the page.
1542
1543         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
1544         was on the previous page, move it to the last focused widget /
1545         first element on the new page, if possible, or if not, to the 
1546         notebook itself. (#68224, reported by Jonathan Blandford)
1547
1548         * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
1549         tabs aren't visible. (#65462, Damon Chaplin, fixed based 
1550         on patch from Anders Carlsson)
1551
1552 2002-01-15            Vitaly Tishkov       <tvv@sparc.spb.su>
1553
1554         * gtk/gtkstyle.c
1555         a misprint in documentation for gtk_style_render_icon () is fixed
1556
1557 Mon Jan 14 23:21:47 2002  Tim Janik  <timj@gtk.org>
1558
1559         * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
1560         mapping child, so we don't loose events.
1561
1562 2002-01-15  Sven Neumann  <sven@gimp.org>
1563
1564         * gtk/gtkaccellabel.h
1565         * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
1566         names used in headers and code.
1567
1568 2002-01-14  jacob berkman  <jacob@ximian.com>
1569
1570         * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
1571
1572 Tue Jan 15 01:13:51 2002  Kristian Rietveld  <kris@gtk.org>
1573
1574         * gtk/gtktreemodelsort.c: fix a load of open line ends,
1575         (gtk_tree_model_sort_set_model): only free root level if it's
1576         !NULL
1577
1578 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
1579
1580         * gtk/gtkoldeditable.c, gtk/gtkrc.c, 
1581         gtk/gtkstyle.c: Documentation additions.
1582
1583         * gtk/gtkmenu.c (gtk_menu_set_accel_path),
1584         gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path), 
1585         gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
1586
1587         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
1588
1589         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
1590
1591 Mon Jan 14 17:14:13 2002  Owen Taylor  <otaylor@redhat.com>
1592
1593         * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
1594         mangle sequences of consecutive \n or \r.
1595
1596 Mon Jan 14 17:42:28 2002  Jonathan Blandford  <jrb@redhat.com>
1597
1598         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
1599         happen.
1600
1601         * gtk/gtktreeview.c (install_presize_handler): only install the
1602         handler if we're realized, #68056
1603
1604 Mon Jan 14 16:35:58 2002  Owen Taylor  <otaylor@redhat.com>
1605
1606         * gtk/gtkwindow.c (gtk_window_move_resize): Unset 
1607         initial_pos_set after the first configure request.
1608
1609 2002-01-13  Jody Goldberg <jody@gnome.org>
1610
1611         * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
1612           and will use a mem_chunk to do it.  Avoid an unnecessary copy, a
1613           leak, and confusion.
1614
1615 Sun Jan 13 23:23:22 2002  Owen Taylor  <otaylor@redhat.com>
1616
1617         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
1618         widget->requisition was being used instead of
1619         gtk_widget_get_child_requisition (), causing geometry widgets
1620         with usizes to misbehave.
1621
1622 2002-01-14  Sven Neumann  <sven@gimp.org>
1623
1624         * gtk/gtkrc.c: g_getenv() returns a const string.
1625
1626 2002-01-14  Hasbullah Bin Pit  <sebol@ikhlas.com>
1627
1628         * configure.in: Added ms at ALL_LINGUAS.
1629         * po/ms.po: Added Malay Translation.
1630
1631 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
1632
1633         * gtk/gtkitemfactory.c: Documentation.
1634
1635 2002-01-13  Sven Neumann  <sven@gimp.org>
1636
1637         * gdk/gdkwindow.c: documentation cleanups.
1638
1639 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
1640
1641         * gtk/gtktreemodelsort.c: various cleanups,
1642         (get_child_iter_from_elt): removed,
1643         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
1644         and especially faster,
1645         (gtk_tree_model_convert_iter_to_child_iter): use
1646         gtk_tree_model_sort_elt_get_path
1647
1648 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
1649
1650         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1651         revert Owen's change (using a strdupped string as object data), so
1652         the interactive search works again
1653
1654 2002-01-11  Havoc Pennington  <hp@pobox.com>
1655
1656         * gtk/gtklabel.c: put in more links to Pango markup format docs
1657         (gtk_label_set_justify): mention gtk_misc_set_alignment
1658
1659 2002-01-12  Tor Lillqvist  <tml@iki.fi>
1660
1661         Fixes contributed by Archaeopteryx Software: This is a first small
1662         part of their changes. Will commit more later.
1663         
1664         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
1665         call fails, don't use bogus values.
1666
1667          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
1668         memory leak: g_free() the AND and XOR bitmaps after use.
1669         (_gdk_cursor_destroy): If we are destroying the current Windows
1670         cursor, set the Windows cursor to none first.
1671
1672         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
1673         brush that was in the DC, like the win32-procution branch does. I
1674         guess this plugs a resource leak? With the HDC cache, the old
1675         brush might be something we created ourselves, and not a stock
1676         brush. And it doesn't do any harm to call DeleteObject on stock
1677         brushes.
1678
1679         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
1680         the window has a cursor which is the current Windows cursor,
1681         before destroying it set the current Windows cursor to none.
1682         (gdk_window_set_cursor): Also here, if destroying the current
1683         Windows cursor, set the current Windows cursor to none first.
1684         (gdk_window_get_pointer): Revamp logic.
1685         
1686 2002-01-10  jacob berkman  <jacob@ximian.com>
1687
1688         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
1689         through the list rather than infinitely loop
1690
1691 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
1692
1693         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
1694         reset_rc_styles_recurse(). (#68084)
1695
1696 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
1697         * gtk/gtkimage.c
1698         * gtk/gtkimcontext.c
1699         * gtk/gtktreemodel.c
1700         * gtk/gtktreemodelsort.c
1701         * gtk/gtkwindow.c
1702         fix docs        
1703
1704 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
1705
1706         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
1707         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
1708
1709 2002-01-10  Tor Lillqvist  <tml@iki.fi>
1710
1711         Apply the same fixes and improvements as to the
1712         gtk-1-3-win32-production branch: Bug fixes and cleanup of
1713         selection and DND functionality. Still doesn't work as well as the
1714         win32-production branch, though, but getting closer.
1715
1716         After this, need to add Archaeopteryx Software's OLE2 DND support.
1717
1718         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
1719         gdk_selection_send_notify, generate_selection_notify): Don't use
1720         SendMessage() to generate events for the same app, instead use
1721         gdk_event_put().
1722
1723         * gdk/win32/gdkprivate-win32.h
1724         * gdk/win32/gdkglobals-win32.c
1725         * gdk/win32/gdkmain-win32.c
1726         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
1727         initialisation and handling of gdk_selection_notify_msg,
1728         gdk_selection_request_msg and gdk_selection_clear_msg. 
1729
1730         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
1731         gdk_free_text_list, gdk_string_to_compound_text,
1732         gdk_free_compound_text): Implement trivially, witrh a text_list
1733         always having a single element, and a compound text always
1734         consisting of just a single (UTF-8!) string. Let's see how well
1735         this works.
1736
1737         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
1738         non-ASCII paste from the clipboard: Try getting the same formats
1739         from the Windows clipboard that gdk_property_change() puts there:
1740         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
1741
1742         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
1743         storing text on the clipboard, handle non-ASCII text
1744         correctly. The logic is as follows:
1745
1746         If we have only ASCII characters, use CF_TEXT.
1747
1748         Else, if we are on NT, use CF_UNICODETEXT.
1749
1750         Else (we are on Win9x), if all the characters are present in the
1751         code page of some installed locale, use CF_TEXT and also set
1752         CF_LOCALE to that locale.
1753
1754         Else (still on Win9x) store as RTF. We use a very simple RTF
1755         string, just the text, no fonts or other crap, with the non-ASCII
1756         characters as Unicode \uN keywords. Additionally, also store the
1757         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
1758         can also paste from the Clipboard what it has copied there. (Thus
1759         no need to implement any RTF parser.)
1760         
1761         (find_common_locale): New function, implements the search for a
1762         locale for case 3 above.
1763
1764         * gdk/win32/gdkglobals-win32.c: New global variables
1765         compound_text, text_uri_list, utf8_string, cf_rtf and
1766         cf_utf8_string.
1767
1768         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
1769         converts from a wchar_t string to UTF-8.
1770         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
1771         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
1772
1773         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
1774         _gdk_ucs2_to_utf8().
1775
1776         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
1777
1778         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
1779         gdk_drag_context_ref() was called unnecessarily in a couple of
1780         places, meaning drag contexts were never freed. The same memory
1781         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
1782
1783         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
1784         stored file list.
1785
1786         * gdk/win32/gdkselection-win32.c: Clarify the use of the
1787         sel_prop_table. Now it is used only for storing the GDK_SELECTION
1788         "properties".
1789
1790         The file names dropped with WM_DROPFILES -style DND is stored
1791         temporarily (between the drop and the target picking them up) in a
1792         separate place.
1793
1794         Have a separate hash table to map selection atoms to owner
1795         windows. This used to be quite mixed up.
1796
1797         (_gdk_dropfiles_store): New function, to store the dropped file
1798         list for the drop target to possibly fetch, and clear it
1799         afterwards, from gdk_drop_reply().
1800
1801         (gdk_selection_owner_get): Much simplified now.
1802
1803 2002-01-09  jacob berkman  <jacob@ximian.com>
1804
1805         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
1806         our bin window also (fixes #58957)
1807
1808 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
1809
1810         * gtk/gtktreeselection.c
1811         (_gtk_tree_selection_internal_select_node): Now we test we can
1812         unselect nodes before selecting new ones.
1813         (gtk_tree_selection_real_select_node): be careful comparing booleans.
1814
1815 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
1816
1817         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
1818         gtk_tree_model_rows_reordered and not an iter with user_data
1819         set to NULL (which is an invalid liststore iter, so
1820         iter_n_children failed, etc)
1821
1822 2002-01-09  Sven Neumann  <sven@gimp.org>
1823
1824         * tests/prop-editor.c: declared internal functions static.
1825         
1826 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
1827
1828         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
1829         Fix problem with menus without accel groups, such as the
1830         menus for option menus.
1831
1832         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
1833         drawing of handle on whether both children are visible,
1834         not the drawing of the other child!. (#68325, Diego Gonzalez)
1835
1836 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
1837
1838         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
1839         RENDER before trying to use it... XRenderFindFormat() prints
1840         warnings if called when extension isn't present.
1841
1842 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
1843
1844         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
1845         path upon parent changes.
1846
1847 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
1848
1849         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
1850         fix to force vadjustments at size_alocate time from Xavier Ordoquy
1851         <mcarkan@users.sourceforge.net>.
1852
1853 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
1854
1855         * gtk/gtklayout.c (gtk_layout_get_property): 
1856         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
1857         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
1858         * gtk/gtkwidget.c (gtk_widget_get_property): 
1859         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
1860         * gtk/gtkrange.c (gtk_range_get_property):
1861         * gtk/gtkviewport.c (gtk_viewport_get_property):
1862         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
1863         possible NULL pointer.
1864
1865 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
1866
1867         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
1868         * gtk/gtktreednd.h : ditto.
1869         * gtk/gtktreemodel.h : ditto.
1870         * gtk/gtktreesortable.h : ditto.
1871         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
1872
1873 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
1874
1875         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
1876         than XIDs in the docs.
1877
1878         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
1879
1880 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
1881
1882         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
1883         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
1884
1885 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
1886
1887         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
1888         Handle TOGGLE/RADIOBUTTON as well. (#68201,
1889         Damon Chaplin.)
1890
1891         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
1892         bug, just introduced.
1893
1894 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
1895
1896         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
1897         translations, once and for all.
1898
1899         * gtk/gtktextbuffer.c (paste_from_buffer): Free
1900         the ClipboardRequest structure. (#66198, HideToshi
1901         Tajima)
1902
1903 2002-01-08  jacob berkman  <jacob@ximian.com>
1904
1905         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
1906         the child rather than the layout. see bug #68263
1907
1908 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
1909
1910         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
1911         the handle if we aren't showing both children.
1912         (#68135, Diego Gonzalez)
1913
1914 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
1915
1916         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
1917         leak of result of gtk_container_get_children().
1918
1919 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
1920
1921         * gtk/gtktoolbar.c: Fix leaks of results of
1922         gtk_container_get_children(). (#68199, Damon Chaplin)
1923
1924 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
1925
1926         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
1927         Fix problem where child->requisition was accessed
1928         directly instead of calling get_child_requisition()
1929         (#68199, Damon Chaplin)
1930
1931 2001-01-08  James Henstridge  <james@daa.com.au>
1932
1933         * gtk/gtkstyle.c: add trailing */ on doc comment.
1934
1935 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
1936
1937         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
1938         problem where were the offset into the image was passed
1939         into convert_to_format() wrong.
1940
1941         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
1942         gdk_x11_drawable_update_picture_clip () before using
1943         the picture; allow update_picture_clip() to take a NULL gc
1944         to mean no clipping.
1945
1946 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
1947
1948         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
1949
1950         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
1951
1952         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
1953
1954         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
1955
1956         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
1957         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
1958         gtk_widget_push_composite_child), gtk/gtkdialog.c 
1959         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
1960         from messing up the indentation of inline examples.     
1961
1962         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
1963         instead of getenv().
1964
1965         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
1966         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
1967         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
1968
1969         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
1970         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
1971         Document.
1972
1973 2002-01-07  Anders Carlsson  <andersca@gnu.org>
1974
1975         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
1976         unused pixels and rowstride variables.
1977         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
1978
1979 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
1980
1981         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
1982         the pointer by x/y_offset into the new window when we found
1983         the drag destination.
1984
1985         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
1986         for simulation when the entry already contains the required
1987         accel key and mod.
1988
1989 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
1990  
1991         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
1992         G_DISABLE_CAST_CHECKS.
1993
1994         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
1995         gtk_accel_group_query, gtk_accel_group_find,
1996         gtk_accel_groups_from_object): Document.
1997
1998         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
1999
2000 2002-01-04  Hans Breuer  <hans@breuer.org>
2001
2002         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
2003         need to cast image->mem away from void* to avoid 
2004         'error C2036: 'void *' : unknown size'. Doing pointer 
2005         arithmetics on void pointers is a GCCism afaik.
2006
2007         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
2008         _gdk_draw_pixbuf ()
2009
2010         * gdk/makefile.msc gdk/win32/makefile.msc 
2011         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
2012
2013         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
2014         and take care of image->visual possibly NULL.
2015
2016         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
2017         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
2018         Again take care of image->visual possibly NULL.
2019
2020         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
2021
2022         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
2023         instead of private field access
2024
2025         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
2026         colormap setting to the gdk-X behaviour
2027
2028 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
2029
2030         * gtk/gtkwidget.c: Documentation additions.
2031
2032 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
2033
2034         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
2035
2036         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
2037
2038 2002-01-04  Havoc Pennington  <hp@pobox.com>
2039
2040         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
2041         
2042 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
2043
2044         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
2045         don't infinite loop if the widget and window heirarchies
2046         don't correspond.
2047
2048         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
2049         in heirarchy in ::drag_motion, ::drag_drop callbacks
2050         by referencing child widget lists. (Patch from Tim)
2051
2052         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
2053         with widgets where window.x != widget->allocation.x
2054
2055 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
2056
2057         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
2058         a little bit. (More for consistency than because it
2059         makes much of a difference.)
2060
2061 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
2062
2063         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
2064         (_gdk_x11_have_render): Private function to tell if we have RENDER
2065         extension.
2066
2067         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
2068         None if we don't have RENDER extension.
2069
2070         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
2071         use Xft unless we have render extension.
2072
2073         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
2074         Handle missing render extension.
2075
2076         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
2077         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
2078         to the GdkDrawable vtable that extends get_image() to allow
2079         copying onto existing images.  Make the default implementation of
2080         get_image() use this so that backends don't have to implement
2081         both. Add private wrapper _gdk_drawable_copy_to_image().
2082
2083         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
2084         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
2085         copy_to_image() semantics, speed up by using ShmPixmaps and
2086         XCopyArea when possible, XFlush() after ungrabbing the server,
2087         generally redo the logic once again.
2088
2089         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
2090         _gdk_windowing_bits_per_depth(): Function to convert from depth to
2091         bits-per-pixel. (We assume only one bpp per depth - X requires
2092         this.)
2093
2094         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
2095         scratch image code into a generic _gdk_image_get_scratch() chunk
2096         of code that we can use other places we need scratch images.
2097
2098         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
2099         Add _gdk_image_new_for_depth() as the backend 
2100         to _gdk_image_new() to allowing creating images with
2101         a depth and no visual.
2102
2103         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
2104         parts of images not at 0,0 actually works.
2105
2106         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
2107         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
2108          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
2109           _gdk_draw_pixbuf() [ will be made public later ], to allow 
2110           backends to accelerate drawing pixbufs. 
2111          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
2112            to be the default implementation. 
2113          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
2114          - Optimize the default implementation by using 
2115            _gdk_image_copy_to_pixmap() and scratch shared images, and
2116            special casing the compositing.
2117
2118         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
2119         with alpha using the RENDER extension.
2120
2121         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
2122         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
2123
2124         * tests/testrgb.c: Add test for speed of alpha composition,
2125         reduce the number of iterations since alpha composition
2126         can be a bit slow.
2127
2128         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
2129         Private function to get a ShmPixmap for an image, if possible.
2130
2131 2002-01-04  Anders Carlsson  <andersca@gnu.org>
2132
2133         * tests/testtreesort.c: Add my cool list of integers.
2134
2135 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
2136
2137         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
2138         problem where retrieved atoms weren't properly returned.
2139
2140 2002-01-03  Anders Carlsson  <andersca@gnu.org>
2141
2142         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
2143         tab is pressed and the text view isn't editable, 
2144         move the focus instead.
2145
2146         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
2147         necessary.
2148
2149         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
2150
2151         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
2152
2153         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
2154         if it's NULL.
2155
2156         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
2157         _gtk_tree_view_queue_draw_node.
2158         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
2159
2160         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
2161         sort_column_id can be 0.
2162
2163         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
2164         Only redraw one the node being selected.
2165
2166         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
2167         
2168 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
2169
2170         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
2171         realized but visible && !mapped resize containers (which is
2172         possible with unset CHILD_VISIBLE now).
2173
2174 2002-01-02  jacob berkman  <jacob@ximian.com>
2175
2176         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
2177         libsomething_la_LDFLAGS, so fix the build again
2178
2179 2002-01-01  Havoc Pennington  <hp@pobox.com>
2180
2181         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
2182         exposes to no window children not in the buffer window.
2183         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
2184         - is this the right way to do it?
2185         (gtk_text_view_focus): add focus method, just chains up for now, 
2186         I'm not sure why the GtkContainer implementation doesn't work
2187
2188         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
2189         in the text line for the child anchor segment
2190
2191         * tests/testtext.c (do_add_focus_children): add another test
2192         example (to put focusable buttons into the widget)
2193
2194 2002-01-01  Havoc Pennington  <hp@pobox.com>
2195
2196         * docs/README.linux-fb: note that this file is obsolete
2197
2198         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
2199         files that they should not be edited and look in the reference 
2200         manual instead. Probably these files should just be replaced by 
2201         the note, and their main contents deleted.
2202
2203         * gtk/gtktextview.c: docs
2204
2205         * gtk/gtktextmark.c: docs
2206
2207         * gtk/gtktextchild.c: docs
2208
2209         * gtk/gtktextbuffer.c: docs stuff
2210
2211         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
2212         give people more leads in sorting out PRIMARY vs. CLIPBOARD
2213
2214 2002-01-01  Tor Lillqvist  <tml@iki.fi>
2215
2216         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
2217         ../gdk-pixbuf/gdk-pixbuf-csource.
2218
2219 2001-12-31  Tor Lillqvist  <tml@iki.fi>
2220
2221         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
2222         handling.
2223         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
2224
2225         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
2226         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
2227         one more place.
2228
2229         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
2230         -Wall.
2231
2232         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
2233
2234 2002-01-01  Havoc Pennington  <hp@pobox.com>
2235
2236         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
2237         fix
2238         
2239 2002-01-01  Havoc Pennington  <hp@pobox.com>
2240
2241         * gtk/gtktextview.c (changed_handler): Replace call to
2242         gtk_widget_size_request() that expected to actually compute the
2243         request with a direct use of widget_class->size_request, so we get
2244         our size request right; fixes remaining part of #63065 reported by
2245         Matthias Clasen
2246
2247 2001-12-31  Havoc Pennington  <hp@pobox.com>
2248
2249         * tests/testtext.c (do_insert_and_scroll): remove backward_char
2250         since we no longer have bogus newline
2251         (dialog_response_callback): remove another backward_char horkage, 
2252         reported by Matthias Clasen #63065
2253
2254 2001-12-31  Havoc Pennington  <hp@pobox.com>
2255
2256         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
2257         fix an incorrect assertion that the "valid" flag is always correct
2258         in a node and add explanatory comment. This keeps me from 
2259         reproducing #59101, but I'm remembering that 59101 was actually 
2260         about incorrect pixel totals, so I'm not sure 59101 is actually 
2261         fixed. May just have stopped happening due to some change in 
2262         how C-k works.
2263
2264 2001-12-31  Havoc Pennington  <hp@pobox.com>
2265
2266         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
2267         selection if shift is down, bug #50939
2268         (gtk_text_view_button_press_event): add double/triple click
2269         selection to the current selection if shift is down
2270
2271 2001-12-31  Havoc Pennington  <hp@pobox.com>
2272
2273         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
2274         to use ensure_byte_offsets not ensure_char_offsets, patch 
2275         from Padraig O'Briain bug #67356
2276         
2277 2001-12-30  Havoc Pennington  <hp@pobox.com>
2278
2279         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
2280         the right values, reported by Jeff Franks
2281
2282 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
2283
2284         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
2285
2286 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
2287
2288         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
2289         Minor documentation tweaks.
2290
2291 2001-12-28  Tor Lillqvist  <tml@iki.fi>
2292
2293         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
2294         (unicode_classify): Don't return -1 on encountering an
2295         unclassified character, but play it safe and return U_BASIC_LATIN.
2296
2297 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
2298
2299         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
2300         of misc->xpad/ypad consistent with GtkLabel. Do 
2301         directional flipping when interpreting misc->xalign/yalign.
2302         Fix off-by-one error for negative x,y. (#67472, reported
2303         by Mathieu Lacage)
2304
2305 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
2306
2307         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
2308         Remove optimization that was causing problems because
2309         we called gtk_widget_size_request() before we called
2310         gtk_widget_queue_resize() so RESIZE_NEEDED was not
2311         set. Optimization shouldn't mattter now that we
2312         are smart about needlessly size requesting or allocating
2313         widgets. (#67598, reported by Jacob Berkman)
2314
2315 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
2316
2317         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
2318         Call gdk_window_get_pointer() on menu->bin_window not
2319         menu->window, so we get the correct window for the
2320         menu item. (#65213, Guillermo S. Romero)
2321
2322 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
2323
2324         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
2325         the title by setting to NULL. Move docs inline. 
2326         Update the title if the tearoff window already
2327         exists. Code cleanup. (Fixes #65190, reported by
2328         Vitaly Tishkov.)
2329
2330 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
2331
2332         * gtk/gtksocket.c (gtk_socket_key_press_event): 
2333         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
2334         special handling of key presses unless we are doing 
2335         iter-app embedding. (Fixes #67590, Anders Carlsson)
2336
2337 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
2338
2339         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
2340         (gtk_tree_model_sort_sort_level),
2341         (gtk_tree_model_sort_insert_value): fix a few places where
2342         I was confused between modelsort iters and other iters. This was
2343         really going to happen someday ;)
2344
2345 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
2346
2347         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
2348         we are unprelighted before reordering
2349
2350         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
2351         need to break out of the for loop, not return (this fixed
2352         the 'selection freeze' bug).
2353
2354         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
2355         be pretty stable now, though it still needs some more code
2356         cleanups.
2357
2358 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
2359
2360         * docs/Changes-2.0.txt: Document the fact that
2361         gtk_paned_set_handle_size() has been removed.
2362
2363         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
2364         since it pointed to gtk_paned_set_handle_size(), which
2365         was removed. (#66760, Matt Wilson)
2366
2367 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
2368
2369         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
2370         gtk_drag_hightlight_expose _after_, so it works with
2371         widgets that paint there entire background. (#66735)
2372
2373 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
2374
2375         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
2376         allocation to widget->allocation. (Fixes #67290,
2377         Chris Phelps.)
2378
2379 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
2380
2381         (#67542, reported by Anders Carlsson)
2382         
2383         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
2384         rc_style->font_desc with defaul style instead of replacing
2385         it.
2386
2387         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
2388         font descriptions in RC styles by calling
2389         pango_font_description_merge(). 
2390
2391 2001-12-24  James Henstridge  <james@daa.com.au>
2392
2393         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
2394         valid with both SGML and XML.
2395
2396 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
2397
2398         * configure.in: 1.3.12, interface, binary age 0.
2399
2400         * configure.in: Require new versions of Glib, Pango, ATK.
2401
2402         * NEWS: Updated.
2403
2404         * configure.in: Make explicit what libtool we are executing.
2405         (Tomas Ogren)
2406
2407         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
2408
2409         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
2410         parameter names for docs.
2411
2412 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
2413
2414         * gtk/gtkwindow.c (gtk_window_realize) 
2415           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
2416
2417         * gtk/gtkentry.c (gtk_entry_key_release)
2418           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
2419         key release events to the input method.
2420
2421         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
2422         Handle release of Control/Shift to end hex sequence.
2423
2424         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
2425         Handle key releases as well as presses.
2426
2427 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
2428
2429         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
2430
2431         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
2432         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
2433         documentation about underscores and mnemonics. (#66380)
2434
2435         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
2436         cyclic reference in docs.
2437
2438         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
2439         of default value. (#65402)
2440
2441         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
2442         Markup fixes.
2443
2444 2001-12-20  Anders Carlsson  <andersca@gnu.org>
2445
2446         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
2447         map here.
2448
2449 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
2450
2451         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
2452         (reported by Jeff Franks.)
2453
2454 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
2455
2456         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
2457         prototype for direction_changed. (Reported by
2458         Jeff Franks.)
2459
2460 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
2461
2462         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
2463         Fix typo (list->data becomes list->next)
2464
2465 2001-12-06  Havoc Pennington  <hp@redhat.com>
2466
2467         Add Unicode control char menu, based on patch from Dov.
2468         Bug #63495
2469         
2470         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
2471         gtk_entry_enter_text
2472         (gtk_entry_enter_text): function to do "typing in text"
2473         (popup_targets_received): add the Unicode menu items
2474
2475         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
2476         on Input Methods item, and add the unicode menu items.
2477
2478         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
2479         used in GtkEntry and GtkTextView - may become public later.     
2480
2481 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
2482
2483         * gtk/gtkprogressbar.c: Fix a typo.
2484         * gtk/gtkpaned.c: Fix a typo.
2485         
2486 2001-12-15  Darin Adler  <darin@bentspoon.com>
2487
2488         Fix some warnings.
2489
2490         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
2491         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
2492         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
2493         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
2494         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
2495         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
2496         Restructure loop to get rid of uninitialized variable warning. Also
2497         gives a tiny efficiency gain.
2498
2499 2001-12-15  Murray Cumming  <murrayc@usa.net>
2500
2501         * Fixed first arg type of GtkScale's "format_value" signal's
2502         function pointer.
2503
2504 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
2505         docs/reference/gtk/tmpl/gtkcelleditable.sgml
2506                 gtkcelleditable -> GtkCellEditable
2507         docs/reference/gtk/tmpl/gtktreesortable.sgml
2508                 gtktreesortable -> GtkTreeSortable
2509
2510 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2511
2512         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
2513         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
2514         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
2515         resp.
2516
2517 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
2518
2519         * gtk/gtktreeview.c (validate_visible_area): free path
2520         at the end
2521
2522 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
2523
2524         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
2525
2526 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
2527
2528         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
2529         to find the clicked node in the tree when tree == NULL
2530
2531 2001-12-13  Anders Carlsson  <andersca@gnu.org>
2532
2533         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
2534         event->state with the default mod mask. 
2535
2536 2001-12-12  jacob berkman  <jacob@ximian.com>
2537
2538         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
2539
2540 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
2541
2542         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
2543         Reset the existing slave before removing it to give
2544         it a chance to commit and emit "preedit_changed" 
2545         in case there was still a preedit string.
2546
2547 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
2548         
2549         * gtk/gtktextlayout.c: Typo fixes
2550         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
2551
2552         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
2553         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
2554
2555         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
2556
2557 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
2558
2559         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
2560         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
2561
2562 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
2563
2564         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
2565         "prepainting" the menu before realizing other than
2566         via gtk_style_set_background() - this was broken when
2567         we added menu scroll support.
2568
2569         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
2570         window in the expose event -- fixes problem with border
2571         flashing during scrolling.
2572
2573 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
2574
2575         * gtk/gtksettings.c (gtk_settings_get_property): Support
2576         using names/nicks for the gdk_settings values for enum valued
2577         types. (#57678, reported by Anders Carlsson)
2578
2579 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
2580
2581         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
2582         with insert_page_menu.  Code duplication is bad.
2583
2584         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
2585         wrong fix yesterday.
2586
2587 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
2588
2589         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
2590         modifiers.
2591
2592 2001-12-12  James Henstridge  <james@daa.com.au>
2593
2594         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
2595         (menu_item)->accel_path first when looking up the accel path.
2596
2597 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
2598
2599         * tests/testgtk.c (layout_expose_handler): Only draw
2600         for events on the bin window.
2601
2602 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
2603
2604         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
2605         mnemonics work with notebooks.
2606
2607 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
2608
2609         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
2610         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
2611         Makes some flicker while scrolling go away.
2612
2613 2001-12-11  Michael Natterer  <mitch@gimp.org>
2614
2615         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
2616         adds alpha to the pixbuf; re-load the saved pixbuf and
2617         pixel-by-pixel compare it with the original one.
2618
2619 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
2620
2621         * ChangeLog: Fix wrong ChangeLog entry
2622         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
2623         right corner
2624
2625 2001-12-10  jacob berkman  <jacob@ximian.com>
2626
2627         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
2628         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
2629         (gdk_keyboard_grab): do not grab things if the nograb debug flag
2630         is set
2631
2632         * gdk/gdkinternals.h: 
2633         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
2634         keyboard / mouse
2635
2636 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
2637
2638         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
2639         didn't reset the timer.
2640
2641 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
2642
2643         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
2644
2645 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
2646
2647         * gtk/gtkviewport.c: Add docs.
2648
2649 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
2650
2651         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
2652         RBTree corruption bug--
2653
2654 2001-12-10  Anders Carlsson  <andersca@gnu.org>
2655
2656         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
2657         if edited_column is NULL, also grab focus before removing
2658         the cell_editable.
2659
2660 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
2661
2662         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
2663           denominator in the horizontal case just like we do in the vertical
2664           case (why I didn't notice that there were two cases the first time
2665           around is beyond me:).  Also fix indentation in the vertical case.
2666
2667 2001-12-09  Anders Carlsson  <andersca@gnu.org>
2668
2669         * gdk/x11/gdkevents-x11.c: Update xsettings name.
2670
2671         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
2672         gtk-dnd-drag-threshold GtkSetting.
2673
2674         * gtk/gtksettings.c (gtk_settings_class_init): Add 
2675         setting for dnd drag threshold.
2676
2677 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
2678
2679         * gtk/gtkcontainer.c: Add docs.
2680
2681 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
2682
2683         * gtk/gtkwidget.c: Doc markup fix. 
2684
2685         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
2686
2687         * gtk/gtktreestore.c: Typo fixes. (#66445)
2688
2689         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
2690
2691         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
2692         to gtk_clipboard_set_with_owner(). (#66424)
2693  
2694 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
2695
2696         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
2697         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
2698         Fabrice Bellet <fabrice@gnu.org>, #54127).
2699
2700 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
2701
2702         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
2703         of places, so that people with crashy trees can just run their
2704         program with GTK_DEBUG=TREE.
2705
2706 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
2707
2708         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
2709         per jrb's request
2710
2711 2001-12-08  Anders Carlsson  <andersca@gnu.org>
2712
2713         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
2714         since then the default GtkLayout expose handler won't be called.
2715
2716 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
2717
2718         * gtk/gtktreeview.c (validate_rows_handler): remove
2719         g_return_if_fail.
2720
2721         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
2722         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
2723         empty model.
2724
2725 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
2726
2727         * gtk/gtktreeview.c (validate_visible_area): get logic right,
2728         #66249
2729
2730         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
2731         removing a node ended up with a corrupt tree.  Really really nasty
2732         bug.
2733         (_gtk_rbtree_debug_spew): new debug helper function
2734         (_fixup_validation): new inline function to clean up code
2735         readability a lot. 
2736
2737 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
2738
2739         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
2740         Close comment.
2741
2742 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
2743
2744         * gtk/gtkstyle.h: Typo fixes.
2745
2746         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
2747
2748         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
2749
2750 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
2751
2752         * modules/input/gtkimcontextxim.c: Display the XIM
2753         status callbacks with a popup window. (Patch from
2754         HideToshi Tajima, #50628, somewhat modified.)
2755
2756 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
2757
2758         * gtk/Makefile.am: each source generation rule needs to use its own
2759         temporary file, to avoid clashes for parallel builds. fixed rules
2760         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
2761
2762 2001-12-07  Havoc Pennington  <hp@pobox.com>
2763
2764         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
2765         "cursors that are actually useful" in gdk_cursor_new() docs
2766
2767 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
2768
2769         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
2770         in computing the size of the second child.
2771
2772 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
2773
2774         * gtk/gtkrange.c: Make button 1 clicks on the trough
2775         do pages, button 3 steps. (Patch from Hans Breuer
2776         #63735)
2777
2778 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
2779
2780         * gtk/gtklabel.c: Fix docs. (#66383)
2781
2782         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
2783         (#66278, #66280)
2784         
2785         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
2786         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
2787
2788         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
2789         Don't emit a g_warning() about being deprecated. (#66208)       
2790
2791         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
2792
2793         * gtk/gtkcontainer.c: Doc fixes.
2794         
2795         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
2796
2797         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
2798
2799 2001-12-05  Sven Neumann  <sven@gimp.org>
2800
2801         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
2802
2803         * gtk/queryimmodules.c: g_dir_read_name() returns const.
2804
2805 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
2806
2807         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
2808         #66225
2809         
2810 2001-12-04  Manish Singh  <yosh@gimp.org>
2811
2812         * gtk/gtkmain.c
2813         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
2814         a gpointer.
2815
2816         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
2817         correction to docs.
2818
2819         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
2820
2821 2001-12-04  Havoc Pennington  <hp@redhat.com>
2822
2823         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
2824         g_assert_not_reached() that was bogus, since we demand-create the
2825         tag info. reported by Chris Phelps
2826
2827         Jump through assorted hoops to fix bug from Chris Phelps where 
2828         removing tags from the table resulted in btree trying to 
2829         access tag->table
2830         
2831         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
2832         ourselves to the tag table
2833
2834         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
2835         (_gtk_text_tag_table_remove_buffer): private cruft to 
2836         let us notify buffer of disappearing tags
2837
2838         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
2839         header, put it in tagprivate    
2840
2841         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
2842         tag_removed; it's emitted too late.
2843         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
2844         this
2845
2846         Padding for ABI-compat expansion
2847         
2848         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
2849         (struct _GtkTextAppearance): one pad in here too
2850
2851         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
2852
2853         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
2854         since action signals etc. seem pretty likely
2855
2856         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
2857
2858         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
2859
2860         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
2861
2862 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
2863
2864         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
2865
2866         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
2867
2868         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
2869
2870 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
2871
2872         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
2873         #62084.
2874
2875 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
2876
2877         * demos/gtk-demo/main.c: (create_tree): Minor fix.
2878
2879         * docs/tree-column-sizing.txt: Update
2880
2881         * gtk/gtkrbtree.[ch]: Massive work to support validation.
2882
2883         * gtk/gtktreemodel.c: Doc fixes.
2884
2885         * gtk/gtktreeview.c: Incremental reflow added.
2886         * gtk/gtktreeviewcolumn.c: ditto
2887         * gtk/gtktreeviewcolumn.h: ditto
2888
2889 2001-12-04  Havoc Pennington  <hp@redhat.com>
2890         
2891         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
2892         "invisible" property, #65999
2893
2894 2001-12-04  Matt Wilson  <msw@redhat.com>
2895
2896         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
2897
2898 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
2899
2900         * gtk/gtksettings.c (gtk_settings_set_property_value):
2901         Simplify, make more efficient and fix memory leak
2902         when turning quark into a string. (#66103, HideToshi
2903         Tajima)
2904
2905         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
2906         init() and unref priv->tooltips in destroy rather
2907         than calling gtk_object_destroy() which has no
2908         effect on memory management. (#66104, HideToshi
2909         Tajima)
2910
2911         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
2912         so we free the when the object is freed. (Fixes memory
2913         leak, #66096, HideToshi Tajima)
2914
2915         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
2916         a full GdkEvent structure to avoid reads of uninitialized/
2917         invalid memory in gdk_event_put() (#65877, patch
2918         from Hidetoshi Tajima)
2919
2920 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
2921
2922         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
2923         toggle-size-request doesn't take a requisition.
2924
2925         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
2926         reference to marshaler that no longer exists.
2927
2928 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
2929
2930         Patch from Bill Haneman (with many modifications) to make
2931         the focus color work on dark themes and to make the
2932         focus line width configurable. (#61079, #63074)
2933
2934         * gtk/gtkwidget.c: Add style properties, 
2935         ::focus-widget, ::focus-line-width, and ::focus-padding.
2936
2937         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
2938         state argument as well so we can use fg[STATE] to
2939         draw instead of always drawing with black. 
2940         Cange paint_focus() to respect GtkWidget::focus-width
2941         and GtkWidget::focus-line-pattern. Fix continuity
2942         problem where the default 1-1 stipple had a blob
2943         in one corner and a gap in the other. Change the
2944         interpretation of x/y/width/height to be the bounding
2945         box of the focus rect instead of the rectangle
2946         passed to gdk_draw_rectangle.
2947
2948         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
2949         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
2950         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
2951         and ::focus-line-padding.
2952
2953         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
2954         and remove duplicated code; fix drawing of focus rectangle
2955         when interior-focus = FALSE. (#63072, #63073)
2956
2957         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
2958         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
2959         Range and TreeViewColumn will need more extensive fixing.
2960
2961         * gtk/gtkcolorsel.c: Honor focus line attributes when
2962         drawing the focus on the color swatches. (#63071)
2963
2964         * gtk/gtkhsv.c: Honor focus line attributes when
2965         drawing the focus for the ring and triangle.
2966
2967         * docs/widget_geometry.txt: Start at documenting how 
2968         various widgets are drawn.
2969
2970         * gtk/gtkbutton.c (_gtk_button_paint): Export 
2971         _gtk_button_paint() librarywide, so we don't have 
2972         duplicate a bunch of code in gtktogglebutton.c.
2973
2974         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
2975
2976 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
2977
2978         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
2979         NONE:POINTER.
2980
2981 2001-12-03  Alex Larsson  <alexl@redhat.com>
2982
2983         * gtk/gtkaccellabel.c:
2984         * gtk/gtkarrow.c:
2985         * gtk/gtkcolorsel.c:
2986         * gtk/gtkcontainer.c:
2987         * gtk/gtklabel.c:
2988         * gtk/gtktextview.c:
2989         * gtk/gtktogglebutton.c:
2990         * gtk/gtktreeview.c:
2991         * gtk/gtkwindow.c:
2992         Return FALSE from expose handlers.
2993
2994 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
2995
2996         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
2997         we use pointers, we should free the previous pointer first (if
2998         it exists), before we set a new pointer. (#64726)
2999
3000         * gtk/gtktreeprivate.h: get rid of cursor_drag
3001
3002         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
3003         for cursor_drag
3004         (gtk_tree_view_bin_expose): don't directly return in the while
3005         loop
3006         (gtk_tree_view_class_init): indentend expanders by default
3007         (gtk_tree_view_header_focus): only give the button focus
3008         if it's clickable, visible and the column is reorderable
3009         (#65539)
3010
3011         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
3012         create and free cursor
3013
3014 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
3015
3016         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
3017         some bugs with size requisition. (From Bill Haneman)
3018
3019         * gtk/gtkcalendar.c: Draw headers and selection in 
3020         base/text[SELECTED] instead of fg/bg[SELECTED].
3021
3022         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
3023         code and formatting.
3024
3025 2001-12-03  Havoc Pennington  <hp@pobox.com>
3026
3027         * gtk/gtktextview.c (set_window_height): 
3028         (set_window_width): Hmm, setter functions normally assign the new
3029         value to the object field. Reported by Chris Phelps.
3030
3031 2001-11-30  jacob berkman  <jacob@ximian.com>
3032
3033         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
3034         signal id to 0 after we disconnect from it
3035
3036 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
3037
3038         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
3039         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
3040         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
3041         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
3042
3043         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
3044         GTK_DISABLE_DEPRECATED.
3045
3046         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
3047         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
3048
3049 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
3050
3051         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
3052         move/resize code, removing various bad, non-functional
3053         hacks. (Fixes #65048, reported by Damon Chaplin.)
3054
3055 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
3056
3057         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
3058         bad match error when target drawable is not the 
3059         same depth as the root window. (#65841)
3060
3061         * HACKING: Update.
3062
3063 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
3064
3065         * gdk/gdkwindow.c: Typo fix.
3066
3067 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
3068
3069         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
3070         empty menu items to behave like insensitive items (#59456)
3071
3072         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
3073         next item if the first item in the menu is a tear off item
3074         (#59456-2, suggestion by Matthias Clasen)
3075
3076         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
3077         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
3078         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
3079         (gtk_real_menu_shell_activate_current): add check, so empty
3080         menu items behave like insensitive items (#59456)
3081         
3082         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
3083         the checks more readable ...
3084         
3085         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
3086         (gtk_menu_shell_button_release): causes the menu to dropdown if the
3087         caption is clicked again (#64977)
3088
3089 2001-11-29  Havoc Pennington  <hp@redhat.com>
3090
3091         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3092         assertion here that we were at the end iterator was not correct;
3093         change code to move us to the end iterator. bug #65731
3094
3095 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
3096
3097         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
3098         improper use of g_locale_to_utf8() to convert from
3099         latin-1, and do it the easy way by building the string
3100         correctly in the first place.
3101
3102 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
3103
3104         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
3105         Convert atoms to and from atoms for properties of type XA_ATOM.
3106         (#65555, patch from Hidetoshi Tajima)
3107
3108 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
3109
3110         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
3111         to avoid problems with Objective C.
3112
3113 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
3114         
3115         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
3116
3117         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
3118         Fix docs. (#65505)
3119
3120         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
3121
3122 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
3123
3124         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
3125         accounting of menu->tearoff_scrollbar width to here
3126         and make sure we have the correct requisition.
3127
3128         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
3129         by using gtk_window_move().
3130
3131         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
3132         the requisition to be updated by calling
3133         gtk_widget_size_request() (#65440)
3134
3135         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
3136         queue resize before calling gtk_menu_set_tearoff_state().
3137
3138 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
3139
3140         * demos/gtk-demo/editable_cells.c: fix typo
3141
3142         * demos/gtk-demo/list_store.c (add_columns): remove call to
3143         gtk_tree_view_column_set_clickable which didn't make sense
3144
3145 2001-11-28  Havoc Pennington  <hp@redhat.com>
3146
3147         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
3148         explaining the validation error in front of the G_BREAKPOINT
3149
3150         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
3151         process updates with include_children = FALSE instead of TRUE, so
3152         we redraw the range only, not the whole darn window.  Making
3153         GtkRange a NO_WINDOW widget had weirdly caused the text widget
3154         Trace/breakpoint trap bug to become much easier to trigger.
3155
3156 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
3157
3158         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
3159         to gdkcursors.h.
3160
3161 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
3162
3163         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
3164
3165         * gdk/gdkcursor.h: Directly include the contents
3166         of gdkcursors.h in the GdkCursorType enum.
3167
3168         * gdk/gdkcursors.h: Deleted.
3169
3170         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
3171         header boilerplate.
3172
3173         * gdk/Makefile.am: Remove the X-derived-headers rule.
3174
3175 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
3176
3177         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
3178         Notify on the ::active property _here_, not in
3179         gtk_check_menu_item_set_active.
3180
3181 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
3182
3183         * gtk/gtkcellrendererpixbuf.c
3184         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
3185         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
3186
3187 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
3188
3189         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
3190         comment about what is going on in this file.
3191
3192         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
3193         x/y problem.
3194
3195 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
3196
3197         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
3198         Calculate size based on the _child_ of the menu item,
3199         not the menuitem. (#65005, Damon Chaplin)
3200
3201         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
3202         some extra vertical padding to the label widget ... restores
3203         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
3204
3205 2001-11-26  Tor Lillqvist  <tml@iki.fi>
3206
3207         * demos/pixbuf-demo.c
3208         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
3209
3210         * demos/gtk-demo/main.c (read_line): No flockfile() or
3211         getc_unlocked() on Win32.
3212
3213 2001-11-25  Tor Lillqvist  <tml@iki.fi>
3214
3215         * configure.in
3216         * acconfig.h: As we now use GDir, no need to check for dirent.h.
3217
3218 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
3219
3220         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
3221         when finished (#65266)
3222
3223 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
3224
3225         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
3226         data after we set the property. (#65264)
3227
3228 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
3229
3230         * gtk/gtkbutton.c: add destroy method so label_text gets freed
3231         if it has been allocated (#65268)
3232
3233 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
3234
3235         * gdk/linux-fb/gdkdrawable-fb2.c
3236         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
3237
3238         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
3239
3240         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
3241         set_family
3242         
3243         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
3244
3245 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
3246
3247         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
3248         deactivate menu when menu_item isn't sensitive (#61389)
3249
3250 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
3251
3252         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
3253         we return (in case of a failure here)
3254
3255 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
3256
3257         * gtk/gtknotebook.c: Handle events in windows other
3258         than widget->event_window properly. (#65079, reported
3259         by Damon Chaplin)
3260
3261         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
3262
3263 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
3264
3265         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
3266         the image at the top. (#65020, request from Seth Nickell)
3267
3268 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
3269
3270         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
3271         arithmetic that was resulting in rows being drawn too low.
3272         (#65001, reported by Damon Chaplin)
3273
3274 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
3275
3276         * gtk/gtkrange.c (gtk_range_button_press): Offset 
3277         invalidated range correctly.
3278
3279         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
3280         of title window. (#65001, reported by Damon Chaplin)
3281
3282         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
3283         horrible hack with use of ::event_after.
3284
3285 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
3286
3287         * Version 1.3.11
3288
3289         * configure.in (ATK_REQUIRED_VERSION): Require
3290         GLib-1.3.11, Pango-0.22, ATK-0.7.
3291
3292         * tests/prop-editor.c (property_widget): Restore
3293         to working as well as it did before.
3294
3295         * gtk/gtklistitem.h: Mark deprecated since it is
3296         an integral part of GtkList.
3297
3298         * demos/gtk-demo/demo-common.h: New header file,
3299         for a common functions not important to the meat
3300         of the demos.
3301         
3302         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
3303         function to search for a file used by the demo.
3304
3305         * demos/*.c: Use demo_find_file.
3306
3307 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
3308
3309         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
3310         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
3311         fixes already mentioned in ChangeLog entry on 2001-11-14.
3312
3313         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
3314
3315 2001-11-23  Hans Breuer  <hans@breuer.org>
3316
3317         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
3318         reflect Pango API change
3319
3320         * gtk/gtk.def : updated externals
3321
3322         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
3323         g_return_val_if_fail() to avoid 'function must return a value'
3324
3325         * gtk/gtkrc.c : added spaces to fix small coding style issues
3326         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
3327         'static correctness'
3328
3329         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
3330         because they only can be build on win32 after applying my patch
3331
3332 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
3333
3334         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
3335         children, in order for the input pnly window to stay *above*
3336         children.
3337
3338 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
3339
3340         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
3341         type walks againts G_TYPE_FUNDAMENTAL_MAX.
3342         
3343         * tests/prop-editor.c: disable type hackery.
3344
3345 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
3346
3347         * gdk/gdkimage.c (gdk_image_get): Fix problem with
3348         lost parameter.
3349
3350 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
3351
3352         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
3353         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
3354         trailing commas in enum declarations.
3355
3356 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
3357
3358         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
3359         interface, binary age 0.
3360
3361         * NEWS: Updates
3362
3363         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
3364         fixes in docs.
3365
3366         * gtk/gtkmain.h: Remove unused and misnamespaced
3367         get_gtk_win32_directory() prototype.
3368
3369         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
3370         to match header.
3371
3372         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
3373         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
3374         to match docs.
3375
3376         * gdk/gdkevents.c (gdk_event_get_coords)
3377           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
3378           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
3379         Fix parameter names in docs.
3380         
3381         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
3382         (#64961, Akira Tagoh)
3383
3384 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
3385
3386         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
3387
3388         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
3389
3390         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
3391
3392         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
3393         back to gtk_accel_groups_from_object(), change @acceleratable
3394         parameter to gtk_accel_groups_activate() accordingly.
3395
3396         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
3397         left-over comment about quark return.
3398
3399         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
3400
3401         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
3402         (Patch from Matt Wilson)
3403
3404         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
3405         object is finalized.
3406
3407 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
3408
3409         * applied patch from owen to get rid of accel map notifiers.
3410         changed things to fix reentrancy and API as discussed on gtk-devel.
3411
3412         * gtk/gtkaccelgroup.[hc]:
3413         (gtk_accel_group_finalize): unregister this accel group from all
3414         accel map paths.
3415         (accel_closure_invalidate): handle invalidation of closures by
3416         disconnecting their accelerators.
3417         (quick_accel_add): move closure connection and changed notification
3418         into this function to reduce code duplication. don't emit change
3419         notification on closurers without accelerators.
3420         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
3421         for a GtkAccelGroupEntry.
3422         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
3423         (gtk_accel_group_connect_by_path): new function to add accelerators
3424         with an accel path.
3425         (gtk_accel_group_disconnect_closure): new function, disconnect a
3426         closure from of an accel group.
3427         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
3428         accel_mods pair and remove them.
3429         (_gtk_accel_group_reconnect): new function that basically does
3430         gtk_accel_group_disconnect_closure() and
3431         gtk_accel_group_connect_by_path() once an accel path changed.
3432         (gtk_accel_groups_disconnect_closure): remove this, there's
3433         gtk_accel_group_disconnect_closure().
3434         
3435         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
3436         nuke notifiers.
3437         (_gtk_accel_path_is_valid): make this non-static for
3438         gtkwidget.c and gtkaccelgroup.c assertions.
3439         (gtk_accel_map_add_notifer): removed this function.
3440         (gtk_accel_map_remove_notifer): same.
3441         (_gtk_accel_map_add_group):
3442         (_gtk_accel_map_remove_group): (un-)register accel groups, with
3443         accel paths for correct propagation.
3444         (gtk_accel_map_add_entry): return void.
3445         (gtk_accel_map_lookup): return gboolean instead of GQuark.
3446         
3447         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
3448         set accel_path on widgets.
3449         
3450         * gtk/gtkwidget.[hc]:
3451         (accel_path_changed): got rid of this, changes are handled by
3452         accel maps internally now.
3453         (_gtk_widget_set_accel_path): get things to work without notifiers.
3454         (gtk_widget_list_accel_closures): list accel closures of a widget.
3455         
3456         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
3457
3458 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
3459
3460         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
3461
3462 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
3463
3464         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
3465         replace gboolean free_last in the function parameters with
3466         gint depth. Changes to reflect new situation.
3467
3468         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3469         replace gboolean free_last, with gint depth, add gint current_depth.
3470         Changes to reflect new situation.
3471
3472         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
3473         to reflect new situation
3474
3475         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
3476
3477 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
3478
3479         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
3480         where notebook gap was double shifted by allocation.x/y
3481
3482         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
3483         to unmap children.
3484
3485 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
3486
3487         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
3488         allocation to be relative to paned->allocation, now
3489         that this is a NO_WINDOW widget.
3490         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
3491
3492         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
3493         needs to be a boxed property.
3494
3495 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
3496
3497         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
3498         Use the widget's state when drawing the indicator, as
3499         in GtkCheckButton. This gives us color changes for
3500         un-prelighted checkbuttons. (#63308, Matt Wilson)
3501
3502 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
3503
3504         (Fixes related to #64428, Michael Meeks)
3505
3506         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
3507         widget, so it gets mapped again properly when we
3508         add to a parent.
3509
3510         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
3511         plug->socket_window. 
3512
3513         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
3514         socket_window to NULL, not FALSE.
3515
3516         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
3517         socket->same_app to TRUE. (#64612)
3518
3519 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
3520
3521         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
3522         gtk_fixed_set/get_has_window() to remove criticism
3523         about GTK_WIDGET_SET_FLAGS() hacks.
3524
3525 2001-11-19  Michael Natterer  <mitch@gimp.org>
3526
3527         * gtk/gtknotebook.c: show notebook->event_window with
3528         gdk_window_show_unraised(), so it doesn't catch the events which
3529         should go to the tab widgets first.
3530
3531 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
3532
3533         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
3534         "resizable" property, to get rid of the
3535         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
3536         (gtk_tree_view_column_set_resizable): New function to set resizable.
3537         (gtk_tree_view_column_set_resizable): getter.
3538
3539         * tests/testtreecolumns.c (add_clicked): modify for above change.
3540
3541         * Makefile.am (install-data-hook): remove old .pc files before
3542         installing the new one.  We used to symlink this, and it will
3543         break old installs.
3544
3545 2001-11-19  Havoc Pennington  <hp@pobox.com>
3546
3547         * tests/testtext.c (fill_example_buffer): put in a test for
3548         negative indentation values
3549
3550 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
3551
3552         * gtk/gtklabel.c (gtk_label_init): Change default for
3553         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
3554         labels are most often wrapped labels, this gives better
3555         compatibility with GTK+-1.2, where justification was
3556         ignored for wrapped labesl and is a more sensible
3557         default in any case. (#64489)
3558
3559         * gtk/gtklabel.c (gtk_label_class_init): Fix default
3560         for wrap property to FALSE.
3561
3562 2001-11-19  jacob berkman  <jacob@ximian.com>
3563
3564         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
3565
3566 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
3567
3568         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
3569         RevertToParent, not RevertToNone. (#64613, 
3570         Matthias Clasen)
3571
3572 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
3573
3574         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
3575         and label_yalign need to be float properties to
3576         correspond to GTK+-1.2, to gtk_frame_set_label_align,
3577         and to the types of the xalign and yalign properties of GtkMisc.
3578         (#63484, Vitaly Tishkov)
3579
3580 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
3581
3582         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
3583         of plug_added vfunc. (#64408, Jeff Franks)
3584
3585 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
3586
3587         * configure.in (deps): Undef HAVE_STDLIB_H before
3588         checking for jpeg, because jconfig.h has this
3589         in it too (%#$@!). Fix from Matthias Clasen, #64500.
3590
3591 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
3592
3593         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
3594         memory leak when retrieving atom names. (Michael Meeks,
3595         #64508)
3596
3597 2001-11-18  Alex Larsson  <alexl@redhat.com>
3598
3599         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
3600         Update to new Pango API.
3601         
3602 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
3603
3604         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
3605         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
3606         GTK_OBJECT_DESTROYED() check macro.
3607
3608         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
3609         instances of GTK_OBJECT_DESTROYED() that weren't
3610         needed any more.
3611
3612         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
3613         for a connection to ::destroy.
3614
3615 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
3616
3617         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
3618         have been since the beginning, but as special hack,
3619         allow clearing the NO_WINDOW flag to get a window widget.
3620
3621 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
3622
3623         * gtk/gtktreestore.c: return TRUE when value changed, so
3624         row_changed is being emitted
3625
3626 2001-11-18  Hans Breuer  <hans@breuer.org>
3627
3628         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
3629         no label without op, even if it's a no-op.
3630
3631         * gtk/gtk.def :
3632         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
3633
3634         * config.h.win32.in : remove definition of HAVE_DIRENT_H
3635         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
3636         required anymore, replace it.
3637         * gtk/queryimmodules.c : DIR -> GDir replacement, also
3638         getcwd() -> g_get_current_dir()
3639
3640         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
3641         Even 'noisy laugh' scolling appears to work, though I still can't
3642         claim to have fully understood what it is supposed to do ...
3643
3644 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
3645
3646         * gtk/gtkenums.h: Include glib-object.h instead of
3647         gobject/gsignal.h
3648
3649         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
3650           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
3651         argument to the window_at_pointer() field of
3652         GdkPointerHooks. (Patch from Erwann Chenede)
3653
3654         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
3655         to 6 pointers.
3656
3657 2001-11-17  Matt Wilson  <msw@redhat.com>
3658
3659         * gtk/gtkenums.h: must include glib-object.h only
3660
3661 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
3662
3663         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
3664         key bindings in order of visibility - mnemonics, then 
3665         accelerators, then send key to the focus widget, then
3666         bindings on the GtkWindow.
3667
3668         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
3669         Removed the xoffset, yoffset fields of GtkLayout which were
3670         identically zero for compat with 1.2, but were no longer 
3671         compatible with all uses of these fields in 1.2.
3672
3673         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
3674         unused variable.
3675
3676 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
3677
3678         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
3679         We no longer need to create the signals here ... they
3680         come from the interface.
3681
3682         * gtk/maketypes.awk: Use GType, not GtkType in output.
3683
3684         * gtk/gtktypeutils.h: Mark virtually all of this
3685         file deprecated.
3686
3687         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
3688         the only use of this function is the GtkArg using
3689         GtkCallbackMarshal, since destroy notification is
3690         silly here.
3691
3692 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
3693
3694         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
3695         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
3696         only for compatibility with GTK+-1.2; and deprecate it; 
3697         put all marshalers we actually use into gtkmarshalers.list 
3698         and use the _gtk_marshal_ prefix for these marshalers.
3699
3700 2001-11-17  Murray Cumming  <murrayc@usa.net>
3701
3702         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
3703         The first parameters of the signals are now registered as
3704         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
3705         
3706 2001-11-17  Tor Lillqvist  <tml@iki.fi>
3707
3708         * gtk-zip.sh.in: Build separate runtime and developer
3709         packages.
3710
3711         * gtk/gtk.def: Reflect recent accelerator-related changes.
3712
3713 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
3714
3715         * gtk/gtkwindow.c (gtk_window_set_default): Move 
3716         notification of "has_default" to here, so it
3717         is safe to call gtk_window_set_default() instead
3718         of gtk_widget_grab_default().
3719
3720         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
3721         gtk_widget_grab_focus(), which then calls 
3722         _gtk_widget_internal_set_focus(). This makes 
3723         gtk_window_set_focus() a safe way of both setting
3724         and unsetting the focus widget.
3725
3726         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
3727         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
3728         to find the toplevel.
3729
3730         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
3731         from the "internal functions" section.
3732
3733 2001-11-16  jacob berkman  <jacob@ximian.com>
3734
3735         * tests/testgtk.c (create_radio_buttons): add some no-indicator
3736         radio buttons
3737
3738         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
3739         initially active, also initially be depressed
3740         (gtk_radio_button_clicked): also update our depressed state
3741
3742 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
3743
3744         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
3745         key press events not just to focus/window but also to
3746         intermediate widgets.
3747
3748         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
3749         to switch pages. (Needs some work on handling focus
3750         when switching pages.)
3751
3752 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
3753
3754         * gtk/gtknotebook.c: Fix child allocations to be relative to 
3755         widget position and some drawing bugs.
3756
3757         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
3758         with reading uninitialized variable.
3759
3760 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
3761
3762         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
3763         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
3764         NO_WINDOW widgets.
3765
3766         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
3767         cleanup.
3768
3769         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
3770         we are drawing in a window when drawing the paned handle.
3771
3772 2001-11-16  Sven Neumann  <sven@gimp.org>
3773
3774         * demos/gtk-demo/appwindow.c
3775         * demos/gtk-demo/menus.c: reduce compiler warnings
3776
3777 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
3778
3779         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
3780         unused callback to make things compile with 
3781         gtk_tree_view_path_at_pos_change().
3782
3783 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
3784
3785         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
3786
3787 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
3788
3789         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
3790  
3791 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
3792
3793         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
3794         to get a GdkWindow to compare event->window to.
3795
3796         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
3797         the signal for lateral motion too, #64361
3798
3799         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
3800         arg as it is useless, #64137
3801
3802 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
3803
3804         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
3805
3806 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
3807  
3808         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
3809         gdk_window_invalidate_maybe_recurse() for recursion.
3810         (Soeren Sandmann)
3811
3812         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
3813  
3814         * gtk/gtkcontainer.c (gtk_container_expose): Call
3815         gtk_container_forall() not _foreach() to propagate,
3816         since we need to propagate exposes to internal children
3817         as well.
3818
3819         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
3820         Remove the restriction of only being able to call these
3821         on window widgets, since we have lots of NO_WINDOW widgets
3822         with windows now; for add events, recurse over the children
3823         of widget->window to find one owned by the widget.
3824
3825         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
3826         window to catch events.
3827
3828         * gtk/gtktogglebutton.[ch]: Remove the code for switching
3829         between NO_WINDOW and WINDOW widgets based on the mode.
3830
3831         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
3832         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
3833
3834         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
3835
3836         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
3837         change for range.
3838
3839         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
3840  
3841         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
3842
3843 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
3844
3845         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
3846         "message_type" and "buttons" CONSTRUCT properties. (#64069)
3847
3848         * tests/testsocket.c: Expand tests to add a "local passive
3849         child" (Test case for #64428)
3850
3851 2001-11-14  jacob berkman  <jacob@ximian.com>
3852
3853         * gtk/gtkgamma.c (button_clicked_callback): create the label with
3854         a mnemonic
3855
3856 2001-11-15  Sven Neumann  <sven@gimp.org>
3857
3858         * tests/testgtk.c: make it compile without warnings.
3859
3860 2001-11-14  Alex Larsson  <alexl@redhat.com>
3861
3862         * gtk/gtklabel.c:
3863         Don't recalculate the layout on each gkt_label_ensure_layout () for
3864         wrapped labels.
3865
3866 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
3867
3868         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
3869         the currently selected column when we get the column, #64380
3870
3871         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
3872         to cancel CellRendererText editting, #63613
3873
3874         * gtk/gtkcellrenderertext.c: ditto
3875
3876         * gtk/gtkcellrenderertext.h: formatting changes
3877
3878 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
3879
3880         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
3881
3882         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
3883
3884         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
3885
3886         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
3887
3888         * gtk/gtklabel.c: Documentation fixes (#64452)
3889
3890 2001-11-14  Daniel Egger  <degger@fhm.edu>
3891
3892         * gdk-pixbuf/io-xpm.c: 
3893         (xpm_skip_whitespaces): Remove unused static function.
3894         (xpm_skip_string): Dito.        
3895         (xpm_extract_color): Declare const variable const to avoid warnings. 
3896
3897         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
3898         
3899         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
3900         
3901         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
3902         a long.
3903
3904 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
3905
3906         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
3907         out accidental commit of debugging timing code.
3908
3909 2001-11-14  Havoc Pennington  <hp@redhat.com>
3910
3911         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
3912         it doesn't move to a new line each time you press it
3913
3914         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
3915         return value, #62987
3916
3917 2001-11-14  Havoc Pennington  <hp@redhat.com>
3918
3919         * tests/testtextbuffer.c (main): bulk of the tests were commented
3920         out, oops.
3921
3922         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
3923         function work, should resolve #63426
3924         (gtk_text_iter_ends_line): return TRUE for the end iterator
3925
3926         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
3927         a couple things that might get cached in here.
3928
3929 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
3930
3931         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
3932         "model" construct property for language bindings.
3933
3934         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
3935         function to let you set the column types of a GtkTreeStore for
3936         language bindings.
3937
3938         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
3939
3940 2001-11-13  Havoc Pennington  <hp@redhat.com>
3941
3942         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
3943         including reference to bugzilla bug about how we should have 
3944         a better way of positioning children
3945
3946         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
3947
3948         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
3949         size to side rects if they don't exist, #63438
3950
3951 2001-11-13  Havoc Pennington  <hp@redhat.com>
3952
3953         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
3954         properly replace selection with Return or Tab
3955
3956         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
3957         that didn't locate the end of the line correctly, should fix #63800
3958
3959 2001-11-13  Havoc Pennington  <hp@redhat.com>
3960
3961         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
3962         to requisition, request non-anchored children
3963         (gtk_text_view_size_allocate): handle border width, allocate
3964         non-anchored children
3965         (text_view_child_new_window): set the child as object data
3966         (gtk_text_view_move_child): allow children at negative
3967         coordinates, no reason why not
3968         (gtk_text_view_forall): make it copy the list of children before
3969         walking it, to avoid reentrancy issues  
3970         (gtk_text_view_move_child): short-circuit if position is unchanged
3971         (changed_handler): only queue_resize if requisition has changed
3972         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
3973         a better job of invalidation ourselves
3974
3975         * tests/testtext.c: add tests for the fixed-position children
3976
3977 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
3978
3979         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
3980         with gdk threads macro.
3981
3982 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
3983
3984         * gtk/maketypes.awk: fix type utils generation on unix.
3985
3986         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
3987         registry.
3988
3989         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
3990         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
3991         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
3992         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
3993         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
3994         introduced ::accel_changed signal for change notification, and
3995         gtk_accel_group_connect/disconnect to connect closures to accel groups.
3996         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
3997         functions.
3998         deprecated gtk_accel_group_ref/unref.
3999
4000         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
4001         to accel group changed notification and basically operate on closures.
4002         removed gtk_accel_label_get_accel_object and
4003         gtk_accel_label_set_accel_object.
4004         introduced gtk_accel_label_set_accel_closure, and for convenience,
4005         gtk_accel_label_set_accel_widget.
4006
4007         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
4008         which mostly moved into gtkaccelmap.[hc].
4009         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
4010         and gtk_item_factory_print_func.
4011
4012         * gtk/gtkmain.c: call _gtk_accel_map_init().
4013
4014         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
4015         that associates an accelerator path with menu items, through which
4016         persistent accelerator settings on menu items are enabled.
4017
4018         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
4019         paths of menu item can be default constructed to allow installation
4020         of accelerators on menu items that don't come with an accelerator
4021         binding by default.
4022
4023         * gtk/gtksettings.c: fix STRING type rc settings by special casing
4024         them appropriately in the parser.
4025
4026         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
4027         gtk_signal_newv().
4028
4029         * gtk/gtkwidget.[hc]: accelerator API revamp.
4030         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
4031         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
4032         gtk_widget_(un)lock_accelerators.
4033         accelerators maintained through gtk_widget_add/remove_accelerator()
4034         are not runtime changable now, the correct sequence to setup a
4035         widget for runtime changable accelerators is now:
4036           gtk_accel_map_add_entry(accel_path, key, mods);
4037           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
4038
4039         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
4040         group changes (as well as mnemonic changes) through the new signal
4041         ::accels_changed.
4042
4043 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
4044
4045         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
4046         GString->string conversions.
4047
4048 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
4049
4050         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
4051         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
4052
4053 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
4054
4055         * gtk/gtktreeview.c: Documentation fixes. (#64377)
4056         
4057         * gtk/gtktreestore.c: Documentation fixes. (#64376)
4058
4059 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
4060
4061         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
4062         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
4063         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
4064         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
4065
4066 2001-11-10  Hans Breuer  <hans@breuer.org>
4067
4068         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
4069         we know what we are talking about when asked for MINMAXINFO.
4070         Also some cleaning for !HAVE_DIMM_H etc.
4071
4072 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
4073
4074         * gtk/gtktreeviewcolumn.c: Fix docs for 
4075         gtk_tree_view_column_set_sort_order. (#62647)
4076         
4077         * gtk/gtkcontainer.c: Fix docs for 
4078         gtk_container_set_border_width. (#64139)
4079
4080         * gtk/gtkcolorsel.c: Documentation fixes.
4081
4082 2001-11-10  Hans Breuer  <hans@breuer.org>
4083
4084         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
4085         don't have strcasecmp()
4086
4087         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
4088         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
4089         code duplication wrap it in its own function and use it in 
4090         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
4091
4092         * gdk/win32/gdkdrawable-win32.c : implement the finalize
4093         method like the X11 version does, allow to set_colormap NULL
4094         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
4095         set_colormap, also some adaption to X11 version :
4096         (gdk_window_hide) call _gdk_window_clear_update_area
4097         (gdk_window_reparent) call _gdk_window_init_position
4098
4099         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
4100         call gdk_window_resize() after all hints are set, because the
4101         window resizing process (WM_GETMINMAXINFO) takes all of them into 
4102         account
4103
4104         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
4105
4106         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
4107         sizeof (GdkVisualPrivate)
4108
4109         * gdk/gdk.def gtk/gtk.def : upated externals
4110
4111         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
4112           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
4113         from now on use make.msc from $(TOP)/glib/build/win32
4114
4115         * gtk/stock-icons/makefile.msc : add stock_missing_image
4116
4117 2001-11-08  Tor Lillqvist  <tml@iki.fi>
4118
4119         * README.win32: Add headers. Add section about ActiveIMM.
4120
4121         * configure.in: Add --with-ie55 flag to specify the location of
4122         the "IE55 libs and headers" package downloadable from Microsoft,
4123         which contains, among other things, the Active IMM header dimm.h
4124         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
4125         Require GLib 1.3.10.
4126         
4127         * config.h.win32.in: New version, produced by merging two
4128         configure-generated ones (for gcc and MSVC). Hopefully #defines
4129         the same flags that the previous, hand-written one, did.
4130
4131         * gdk/Makefile.am
4132         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
4133
4134         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
4135         stuff. Remove unused GdkIOClosure.
4136
4137         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
4138         available).
4139
4140         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
4141         for uuid.lib. (Does it really have to be this hard to use an
4142         existing library with libtool? Probably I am missing something.)
4143
4144 2001-11-08  Darin Adler  <darin@bentspoon.com>
4145
4146         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
4147         typo where it says LEFT instead of CENTER.
4148
4149 2001-11-07  Darin Adler  <darin@bentspoon.com>
4150
4151         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
4152         (gtk_dialog_set_default_response): Add g_return_if_fail.
4153
4154 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
4155
4156         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
4157         Add row_draggable() vfunc, and wrapper function.
4158
4159         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
4160         row_drop_possible take a GtkSelectionData, rather than
4161         model/row pair.
4162
4163         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
4164         new DND interfaces.
4165
4166         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
4167         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
4168         and rename them to enable_model_drag_source/dest.
4169
4170         * gtk/treeviewcolumn.c: Add DND of columns between rows.
4171         Still can't drop _to_ the left tree, but other places
4172         work.
4173
4174         * gtk/gtktreeview.c (unset_reorderable): Unset the
4175         reorderable property if unset/enable_model_drag_source/dest
4176         are called manually.
4177
4178         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
4179         Correct for change in depth count handling.
4180
4181         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
4182         Pass in a expose area to gtk_tree_view_column_cell_render()
4183
4184 2001-11-06  Havoc Pennington  <hp@redhat.com>
4185
4186         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
4187
4188 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
4189
4190         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
4191
4192 2001-11-05  Havoc Pennington  <hp@redhat.com>
4193
4194         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
4195         widgets in here
4196         (gtk_text_view_realize): set parent window of child widgets
4197         (gtk_text_view_size_request): use child req to decide whether
4198         to invalidate layout, not widget->requisition
4199
4200         * gtk/gtktextdisplay.c (render_layout_line): set
4201         shaped_width_pixels for NULL shape objects, so that we properly
4202         draw the "missing pixbuf/widget" thing
4203         (render_layout_line): don't draw the widget here
4204         (gtk_text_layout_draw): pass out a list of widgets that need exposing
4205
4206         * demos/gtk-demo/textview.c (insert_text): add demo of child
4207         widgets
4208
4209         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
4210
4211         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
4212
4213         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
4214         scroll offsets
4215         (gtk_text_view_value_changed): poke new X and Y into child allocations
4216
4217 2001-11-06  Tor Lillqvist  <tml@iki.fi>
4218
4219         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
4220         -specific directory on Windows, too (#63759).
4221
4222 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
4223
4224         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
4225         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
4226         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
4227         directly to Picture objects instead of using XftDraw.
4228         This fixes the problem where we weren't able to 
4229         properly destroy XftDraw objects before destroying
4230         the accompanying windows, and probably improves
4231         efficiency a bit too. (#50214)
4232
4233 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
4234
4235         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
4236         Clamp max window width/height to 32767, not 32768 since
4237         we have to be able to deal with a dx/y of -32768 without
4238         getting a width of 65536 when guffaw scrolling.
4239
4240         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
4241         for the guffaw scrolling case, fixing some problems with
4242         copy-area case as well. Fix BadValue bug with moving windows
4243         by large amounts.
4244
4245         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
4246         clip in window structue before calling gdk_window_invalidate_region
4247         since that trims new invalidations to the window's visible
4248         region.
4249
4250         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
4251         Really set the static window gravity on the children, not
4252         repeatedly on the window.
4253
4254         * gtk/testgtk.c: Add a torture test for big windows and 
4255         gdk_window_scroll().
4256
4257 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
4258
4259         * acconfig.h configure.in: sigsetjmp is macroized in some places,
4260         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
4261
4262 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
4263
4264         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
4265         in terms of pango_color_parse().
4266
4267         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
4268         gdk_color_parse() implementations.
4269
4270 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
4271
4272         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
4273         queue_resize_on_group with both the old and new mode, not
4274         just the new mode. (#60171, Nicolas Setton). Also, notify
4275         the "mode" property.
4276         
4277 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
4278
4279         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
4280         for use in "shallow invalidation" of a widget. (Windows belonging
4281         to the widget, but not to the widget's children)
4282
4283         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
4284         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
4285         up on ancestors up to the resize container on queue_resize. Size
4286         requests only actually take place if GTK_REQUEST_NEEDED, size
4287         allocations only take place if GTK_ALLOC_NEEDED or the size
4288         changed.
4289
4290         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
4291         container->resize_widgets and the RESIZE_NEEDED flag since the
4292         above flags are sufficient to figure out what needs to be
4293         resized/reallocated. Remove code manipulating
4294         container->resize_widget.
4295
4296         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
4297         allows widgets to turn off being automatically invalidated is when
4298         they are resized.
4299
4300         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
4301         a widget is resized or moved is "shallow" as described above -
4302         only the windows that need to be invalidated are invalidated.
4303
4304         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
4305         Make these widget's init functions call 
4306         gtk_widget_set_redraw_on_allocate(widget,FALSE).
4307
4308         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
4309         _gtk_container_queue_resize(), since we don't want
4310         redrawing. (Probably could be done for other 
4311         calls to gtk_widget_queue_resize() in gtkwindow.c,
4312         but this is the most important one.)
4313
4314         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
4315         gtk_widget_queue_draw() - size_allocate() handles
4316         that as appropriate.
4317
4318         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
4319         of queue_clear() to avoid invalidating children.
4320
4321 2001-11-04  jacob berkman  <jacob@ximian.com>
4322
4323         * gtk/gtkmain.c (find_module): don't free the module name until
4324         after we load the module
4325
4326 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
4327  
4328         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
4329         derivation instead of boxed derivation.
4330  
4331         * gtk/gtkmarshal.list: Remove some now unused marshallers.
4332  
4333 2001-11-04  Tor Lillqvist  <tml@iki.fi>
4334
4335         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
4336         include yesterday, without really thinking), as that defeats the
4337         working of correct_libdir_prefix() (it becomes a no-op.). Add
4338         comment mentioning that. Thanks to Hans Breuer for noticing.
4339         
4340 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
4341
4342         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
4343         signal argument (was GtkWidget*).
4344
4345         * gtk/gtkwindow.c (gtk_window_frame_event),
4346           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
4347         Fixed argument types as above, removed GTK_WINDOW casts and
4348         added some GTK_WIDGET casts instead.
4349
4350 2001-11-03  Hans Breuer  <hans@breuer.org>
4351
4352         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
4353         finalize to parent class to get removed from the toplevel_list.
4354         Should fix 'random' crashes of #63474.
4355
4356         * gtk/gtktreemodelsort.c : chain finalize() to parent class
4357
4358 2001-11-03  Tor Lillqvist  <tml@iki.fi>
4359
4360         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
4361         for .dll or .so as appropriate as module suffix.
4362
4363         * gtk-zip.sh.in: Use correct import library names.
4364
4365         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
4366
4367         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
4368         Windows to turn build-time paths from a gtk.immodules distributed
4369         as part of a binary package into runtime ones in the
4370         end-user-chosen installation directory.
4371         (gtk_im_module_init): Use it for module path and domain
4372         directory.
4373
4374 2001-11-02  Tor Lillqvist  <tml@iki.fi>
4375
4376         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
4377         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
4378         Windows.
4379
4380 2001-10-30  Tor Lillqvist  <tml@iki.fi>
4381
4382         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
4383         files. Configure on Win32 (running on Cygwin) thinks symlinks
4384         exist, but pkg-config is not necesarily a Cygwin program, and
4385         doesn't understand them.
4386
4387 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
4388
4389         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
4390         a bit.  I don't think it's completely correct yet, but it's
4391         getting there.
4392
4393 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
4394
4395         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
4396         random + 5 for width and height. If people want padding,
4397         they should add padding. (Note the +5 isn't padding
4398         that will always appear - it just appears in the case
4399         where the widget is allocated it's requisition.)
4400         (#51018, Janet Davis)
4401
4402 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
4403
4404         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
4405         the structure for future expansion.
4406
4407 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
4408
4409         Patch from HideToshi Tajima (#51922)
4410         
4411         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
4412
4413         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
4414         set_use_preedit().
4415         
4416         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
4417         to destroy the input context because we change the
4418         client window or use_preedit, make sure we empty
4419         the preedit string.
4420
4421 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
4422
4423         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
4424         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
4425         proposed ordering of buttons with [OK] in the lower
4426         right hand corner. Patch from Gregory Merchan,
4427         #56331.
4428
4429 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
4430
4431         * gtk/gtklabel.c (gtk_label_select_region_index): remove
4432         extraneous gtk_label_clear_layout (label)
4433
4434 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4435
4436         * tests/makefile.msc, gtk/makefile.msc.in: Removed
4437         -DGTK_DISABLE_COMPAT_H.
4438
4439         * docs/Changes-2.0.txt:
4440         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
4441
4442         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
4443
4444 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
4445
4446         * examples/**/Makefile.am: Convert to use pkg-config
4447         rather than gtk-config. (#53375, Skip Montanaro)
4448
4449 2001-11-02  Matt Wilson  <msw@redhat.com>
4450
4451         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
4452         broken unused, non-compiling, static function.
4453
4454 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
4455
4456         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
4457         Iterate through children of the action area, not of
4458         the vbox. (#58278, Sergey Kuzminov)
4459
4460 2001-11-01  Havoc Pennington  <hp@pobox.com>
4461
4462         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
4463         order to remove a workaround in Nautilus that forced
4464         GTK_ENABLE_BROKEN
4465
4466         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
4467
4468 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
4469
4470         * gtk/gtkrange.c: Patch from George Lebl to 
4471         fix division by zero for full scroll bars. (#62114)
4472
4473 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
4474
4475         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
4476         around gtk_widget_event() if we are going to
4477         set a flag afterwards. (#63464)
4478
4479 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
4480
4481         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
4482         Actually add the missing/broken image icon as the
4483         image for the "missing image" stock icon.
4484
4485 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
4486
4487         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
4488         Set a reasonable default height for the window.
4489
4490         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
4491         bug where subsequent '-' weren't converted to '_'.
4492         (#59550, Matthias Clasen)
4493
4494         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
4495         justify the Help menu - just include a comment on
4496         how to do it. (#63539,  Marius Andreiana)
4497
4498         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
4499         list GTK_ICON_SIZE_INVALID.
4500
4501         * demos/gtk-demo/stock_browser.c: Show the biggest available
4502         size, not a fixed size. (Often reported, including #63539, 
4503         Marius Andreiana)
4504
4505 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
4506
4507         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
4508         #59583
4509
4510         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
4511         warning.
4512
4513 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
4514
4515         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
4516         (Daniel Elstner).
4517
4518 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
4519
4520         * gtk/gtkimcontext.[ch]: Add:
4521           - A ::retrieve_surrounding signal that asks the widget for
4522             context around the insertion point.
4523           - A ::delete_surrounding signal that asks the widget to 
4524             delete context aroudn the insertion point.
4525           - gtk_im_context_set_context() for widgets to set context
4526             around the insertion point in response to ::retrieve_context.
4527           - gtk_im_context_get_context() for context to get context
4528             around the insertion point
4529
4530         * gtkmarshal.list: Add BOOL:INT,INT
4531
4532         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
4533         set_surrounding() methods, and the ::retrieve_surrounding /
4534         ::delete_surrounding signals.
4535
4536         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
4537         GtkIMContext::retrieve_surrounding / ::delete_surrounding
4538         signals.
4539
4540 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
4541
4542         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
4543         it's amazing how well things work sometimes, even when they're
4544         completely wrong.
4545
4546         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
4547         where you could try to collapse a node w/o it having children.
4548
4549         (gtk_tree_view_class_init): remove Shift L<->R as they already
4550         existed for expand/collapse.
4551
4552 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
4553
4554         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
4555         found by Matt Wilson.
4556
4557 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
4558
4559         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
4560         Control, and Shift|Control L<->R, #63475
4561
4562 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
4563
4564         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
4565         infinite loop noticed by yosh.
4566
4567 2001-11-01  Michael Meeks  <michael@ximian.com>
4568
4569         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
4570         GTK_REALIZED flag so we don't re-enter when we are
4571         destroyed from the plug side.
4572
4573 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
4574
4575         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
4576         Add a "menu" property and notify on it. (#62798,
4577         Padraig O'Briain)
4578
4579         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
4580         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
4581         Fix set_text to take a gchar, not a guchar, and to have 
4582         a len argument.
4583
4584 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
4585
4586         * gtk/gtkstock.c: fix typo to make it compile
4587
4588 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
4589
4590         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
4591         the widget is insensitive, draw the text insensitively, #63306
4592
4593 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
4594
4595         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
4596
4597 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
4598
4599         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
4600         gtk_selection_data_set_tree_row, #60218
4601         (gtk_tree_get_row_drag_data): rename
4602         gtk_selection_data_get_tree_row, #60218
4603
4604         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
4605         get this right, after the third try, #63122.
4606
4607 2001-10-31  jacob berkman  <jacob@ximian.com>
4608
4609         * gdk/gdkselection.h (GDK_TARGET_STRING): 
4610         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
4611         for Xatoms (and not using the XA_* macros)!
4612
4613 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
4614
4615         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
4616         gtk_window_get_focus() getter to determine the currently
4617         focused widget within the window. (#63145, request
4618         from Damian Ivereigh)
4619
4620 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
4621
4622         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
4623
4624         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
4625         GTK_SELECTION_NONE enum.
4626         (_gtk_tree_selection_internal_select_node): ditto
4627
4628         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
4629         constness.
4630
4631         * gtk/gtkcellrenderertoggle.c: more yummy constness.
4632
4633         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
4634         if mode == GTK_SELECTION_NONE
4635
4636 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
4637
4638         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
4639         "cursor_changed" signal, #62850.
4640
4641 2001-10-31  Matt Wilson  <msw@redhat.com>
4642
4643         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
4644         allocating the treedatalist, zero it to make sure the values are
4645         cleared from any garbage that was in this chunk.
4646
4647 2001-10-31  Murray Cumming  <murrayc@usa.net>
4648
4649         * gtk/cellrenderertext.h: "edited" default signal handler
4650         gchar* args are now const.
4651         gtk/cellrenderertoggle.h: "toggled" default signal handler
4652         gchar* arg is now const.
4653         Also changed other signal handlers for "edited" and "toggled" to
4654         have the same signature.
4655
4656 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
4657
4658         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
4659         rewrite.  Static models now totally work.  I'm not 100% sure about
4660         row_inserted and row_changed, but I'll get those later.
4661
4662 2001-10-30  Sven Neumann  <sven@gimp.org>
4663
4664         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
4665         output for configure --help.
4666
4667 2001-10-30  Havoc Pennington  <hp@pobox.com>
4668
4669         * gtk/gtktextview.c (changed_handler): Update the IM spot location
4670         here, if text was invalidated in the visible area, because the
4671         scroll offset doesn't normally change in that case, and the mark
4672         isn't set, just implicitly moved over as text is added/removed
4673         
4674 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
4675
4676         * gtk/gtkseparatormenuitem.c: Code cleanup.
4677         (gtk_separator_menu_item_class_init): Fix bugs in this code.
4678
4679 2001-10-29  jacob berkman  <jacob@ximian.com>
4680
4681         * gdk/Makefile.am (LDFLAGS): 
4682         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
4683         LDFLAGS, so put win32 flags in here
4684
4685 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
4686
4687         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
4688         I can't believe this took this long to fix.
4689
4690 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
4691
4692         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
4693         reordered signal.
4694
4695 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
4696
4697         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
4698         the focus to the fileop entry for create dir / rename
4699         file. (#62838)
4700
4701 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
4702
4703         * configure.in: Don't use AC_CHECK_FILE to check for a 
4704         file since it always spits warnings about cross compilation,
4705         use -f instead. It's not like we cross compile properly
4706         anyways.
4707
4708         * configure.in (gtktargetlib): Move call to AC_PROG_CC
4709         to suppress autoconf warning.
4710
4711         * acconfig.h: Add some missing #undefs from recent
4712         Win32 additions.
4713
4714 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
4715
4716         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
4717         when we didn't find it. (#62944, Eric Lemings)
4718
4719         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
4720         sign in assignment. (#63209, Arkadiusz Miskiewicz)
4721
4722 2001-10-29  Anders Carlsson  <andersca@gnu.org>
4723
4724         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
4725         the buttons size request before using it. Fixes #61696.
4726
4727 2001-10-29  Tor Lillqvist  <tml@iki.fi>
4728
4729         * README.win32: Updates.
4730
4731         * gtk-zip.sh.in: New file, used to build distribution package for
4732         Windows.
4733
4734         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
4735         applicable with GDKVAR.
4736
4737         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
4738         Wintab library.
4739
4740         * gdk/win32/gdkwin32.h
4741         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
4742         X11 headers better, and to enable gdkwin32.h to be installed and
4743         included from applications, but not the *-win32.h headers.
4744
4745         * gdk/win32/*.c: Corresponding small changes, simplifications of
4746         #includes.
4747         
4748         * gdk/win32/gdkregion-win32.c: Remove.
4749
4750         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
4751
4752         * gdk/win32/gdkfont-win32.c
4753         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
4754
4755         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
4756         GDK_NONE values into hash table.
4757
4758         * gtk/gtk.def: Update.
4759
4760         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
4761         gethostname().
4762
4763         * gtk/gtkmain.c 
4764         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
4765         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
4766         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
4767         g_win32_get_package_installation_subdirectory() with the actual
4768         DLL name saved above. Redefine above directory name macros to call
4769         these functions. Remove some ifdefs.
4770
4771         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
4772         variable for export on Win32) also to the _vars file.
4773
4774         Changes for autoconfiscated build on Win32, and addition of Win32
4775         backend to the related files:
4776         
4777         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
4778         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
4779         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
4780         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
4781         win32 target, using pangowin32. Don't use the
4782         -export-symbols-regex option on Win32, we use .def files to list
4783         exported symbols. Check <winsock.h> (for gethostname() in
4784         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
4785         prevent premature m4 expansion.
4786
4787         * acconfig.h: Add HAVE_WINTAB.
4788
4789         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
4790         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
4791         MS_LIB_AVAILABLE, build MS import library. Install the import
4792         libraries. If HAVE_WINTAB, link with the Wintab library.
4793
4794         * gdk/win32/Makefile.am: Actually enable building the win32
4795         objects here, not just list all files in EXTRA_DIST. Link in the
4796         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
4797         copy the Wintab library into the .libs directory. 
4798
4799         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
4800         name of the GDK DLL when fetching the icon. Use the HMODULE saved
4801         in gdk_dll_hinstance by DllMain.
4802
4803         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
4804         build/win32/lt-compile-resource script.
4805
4806         * gdk/win32/rc/gdk.rc.in
4807         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
4808
4809         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
4810         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
4811         file. Install import libraries.
4812
4813 2001-10-29  Anders Carlsson  <andersca@gnu.org>
4814
4815         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
4816
4817 2001-10-28  Hans Breuer  <hans@breuer.org>
4818
4819         * gdk/gdk.c gdk/gdkevents.c
4820           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
4821           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
4822           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
4823           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
4824           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
4825           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
4826           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
4827         static correct-ness, underscore prefixing of library internal 
4828         functions
4829         (applied the undisputed and the win32 part. Of the latter 
4830          I'm probably the one who will change it back again, if Owen
4831          decides that the Gdk*Impl types should not be private to Gdk)
4832
4833         * gdk/gdk.def : added the remaining exported functions
4834
4835 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
4836
4837         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
4838         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
4839         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
4840
4841 2001-10-28  jacob berkman  <jacob@ximian.com>
4842
4843         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
4844         gtk_settings_get_default() here as that requires an X connection
4845         (which breaks doc building with no X connection) and is not
4846         multihead safe
4847         (gtk_color_selection_init): delay palette loading until realize
4848         time
4849         (gtk_color_selection_realize): load the palette, and initialize
4850         the global palette if it hasn't been already
4851
4852         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
4853         visual/cmap fields of klass->info since they are gone
4854         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
4855         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
4856         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
4857
4858         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
4859         cmap fields
4860         (gtk_preview_get_visual):
4861         (gtk_preview_get_cmap): mark as deprecated
4862
4863         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
4864         changes
4865
4866 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
4867
4868         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
4869         structure to have GObject not GtkObject as
4870         parent_instance. (Jeff Franks.)
4871
4872 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
4873
4874         * gdk/x11/gdkinput.c: Typo fix.
4875
4876 2001-10-26  Havoc Pennington  <hp@pobox.com>
4877
4878         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
4879         update_im_spot_location here explicitly
4880         (gtk_text_view_reset_im_context): don't update the spot location
4881         here
4882
4883 2001-10-27  Anders Carlsson  <andersca@gnu.org>
4884
4885         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
4886         This fixes #62942.
4887
4888         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
4889         Clarify that we're returning a spin button in the _new function.
4890         This fixes #54097.
4891         
4892 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
4893
4894         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
4895         Unfortunately, people apparently erroneously connect
4896         to ::clicked for GtkToggleButton and expect
4897         they know what happened in the default signal handler
4898         instead of appropriately connecting to notification
4899         signal ::toggled. When the revolution comes, such
4900         people will be first against the wall.
4901
4902         We'll just have to go back to the old less-reliable
4903         set-it-back hacks for handling model-view check
4904         buttons and radio buttons. :-(. 
4905
4906 2001-10-27  Hans Breuer  <hans@breuer.org>
4907
4908         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
4909           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
4910           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
4911           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
4912           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
4913           gtk/gtktreestore.c gtk/gtkvbbox.c : 
4914         to simplify parsing for exported functions:
4915         - made implementation signature static, when the local 
4916           prototype already was
4917         - put the functions return value on it's own line
4918         - added as space between the function name and the 
4919           opening bracket
4920
4921         * gtk/gtk.def : added the remaining exported functions
4922
4923 2001-10-27  Anders Carlsson  <andersca@gnu.org>
4924
4925         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
4926         Add note about width having to be greater than 0. This fixes
4927         #55574. 
4928
4929         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
4930         Fix docs to say previous instead of next.
4931         (gtk_text_iter_backward_word_start): Likewise.
4932         This fixes bug #62980.
4933
4934         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
4935         that the valid width is in range 0-65535 pixels. Fixes bug 
4936         #56754.
4937
4938         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
4939         a dot in the documentation. Fixes bug #62632.
4940
4941         * gdk/x11/gdkmain-x11.c: Replace int and guint with
4942         long and gulong in some places to make the code 64-bit
4943         clean.
4944         (_gdk_windowing_init_check): Replace gint with gulong.
4945         This patch was made by George Lebl and fixes bug #62113.
4946
4947         * tests/testgtk.c (create_range_controls): Don't set a 
4948         fixed height on the hscale widget. This fixes "bug" 
4949         #55840.
4950         (create_window_states): Set up destroy signals so that
4951         all windows will be destroyed when one is. This fixes 
4952         bug #58133.
4953
4954 2001-10-26  Anders Carlsson  <andersca@gnu.org>
4955
4956         * gtk/gtktreeview.c: 
4957         (gtk_tree_view_class_init): Create new "indent_expander"
4958         style property.
4959
4960         (gtk_tree_view_get_arrow_xrange): Add a tree argument
4961         to the function since the xrange can change depending
4962         on where in the tree we are. 
4963         
4964         (coords_are_over_arrow): Update function call to
4965         gtk_tree_view_get_arrow_xrange.
4966         (gtk_tree_view_draw_arrow): Likewise.
4967         
4968         (gtk_tree_view_real_expand_collapse_cursor_row):
4969         Call real_{expand|collapse}_row, so that we'll have an
4970         animation.
4971
4972 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
4973
4974         * tests/Makefile.am: fixed a small typo
4975
4976 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
4977
4978         * demos/gtk-demo/list_store.c (create_model): Anders
4979         Carlsson suggested to use G_N_ELEMENTS here
4980
4981 2001-10-26  Sven Neumann  <sven@gimp.org>
4982
4983         * gtk/gtkbutton.[ch]
4984         * gtk/gtkdnd.c: fixed inline comments
4985         
4986         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
4987
4988 2001-10-26  Hans Breuer  <hans@breuer.org>
4989
4990         * gdk-pixbuf/gdk_pixbuf.def : 
4991         * gdk/gdk.def : 
4992         * gtk/gtk.def : updated externals
4993
4994         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
4995         gdk_window_lookup implementation. It already was in
4996         gdk/win32/gdkwindow-win32.c
4997
4998         * gdk/win32/gdkproperty-win32.c : made it compile again
4999         after GdkAtom API change
5000
5001         * gtk/gtk/makefile.msc.in : updated
5002
5003 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
5004
5005         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
5006         require GLib 1.3.10.
5007
5008         * NEWS: updates.
5009
5010 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
5011
5012         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
5013         invalid nodes.
5014          (_gtk_rbnode_rotate_right): Ditto.
5015          (_gtk_rbtree_node_mark_invalid): New function.
5016          (_gtk_rbtree_node_mark_valid): New function.
5017
5018         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
5019         GObject, not a GtkObject.
5020         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
5021         correct.
5022         (gtk_tree_model_sort_row_deleted): ditto.
5023         (gtk_tree_model_sort_{un,}ref_node): Fix.
5024
5025         * gtk/gtktreeview.c: Protean incremental reflow support (commented
5026         out)
5027
5028         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
5029         to const char *key.
5030
5031         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
5032         Important 1 line fix to fix a lot of refcounting woes.
5033
5034 2001-10-25  Matt Wilson  <msw@redhat.com>
5035
5036         * gtk/gtktextview.c (gtk_text_view_destroy): call
5037         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
5038         now invalidates) so that we remove our idle functions.
5039         (gtk_text_view_destroy_layout): remove the first_validate_idle as
5040         well.
5041
5042         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
5043         the 'indent' property is G_MININT to G_MAXINT.  Don't use
5044         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
5045         instead.
5046
5047 2001-10-24  Anders Carlsson  <andersca@gnu.org>
5048
5049         * gtk/gtktreeview.c: 
5050         (gtk_tree_view_real_expand_row): add an animate argument
5051         (gtk_tree_view_real_collapse_row): likewise
5052         
5053         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
5054         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
5055         (gtk_tree_view_collapse_row): update functions that call
5056         real_{expand|collapse}_row to set the animate argument 
5057         accordingly.
5058         
5059 2001-10-24  Alex Larsson  <alexl@redhat.com>
5060
5061         * gdk/linux-fb/gdkfont-fb.c:
5062         Update to new Pango APIs
5063
5064         * gdk/linux-fb/gdkproperty-fb.c:
5065         Update to new GdkAtom APIs
5066
5067         * gdk/linux-fb/gdkwindow-fb.c:
5068         Remove warnings
5069
5070 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
5071
5072         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
5073
5074 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
5075
5076         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
5077         s_path as a child path
5078
5079 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
5080
5081         * gtk/gtktreemodelsort.c: more changes in an attempt to get
5082         it right. It's not yet ready for general consumption.
5083
5084         * tests/treestoretest.c: add a button and entry for the new
5085         iter_change function
5086         (iter_change): new function, to test
5087         the row_changed signal implementation of the GtkTreeModelSort
5088
5089         * tests/testtreesort.c: cleanups, changes to test more features
5090         of the GtkTreeModelSort at once
5091
5092 2001-10-24  Havoc Pennington  <hp@redhat.com>
5093
5094         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
5095         remove hack to strip off the bogus newline, since we killed the
5096         bogus newline; fixes #61779
5097
5098 2001-10-24  Havoc Pennington  <hp@redhat.com>
5099
5100         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
5101         create layout if we didn't have one
5102         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
5103         as appropriate, avoids blanking the screen 
5104         (gtk_text_view_invalidate): new function to do invalidation,
5105         containing old guts of invalidated_handler
5106
5107 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
5108
5109         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
5110         dreadful tooltips.
5111
5112 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
5113
5114         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
5115         set window->parent (except or the root window itself); if 
5116         the window's parent is not a GdkWindow, or is a window of 
5117         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
5118
5119         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
5120         windows of type GDK_WINDOW_FOREIGN.
5121
5122 2001-10-24  Havoc Pennington  <hp@pobox.com>
5123
5124         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
5125         the front of a segment, use the "slow" technique for moving
5126         backward, so we don't mess up the any_segment field in the iter. 
5127         Fixes #57707
5128
5129         * tests/testtextbuffer.c: add code to detect #57707, to avoid
5130         regression
5131
5132 2001-10-23  Havoc Pennington  <hp@redhat.com>
5133
5134         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
5135         if selection contains some editable text, #60975
5136         (gtk_text_view_scroll_to_iter): remove warning about scrolling
5137         prior to map; it should actually be OK to do so in many cases, 
5138         it would be nice to warn about scrolling when many lines have
5139         height 0, but I don't know what to do about that. Perhaps 
5140         move part of flush_scroll into this function? comment added 
5141         to consider this.
5142
5143 2001-10-23  Havoc Pennington  <hp@redhat.com>
5144
5145         * gtk/gtktextview.c (changed_handler): Correctly keep the same
5146         text on the top of the screen, considering that the changed region
5147         may have overlapped the first paragraph. Should fix msw's "text
5148         widget scrolled to wrong place on map" bug, and probably some
5149         other scrolling cases as well.
5150         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
5151         instead of some random value
5152
5153         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
5154         grab_focus, so #59708 is really fixed
5155
5156 2001-10-24  Anders Carlsson  <andersca@gnu.org>
5157
5158         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
5159         (popup_targets_received): Call append_action_signal with stock items
5160         
5161         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
5162         (gtk_label_do_popup): Call append_action_signal with stock items
5163         
5164         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
5165         (popup_targets_received): Call append_action_signal with stock items
5166
5167 2001-10-23  Havoc Pennington  <hp@redhat.com>
5168
5169         * gtk/gtktextview.c (changed_handler): queue a resize here; will
5170         temporarily slow down the widget a lot, until we figure out how to
5171         optimize to avoid full redraw everytime we queue a resize.
5172
5173 2001-10-23  Havoc Pennington  <hp@redhat.com>
5174
5175         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
5176         0 and char_len == 0, bug #61729
5177
5178 2001-10-23  Havoc Pennington  <hp@redhat.com>
5179
5180         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
5181         return value, #61714 (Vitaly Tishkov)
5182         (gtk_text_iter_backward_sentence_starts): ditto
5183         (gtk_text_iter_backward_word_starts): ditto
5184         (gtk_text_iter_forward_word_ends): ditto
5185         (gtk_text_iter_forward_sentence_ends): ditto
5186         (gtk_text_iter_backward_cursor_positions): ditto
5187
5188 2001-10-23  Havoc Pennington  <hp@redhat.com>
5189
5190         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
5191         fix from Dov Grobgeld, #61858
5192
5193 2001-10-23  Havoc Pennington  <hp@redhat.com>
5194
5195         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
5196         Update IM spot location at appropriate times, #50626
5197         (Hidetoshi Tajima)
5198
5199 2001-10-23  Havoc Pennington  <hp@redhat.com>
5200
5201         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
5202         on grab focus, unless it's caused by button click, #59708
5203
5204 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
5205
5206         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
5207
5208         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
5209         G_CONST_RETURN. (Murray Cumming)        
5210
5211         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
5212         Make G_CONST_RETURN.
5213
5214         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
5215         results of g_get_home_dir().
5216
5217         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
5218         copy. Storing the return from gtk_entry_get_text() is evil.
5219
5220         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
5221         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
5222         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
5223         gtk/gtksignal.c: Add const.
5224
5225         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
5226
5227         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
5228         if we are setting them on private widgets.
5229
5230         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
5231         Duplicate entry->text before setting it as object data.
5232
5233 2001-10-22  Havoc Pennington  <hp@redhat.com>
5234
5235         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
5236         up a char from the end iterator, fixes #61859 ("can't put cursor
5237         at the end of the buffer")
5238
5239         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
5240         to work with delimiters other than newline.
5241
5242         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
5243         get_bytes_in_line
5244
5245         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
5246         last line, since the newline is no longer counted.
5247         (gtk_text_iter_get_bytes_in_line): ditto
5248
5249 2001-10-22  Havoc Pennington  <hp@redhat.com>
5250
5251         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
5252         #58290 would trigger if it reappeared, I think
5253
5254 2001-10-22  Havoc Pennington  <hp@redhat.com>
5255
5256         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
5257         add temporary code to dump btree contents on assertion failure
5258         described in #62656
5259         
5260         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
5261         assertions that we're getting the right end iter segment
5262
5263         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
5264         verify that we aren't on the end iterator after moving 
5265         forward one segment - fixes return value in an obscure case. 
5266         Also, some trivial code cleanup/rearranging.
5267         
5268 2001-10-22  Havoc Pennington  <hp@redhat.com>
5269
5270         * gtk/gtktextlayout.h: add a #error unless you define
5271         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
5272
5273         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
5274         
5275 2001-10-22  Havoc Pennington  <hp@redhat.com>
5276
5277         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
5278         #62365
5279
5280 2001-10-22  Havoc Pennington  <hp@redhat.com>
5281
5282         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
5283         #62436
5284
5285 2001-10-22  Havoc Pennington  <hp@redhat.com>
5286
5287         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
5288         #62366
5289
5290 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
5291
5292         * gtk/gtklabel.c: Add cursor-position, selection-bound 
5293         properties. (#62148, reported by Padraig O'Briain)
5294
5295         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
5296         to cursor_position. (1.3.x addition, text_position is an awful
5297         name.) Make cursor_position read-only to avoid sticky questions
5298         of interaction with selection_bound. (#62636, reported by
5299         Padraig O'Briain)
5300
5301 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
5302
5303         Fixing popup menus to have "Paste" sensitized correctly. Original
5304         patches from Damian Ivereigh, much mangled.
5305
5306         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
5307         gtk_selection_data_targets_include_text(). (#60854)
5308
5309         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
5310         the clipboard has text" function gtk_clipboard_wait_is_text_available.
5311         (#60854)
5312
5313         * gtk/gtkentry.c: Only enable the paste item if the clipboard
5314         contains text. (#60973)
5315
5316         * gtk/gtktextview.c: Only enable the paste item if the clipboard
5317         contains text. (#60975)
5318
5319 2001-10-22  Havoc Pennington  <hp@redhat.com>
5320
5321         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
5322         "height_lines" and "width_columns" properties, it doesn't make
5323         sense to set the size request on a text view really. #62103
5324
5325 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
5326
5327         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
5328         g_node_depth is broken, and that it's not worth being consistent
5329         with it.
5330
5331 2001-10-22  Havoc Pennington  <hp@redhat.com>
5332
5333         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
5334         docs, #61777
5335         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
5336         change the two boolean args to a flags field, so we can extend 
5337         to add case insensitive, regexp searches later. #61852
5338
5339 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
5340
5341         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
5342         reflect reality, #62810
5343
5344 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
5345
5346         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
5347
5348         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
5349         system.  Instead of having a window the size of the tree, we have
5350         a window the size of widget->allocation, and simply draw with the
5351         offset.
5352         (coords_are_over_arrow): ditto.  Move to window coordinates.
5353         (do_prelight): ditto
5354         (do_unprelight): ditto
5355
5356         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
5357         Minor fix from Kristian Rietveld to fix unsorted case.
5358
5359 2001-10-22  jacob berkman  <jacob@ximian.com>
5360
5361         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
5362         a PIXMAP cell (fixes crash when using PIXTEXT cells)
5363
5364 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
5365
5366         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
5367         (#58768, Vitaly Tishkov)
5368         
5369         * gtk/gtkobject.h: Deprecate with abandon. 
5370         (#61942, Vitaly Tishkov, Matthias Clasen)
5371
5372         * gtk/gtksignal.h: Deprecate everything.
5373
5374         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
5375         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
5376         (#61942, Matthias Clasen)
5377
5378         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
5379         Havoc Pennington)
5380
5381         * gtk/gtkitemfactory.h: Deprecate compat functions
5382         for GtkMenuFactory code. (#62071)
5383
5384         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
5385         gdk_draw_text,gdk_draw_text_wc. (#62071)
5386
5387 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
5388
5389         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
5390         g_thread_init(), we don't want to link to -lgthread if we don't
5391         have to.
5392
5393 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
5394
5395         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
5396         Add a function, gdk_threads_init() that must be explicitely 
5397         called to enable the GDK thread mutex.
5398
5399 2001-10-22  Jakub Steiner <jimmac@ximian.com>
5400
5401         * gtk/stock-icons/stock_stop.png: no body parts
5402         
5403 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
5404
5405         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
5406         problem with g_return_if_fail return value.
5407
5408         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
5409         virtual atom code from the gdk-multihead branch, removing the per-display
5410         part. Virtualizing atoms needs to be done now to prevent compat
5411         breakage in direct Xlib accessing code in the future. (#62208)
5412  
5413         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
5414         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
5415  
5416         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
5417         an opaque pointer type so the compiler catches attempts
5418         to mingle it with X atoms.
5419
5420         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
5421           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
5422           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
5423           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
5424           tests/testdnd.c,tests/testselection.c: 
5425         Fix up for above atom changes.
5426
5427         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
5428         now have the ability to add custom predefines.
5429
5430         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
5431         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
5432         to gtk_clipboard_get().
5433
5434         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
5435         for GdkAtom => pointer change.
5436
5437         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
5438         atoms, fix for GdkAtom => pointer change.
5439
5440 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
5441
5442         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
5443         new function spin_button_get_arrow_size() instead.
5444
5445         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
5446         arrow was hardcoded, it's now variable.
5447
5448         Fixes bug #50200
5449
5450 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
5451
5452         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
5453         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
5454         for those
5455
5456 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
5457
5458         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
5459         in favor of g_signal_*, gtk_object_* in favor of 
5460         g_object_*.
5461
5462 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
5463
5464         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
5465         from GObject now, we have to use the g_object_* functions, not
5466         gtk_object_*.
5467
5468 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
5469
5470         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
5471         nailed down now (this code is not yet ready for general consumption)
5472
5473 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
5474
5475         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
5476         for use_align
5477
5478 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
5479
5480         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
5481
5482 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
5483
5484         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
5485         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
5486         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
5487         GObject, not GtkObject. (#62621)
5488
5489 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
5490
5491         * tests/testsocket.c: Remove now useless include of unistd.h,
5492         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
5493         
5494 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
5495
5496         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
5497         Pango font API. #61933. (Untested, even for compilation.)
5498
5499 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
5500
5501         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
5502         export gtk_disable_setlocale(). (Caught by Sven Neumann)
5503
5504 2001-10-18  Havoc Pennington  <hp@redhat.com>
5505
5506         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
5507
5508 2001-10-18  Havoc Pennington  <hp@redhat.com>
5509
5510         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
5511         to GTK_RUN_LAST, #50239
5512
5513 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
5514
5515         * gtk/gtkimmodule.c (match_locale):
5516         Support "*" for all locales with least priority
5517         when to select default im module, #58201
5518
5519 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
5520
5521         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
5522         Fix docs. (#61976)
5523  
5524         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
5525
5526         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
5527
5528         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
5529         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
5530         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
5531         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
5532         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
5533         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
5534         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
5535
5536         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
5537
5538         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
5539         Don't restrict the width of the spinbutton entry field 
5540         to 10 digits. (#58681)
5541
5542 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
5543
5544         * tests/testtreeflow.c: new test program for the tree.
5545
5546 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
5547
5548         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
5549         reported by (Oleg Maiboroda), #62600
5550
5551 2001-10-18  Michael Meeks  <michael@ximian.com>
5552
5553         * gtk/gtkentry.c (gtk_entry_set_property),
5554         (gtk_entry_get_property): impl 'text'
5555         (gtk_entry_class_init): add the 'text' prop.
5556         (gtk_entry_insert_text): notify 'text' changed.
5557         (gtk_entry_delete_text): ditto.
5558
5559 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
5560
5561         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
5562         Documentation updates.
5563
5564 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
5565
5566         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
5567         in truncating length of text to MAX_SIZE. (Found by 
5568         Padraig O'Briain, #62055)
5569
5570 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
5571
5572         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
5573         MNEMONIC_ACTIVATE; signal was changed a long time
5574         ago.
5575
5576         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
5577         Fix wrong return statement. (Reported by HideToshi
5578         Tajima and others.)
5579
5580         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
5581         left over select_all vfunc.
5582
5583 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
5584
5585         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
5586         a utility function to translate coordinates relative to
5587         one widget's allocation to coordinates relative to another
5588         widget's allocation.
5589
5590         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
5591         that:
5592          - only accepts external focus if there is no active
5593            member of the group or the button is active.
5594          - makes arrow keys move the active button as well
5595            as the focus
5596          - make tab tab out directly.
5597         This makes a radio button group act as a single focus location.
5598         (#53577).
5599         
5600         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
5601         it was only a small optimization that didn't matter and made
5602         things more complicated.
5603
5604         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
5605         sorter for FOCUS_TAB as we did for the other focus directions,
5606         sort by center of widgets, not upper-left corner. (Shouldn't
5607         matter in general.)
5608
5609         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
5610         from the different types of focusing: encapsulate sorting the
5611         widgets for the focus direction into one routine
5612         (gtk_container_focus_sort()) and then share the work of moving the
5613         focus between the different focus directions.
5614
5615         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
5616         work correctly with focus chains containing non-immediate
5617         children. Sorting was being done using allocation coordinates for
5618         each widget in the focus chain, and if there were intermediate
5619         window-widgets, these allocations would not be in the same
5620         coordinate system.
5621
5622 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
5623
5624         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
5625         mnemonic_activate function to option menu.
5626
5627 2001-10-15  Murray Cumming <murrayc@usa.net>
5628
5629         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
5630           Corrected the type names used in some calls to g_signal_new().
5631         
5632 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
5633
5634         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
5635         specs, use g_pattern_spec_equal() instead of direct field accesses.
5636         upon compressing two equal paths of the same type, the resulting
5637         priority has to be the maximum.
5638         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
5639         GtkPathPriorityType enum and make it a macro.
5640
5641 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
5642
5643         * gtk/gtkwidget.c: Fix some doc comments.
5644
5645 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
5646
5647         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
5648         on empty models.
5649
5650 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
5651
5652         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
5653         Remove stale gdk backend includes.
5654  
5655 2001-10-10  Michael Meeks  <michael@ximian.com>
5656
5657         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
5658         and value_in_list properties.
5659         (gtk_combo_set_value_in_list): notify change.
5660         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
5661
5662 2001-10-11  James Henstridge  <james@daa.com.au>
5663
5664         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
5665         that gtk+ can be built with automake 1.5 while not breaking
5666         things for automake 1.4.
5667
5668 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
5669
5670         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
5671         (#60606)
5672
5673         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
5674         to disable calling setlocale (LC_ALL, "").
5675
5676         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
5677         docs that this function is not typically useful.
5678
5679         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
5680         Automatically initialize GDK for the current locale
5681         on gdk_init(). Don't reset locale to C when
5682         XSupportsLocale() fails.
5683
5684         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
5685         useless checks for UTF-8 locale breakage that mattered
5686         only for X.
5687
5688         * examples/calendar/calendar.c
5689         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
5690         gtk_set_locale().
5691
5692         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
5693         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
5694
5695 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
5696
5697         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
5698
5699         Fixes bug #61904
5700
5701 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
5702
5703         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
5704         new function, #61923
5705         (gtk_tree_selection_path_is_selected): Ditto
5706
5707 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
5708
5709         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
5710         not a GtkObject.  Thanks andersca.
5711
5712         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
5713
5714 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
5715
5716         * gtk/gtktreeviewcolumn.c
5717         (gtk_tree_view_model_sort_column_changed): fix broken code.
5718
5719 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
5720
5721         * gtk/gtkselection.c: s/succesfully/successfully/g
5722
5723 2001-10-08  Havoc Pennington  <hp@pobox.com>
5724
5725         * demos/gtk-demo/stock_browser.c: remove unused enum
5726
5727         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
5728         pass the current selection state of the node in to the user
5729         selection func
5730
5731 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
5732
5733         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
5734         non-existent function gdk_x11_cursor_get_xid 
5735         by gdk_x11_cursor_get_xcursor.
5736
5737 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
5738
5739         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
5740         warning.
5741
5742         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
5743         unref nodes, #okay61676
5744
5745         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
5746         to the property; no need to clear the other columns.  Also, we go
5747         to 'unsorted' if the model supports it.
5748
5749 2001-10-05  Sven Neumann  <sven@gimp.org>
5750
5751         * demos/testpixbuf-save.c
5752         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
5753         feature.
5754
5755 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
5756
5757         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
5758         destroy the search dialog
5759
5760         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
5761         added check to prevent creation of a search dialog if there's
5762         already one around
5763
5764         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
5765         it instead of "search-dialog" (when getting/setting the search dialog
5766         widget).
5767
5768 2001-10-05  Jakub Steiner <jimmac@ximian.com>
5769
5770         * gtk/stock-icons/stock_broken_image.png: broken images icon
5771
5772 2001-10-04  Havoc Pennington  <hp@pobox.com>
5773
5774         Fix #56586
5775         
5776         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
5777         accelerator setting here...
5778
5779         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
5780         because we try to use it when a menu bar hasn't necessarily been 
5781         initialized.
5782
5783 2001-10-03  Havoc Pennington  <hp@redhat.com>
5784
5785         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
5786         it previously verified incorrect behavior
5787
5788         Fixes for #61565
5789         
5790         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
5791         off the end
5792         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
5793         the end
5794         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
5795         the end
5796         (gtk_text_iter_forward_lines): if on the last line, move to end of
5797         it
5798
5799         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
5800         don't return a line off the end
5801
5802 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
5803
5804         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
5805         functions to do_insert_text and do_delete_text, add signals
5806         insert_text, delete_text and changed
5807
5808         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
5809         and changed. Updates to match new situation.
5810
5811         * gtk/gtkspinbutton.c: updates to match new situation
5812
5813         * gtk/gtkoldeditable.h: remove signals changed, insert_text
5814         and delete_text
5815
5816         * gtk/gtkoldeditable.c: updates to match new situation
5817
5818         * gtk/gtktext.c: updates to match new situation
5819
5820         Fixes bug #59803
5821
5822 2001-10-03  Havoc Pennington  <hp@redhat.com>
5823
5824         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
5825         position
5826
5827         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
5828         changes
5829
5830         * tests/testtextbuffer.c (logical_motion_tests): updates
5831
5832 2001-10-03  jacob berkman  <jacob@ximian.com>
5833
5834         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
5835         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
5836         * gtk/gtksettings.c (apply_queued_setting): 
5837         * gtk/gtkmain.c (gtk_init_check): 
5838         * gtk/gtkcontainer.c (gtk_container_child_get_property):
5839         s/retrive/retrieve/
5840
5841 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
5842
5843         * gtk/gtktreemodelsort.[ch]: preparation for surgery
5844         * tests/testtreesort.c: ditto
5845
5846 2001-10-02  Havoc Pennington  <hp@redhat.com>
5847
5848         Throughout: assorted docs
5849         
5850         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
5851         gdk_window_set_geometry_hints() should be used instead.
5852
5853         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
5854         document them
5855
5856         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
5857         seem to exist in any .c files
5858
5859         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
5860         g_return_if_fail (pixel < colormap->size).
5861
5862 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
5863
5864         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
5865         NULL for @target_list to mean, use
5866         gtk_drag_dest_get_target_list (widget).
5867
5868         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
5869         drop could hang when calling gtk_drag_finish with 
5870         success == FALSE and del == TRUE.
5871
5872         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
5873         drops without a matching target found would propagate
5874         to the parent widget rather than being rejected.
5875
5876         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
5877         Use text_view->dnd_mark instead of mark name to be
5878         consistent with the rest of the code.
5879
5880         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
5881         pendantically correct for a drop-only-in-some-places
5882         widget. (Check whether you can insert in drag_drop,
5883         not just in drag_motion ... matters in theory, and
5884         for Motif drag and drop in practice.)
5885
5886         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
5887         Damian Ivereigh to not allow drops on non-editable
5888         entries. (#61124)
5889
5890         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
5891         text to be moved from a non-editable entry.
5892         
5893 2001-10-03  James Henstridge  <james@daa.com.au>
5894
5895         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
5896         s/width/fixed_width/ in order to get things to compile.
5897
5898 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
5899
5900         * gtk/gtkcelleditable.c: docs
5901
5902         * gtk/gtktreemodel.h: more docs.
5903
5904 2001-10-02  Havoc Pennington  <hp@redhat.com>
5905
5906         * gdk/x11/gdkwindow-x11.c: docs
5907
5908         * tests/testtextbuffer.c (logical_motion_tests): add sentence
5909         boundary tests
5910
5911 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
5912
5913         * demos/gtk-demo/Makefile.am: add editable_cells.c,
5914         list_store.c and tree_store.c
5915
5916         * demos/gtk-demo/appwindow.c: remove tearoff item from
5917         File menu, put menubar and toolbar in handle boxes.
5918
5919         * demos/gtk-demo/genincude.pl: various changes to support trees
5920
5921         * demos/gtk-demo/main.c: various changes to support trees
5922
5923         * demos/gtk-demo/stock_browser.c: changed name of demo
5924         to Stock Item and Icon Browser, so geninclude.pl doesn't see
5925         it as child
5926
5927         * demos/gtk-demo/editable_cells.c: new file/demo
5928         * demos/gtk-demo/list_store.c: new file/demo
5929         * demos/gtk-demo/tree_store.c: new file/demo
5930
5931 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
5932
5933         * gtk/gtkrc.c gtk/gtksettings.c: 
5934         g_string_printfa => g_string_append_printf.
5935
5936 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
5937
5938         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
5939         and destroy handler.
5940
5941         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
5942
5943         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
5944         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
5945         Singh <yosh@gimp.org>.
5946
5947 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
5948
5949         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
5950         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
5951
5952         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
5953
5954 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
5955
5956         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
5957         scroll_to_cell delayed code to happen in size_allocate.
5958
5959         * gtk/gtkstyle.c (gtk_default_draw_expander): change
5960         prelight/normal arrow drawing.
5961
5962         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
5963
5964         * gtk/gtktreestore.c: refactor.
5965
5966 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
5967
5968         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
5969         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
5970         centers the child in relation to the to indicator height.
5971
5972 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
5973
5974         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
5975         correct
5976
5977 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
5978
5979         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
5980         property code using g_param_spec_int and changed from
5981         g_value_get_enum to g_value_get_int instead. Probably a better way
5982         to fix the problem :-)
5983
5984 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
5985
5986     * gtk/gtkcellrenderertext.c changed "weight" property type from 
5987       g_param_spec_int to g_param_spec_enum.
5988
5989 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
5990
5991         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
5992         fix: s/Wether/Whether/ in reorderable property description
5993
5994 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
5995
5996         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
5997         start editing when you select with a keyboard.
5998
5999         (gtk_tree_view_button_press_event): much more graceful now.
6000
6001         * gtk/gtkstyle.c: Draw togglebutton better.
6002
6003 2001-09-26  Havoc Pennington  <hp@redhat.com>
6004
6005         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
6006         of passing non-stock label in to gtk_dialog_new_with_buttons
6007
6008         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
6009         debugging updates
6010
6011         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
6012         are private
6013
6014         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
6015         exist, fall back to mnemonic label, not plain label, bug #61184
6016         
6017 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
6018
6019         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
6020         stupid and emitting the signal every time.
6021
6022         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
6023
6024 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
6025
6026        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
6027
6028        * contrib/gdk-pixbuf-xlib/Makefile.am: install
6029        gdk-pixbuf-xlib-2.0.pc.
6030
6031 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
6032
6033         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
6034         problem where menmonic wasn't removed properly when
6035         setting a label when there already is a label.
6036         Also, handle setting the tab label back to the same
6037         value. (#61160, #61161)
6038
6039         * gtk/gtkentry.c (paste_received): Patch from 
6040         Damian Ivereigh to replace selection if there is 
6041         one. (#61121)
6042
6043 2001-09-25  Darin Adler  <darin@bentspoon.com>
6044
6045         * tests/.cvsignore: Ignore new test program.
6046
6047 2001-09-25  Havoc Pennington  <hp@redhat.com>
6048
6049         * gtk/gtktextview.c: fix for #50317
6050         
6051 2001-09-25  Havoc Pennington  <hp@redhat.com>
6052
6053         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
6054         gtk_text_iter_can_insert
6055         
6056         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
6057
6058         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
6059          (gtk_text_iter_can_insert): new function to fix #60282, should
6060         also fix msw's "can paste into empty buffer" bug.
6061
6062         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
6063         "event object,"  #59091
6064
6065         * gtk/gtktextbtree.c: indentation fixes
6066
6067         * gtk/gtktextiter.c (find_by_log_attrs): fixes
6068
6069 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
6070
6071         * configure.in: Version 1.3.9, interface age 0, binary age 0.
6072
6073         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
6074
6075         * NEWS: Updates.
6076
6077 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
6078
6079         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
6080         function for drawing cursors between gtkentry/gtklabel/gtktextview.
6081         Should this be public? It has a bit of an odd interface, but
6082         custom editing widgets probably should be using it.
6083         Function will draw with wider width for taller cursors, and
6084         draws a little indicator arrow to indicate directoin for split 
6085         cursors.
6086
6087         * gtk/gtktextview.c: Add a "cursor_color" property.
6088
6089         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
6090         gtk_text_layout_draw().
6091
6092         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
6093         _gtk_draw_insertion_cursor().
6094
6095 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
6096
6097         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
6098         the behavior where you could turn family_set (etc) back on
6099         and get back the values you had before.
6100
6101         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
6102         g_string_ascii_up() rather than looping through the
6103         string ourself.
6104
6105 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
6106
6107         * gtk/gtktreeviewcolumn.c
6108         (gtk_tree_view_column_set_cell_renderer): Removed
6109         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
6110
6111         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
6112         Patch from Detlef Reichl
6113
6114 2001-09-25  Havoc Pennington  <hp@redhat.com>
6115
6116         * tests/testtextbuffer.c (line_separator_tests): Add tests for
6117         line separators, addresses bug #57428
6118
6119 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
6120
6121         * gtk/gtkentry.c: Make a GtkCellEditable
6122         (get_widget_window_size): Change to let it honor size_allocate
6123         when a CellEditable.
6124
6125         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
6126         editable changes.
6127         (gtk_tree_view_set_cursor): Now you can set the cursor
6128         horizontally, as well as start editing.
6129
6130         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
6131         code to look more like the other check buttons.
6132
6133         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
6134         Change the way we calculate cell size.
6135
6136         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
6137
6138         * demos/gtk-demo/sizegroup.c: Add mnemonics.
6139
6140         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
6141         Fix logic.
6142
6143         * gtk/gtkcellrenderertext.c: Change to be editable.
6144
6145         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
6146
6147         * test/testtreesort.c: Fix misspelling
6148
6149         * test/testreecolumns.c: Add mnemonics.
6150
6151         * test/testreeedit.c: New test program.
6152
6153 2001-09-25  Havoc Pennington  <hp@pobox.com>
6154
6155         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
6156         etc. docs about how these are not going to do what you want for 
6157         the X/win32 ports. Futile attempt to avoid a FAQ...
6158
6159 2001-09-24  James Henstridge  <james@daa.com.au>
6160
6161         * gtk/gtkmarshal.list (VOID): add marshal function types.
6162
6163         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
6164         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
6165         GTK_TYPE_POINTER.
6166         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
6167         with no-op copy/free functions.
6168
6169         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
6170         GtkCTreeNode get_type function.
6171
6172 2001-09-24  Havoc Pennington  <hp@redhat.com>
6173
6174         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
6175         gtktextlayout.c:
6176         Get rid of the newline-that-could-not-be-deleted; buffers may 
6177         now be zero-length. Much easier to fix than expected, once 
6178         I figured out the right way to do it. However, there are 
6179         various subtle bugs introduced by this that will have to get 
6180         sorted out. Please use bugzilla.
6181
6182 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
6183
6184         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
6185         response back from the window manager if our size hasn't changed 
6186         since we won't get a response back from the window manager;
6187         there was code in there to do this, but it was in the wrong
6188         place so if the hints change and the size didn't we'd expect
6189         a response.
6190
6191         Also, optimize the position-only-changed case by running
6192         the resize queue immediately, and clean up some comments
6193         for the changes.
6194
6195 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
6196
6197         * gtk/gtknotebook.h: Add a compat macro that got lost.
6198
6199         * gtk/gtktreestore.c: Doc fixes.
6200
6201         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
6202         leak for windows that receive events after being destroyed.
6203         (#60863, Joshua N. Pritikin)
6204
6205         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
6206         rather than gtk_container_queue_resize().
6207
6208         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
6209         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
6210         gtk_container_child_composite_name. (#60217.)
6211
6212 2001-09-22  Hans Breuer  <hans@breuer.org>
6213
6214         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
6215
6216 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
6217
6218         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
6219         weight value should be an int
6220
6221 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
6222
6223         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
6224         to gtk_menu_scroll_item_visible(). Only call
6225         gtk_menu_scroll_item_visible() if the menu widget has been
6226         realized. Fixes bug #55310.
6227
6228 2001-09-21  Havoc Pennington  <hp@redhat.com>
6229
6230         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
6231         key press to IM context if cursor isn't in an editable location;
6232         bug #58425, patch from Hidetoshi Tajima
6233
6234 2001-09-21  Havoc Pennington  <hp@redhat.com>
6235
6236         Bug #60862
6237         
6238         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
6239         (_gtk_text_btree_unref): fix up mark memory management
6240
6241         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
6242
6243 2001-09-20  Havoc Pennington  <hp@redhat.com>
6244
6245         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
6246         try to handle alignment here, because it's done by PangoLayout
6247         after we set the layout width. Fix from Dov.
6248
6249 2001-09-21  Hans Breuer  <hans@breuer.org>
6250
6251         * gdk/gdk.def :
6252         * gtk/gtk.def : updated externals
6253
6254         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
6255         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
6256         Also handle that Win32 pathes cann't be hard-coded      
6257
6258         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
6259         module, themes etc directory calculations
6260
6261         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
6262         >16 bit right. The size limit within Win9x appears _not_ to be 32767
6263         but slightly smaller ...
6264
6265         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
6266         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
6267
6268         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
6269
6270         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
6271         handling. I'm not sure if it is better now, but at least not worse
6272
6273         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
6274
6275         * gdk/win32/gdkwin32.h : reflect recent API restrictions
6276
6277 2001-09-21  Matt Wilson  <msw@redhat.com>
6278
6279         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
6280         radio_menu_item->group to NULL after removing it from the list, as
6281         it is no longer in the group. (#60869)
6282
6283         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
6284
6285 2001-09-20  Havoc Pennington  <hp@pobox.com>
6286
6287         * configure.in (PANGO_REQUIRED_VERSION)
6288         (ATK_REQUIRED_VERSION): add variables and checks for specific 
6289         versions of dependencies. Previously we didn't verify the 
6290         Pango or ATk versions.
6291
6292 2001-09-09  Havoc Pennington  <hp@pobox.com>
6293
6294         * gtk/gtktextiter.c: fool with indentation
6295         (gtk_text_iter_in_range): add g_return_if_fail
6296
6297 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
6298
6299         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
6300         ref count on new tag to be 1.  Update doc.  (#60836)
6301
6302 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
6303
6304         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
6305         call to gdk_image_new_bitmap(). (#59094, reported by
6306         by Sven Neumann)
6307
6308 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
6309
6310         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
6311         day, as well as the current month and year.
6312         (#59047, reported by Vitaly Tishkov)
6313
6314 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
6315
6316         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
6317         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
6318         
6319 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
6320
6321         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
6322
6323         (build_option_menu): add func argument, connect ::changed
6324         signal to option menu instead of connecting the ::activate
6325         signal to the menu items,
6326
6327         (toplevel): get rid of RADIOMENUTOGGLED macro,
6328
6329         (list_toggle_sel_mode), (clist_toggle_sel_mode),
6330         (ctree_toggle_line_style), (ctree_toggle_expander_style),
6331         (ctree_toggle_justify), (ctree_toggle_sel_mode),
6332         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
6333         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
6334
6335         (notebook_type_changed): merged standard_notebook(),
6336         notabs_notebook(), scrollable_notebook() and borderless_notebook()
6337         into notebook_type_changed()
6338
6339         (create_list), (create_ctree), (create_notebook),
6340         (create_progress_bar): changed OptionMenuItem arrays into
6341         gchar * arrays. Removed "Extended" item where used.
6342
6343         Fixes bug #59885
6344
6345 2001-09-20  Sven Neumann  <sven@gimp.org>
6346
6347         * configure.in
6348         * gdk/Makefile.am
6349         * gtk/Makefile.am
6350         * gtk/gtkselection.c
6351         * gtk/gtktreeview.c
6352         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
6353
6354 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
6355
6356         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
6357         a missing pango_layout_iter_free ().
6358
6359 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
6360
6361         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
6362         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
6363
6364         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
6365         the function definition so we don't accidentally rely on
6366         the compat #define from gtk_radio_menu_item_group.
6367         (#60782, Jeff Franks)
6368
6369 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
6370
6371         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
6372         incorrect values for top, right and bottom due to cut-and-paste
6373         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
6374
6375 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
6376
6377         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
6378         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
6379         window, not just on the client leader. (#58463)
6380
6381 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
6382
6383         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
6384
6385         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
6386         non-public _gtk_menu_item_set_placement.
6387
6388         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
6389
6390 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
6391
6392         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
6393           gdk/linux-fb/gdkcolor-fb.c:
6394         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
6395         (#59723)
6396
6397 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
6398
6399         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
6400         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
6401         #59723)
6402
6403 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
6404
6405         Patch from Frank Belew #59037 for Solaris compilation.
6406
6407         * gtk/maketypes.awk: Change syntax slightly for a call
6408         to sub(), apparently making awk on Solaris happier.
6409
6410         * gtk/gtktreeview.c: Remove C++ comments.
6411
6412 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
6413
6414         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
6415         to handle '99% of the time. (#60473, reported by Christian Rose)
6416
6417         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
6418         which no longer exists. (#60379, reported by Vitaly Tishkov)
6419
6420 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
6421
6422         * Released 1.3.8.
6423
6424         * gdk/Makefile.am: kill EXTRA_DIST clearing.
6425         
6426 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
6427
6428         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
6429         as its broken in automake 1.4, add explicit object rule to
6430         generate this.
6431         
6432         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
6433         get rid of uneccessary stamps, group stuff more logically, and build
6434         sources due to object rules. fix srcdir!=builddir.
6435
6436 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
6437
6438         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
6439         incorrect parameter to compute_double_length
6440         (#58680, patch from Matthias Clasen)
6441
6442         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
6443
6444         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
6445
6446         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
6447         for GDK_RELEASE_MASK to avoid warnings with Forte.
6448
6449         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
6450         break; statements.
6451
6452 2001-09-18  Alex Larsson  <alexl@redhat.com>
6453
6454         * gtk/gtkcheckbutton.c:
6455         * gtk/gtkradiobutton.c:
6456         Don't draw with GTK_STATE_ACTIVE.
6457
6458         * gtk/gtkclist.c:
6459         * gtk/gtkctree.c:
6460         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
6461
6462         * gtk/gtktextdisplay.c:
6463         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6464         unfocused with base_gc [GTK_STATE_ACTIVE].
6465         
6466         * gtk/gtkentry.c:
6467         Add select all menu-item.
6468         Default cursor color is red.
6469         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6470         unfocused with base_gc [GTK_STATE_ACTIVE].
6471
6472         * gtk/gtklabel.[ch]:
6473         Add keynav + menu to selectable lables.
6474         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6475         unfocused with base_gc [GTK_STATE_ACTIVE].
6476
6477         * gtk/gtkfilesel.c:
6478         Add drag and drop support.
6479
6480         * gtk/gtkstyle.c:
6481         (This was checked in earlier)
6482         New default values for text/base SELECTED and ACTIVE
6483         
6484 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
6485
6486         * configure.in: up version to 1.3.8, interface age 0,
6487         binary age 0, depend on glib 1.3.8.
6488
6489         * NEWS: 1.3.8 updates.
6490
6491 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
6492
6493         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
6494         the editing code
6495
6496         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
6497         reason to call it beyond emiting the two signals.
6498
6499         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
6500         to GtkEntry.
6501
6502 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
6503
6504         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
6505           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
6506         PangoFontDescription.
6507
6508         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
6509         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
6510         structure.
6511   
6512         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
6513
6514         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
6515         direct access to style->font. Deprecate gtk_style_ref/unref.
6516   
6517         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
6518         Remove gtk_style_ref/unref with g_object_ref/unref.
6519   
6520         * gtk/gtkcalendar.c: Remove leftover macros accessing
6521         style->font.
6522   
6523         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
6524         variable.
6525   
6526         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
6527         style->font.
6528
6529 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
6530
6531         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
6532         "can_activate" properties in favor of
6533         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
6534         and GTK_CELL_RENDERER_MODE_EDITABLE
6535
6536 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
6537
6538         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
6539         editable widgets.  This function is private, and should only be
6540         used by GtkTreeView.
6541
6542 2001-09-18  Matt Wilson  <msw@redhat.com>
6543
6544         * docs/Makefile.am (EXTRA_DIST): don't use += before =
6545
6546         * docs/faq/Makefile.am (EXTRA_DIST): likewise
6547
6548         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
6549         
6550         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
6551         (EXTRA_HEADERS): likewise
6552
6553         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
6554         (EXTRA_HEADERS): likewise
6555         (EXTRA_DIST): likewise
6556         (CLEANFILES): likewise
6557
6558         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
6559
6560         * tests/Makefile.am (EXTRA_DIST): likewise
6561         
6562         * Makefile.am (install-data-local): changed to use
6563         install-data-hook, which runs after install-pkgconfigDATA, so that
6564         the pkgconfigdir will have been created and populated first.
6565
6566 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
6567
6568         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
6569         be the last big GtkTreeView API change.
6570
6571         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
6572         replace with "activate" and "start_editing".  Also, added a
6573         "can_activate" and "can_edit" property.
6574
6575         * gtk/gtktreeviewcolumn.c: modify to use above.
6576
6577 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
6578
6579         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
6580
6581 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
6582
6583         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
6584         icon instead of one with ugly white background.
6585
6586 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
6587
6588         * demos/gtk-demo/stock_browser.c (id_to_macro): make
6589         the uppercasing work. (#59550)
6590
6591 2001-09-14  Jakub Steiner <jimmac@ximian.com>
6592
6593         * gtk/stock-icons/dialog_error.png:
6594         * gtk/stock-icons/dialog_question.png: more road signs
6595
6596 2001-09-13  Jakub Steiner <jimmac@ximian.com>
6597
6598         * gtk/stock-icons/dialog_question.png:
6599         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
6600           like a road sign.
6601
6602 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
6603
6604         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
6605         signals to make them more clear.  Also, change ::range_changed to
6606         ::row_changed.
6607         * gtk/gtktreemodel.c: Adjust to interface change
6608         * gtk/gtktreemodel.h: ditto
6609         * gtk/gtktreemodelsort.c: ditto
6610         * gtk/gtktreestore.c: ditto
6611         * gtk/gtkliststore.c: ditto
6612         * gtk/gtktreeview.c: ditto
6613         * tests/testtreecolumns.c: ditto
6614         * gtk/gtkmarshal.list: Actually remove a marshaller!
6615
6616 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
6617
6618         * gtk/gtktextview.c
6619         Add support for Ctrl+Up/Down arrow to move cursor to beginning
6620         of previous/next paragraph. If within a paragraph cursor moves to
6621         beginning of that paragraph.
6622
6623 2001-09-12  Jakub Steiner <jimmac@ximian.com>
6624
6625         * gtk/stock-icons/dialog_question.png: replacing the shaky
6626           question mark with a sans-serif one.
6627         * gtk/stock-icons/stock_top.png, stock_bottom.png,
6628      stock_first.png, stock_last.png: using the new style arrows
6629         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
6630      colors.
6631         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
6632      color.
6633         * gtk/stock-icons/stock_zoom*: anti-aliased
6634         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
6635      '-' with a '_', removed the wrong files
6636
6637 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
6638  
6639         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
6640  
6641         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
6642         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
6643         than in gtk-2.0/major.minor.micro/<type>/. This
6644         works better for a search path for modules.
6645  
6646         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
6647         gtk_binary_version variable holding major.minor.(micro-binary_age).
6648  
6649         * modules/input/Makefile.am (moduledir): Fix installation
6650         directory to match change in lookup location.
6651  
6652         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
6653         suffixes. Needs to be handled in g_module_build_path().
6654
6655         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
6656         appropriate.
6657  
6658 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
6659
6660         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
6661         causing RC properties not to work.
6662
6663 2001-09-11  Jakub Steiner <jimmac@ximian.com>
6664
6665         * gtk/stock-icons/dialog-error.png: less drastic
6666         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
6667           "STOP" is international enough.
6668         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
6669         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
6670
6671 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
6672
6673         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
6674         (add|remove)_selection_clipboard symmetric. (bug #59836)
6675
6676         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
6677         Avoid SEGV for empty tree. (bug #60243)
6678
6679 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
6680
6681         * tests/testgtk.c (create_idle_test): slight fix for
6682         g_object_set() not usable for nesting anymore.
6683
6684         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
6685         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
6686         properties, supply ::shadow_type properties instead as most
6687         other widgets do.
6688
6689 2001-09-10  Alex Larsson  <alexl@redhat.com>
6690
6691         * demos/gtk-demo/stock_browser.c:
6692         * gdk/gdkcolor.c:
6693         * gdk/gdkfont.c:
6694         * gdk/gdkcursor.c:
6695         * gdk/gdkevents.c:
6696         * gdk/gdkrectangle.c:
6697         * gtk/gtktypeutils.c:
6698         Update to use the new g_boxed_type_register_static API.
6699
6700 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
6701
6702         * gtk/gtktreestore.c:
6703         Fix looping in gtk_tree_store_init() waiting for zero random int.
6704
6705 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
6706
6707         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
6708         behaviour which havoc broke. they have to default to 1.0 for
6709         expand behaviour.
6710
6711         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
6712
6713 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
6714
6715         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
6716         Amend previous change to avoid runtime error in g_param_spec_ref()
6717
6718 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
6719
6720         * gtk/gtkrc.c (insert_rc_property): Fix blank line
6721         in the wrong place.
6722
6723 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
6724
6725         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
6726         do a lookup immediately after creating style->property_cache,
6727         since bsearch crashes on zero length for Solaris.
6728         (Found by Padraig O'Briain.)
6729
6730 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
6731
6732         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
6733         Really return NULL if not set.
6734         (gtk_widget_init): Remove unused varaible.
6735         
6736 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
6737
6738         * configure.in:
6739         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
6740         in cvs.
6741
6742 2001-09-08  Havoc Pennington  <hp@pobox.com>
6743
6744         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
6745         people might want to use
6746
6747 2001-09-08  Havoc Pennington  <hp@pobox.com>
6748
6749         * gtk/gtkalignment.c (gtk_alignment_class_init): default
6750         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
6751
6752         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
6753
6754         * gtk/gtktextiter.c: fix docs
6755         (gtk_text_iter_spew): get rid of this
6756
6757         * gtk/gtklayout.c: docs
6758
6759         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
6760         to center image and label together, instead of having image on
6761         left and label centered, patch/suggestion from Jacob
6762
6763         * gtk/gtkdialog.c: docs
6764
6765 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
6766
6767         * gtk/gtkliststore.c: Write documentation
6768         * gtk/gtktreestore.c: Write documentation
6769
6770 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
6771
6772         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
6773         with GArray and bsearch(), to remove dependency on a still
6774         evolving interface that we want to keep private to glib/gobject. 
6775
6776 2001-09-08  Havoc Pennington  <hp@pobox.com>
6777
6778         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
6779         docs fixes
6780
6781         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
6782
6783         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
6784
6785         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
6786
6787         * gtk/gtkscrolledwindow.h: docs fixes
6788
6789         * gtk/gtkimage.c (gtk_image_new): docs fixes
6790
6791 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
6792
6793         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
6794         false alarm  constness warning with a cast.
6795
6796         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
6797         for the inside-gdk case.
6798
6799 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
6800
6801         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
6802         remove g_print.
6803
6804         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
6805         change models, #59899
6806
6807 2001-09-07  Havoc Pennington  <hp@pobox.com>
6808
6809         * gtk/gtkmain.c: move some docs inline
6810
6811 2001-09-07  Havoc Pennington  <hp@pobox.com>
6812
6813         * gtk/gtk.h: tsk tsk, jrb broke the build
6814
6815 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
6816
6817         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
6818         Removed 'fill' attribute.  It was silly b/c that was a property of
6819         the cell renderer, anyway.
6820         (gtk_tree_view_column_render): Actually render the packed
6821         renderers.
6822         * doc/tree-column-sizing.txt: initial devel documentation.
6823         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
6824         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
6825
6826         * tests/testtreefocus.c: fix up to reflect above changes.
6827         * tests/testtreeview.c: ditto
6828         * demos/gtk-demo/stock_browser.c: ditto
6829
6830 2001-09-07  Alex Larsson  <alexl@redhat.com>
6831
6832         * gdk/linux-fb/gdkcolor-fb.c:
6833         Removed unused function.
6834         
6835         * gdk/linux-fb/gdkdrawable-fb2.c
6836         * gdk/linux-fb/gdkfont-fb.c:
6837         Use PangoLanguage functions.
6838
6839         * gdk/linux-fb/gdkinput.c:
6840         * gdk/linux-fb/gdkselection-fb.c:
6841         Fix const warnings.
6842         
6843         * gdk/linux-fb/gdkwindow-fb.c:
6844         Fix warning. Implement gdk_window_set_icon_list() and
6845         gdk_window_get_frame_extents(). (No icon support yet though.)
6846
6847         * gtk/gtkwindow.c (gtk_window_get_position):
6848         If window->frame is set get the extents of it instead.
6849         
6850 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
6851
6852         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
6853         Make the default default colormap the GdkRGB colormap,
6854         not the system colormap.
6855
6856         * gtk/gtkinvisible.c (gtk_invisible_init) 
6857           gtk/gtkwindow.c (gtk_window_init): Set the current
6858         colormap, as returned by _gtk_widget_peek_colormap()
6859         on the widget.
6860
6861         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
6862         to GTK+. Make it return %NULL instead of the default
6863         colormap if no colormap has explicitely been pushed.
6864
6865         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
6866         colormaps on ancestral widgets before defaulting the
6867         the system default colormap.
6868
6869         * docs/Changes-2.0.txt: explain colormap changes.
6870
6871 2001-09-07  Havoc Pennington  <hp@redhat.com>
6872
6873         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
6874         #57424
6875
6876 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
6877
6878         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
6879         make gdk_set_use_xshm a noop. Remove --no-xshm command line
6880         option. If we aren't autodetecting properly, we need
6881         to fix the problem, or at least make it an environment
6882         variable setting, to avoid problems with propagating
6883         to embedded children, plugins, etc.
6884
6885         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
6886
6887         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
6888         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
6889         New function to render a pixmap and mask for a particular colormap.
6890
6891         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
6892         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
6893         of internal implementation of the same.
6894
6895 2001-09-07  Havoc Pennington  <hp@redhat.com>
6896
6897         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
6898         debug code that seems to have caused a breakpoint in valid cases
6899         
6900         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
6901         pointer on the first view when adding the second view, fixes
6902         crash when closing gtk-demo text test with active selection
6903
6904         * gtk/gtktextbuffer.c
6905         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
6906         clipboards in the list of clipboards - probably fixes #59836
6907
6908 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
6909
6910       Make gdkx.h the only installed header from gdk/x11.
6911       All structures in gdk/x11 are opaque.
6912
6913         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
6914         Don't install gdk{drawable,pixmap,window}-x11.h.
6915
6916         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
6917         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
6918         GdkVisualClass into C files.
6919
6920         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
6921
6922         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
6923         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
6924         Add public functions to replace previously exported direct
6925         structure access.
6926         gdk_x11_colormap_get_{xdisplay,xcolormap} 
6927         gdk_x11_cursor_get_{xdisplay,xcursor},
6928         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
6929         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
6930         gdk_x11_gc_get_{xdisplay,ximage}
6931         
6932         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
6933         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
6934
6935       Fix a number of variables and functions that were exported
6936       "accidentally" from GDK.
6937
6938         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
6939         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
6940         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
6941         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
6942         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
6943         gdk_event_queue_find_first, gdk_event_queue_remove_link,
6944         gdk_event_queue_append, gdk_event_button_generate,
6945         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
6946
6947         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
6948            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
6949         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
6950         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
6951         gdk_use_xshm, gdk_input_ignore_core.
6952
6953         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
6954         #defines to namespace functions into the private _gdk_ 
6955         namespace.
6956
6957         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
6958         to replace gdk_parent_root exported variable. Adjust and
6959         deprecate GDK_ROOT_PARENT().
6960
6961         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
6962         GDK_ROOT_PARENT usage, remove includes of port-specific
6963         headers.
6964
6965         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
6966         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
6967         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
6968
6969         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
6970         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
6971         gdk_wm_delete_window functions, gdk_wm_take_focus, 
6972         use gdk_atom_intern() instead.
6973
6974         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
6975           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
6976           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
6977           gtk/gtkselection.c 
6978         Unexport gdk_selection_property, just use 
6979         gdk_atom_intern ("GDK_SELECTION").
6980
6981         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
6982         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
6983         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
6984         GdkVisualprivate, gdk_x11_gc_flush.
6985
6986       Make a number of public exports of variables into functions
6987       to increase encapsulation.
6988
6989         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
6990         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
6991         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
6992
6993         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
6994         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
6995         gdk_error_warnings.
6996
6997         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
6998           docs/Changes-2.0.txt: 
6999         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
7000         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
7001         Add gdk_x11_get_default_xdisplay().
7002
7003         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
7004         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
7005         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
7006         Don't export gdk_progclass, move --class command line
7007         option and handling to common portion of GDK.
7008
7009       Miscellaneous fixes:
7010
7011         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
7012         g_return_val_if_fail that should have been g_return_if_fail.
7013
7014         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
7015         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
7016
7017         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
7018         X11 dependency.
7019
7020         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
7021         Remove unused gdk_key_repeat_disable/restore.
7022
7023         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
7024         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
7025         Remove unused gdk_null_window_warnings variable.
7026
7027         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
7028         it can be retrieved from the repository; it is too far
7029         from functional to be worth having people check out;
7030         it would be easier to start from scratch, I suspect.
7031
7032         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
7033
7034         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
7035         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
7036         Fix some accidentally global variables and unused global variables.
7037
7038         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
7039         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
7040         Fix some accidentally global variables and unused global variables.
7041
7042       Add some space for future expansion to multihead.
7043
7044         * gdk/gdkdrawable.h: Add four reserved function pointers
7045         for future expansion of GdkDrawableClass.
7046
7047         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
7048         where we can put a GdkScreen * later.
7049
7050 2001-09-07  Havoc Pennington  <hp@redhat.com>
7051
7052         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
7053         adjustments after validating destination yrange; fixes #53918
7054         (This may cause other issues, but I hope it won't)
7055         
7056 2001-09-05  Havoc Pennington  <hp@redhat.com>
7057
7058         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
7059         line into start line, update the character counts in parent nodes; 
7060         caused a bug when end and start line had different parent nodes.
7061
7062 2001-08-30  Havoc Pennington  <hp@redhat.com>
7063         
7064         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
7065         assertion that tag is in a table
7066
7067 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
7068
7069         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
7070         g_strcasecmp on NULL strings. (#59058)
7071
7072 2001-09-06  Alex Larsson  <alexl@redhat.com>
7073
7074         * gtk/gtkbin.c:
7075         * gtk/gtkfontsel.c:
7076         * gtk/gtkspinbutton.c:
7077         * gtk/gtktipsquery.c:
7078         Use GtkType/GType instead of uint.
7079
7080 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
7081
7082         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
7083         sort column.
7084
7085         * gtk/gtktreestore.c (gtk_list_store_init): ditto
7086
7087         * gtk/gtktreesortable.c: add docs.
7088
7089 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
7090
7091         * Version 1.3.7
7092
7093         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
7094         docs for gtk-config
7095
7096         * modules/input/Makefile.am (install-data-local): Don't
7097         run gtk-query-immodules if DESTDIR is set.
7098
7099         * NEWS: Various additions.
7100
7101 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
7102
7103         * NEWS: updates for 1.3.7 release.
7104
7105 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
7106
7107         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
7108         handle default sort feature
7109
7110         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
7111         new function to handle default sort.
7112         (gtk_tree_sortable_has_default_sort_func): check if default sort
7113         is set.
7114
7115         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
7116         handle default sort feature
7117
7118 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
7119
7120         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
7121         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
7122         #59731
7123
7124 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
7125
7126         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
7127         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
7128         time, #59727
7129
7130         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
7131         correctly.
7132
7133 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
7134
7135         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
7136         so that we don't eternally update the keymap after we
7137         get a change notification.
7138
7139         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
7140         incorrect cast.
7141
7142 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
7143
7144         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
7145         it working. It mostly works now, although there're still a few issues
7146         to be worked out.
7147
7148         * tests/testtreesort.c (main): changes to have a better test
7149         application for the GtkTreeModelSort.
7150
7151 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
7152
7153         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
7154         fix for bug #59222.
7155
7156         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
7157         gpointer search_data argument to function definition and
7158         prototype, to match GtkTreeViewSearchEqualFunc typedef.
7159
7160 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
7161
7162         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
7163         per jrb's request.
7164
7165 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
7166
7167         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
7168
7169         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
7170
7171 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
7172
7173         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
7174         Instead of always mirroring the selection to a single PRIMARY
7175         selection, allow it to be mirrored to any number of clipboards.
7176
7177         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
7178         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
7179
7180         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
7181         GtkClipboard argument, and for paste_clipboard, the
7182         @override_location argument from @paste_primary.
7183
7184         * gtk/gtktextview.c: Adapt to above change.
7185         
7186 2001-08-30  Havoc Pennington  <hp@redhat.com>
7187
7188         * gtk/gtktextview.c (invalidated_handler): put validate idle at
7189         resize - 2 just for flexibility
7190
7191 2001-08-30  Havoc Pennington  <hp@redhat.com>
7192
7193         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
7194         object from the empty-child-anchor case by drawing a little box.
7195         
7196         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
7197         if the child anchor has no anchored widgets - fixes #59328.
7198
7199         Also, remove bizarre deletion of preedit string that seems to have
7200         gotten in here somehow.
7201
7202 2001-08-30  Havoc Pennington  <hp@redhat.com>
7203
7204         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
7205         to #58420 from Hidetoshi Tajima and Matthias Clasen
7206
7207 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
7208
7209         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7210         change color when the GtkTreeView loses focus.
7211
7212         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
7213         ditto.
7214         
7215         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
7216
7217 2001-08-28  Havoc Pennington  <hp@pobox.com>
7218
7219         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
7220
7221 2001-08-28  Havoc Pennington  <hp@pobox.com>
7222
7223         * demos/gtk-demo/main.c (setup_default_icon): add default icon
7224
7225         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
7226         warning fix
7227         (gtk_radio_button_new_with_label): warning fix
7228
7229         * gtk/gtkdnd.c: used some random GtkImage private structs, 
7230         update to reflect GtkImage changes
7231
7232         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
7233         whether the hint is supported, just always set the icon. A task
7234         list might want to use it even if the WM doesn't, and the WM may
7235         change over time. Also, XDeleteProperty() if list == NULL.
7236
7237         * gtk/gtkwindow.c (gtk_window_set_icon_list)
7238         (gtk_window_get_icon_list)
7239         (gtk_window_set_icon)
7240         (gtk_window_get_icon)
7241         (gtk_window_set_default_icon_list)
7242         (gtk_window_get_default_icon_list):
7243         new functions
7244
7245         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
7246
7247         * gtk/gtkimage.c: Implement property support, bug #59408
7248
7249         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
7250         on reparent-without-removing-first a bit more helpful.
7251         Let's just destroy this FAQ.
7252
7253 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
7254
7255         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
7256         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
7257
7258 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
7259
7260         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
7261         of use_text_format to the end of the function. (#56447)
7262
7263 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
7264
7265         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
7266         only in response to an area_prepared signal.
7267
7268 2001-08-28  Alex Larsson  <alexl@redhat.com>
7269
7270         * gtk/gtkwidget.c (gtk_widget_class_init):
7271         Make unrealize GTK_RUN_LAST.
7272
7273 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
7274
7275         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
7276         with_label and with_mnemonic should create radio buttons, not
7277         check buttons
7278
7279 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
7280
7281         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
7282         * tests/treestoretest.c (make_window): ditto
7283         * demos/gtk-demo/main.c (create_tree): ditto
7284         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
7285
7286 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
7287
7288         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
7289         GTK selection types rather than GtkTreeSelectionMode.
7290
7291         * docs/Changes-2.0: Add comment about selection change.
7292
7293 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
7294
7295         * gtk/gtkenums.h (GtkSelectionMode): deprecate
7296         GTK_SELECTION_EXTENDED.
7297
7298         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
7299         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
7300
7301         * gtk/gtkctree.c: ditto
7302
7303         * gtk/gtklist.c: ditto
7304
7305         * gtk/gtktree.c: ditto
7306
7307 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
7308
7309         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
7310         of typos in compat macros. (#59624, Skip Montaro)
7311
7312 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
7313
7314         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
7315         macro.
7316
7317          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
7318  
7319         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
7320         interface to be a standard setter from gtk_menu_item_right_justify.
7321         (gtk_menu_item_get_right_justified): a getter to go with the setter
7322
7323         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
7324         gtk_menu_item_right_justify.
7325
7326         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
7327         gtk_menu_item_set_right_justified.
7328  
7329 2001-08-27  Jens Finke <jens@gnome.org>
7330
7331         * gtk+.spec.in: Updated to match gpp requirements, reworked the
7332         files section to make it work with 1.3.x releases.
7333
7334 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
7335
7336         * gtk/gtkbutton.[ch]:
7337         Add properties for labels, mnemonics and stock items.
7338         Added C accessor functions for the properties.
7339         Removed deprecated button->child.
7340
7341         * gtk/gtkradiobutton.c:
7342         * gtk/gtktogglebutton.c:
7343         Update to use the functions in GtkButton.
7344
7345         * gtk/gtkcheckbutton.c:
7346         Update to use the functions in GtkButton.
7347         Changed size allocation of child. Now only gets as much
7348         space as it requests.
7349
7350         * gtk/gtkclist.c:
7351         Don't use GtkButton->child
7352
7353         * gtk/gtklabel.c:
7354         Fixed typo in docs
7355         
7356 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
7357
7358         * tests/testgtk.c:
7359         * tests/Makefile.am:
7360         Ressurect the properties test.
7361         I don't care if it is inferior, I just want to test my property code.
7362
7363 2001-08-25  Chema Celorio  <chema@celorio.com>
7364
7365         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
7366         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
7367         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
7368
7369 2001-08-24  Havoc Pennington  <hp@pobox.com>
7370
7371         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
7372         these are already in gtkmenu.h, and the copies
7373         here were broken.
7374
7375         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
7376
7377         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
7378         special-case bitmaps to allow no colormap
7379         (bitmap1): implement no-colormap bitmap-getting
7380         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
7381         alpha
7382         (rgb8): indentation
7383         (rgb1a, rgb1): change the way we read the data out of the image, 
7384         old way didn't seem to work quite right.
7385
7386         I'm pretty sure a lot of the rgbconvert code is still broken.
7387         
7388         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
7389         above position constraint (I really intended to do this before,
7390         don't know what's up with that)
7391         (gtk_XParseGeometry): shut up gcc
7392
7393         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
7394         and "0" should have been. remove the attempted 4-bytes-at-once
7395         optimization, it was totally broken.
7396
7397 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
7398
7399         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
7400         on push to buttons (based on patch from Soeren Sandmann, #54720)
7401
7402           - Add child_displacement_x/y style properties to control how far the
7403             child moves when the button is depressed.
7404
7405           - Add non-exported function _gtk_button_set_depressed to clean
7406             up the handling of the in/out shadow and separate it frmo
7407             widget->state.
7408
7409           - Lots of code cleanup and simplification of state handling
7410             for GtkButton/GtkToggleButton.
7411  
7412         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
7413         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
7414
7415 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
7416
7417         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
7418         and make gtk_image_new() take no arguments. The compiler will
7419         catch it, and it is vastly more useful than having
7420         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
7421
7422         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
7423         to add tearoff-title property (#51319, Lee Mallabone)
7424
7425 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
7426
7427         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
7428         gtk_menu_item_configure(). (#58925)
7429
7430 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
7431
7432         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
7433         "use_align" to give people the option to just make a cell visible.
7434
7435         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
7436         we were scrolling past the end of the tree.
7437
7438         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
7439         rename gtk_tree_view_column_pack_start_cell_renderer to
7440         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
7441
7442 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
7443
7444         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
7445         a stray g_object_ref() left over from gtk_object_ref/sink.
7446         (Pointed out by Josh Pritikin.)
7447
7448 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
7449
7450         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
7451         to gtk_container_get_children. Added deprecated compatibility
7452         macro. (Suggested by Vitaly Tishkov, #59051)
7453
7454         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
7455         calls.
7456
7457 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
7458
7459         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
7460         gtk_menu_bar_append/prepend/insert, forgot to do this
7461         when we deprecated gtk_menu_append/prepend/insert.
7462
7463         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
7464         compat macros.
7465
7466         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
7467         renamed by compat macro.
7468
7469         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
7470         gtk_font_selection_dialog_get_font(). (Suggested by
7471         Vitaly Tishkov, #59383)
7472
7473 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
7474
7475         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
7476         Rename from gtk_text_tag_table_size(). (#59366)
7477
7478 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
7479
7480         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
7481         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
7482         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
7483         (#59173).
7484
7485 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
7486
7487         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
7488         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
7489         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
7490
7491 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
7492
7493         [ Patch from Sebastian Wilhelmi, 52790 ]
7494
7495         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
7496
7497         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
7498         Move compatibility macros from g[dt]kcompat.h to within 
7499         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
7500
7501         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
7502
7503         * demos/Makefile.am demos/gtk-demo/Makefile.am 
7504           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
7505           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
7506
7507         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
7508                  testpixbuf.c}: Fix usages of deprecated functions.
7509
7510 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
7511
7512         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
7513         when changing models.
7514
7515 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
7516
7517         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
7518         We check the current event for modifiers rather than try to trap
7519         all presses.
7520
7521 2001-08-22  Anders Carlsson  <andersca@gnu.org>
7522
7523         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
7524         It's LIST_STORE, not LISTSTORE.
7525
7526 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
7527
7528         * gtk/gtk.h: Remove commented out gtkpacker reference.
7529
7530 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7531
7532         * configure.in (all_loaders): Add tga loader, 
7533         patch by Nicola Girardi. (#56067)
7534
7535 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
7536
7537         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
7538         a little.  More needs to be done tomorrow.
7539
7540 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
7541
7542         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
7543
7544 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
7545
7546         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
7547         reported by Kristian Rietveld <kristian@planet.nl> to handle row
7548         == NULL.
7549         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
7550         <kristian@planet.nl> to change destroy order.
7551
7552 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
7553
7554         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
7555         correct marshaller.
7556
7557 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
7558
7559         * gtk/gtkliststore.c: Fix up warnings, #58928.
7560
7561         * gtk/gtktreeselection.h: Change signal prototype, #58647
7562
7563         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
7564         #59221.
7565
7566         * gtk/gtkstyle.c: Actually prelight arrow, #50981
7567         
7568 2001-08-18  Hans Breuer  <hans@breuer.org>
7569
7570         * gdk/gdk.def : updated externals
7571
7572         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
7573         is required to get (at least) visible in entry fields. Some selections
7574         are really handled now - even on win32 - but copying via middle
7575         mouse button into a different app needs to wait ... 
7576
7577         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
7578         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
7579
7580         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
7581         handling. I'm not sure if it is better now, but at least not worse
7582
7583         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
7584         with SetWindowPos () which allows more fine-tuning backing-store wise
7585
7586         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
7587         Also changed move/resize to be more like the X version.
7588
7589         * gtk/gtk.def : updated externals
7590
7591 2001-08-19  Sven Neumann  <sven@gimp.org>
7592
7593         * gtk/gtktooltips.c
7594         * tests/testtreesort.c
7595         * tests/treestoretest.c: inserted some casts to get rid of compiler
7596         warnings.
7597
7598 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
7599
7600         * gtk/gtktreeviewcolumn.c
7601         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
7602
7603         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
7604         (_gtk_tree_view_find_node): If *node is NULL,
7605         *tree should be NULL too.
7606
7607         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
7608         column/renderers.
7609         * tests/testtreecolumns.c: ditto
7610         * tests/testtreefocus.c: ditto
7611         * tests/testtreesort.c: ditto
7612         * tests/testtreeview.c: ditto
7613         * tests/treestoretest.c: ditto
7614
7615 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
7616
7617         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
7618         signals; is_expander/is_expanded.
7619
7620         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
7621         pixbufs.
7622
7623         * gtk/gtktreeview.c: set above properties.
7624
7625 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
7626
7627         * gtk/gtkwidget.h: Really remove set_default_style().
7628
7629         * docs/Changes-2.0.txt: added a note about
7630         gtk_widget_push/pop/set_default_style.
7631
7632 2001-08-18  Havoc Pennington  <hp@pobox.com>
7633
7634         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
7635         hints_changed in addition to the other cases.
7636         (gtk_window_move_resize): include last position from configure
7637         notify in debug spew
7638
7639 2001-08-18  James Henstridge  <james@daa.com.au>
7640
7641         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
7642         second argument to the weak ref notify, cleaning up some uglyness.
7643         (gtk_accel_group_attach): remove and add the weak notifier when
7644         changing the accel groups slist.
7645         (gtk_accel_group_detach): same here.
7646
7647 2001-08-17  Darin Adler  <darin@bentspoon.com>
7648
7649         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
7650         missing parameters to utf8 functions to make it compile.
7651
7652 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
7653
7654         * gtk/gtktreeprivate.h:
7655         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
7656         (gtk_tree_view_init), (gtk_tree_view_set_property),
7657         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
7658         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
7659         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
7660         (gtk_tree_view_set_destroy_count_func),
7661         (gtk_tree_view_set_enable_search),
7662         (gtk_tree_view_get_enable_search),
7663         (gtk_tree_view_get_search_column),
7664         (gtk_tree_view_set_search_column),
7665         (gtk_tree_view_get_search_equal_func),
7666         (gtk_tree_view_set_search_equal_func),
7667         (gtk_tree_view_search_dialog_destroy),
7668         (gtk_tree_view_search_position_func),
7669         (gtk_tree_view_interactive_search),
7670         (gtk_tree_view_search_delete_event),
7671         (gtk_tree_view_search_button_press_event),
7672         (gtk_tree_view_search_key_press_event),
7673         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
7674         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
7675         * gtk/gtktreeview.h:
7676         Add heavily modified patch from Kristian Rietveld to handle
7677         interactive searching.
7678
7679 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
7680
7681         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
7682         string parameter.
7683
7684         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
7685         GtkMenuShell::selection_done, now that we have it, instead of 
7686         ::deactivate so we're not tearing the menu apart and notify
7687         the user prematurely.
7688
7689 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
7690
7691         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
7692         window, clear window->need_default_position to avoid infinite loops.
7693         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
7694
7695 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
7696
7697         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
7698         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
7699         (gtk_tree_view_set_property): don't cast possible NULL objects.
7700         (gtk_tree_view_destroy): reset the model to NULL.
7701
7702         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
7703         parent_class handler.
7704
7705 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7706
7707         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
7708
7709 2001-08-17  Anders Carlsson  <andersca@gnu.org>
7710
7711         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
7712         point numbers so that the result will be floating point.
7713
7714 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7715
7716         * tests/testgtk.c (create_handle_box): 
7717         (create_toolbar): Replace gtk_window_set_policy calls by
7718         gtk_window_set_resizable.
7719
7720 2001-08-16  Jakub Steiner <jimmac@ximian.com>
7721
7722         * gtk/stock-icons/dialog_info.png: new style bulb
7723         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
7724         * gtk/stock-icons/dialog_warning.png: need a hand?
7725         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
7726           the aa border gets chopped off ok
7727         * gtk/stock-icons/stock_colorselector.png: using the new hand
7728         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
7729           this one is for, but the old icon was butt ugly.
7730         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
7731         * gtk/stock-icons/stock*_insert_object.png: "
7732         * gtk/stock-icons/stock_index.png: using new hand icon
7733         * gtk/stock-icons/stock*_new.png: the document template being used 
7734           elsewhere too
7735         * gtk/stock-icons/stock*_print*.png: new print and print preview 
7736           icons (panel/menu)  
7737         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
7738           icons based on Tuomas' floppy image.
7739         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
7740         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
7741         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
7742         * gtk/stock-icons/stock*_undelete.png: "
7743         * gtk/stock-icons/stock_preferences.png: I have a version with a 
7744           document base if the sliders are no good.
7745         * gtk/stock-icons/stock_properties.png: properties 
7746         
7747
7748         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
7749           (tigert@ximian.com) clipboard icons
7750         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
7751         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
7752         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
7753           little bigger IMHO
7754
7755 2001-08-16  Sven Neumann  <sven@gimp.org>
7756
7757         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
7758
7759 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
7760
7761         * gtk/gtkcellrenderertext.c:
7762         Avoid warning when specifying NULL for "attributes" property
7763
7764 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7765
7766         * docs/debugging.txt: Add a warning about --enable-debug=no,
7767         some editorial changes.
7768
7769 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7770
7771         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
7772         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
7773         debugging info, remove unused debug flags. (#58330)
7774
7775 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
7776
7777         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
7778         (gtk_tree_selection_select_all): Remove strict checking for rows.
7779
7780 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7781         
7782         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
7783         Don't remove the tooltip window when the tip text changes. (#15891)
7784
7785 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
7786
7787         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
7788         $(srcdir).
7789
7790 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
7791
7792         * Makefile.am (EXTRA_DIST): Fix problem with trying to
7793         dist files from intl/, which is no longer there.
7794
7795 2001-08-11  Hans Breuer  <hans@breuer.org>
7796
7797         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
7798           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
7799           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
7800           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
7801           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
7802           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
7803
7804         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
7805           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
7806         GDK_TYPE_EVENT signals
7807
7808         * gtk/gtkalignment.c : removed 'direct allocation bug',
7809         which Tim discovered while reading the patch
7810
7811 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
7812
7813         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
7814         compat macros for push/pop/set_visual that were supposed
7815         to be added a long time ago, but got dropped. 
7816
7817 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
7818
7819         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
7820         property notifies.
7821
7822 2001-08-07  Havoc Pennington  <hp@pobox.com>
7823
7824         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
7825
7826         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
7827         some fixage is needed here, but nothing simple. Owen understands
7828         it. ;-)
7829
7830         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
7831         sizing and positioning.  Also, fix bug in compute_geometry_hints
7832         (width/height confusion for setting min size). 
7833         (gtk_window_move): new function
7834         (gtk_window_resize): new function
7835         (gtk_window_get_size): new function
7836         (gtk_window_get_position): new function
7837         (gtk_window_parse_geometry): new function
7838         
7839         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
7840         (gtk_widget_get_size_request): new function
7841         (gtk_widget_get_usize): delete, that was a short-lived function
7842         ;-)
7843         (gtk_widget_set_usize): deprecate
7844         (gtk_widget_set_uposition): deprecate, make it a trivial 
7845         gtk_window_move() wrapper
7846         (gtk_widget_class_init): remove x/y/width/height properties,
7847         add width_request height_request
7848         
7849         * demos/*: update to avoid deprecated functions
7850         
7851         * gtk/gtklayout.c: add x/y child properties
7852
7853         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
7854         uses of "gint16"
7855
7856         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
7857         sizing test
7858
7859         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
7860         configure events on toplevel windows are always in root window
7861         coordinates, following ICCCM spec that all synthetic events 
7862         are in root window coords already, while real events are 
7863         in parent window coords. Previously the code assumed that 
7864         coords of 0,0 were parent window coords, which was 
7865         really broken.
7866   
7867         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
7868         warning
7869  
7870         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
7871         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
7872         hints in gtk_window_parse_geometry()
7873  
7874         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
7875         new USER_POS USER_SIZE hints    
7876
7877 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7878
7879         * tests/prop-editor.c (properties_from_type): Use 
7880         g_object_class_list_properties to get the param specs 
7881         for a given type. (#58609)
7882
7883 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7884
7885         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
7886         free the text_aa parts. (#57549)
7887
7888 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7889
7890         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
7891         not the foreground color. (#57621)
7892
7893 2001-08-09  Alexander Larsson <alexl@redhat.com>
7894
7895         * gdk/win32/gdkfont-win32.c:
7896         Update to the new pango win32 api.
7897
7898 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
7899
7900         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
7901         COMPOUND_TEXT instead of TEXT
7902         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
7903         interpret the return value of g_string_to_compound_text()
7904         (#55152)
7905
7906 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7907
7908         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
7909         fail if iter is NULL. (#58347)
7910
7911 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7912
7913         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
7914         some off-by-one issues, fixing selection of line-ends. (#50323)
7915
7916 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7917
7918         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
7919         functions in order to make mouse operation work again in the
7920         color wheel. (#58604)
7921
7922 2001-08-07  James Henstridge  <james@daa.com.au>
7923
7924         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
7925         the accelerator when the accel object is changed.  Fixes bug
7926         #58628.
7927
7928 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
7929
7930         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
7931         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
7932         (gnome bugzilla #58202)
7933
7934 2001-08-06  Havoc Pennington  <hp@pobox.com>
7935  
7936         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
7937         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
7938         it was expecting a GdkWindow, not a GdkWindowImplX11.
7939  
7940         Also, we were getting the window rect in screen coords 
7941         and the screen rect in window coords then intersecting 
7942         them; instead, get window rect in window coords.
7943  
7944         Finally, there were codepaths that resulted in a stuck server grab
7945         (when the window was fully onscreen, or on gdk_image_new()
7946         failure); make the server ungrab thing a bit more
7947         robust/consistent.
7948
7949 2001-08-06  Sven Neumann  <sven@gimp.org>
7950
7951         * gdk/gdkpango.c (gdk_pango_context_destroy): 
7952         check if info->colormap != NULL before unref'ing it. It might have
7953         been set to NULL using gdk_pango_context_set_colormap().
7954
7955 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
7956
7957         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
7958         Fix conversion from float to int so that we don't get
7959         skew in the int => float => int roundtrip. 
7960         (#58120, reported by Vitaly Tishkov). Also fix problem
7961         where if no alpha was set, the returned alpha
7962         from (say) set_current_alpha() was returned as 1, not 65535.
7963
7964 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
7965
7966         * gtk/gtklist.c (gtk_list_clear_items): Fix
7967         problem with selecting a new focus child.
7968
7969         * gtk/gtklist.c (gtk_list_clear_items): Clear 
7970         list->undo/list_focus_child after unparenting
7971         child, since unparenting the child can result
7972         in list->last_focus_child being set. (#58024)
7973
7974         * Makefile.am (SUBDIRS): Add target specific pc
7975         files to DISTCLEANFILES.
7976
7977         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
7978         (58327, Matthias Clasen)
7979
7980 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
7981
7982         * tests/testgtk.c: Patch from Hans (with various modifications),
7983         to add the ability to use testgtk as a rough-and-ready
7984         benchmark. Try, 'testgtk --bench all:5' (if you want decent
7985         numbers, run without a window manager)
7986
7987 2001-08-04 Alexander Larsson <alexl@redhat.com>
7988
7989         * gdk/win32/gdkinput.c:
7990         Add #ifdef HAVE_WINTAB around wintab.h include.
7991
7992         * gtk/gtk.def:
7993         Removed marshals that have been moved to glib.
7994         Commented out plug and socket. They didn't compile for me 
7995         on win32.
7996
7997 2001-08-04  Hans Breuer  <hans@breuer.org>
7998
7999         * gtk/stocks-icons/makefile.msc : new file
8000         * gtk/makefile.msc.in : use it
8001
8002         * gtk/gtkstyle.c : not all platforms do provide M_PI and
8003         friends, but luckily there is G_PI
8004
8005         * gtk/gtk.def : updated
8006
8007         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
8008         windows WS_POPUP, but only those without a parent. This fixes the 
8009         mis-alignment between the selectable (temp, input only) window and 
8010         the window text of GtkLabel.
8011
8012         (gdk_window_show) : respect private->state when actually showing
8013         the window.
8014
8015         (gdk_window_set_transient_for) : Implementation from Wolfgang 
8016         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
8017         error handling. Should fix #50586.
8018
8019         * gdk/win32/gdkevents-win32.c : beautify log output
8020
8021 2001-08-04  Michael Natterer  <mitch@gimp.org>
8022
8023         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
8024         Need to show the image after adding it to the GtkImageMenuItem.
8025         This used to work without in testgtk because of the
8026         gtk_widget_show_all() at the end of the function.
8027         (Closes #54978).
8028
8029 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
8030
8031         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
8032         (gtk_notebook_set_child_property): fix finding of child's page,
8033         since we have to validly deal with labels and menus here as well.
8034         (gtk_notebook_get_child_property): fix warning.
8035         (gtk_notebook_class_init): property tab_pack is of type
8036         GTK_TYPE_PACK_TYPE (enum) not boolean.
8037         (gtk_notebook_find_child): don't always warn, we might be looking
8038         for a label or menu child.
8039         (gtk_notebook_map): fix mapping of panel.
8040
8041         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
8042         widget's mapped state, regardless of the value being set equals
8043         old settings, since things like REALIZED(parent) or MAPPED(parent)
8044         may have changed since the old value was set. make it an error to
8045         invoke this function on a toplevel widget.
8046
8047 2001-07-31  Darin Adler  <darin@bentspoon.com>
8048
8049         * gdk/gdkprivate.h:
8050         * gdk/x11/gdkx.h:
8051         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
8052
8053         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
8054         GTK_OBJECT.
8055
8056 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
8057
8058         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
8059         scoping error pointed out by matthiasc@poet.de.
8060
8061 2001-07-31  Sven Neumann  <sven@gimp.org>
8062
8063         * demos/gtk-demo/appwindow.c
8064         * demos/gtk-demo/item_factory.c
8065         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
8066
8067 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
8068
8069         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
8070         argument order for g_signal_has_handler_pending.
8071
8072 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
8073
8074         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
8075         instead of long deprecated g_scanner_stat_mode().
8076
8077 2001-07-29  Hans Breuer  <hans@breuer.org>
8078
8079         * gdk/makefile.msc : build in the backend dir after
8080         auto-generating files
8081
8082         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
8083         with code from win32-production-branch.
8084
8085         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
8086         before calling DestroyWindow, which indirectly calls 
8087         gdk_window_destroy_notify ()
8088
8089         (performance patch merged from win32-production-branch)
8090         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
8091         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
8092         R2_COPYPEN rop). It is claimed to be much faster.
8093
8094 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
8095
8096         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
8097         add an "attributes" property to the text renderer for ATK.
8098
8099 2001-07-26  Alex Larsson  <alexl@redhat.com>
8100
8101         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8102         Initialize image->bits_per_pixel from the drawable, not from
8103         the root window.
8104
8105         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
8106         Fix cast. argument is an IMPL already.
8107
8108 2001-07-15  James Henstridge  <james@daa.com.au>
8109
8110         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
8111         (gtk_window_remove_accel_group): same here.
8112         (gtk_window_key_press_event): same here.
8113
8114         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
8115         (gtk_widget_remove_accelerator): same here.
8116         (gtk_widget_remove_accelerators): same here.
8117
8118         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
8119
8120         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
8121         instead of GtkObject.
8122
8123         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
8124         now takes GObjects.
8125
8126         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
8127         pass a GObject to gtk_accel_group_entries_from_object.
8128         (gtk_item_factory_create_item): s/accel_widget/accel_object/
8129
8130         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
8131
8132         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
8133
8134         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
8135         GObjects can have accelerators set now.  Add compatibility
8136         defines.
8137
8138         * gtk/gtkmarshal.list: add missing marshallers.
8139
8140         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
8141         accelerators on plain GObjects.  gtk_accel_group_object_destroy
8142         has been converted into a weak reference, and
8143         gtk_accel_group_delete_entries is now a destroy notify for that
8144         piece of data.
8145
8146 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
8147
8148         * gdk/gdkdraw.c: Added a check on the colormap depth to
8149         gdk_drawable_set_colormap()
8150         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
8151         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
8152         for pixmaps without visuals (more specifically, bitmaps)
8153         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
8154         doesn't set a colormap with the wrong depth
8155
8156
8157 2001-07-22  Anders Carlsson  <andersca@gnome.org>
8158
8159         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
8160         expander_height and expander_width properties with a single
8161         property, expander_size.
8162         (gtk_tree_view_init): Set the tab_offset to expander_size
8163         plus some padding.
8164         (gtk_tree_view_unrealize): Remove the expand/collapse
8165         timeout if it exists.
8166         (coords_are_over_arrow): Fix a small bug.
8167         (gtk_tree_view_motion_draw_column_motion_arrow): Use
8168         expander_size.
8169         (gtk_tree_view_draw_focus): Use "treeview" instead of
8170         "add-mode" as detail when drawing the focus.
8171         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
8172         instead of "add-mode" as detail when drawing the focus.
8173         (gtk_tree_view_deleted): If we have a node currently being
8174         expanded or collapsed, remove the timeout and set the node 
8175         to NULL.
8176         (gtk_tree_view_queue_draw_arrow): New function that just
8177         redraws the arrow of a node.
8178         (gtk_tree_view_draw_arrow): Use expander_size instead of
8179         expander_width/expander_height, also pass a different
8180         expander_style to gtk_paint_expander depending on the 
8181         state of the node being drawn.
8182         (expand_collapse_timeout): New function for expanding 
8183         or collapsing a node depending on the previous state.
8184         (gtk_tree_view_real_expand_row): Add timeout and set 
8185         correct state for node being expanded.
8186         (gtk_tree_view_real_collapse_row): Add timeout and set
8187         correct state for node being collapsed.
8188
8189         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
8190         information about the node currently being expanded or
8191         collapsed, and also a timeout id.
8192
8193         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
8194         with expander_style for draw_expander.
8195
8196         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
8197         expander_style.
8198         (create_expander_affine): New function for creating an 
8199         expander affine.
8200         (apply_affine_on_point): New function for applying an 
8201         affine to a point.
8202         (gtk_default_draw_expander): Modified to take expander_style
8203         instead of is_open, and to draw the rectangle rotated differently
8204         depending on the expander style.
8205         (gtk_paint_expander): Replace is_open with expander_style.
8206
8207         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
8208
8209         * gtk/gtkenums.h: Add expander style enum.
8210
8211 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
8212
8213         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
8214         value from gtk_tree_model_get_iter, the model might be empty.
8215
8216 2001-07-20  Hans Breuer  <hans@breuer.org>
8217
8218         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
8219         gdk/gdkinput.c like the other backends
8220
8221         * gdk/win32/gdkinput-win32.h :
8222         * gdk/win32/gdkinput.c :
8223         * gdk/win32/gdkvisual-win32.c :
8224         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
8225         GdkVisual GObjectification. UNTESTED for pen-devices because
8226         I simply have none.
8227
8228         * gdk/gdk.def :
8229         * gtk/gtk.def : updated externals
8230
8231         * gtk/gtkiconfactory.c :
8232         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
8233         before passing &error to functions to avoid strange crashes
8234         
8235         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
8236
8237         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
8238
8239         * gtk/makefile.msc.in : updated
8240
8241 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
8242
8243         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
8244         Add property support. (#51858)
8245
8246 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
8247
8248         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
8249         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
8250         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
8251
8252 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
8253
8254         * gtk/gtkcolorsel.c: Add propery support (roughly
8255         based on patch from Lee Mallabone, #51014)
8256
8257         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
8258         deprecated, since we already g_warning() on it.
8259
8260 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
8261
8262         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
8263         typo that sometimes caused selection not to work properly.
8264
8265         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
8266         entry when tabbing in. (#57743)
8267         
8268         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
8269         user drags up above or down below the entry, move
8270         to the end or the beginning of the entry. (Suggestion
8271         from Jay Cox, #50940)
8272
8273         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
8274         a current selection, then when moving by chars or
8275         words, move to the end of the selection rather than
8276         from entry->current_pos. (Suggestion from Jay Cox,
8277         #50942)
8278         
8279 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
8280
8281         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
8282         set window->decorated. (Patch from Hidetoshi Tajima,
8283         #55846)
8284
8285 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
8286
8287         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
8288         the widget/child realization/mapping invariants.
8289
8290         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
8291         gtk_widget_[get/set]_child_visible() to control
8292         whether visible children of a mapped window are
8293         mapped.
8294
8295         * docs/widget_system.txt: Updated for changes in
8296         container contract, and addition of GTK_CHILD_VISIBLE.
8297
8298         * gtk/gtkcontainer.c: Add generic map()/unmap()
8299         functions that work for almost all containers.
8300
8301         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
8302         gtk_widget_set_child_visible() where necessary.
8303
8304         * gtk/*.c: Remove excess map(), unmap(), and 
8305         realization/mapping invariant enforcing code
8306         from many containers.
8307
8308 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
8309
8310         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
8311         Get the foreground color from 'text', nor 'fg'. (#57568)
8312
8313 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
8314
8315         * gtk/*.c: Patch from Matthias Clasen to remove remove
8316         all instances of g_return_if_fail (foo != NULL); that are
8317         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
8318         since the second check catches the NULL anyways.
8319
8320 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
8321
8322         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
8323         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
8324         GDK_THREADS_ENTER()/LEAVE() pairs.
8325
8326         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
8327         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
8328         pairs. (Problem found by M. Meeks)
8329
8330 2001-07-18  Darin Adler  <darin@bentspoon.com>
8331
8332         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
8333         that we don't get a g_warning message every time we register a new
8334         icon size.
8335
8336         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
8337         using pixel variable of the correct type.
8338         
8339 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
8340
8341         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
8342         so that using X functions on a GdkWindow is possible, if
8343         a little hairy.
8344
8345         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
8346         and ts_origin of a GC, so that external parties can offset/restore
8347         a GC, when using gdk_window_get_internal_paint_info().
8348
8349 2001-07-17  Darin Adler  <darin@bentspoon.com>
8350
8351         * .cvsignore: Ignore the sgml directory made by gtkdoc.
8352         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
8353         instead of the deprecated gtk_window_set_policy.
8354         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
8355         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
8356         function to get rid of warning and some code too.
8357         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
8358         missing const.
8359         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
8360         unused local.
8361         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
8362         const.
8363         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
8364         (gdk_utf8_to_compound_text): Add missing const.
8365         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
8366         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
8367         cast and get rid of an unnecessary one.
8368         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
8369         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
8370         local.
8371         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
8372         Remove unused local.
8373         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
8374         missing const.
8375         * tests/testsocket.c: (add_child): Add cast so the printf format
8376         doesn't make us implicitly depend on what integer type
8377         gtk_socket_get_id returns.
8378         * tests/testtextbuffer.c: Add missing const.
8379         * tests/testtreefocus.c: (main): Remove unused local.
8380         * tests/treestoretest.c: (iter_remove): Remove unused local.
8381         (uppercase_value): Remove unused function.
8382         (make_window): Add statement to quiet the compiler's uninitialized
8383         variable warning.
8384
8385 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
8386
8387         * gtk/gtkrange.c:
8388         (second_timeout): 
8389         (initial_timeout): 
8390         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
8391         (gtk_range_calc_layout): compute the new layout based on an
8392         adjustment->value being passed in as argument.
8393         (gtk_range_button_press): for button2 slider warps, first recalc
8394         the layout, then adjust the value. also, use update_slider_position()
8395         for adjusting the value, so we keep pixel quantisation at which we
8396         usually operate (upon motion or button releases). the reason for this
8397         is that, we can't change the adjustment upon button2 presses to a non
8398         quantised value and upon button2 release re-quantise the value since
8399         that'd alter the value even if we didn't get any motion events (causing
8400         unexpected scroll area warps upon release and/or slider pixel-jitter).
8401         (gtk_range_motion_notify): update the slider position from queried
8402         coordinates, not event coordinates.
8403
8404 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
8405
8406         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
8407         the default gc values are: width=0, CapBut, JoinMiter.
8408
8409 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
8410
8411         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
8412         into account the xpad and ypad when calculating the width and the
8413         height of the pixbuf cel.
8414
8415 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
8416
8417         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
8418         Rename to gtk_radio_menu_item_get_group(), add deprecated
8419         alias. (#57044)
8420
8421         * gtk/gtkfilesel.c: Indentation fix.
8422
8423 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
8424
8425         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
8426         Hasselmann to fix warnings in compat macros. 
8427         (#56773)
8428
8429         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
8430         stupid wrong cast added in last patch.
8431
8432 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
8433
8434         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
8435         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
8436
8437 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
8438
8439         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
8440         missing cast.
8441
8442         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
8443         NULL/FALSE return value confusion.
8444
8445         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
8446         problem when scrollbar completely fills range. (Patch
8447         from  Matthias Clasen, #57047)
8448
8449 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
8450
8451         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
8452         clean up when handling events for move-resize emulation.
8453         (Problem traced down by Matthias Clasen, #57271)
8454
8455 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
8456
8457         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
8458           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
8459           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
8460           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
8461           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
8462           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
8463           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
8464         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
8465
8466 2001-07-09  Peter Williams  <peterw@ximian.com>
8467
8468         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
8469         for when srcdir != builddir
8470
8471 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
8472
8473         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
8474         gtk_tree_model_get_iter_root.
8475
8476         * gtk/gtkliststore.c: Add a bunch of g_return statements.
8477         (gtk_list_store_iter_n_children): Fix up.
8478
8479         * gtk/gtktreestore.c: Add a bunch of g_return statements.
8480
8481 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
8482
8483         * gtk/gtkwidget.c (gtk_widget_class_init):
8484         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
8485         restore some workingness.
8486
8487         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
8488         handle of window type for input-only windows.
8489
8490 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
8491
8492         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
8493         Patch from Gregory Merchan to add 
8494         gtk_button_box_set_secondary(), which separates
8495         the child into a separate group from the normal
8496         buttons. (#56331)
8497
8498         * gtk/gtkdialog.c: Make help buttons secondary by
8499         default.
8500
8501         * gtk/gtkbbox.c: Added a child property "secondary".
8502
8503         * gtk/testgtk.c: Turn on the help button for the 
8504         color selector to check that it properly appears
8505         as secondary.
8506
8507 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
8508  
8509         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
8510         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
8511         Add gdk_set_pointer_hooks() to allow pointer-querying to
8512         be hooked by an event record/playback system like GERD.
8513         (#56914)
8514         
8515 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
8516
8517         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
8518         in the right value of initial_emission to
8519         gtk_widget_set_style_internal (#57091)
8520
8521 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
8522
8523         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
8524         Make compile.
8525
8526         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
8527         with calling gtk_widget_set_style_internal() with
8528         the old style, not the new style. (#56989)
8529
8530 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
8531
8532         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
8533           gtk/gtkwidget.c:
8534         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
8535         not GTK_WIDGET_GET_ANCESTOR ... see 
8536         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
8537         Indicate the best practice in the docs for gtk_widget_get_toplevel().
8538
8539         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
8540         so GtkPlug can give the correct signals when transforming
8541         from a child to a toplevel.
8542         
8543         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
8544         reparentation correctly.
8545
8546         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
8547         Propagate the previous_toplevel argument down properly.
8548
8549         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
8550         of wrong atr list.
8551
8552         * gtk/gtkplug.[ch]: Add an "embedded" signal.
8553
8554         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
8555         signals.
8556
8557         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
8558         functions gtk_plug_get_id(), gtk_socket_get_id(),
8559         to avoid the user having to worry about realization,
8560         and gdkx.h.
8561
8562         * tests/testsocket.c: Extend to try out the new signals
8563         and gtk_plug/socket_get_id().
8564
8565         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
8566         setting of underline attributes.
8567
8568         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
8569         DestroyNotify events from SubstructureNotifyMask
8570
8571         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
8572         Switch GDK_WINDOW_TYPE (window) as needed.
8573
8574         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
8575         allow creation of toplevel windows as children of
8576         foreign windows.
8577
8578         * gtk/gtkplug.c: Remove hacks involving changing private
8579         fields of GdkWindow.
8580
8581         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
8582         exactly the same signals and notification
8583         be emitted for local embedding as for inter-process
8584         embedding.
8585
8586 2001-07-04  James Henstridge  <james@daa.com.au>
8587
8588         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
8589
8590 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
8591
8592         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
8593         XEMBED embedding add a _XEMBED_INFO property to the
8594         client with version number and a "mapped" flags.
8595         Use the mapped flag instead of the racy MapRequestEvent
8596
8597         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
8598         code to reliably set things (when the child is a passive
8599         embedder participating in the XEMBED protocol) intead
8600         of just being a hack for embedding non-participating
8601         programs. Fix various bugs and race conditions.
8602         
8603         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
8604         work by simply making the GtkSocket the gtk parent
8605         of the GtkPlug. Set a flag in this case and make
8606         the GtkPlug work like a normal container by overriding
8607         methods such as check_resize and "chaining past" GtkWindow
8608         to GtkBin.
8609
8610         * gtk/gtkentry.c (gtk_entry_real_activate)
8611           gtk/gtkmain.c (gtk_propagate_event): 
8612         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
8613         
8614         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
8615         gtk_widget_get_ancestor):
8616         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
8617         might not give the expected result and recommend
8618         an alternative.
8619
8620         * tests/testsocket.c tests/testsocket_child.c
8621         tests/testsocket_common.c tests/Makefile.am: Extended
8622         to test different type of adding plugs to sockets
8623         (local,active,passive), and to test mapping/unmapping
8624         the plug.
8625
8626         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
8627         mark the window as destroyed until after we
8628         called _gdk_windowing_window_destroy().
8629         (_gdk_windowing_window_destroy() may use GDK functions
8630         on the window.)
8631
8632         * gdk/x11/gdkinput.c: Remove the check for finalization - 
8633         devices can be finalized under some circumnstances.
8634  
8635         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
8636         small problem with GDK_TYPE_DEVICE.
8637  
8638 2001-07-02  Havoc Pennington  <hp@pobox.com>
8639
8640         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
8641         use constants not atoms.
8642
8643 2001-07-02  James Henstridge  <james@daa.com.au>
8644
8645         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
8646         PANGO_TYPE_TAB_ARRAY.
8647
8648         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
8649         for PANGO_TYPE_TAB_ARRAY.
8650
8651         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
8652         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
8653
8654         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
8655         the file.  Remove Pango types from defs -- they are now defined in
8656         libpango.
8657
8658 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
8659
8660         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
8661
8662         * gtk/gtkobject.c (gtk_object_destroy): invoke
8663         g_object_run_dispose().
8664
8665         * gtk/gtkwindow.c: 
8666         * gtk/gtkwidget.c: 
8667         * gtk/gtkobject.c:
8668         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
8669         method.
8670
8671 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
8672
8673         * gtk/gtktypeutils.c (gtk_type_class): Remove
8674         change check for GTK_TYPE_OBJECT derivation to
8675         G_TYPE_OBJECTS - it's Tim-approved to use this 
8676         for arbitary objects.
8677
8678         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
8679         prefix gtk_container_dequeue_resize_handler().
8680
8681         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
8682         to the hierarachy_changed signal, since you otherwise
8683         have to always keep that around.
8684
8685         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
8686         for extra argument to hierarchy_changed.
8687
8688 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
8689
8690         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
8691         for style to mean "revert to default style"
8692
8693         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
8694           gtk_widget_restore_default_style): Make this functions
8695         deprecated aliases for gtk_widget_set_style (widget, NULL).
8696
8697         * gtk/gtkwidget.[ch]: Remove:
8698            gtk_widget_set_default_style ()
8699            gtk_widget_push_style ()
8700            gtk_widget_pop_style ()
8701         These functions interact are overriden by RC files, and
8702         thus virtually useless, and complicated.
8703
8704 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
8705
8706         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
8707         most of the previous global variables in gtkrc.c. This is
8708         in preparation for multi-head, since each screen can
8709         have different GtkSettings and RC information.
8710
8711         * gtk/gtkrc.[ch]: 
8712
8713         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
8714         GtkSettings parameter to GtkRcStyle::parse.
8715
8716         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
8717         Add two new settings gtk-theme-name, gtk-key-theme-name,
8718         for RC files that are loaded by name after reading
8719         the default RC files.
8720         
8721         * gtk/gtkrc.c: Allow priorities for styles, as wll as
8722         bindings.
8723
8724         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
8725         and use it by default for RC files loaded via 
8726         gtk-theme-name, gtk-key-theme-name.
8727
8728         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
8729         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
8730         tests/testgtkrc: Require pathnames to be absolute.
8731
8732         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
8733         the source when parsing, since the operation of looking up a
8734         pixmap from an RC file depends on the parsing context.
8735
8736         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
8737         reset RC styles on all widgets when files are reparsed.
8738
8739         * tests/testgtk.c (create_rc_file) 
8740           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
8741         Simplify, now that gtk_rc_reparse_all() resets styles on
8742         all widgets itself.
8743
8744         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
8745         return value.
8746
8747         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
8748         GtkSettings argument.
8749
8750         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
8751         gtk_settings_get_global().
8752
8753         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
8754         to get the appropriate GtkSettings for a widget. (For now,
8755         just gets the default GtkSetttings.) 
8756
8757         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
8758           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
8759         changes.
8760
8761         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
8762         getting a style for a path without actually having a widget.
8763         (Allows using a style for a subpart of a widget, for
8764         example.)
8765
8766         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
8767         the RC files to be reloaded for just one GtkSettings
8768         (not sure how useful this really is.)
8769
8770         * gtk/gtkrc.h: Deprecate
8771         gtk_rc_add_widget_name/widget_class/class_style
8772
8773 2001-06-30  Alex Larsson  <alexl@redhat.com>
8774
8775         * gdk/linux-fb/gdkinput-none.c:
8776         * gdk/linux-fb/gdkinput.c:
8777         * gdk/linux-fb/gdkinputprivate.h:
8778         Convert GdkDevice to a GObject.
8779
8780         * linux-fb/gdkprivate-fb.h:
8781         * linux-fb/gdkvisual-fb.c:
8782         Convert GdkVisual to a GObject.
8783
8784 2001-06-29  Alex Larsson  <alexl@redhat.com>
8785
8786         * gdk/gdkvisual.h:
8787         * gdk/gdkcolor.c:
8788         * gdk/x11/gdkx.h:
8789         * gdk/x11/gdkvisual-x11.c:
8790         Convert GdkVisual to a GObject.
8791
8792         * gdk/gdkinput.h:
8793         * gdk/gdkevents.c:
8794         * gdk/x11/gdkinputprivate.h:
8795         * gdk/x11/gdkinput-gxi.c:
8796         * gdk/x11/gdkinput-none.c:
8797         * gdk/x11/gdkinput-x11.c:
8798         * gdk/x11/gdkinput-xfree.c:
8799         * gdk/x11/gdkinput.c:
8800         Convert GdkDevice to a GObject.
8801
8802 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
8803
8804         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
8805         to just plain new, fixing the number of columns, and column types
8806         at creation time.
8807
8808         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
8809
8810         * gtk/gtkcellrenderertext.c
8811         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
8812         height to a specific font.
8813
8814         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
8815
8816         * tests/*c: change to work with new store models.
8817
8818 2001-06-29  Havoc Pennington  <hp@redhat.com>
8819
8820        * Throughout: fixes to compile with G_DISABLE_COMPAT
8821         (s/g_signal_connectc/g_signal_connect/,
8822         s/g_signal_newc/g_signal_new/,
8823         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
8824
8825 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
8826
8827         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8828         add path argument to selection callbacks.
8829
8830 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
8831
8832         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
8833         walk through a model in a depth first manner, with the option to
8834         break out.
8835
8836 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
8837
8838         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
8839         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
8840         column and follow it when draged, rather than a location in the
8841         view. "expander_column" property and drawing functions changed
8842         accordingly.  Fixes bug #55942.
8843
8844         (gtk_tree_view_{set,get}_expander_column): Now works with a
8845         GtkTreeViewColumn* instead of int.
8846
8847 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
8848
8849         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
8850
8851 2001-06-28  Havoc Pennington  <hp@pobox.com>
8852
8853         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
8854         image data to the screen, using a server grab to avoid race
8855         conditions.
8856
8857         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
8858         check for NULL return from gtk_image_new_from_stock(), it never
8859         returns NULL.
8860         (gtk_item_factory_create_item): fix bug where we parsed the stock
8861         ID as an inline pixbuf
8862
8863         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
8864
8865         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
8866         support (should be using binding set here)
8867
8868         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
8869         support (should be using binding set here)
8870
8871         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
8872         support
8873
8874         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
8875
8876         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
8877
8878         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
8879
8880         * gtk/gtkimcontextsimple.c
8881         (gtk_im_context_simple_filter_keypress): keypad
8882
8883         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
8884
8885         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
8886
8887         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
8888
8889         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
8890         should be binding-setted)
8891
8892         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
8893
8894         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
8895
8896         * gtk/gtkcalendar.c: numeric keypad fixes
8897
8898         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
8899         support
8900
8901         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
8902         screwup
8903
8904         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
8905         clip the render area to the drawable's clip region in advance,
8906         so we don't get data from the server that we don't need.
8907
8908         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
8909         check return value of gdk_pixbuf_get_from_drawable(), fall back 
8910         to bilevel alpha if we can't get the pixbuf to composite against.
8911
8912         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
8913
8914         * gdk/gdkimage.c (gdk_image_get_colormap): add
8915         gdk_image_set_colormap, gdk_image_get_colormap
8916
8917         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
8918         take a region of the image, instead of converting the entire
8919         image.
8920
8921         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
8922         keybinding signal. Add default bindings for it. Add default
8923         handler for show_help that shows the tooltip for the widget.
8924
8925         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
8926         "close" keybinding signal, remove key press handler.
8927
8928         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
8929         it's not our usual practice to leave a deprecated function around
8930         with a runtime warning, plus we don't want it to appear in docs,
8931         plus if we make them yellow no one will want to change them
8932         anyhow.
8933
8934 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
8935
8936         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
8937         GTK_WIDGET_REALIZE() for resize queueing.
8938
8939         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
8940         GTK_WIDGET_REALIZE() for post event delivery destruction upon
8941         GDK_DESTROY.
8942         
8943         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
8944         sompensate for former (pre-2.0) connect_after() facility.
8945         (gtk_widget_send_expose): 
8946         (gtk_widget_event): assert the widget is realized, since event delivery
8947         to non-realized widgets is essentially a bug. event handlers should
8948         be able to unconditionally rely on widget->window (unless they
8949         emit events on their own which can trigger widget destruction).
8950         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
8951         logic. event delivery happens as follows:
8952         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
8953         b) if !was_handled in (a) and the widget is still realized, emit event-
8954            specific signal (RUN_LAST handler). returns was_handled.
8955         c) emission of GtkWidget::event-after for notification if the widget is
8956            still realized (regardless of was_handled from previous stages, no
8957            class handler). no return value.
8958         d) was_handled gets passed on to caller, to determine further
8959            propagation. if the widget got unrealized meanwhile, was_handled
8960            is returned as TRUE.
8961
8962         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
8963         gdk_event_get_coords().
8964
8965 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
8966
8967         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
8968         age 0, binary age 0. depend on glib 1.3.7.
8969
8970         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
8971
8972         * gtk/gtkmenubar.c: same here.
8973         
8974         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
8975
8976         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
8977
8978         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
8979         
8980         * gtk/gtkmenubar.c (add_to_window): likewise.
8981         
8982         * gtk/gtktextbtree.c: and here...
8983         
8984         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
8985         
8986         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
8987         
8988         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
8989         
8990         * gtk/gtktreeviewcolumn.c:
8991         (_gtk_tree_view_column_set_tree_view): yet again.
8992
8993         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
8994         signal connections without g_signal_connect_data().
8995         
8996         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
8997         demo of the matter.
8998         
8999         * demos/testpixbuf.c (main): running out of equality phrases for the
9000         ChangeLog, but had to adapt connections here as well.
9001         
9002         * demos/testanimation.c (progressive_timeout): and for the fun of it,
9003         tackled this the same way.
9004         
9005         * tests/testtext.c (create_view): ok, it's becoming a pain at this
9006         point, but had enough enery for one more fix.
9007
9008         * tests/testtreecolumns.c (main): stand up man, do your work!
9009
9010         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
9011         fix, either that's been all of it or CVS gtk is broken yet again.
9012         
9013 2001-06-29  James Henstridge  <james@daa.com.au>
9014
9015         The following changes correspond to bug #56812
9016
9017         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
9018         code for GdkDevice.
9019
9020         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
9021         GdkCursor.
9022
9023 2001-06-19  Havoc Pennington  <hp@pobox.com>
9024
9025         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
9026         for mapping a window without fooling with stacking order, but
9027         updating the "withdrawn" flag
9028
9029         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
9030         filtering as soon as possible, moving move resize and wmspec_check
9031         handling after the event filter.  Make default filter apply to all
9032         events, not just those with no GdkWindow wrapped around the X
9033         window. Fix a FIXME about how the window could be a pixmap using 
9034         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
9035
9036         Also, be robust against events not on a known GdkWindow.
9037
9038         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
9039         gdk_x11_ungrab_server): export reference-counted server grabs, so
9040         other people can grab server over a GDK function that also does
9041         so.
9042
9043 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
9044
9045         * gtk/gtktreeviewcolumn.c
9046         (gtk_tree_view_column_pack_start_cell_renderer): New function to
9047         reflect that you can (hypothetically) pack cell renderers into a
9048         column.
9049         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
9050         (gtk_tree_view_column_cell_is_visible): Move more functionality to
9051         the column.
9052         (gtk_tree_view_column_cell_can_focus): Move more functionality to
9053         the column.
9054
9055         * gtk/gtktreeview.c: Move to use new column-packing code.
9056         (gtk_tree_view_real_expand_row): remove totally braindead code.
9057         (gtk_tree_view_real_collapse_row): ditto.
9058
9059 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
9060
9061         * gtk/gtktreeviewcolumn.c: Fix a typo.
9062         
9063 2001-06-26  Joel Becker  <jlbec@evilplan.org>
9064
9065         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
9066           at the end of the file
9067
9068 2001-06-26  Havoc Pennington  <hp@redhat.com>
9069
9070         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
9071
9072 2001-06-26  Havoc Pennington  <hp@redhat.com>
9073
9074         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
9075         property
9076
9077 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
9078
9079         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
9080         stupid missing statement
9081
9082         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
9083         private function for ATK.  It notifies you of how many _visible_
9084         children are deleted when a node is deleted.  Should be used by
9085         atk only.
9086
9087 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
9088
9089         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
9090         Use new pango_context_get_metrics() to fix problems
9091         with font lists in descriptions. (#56184, reported by
9092         Jonas Borgström)
9093
9094 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
9095
9096         * gtk/gtkiconfactory.c:
9097         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
9098         item factory so inlined pixbufs actually work.
9099
9100 2001-06-25  Havoc Pennington  <hp@redhat.com>
9101
9102         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
9103         s/RESIZEABLE/RESIZABLE/
9104
9105         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
9106
9107 2001-06-25  Alexander Larsson  <alexl@redhat.com>
9108
9109         * configure.in:
9110         Added --enable-fbmanager. This is some experimental code
9111         that lets several GtkFB apps coordinate their access to the
9112         framebuffer.
9113         
9114         * acconfig.h:
9115         Added ENABLE_FB_MANAGER.
9116
9117         * gdk/linux-fb/Makefile.am:
9118         Added gdkfbmanager and gdkfbswitch.
9119
9120         * gdk/linux-fb/gdkkeyboard-fb.c:
9121         * gdk/linux-fb/gdkmouse-fb.c:
9122         * gdk/linux-fb/gdkprivate-fb.h:
9123         Split device init and open so that
9124         they can be opened and closed while switched
9125         away.
9126
9127         * gdk/linux-fb/gdkmain-fb.c:
9128         Add the basic manager communication.
9129
9130         * gdk/linux-fb/gdkrender-fb.c:
9131         Don't update to the shadow fb if we're
9132         blocked by the fb manager.
9133
9134 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
9135
9136         * docs/Changes-2.0.txt: Add note about child property
9137         changes.
9138
9139 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
9140
9141         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
9142         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
9143
9144         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
9145         with un'reffing wrong list reported by Jeff Franks.
9146
9147         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
9148
9149         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
9150         for the default icon. Remove inline XPM.
9151
9152         * gtk/gtkstock.h gtk/gtkiconfactory.c:
9153         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
9154         is used for GTK_STOCK_DND, but it is a bit too small.)
9155
9156         * gtk/stock-icons/stock_dnd_multiple.png
9157         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
9158
9159         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
9160         TRUE when starting a drag. In other cases, we are
9161         just observing. (#52995)
9162
9163         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
9164         function to set the icon for a drag from a GdkPixbuf
9165         or stock ID.
9166
9167         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
9168         Likewise, for drag sources.
9169
9170         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
9171         (Now should be done using the stock system.)
9172
9173 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
9174
9175         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
9176         Removed - didn't work and not particularly useful anyways
9177         if it did. 
9178
9179 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
9180
9181         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
9182         introduced last night that was making things decidedly not work.
9183
9184         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
9185         so that we have getter/setter pairing everywhere it makes
9186         sense. (#55767)
9187
9188         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
9189         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
9190         deprecated compat macro. (#55516)
9191
9192         * gtk/gtklabel.[ch]: Add functions
9193         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
9194         gtk_label_set_label(), which mirror the property API for GtkLabel.
9195         Make gtk_label_get_attributes() only reflect the attributes
9196         set by gtk_label_set_attributes.
9197
9198         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
9199         from gtk_notebook_set_page().
9200
9201 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
9202
9203         * configure.in: Fix tests for XShm.h.
9204
9205         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
9206         gdk_image_new() by use of goto, properly use g_object_unref().
9207
9208 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
9209
9210         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
9211         calls, as GdkImage is an object. these should be g_obejct_unref()
9212         instead but that won't work because of the g_error() statement
9213         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
9214         to spot these places.
9215
9216 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
9217
9218         * modules/input/gtkimcontextxim.c: Fixup some problems with 
9219         text length handling in error cases.
9220
9221         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
9222         a bit to make test actually warn on attempt to allocation
9223         a negative size. (#56101, Matthias Clasen)
9224
9225 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
9226
9227         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
9228         noticed by Brian Cameron.
9229         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
9230         Cameron.
9231
9232 2001-06-22  Hans Breuer  <hans@breuer.org>
9233
9234         * gdk/gdk.def : updated externals
9235
9236         * gdk/win32/gdkdrawable-win32.c : corrected some casts
9237         in GDK_NOTEs
9238
9239         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
9240         to translate coordinates to the internal > 16 bit system
9241         Try to handle WM_WINDOWPOSCHANGED to get better performance for
9242         when moving/resizing
9243
9244         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
9245         and gdk_keymap_get_direction (). The latter is untested for
9246         the RTL case
9247
9248         * gtk/gtk.def : updated externals
9249
9250         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
9251         from pango_language_from_string (), not an already freed pointer
9252
9253         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
9254         binary (-kb) to be useable on windoze
9255  
9256 2001-06-21  Alexander Larsson  <alexl@redhat.com>
9257
9258         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
9259         Update to new PangoLanguage changes.
9260         
9261         * gtk/gtkwindow-decorate.c:
9262         * gtk/gtkwindow.[ch]:
9263         Added setting argument to gtk_window_set_has_frame ()
9264         
9265 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
9266
9267         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
9268         the case without XKB properly.
9269
9270         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
9271         unused gtk_rc_auto_parse variable.
9272
9273         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
9274         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
9275         longer needed with GdkPixbuf.
9276
9277         * gtk/gtkrc.c (_gtk_rc_init): Make private.
9278
9279 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
9280
9281         * gtk/gtkentry.h: Mark deprecated functions with
9282         GTK_DISABLE_DEPRECATED.
9283
9284 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
9285
9286         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
9287
9288         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
9289
9290         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
9291           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
9292           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
9293           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
9294           to recent changes in Pango.
9295
9296         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
9297           to test whether the basic engine honors them.
9298
9299 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
9300
9301         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
9302         gtk_container_child_get_property().
9303
9304 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
9305
9306         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
9307         (gtk_tree_view_move_cursor_page_up_down): implement.
9308
9309 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
9310
9311         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
9312         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
9313         don't use automatic fixed size buffer for printf-ing floats, doubles
9314         can expand to really _huge_ strings, use g_strdup_printf() instead.
9315
9316 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
9317
9318         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
9319         construct property in 1.2 and still needs to be.
9320
9321         * gtk/gtkwidget.c: "composite_child" is not a settable property.
9322
9323 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
9324
9325         * gtk/gtkliststore.c (gtk_list_store_clear): 
9326         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
9327         clear a model.
9328
9329 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
9330
9331         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
9332
9333         * gtk/Makefile.am:
9334         * gtk/gtk.h: disabled GtkPacker compilation.
9335
9336         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
9337
9338         * gtk/gtknotebook.c:
9339         * gtk/gtktable.c:
9340         * gtk/gtkbox.c: ported this over to child properties.
9341
9342         * gtk/gtksettings.c: fetch class properties via
9343         g_object_class_list_properties().
9344
9345         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
9346         child arg interface. use gobjectnotifyqueue.c for child property
9347         notification.
9348
9349         * gtk/gtkwidget.[hc]: provide necessary means for container child
9350         properties, i.e. ::child_notify signal,
9351         gtk_widget_freeze_child_notify(),
9352         gtk_widget_child_notify(),
9353         gtk_widget_thaw_child_notify().
9354
9355         * tests/testgtk.c: removed inferior property handling code, for
9356         property editing, a generic module should be used, and GLE
9357         coincidentally fullfills that purpose.
9358
9359         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
9360         needs to be adapted to g_object_class_list_properties() before this
9361         builds again.
9362
9363 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
9364
9365         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
9366         test if a node is expanded.
9367
9368 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
9369
9370         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
9371         where collapsing a selected row would result in the cursor/anchor
9372         getting screwed up.
9373
9374 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
9375
9376         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
9377         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
9378         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
9379         Now I can really reorder/sort all Store widgets.  treesorttest
9380         seems to just work now.
9381         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
9382         testtreesort worked through a big coincidence all this time.
9383         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
9384         code.
9385         * tests/testtreecolumns.c: Big 'ol warning at the top letting
9386         people know that this code should never ever ever be copied.
9387
9388 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
9389
9390         * gtk/gtkwindow.h: Fixed a small typo, it should be
9391         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
9392         on line 134.
9393
9394 2001-06-14  Havoc Pennington  <hp@redhat.com>
9395
9396         Docs fixups, and:
9397         
9398         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
9399         GTK_DISABLE_DEPRECATED
9400
9401 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
9402
9403         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
9404         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
9405         finish it off tonight, though it basically works now when it's a
9406         list.  Also, I have a sinking feeling neither GtkTreeStore or
9407         GtkListStore actually resort when adding a new item.  I'll look
9408         into it.
9409
9410 2001-06-14  Havoc Pennington  <hp@redhat.com>
9411
9412         * demos/gtk-demo/main.c (load_file): fix bug identified by
9413         warnings I just added to gtktextbuffer
9414
9415 2001-06-14  Havoc Pennington  <hp@redhat.com>
9416
9417         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
9418
9419         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
9420
9421         * gtk/gtktextbtree.c: don't leak node data all over the place.
9422
9423         * demos/gtk-demo/main.c (main): create fontify tags for the right
9424         buffer
9425
9426         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
9427         to mention tags in the same table can't have the same name,
9428         suggested by Skip Montanaro
9429
9430 2001-06-11  Havoc Pennington  <hp@redhat.com>
9431
9432         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
9433         for trying to add two tags with same name to the tag table
9434
9435         * demos/gtk-demo/main.c (main): fix colors ;-)
9436
9437 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
9438
9439         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
9440         that allows grouping together multiple windows so that grabs
9441         within that set of windows only affect those windows.
9442
9443         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
9444         signal for notification when a widget becomes shadowed
9445         by a grab or is no longer shadowed by a grab.
9446
9447         * gtk/gtkwidget.c (gtk_widget_propagate_state)
9448           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
9449         insenstive widgets to maintain a grab.
9450
9451 2001-06-14  Alexander Larsson  <alexl@redhat.com>
9452
9453         * docs/README.linux-fb:
9454         Add some example config files that can be used with the URW fonts.
9455         
9456         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
9457         Set up the color ramps for DirectColor mode.
9458
9459 2001-06-11  Havoc Pennington  <hp@redhat.com>
9460
9461         * Release 1.3.6
9462          
9463 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9464
9465         * gdk/linux-fb/gdkwindow-fb.c:
9466         Unify shaped window code and make it repaint the area that used
9467         to be part of the shape, but isn't anymore.
9468
9469 2001-06-11  Havoc Pennington  <hp@redhat.com>
9470
9471         * NEWS: Updates
9472
9473         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
9474
9475         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
9476         
9477 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9478
9479         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
9480         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
9481         passes zero instead, so do we.
9482         
9483 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9484
9485         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
9486         Deep copy dash_list too.
9487         (_gdk_fb_gc_new): Set default cap_style before
9488         setting values.
9489
9490 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
9491
9492         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
9493         gdk_keymap_get_direction): New functions.
9494
9495 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
9496
9497         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
9498         gtk_tree_model_get_flags by adding a second flag for atk.
9499
9500         * gtk/gtktreemodel.c: make cursor behavior interact better with
9501         mouse presses.
9502
9503 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
9504
9505         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
9506         expand_row/collapse_row to be 2 signals each -- test_expand_row
9507         and row_expanded as well as test_collapse_row and row_collapsed.
9508
9509 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
9510
9511         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
9512         signal name to be changed instead of selection_changed.
9513
9514 2001-06-08  Havoc Pennington  <hp@redhat.com>
9515
9516         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
9517         "scroll_offset" property for notification when the layout offsets
9518         may have changed
9519         (gtk_entry_adjust_scroll): add notify for scroll_offset
9520         (gtk_entry_layout_index_to_text_index): function to compensate for
9521         preedit string when doing coordinate stuff on the entry's layout
9522         (gtk_entry_text_index_to_layout_index): inverse function
9523         (gtk_entry_get_layout_offsets): hook to get current position of
9524         the layout      
9525         (gtk_entry_get_layout): hook to get the layout itself.
9526
9527         * gtk/gtklabel.c (gtk_label_get_layout): new function
9528
9529 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
9530
9531         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
9532         keybinding.
9533         (gtk_tree_view_focus): Fix merge conflict.
9534
9535 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
9536
9537         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
9538         clean up cursor handling.
9539
9540 2001-06-08  Havoc Pennington  <hp@redhat.com>
9541
9542         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
9543         function
9544
9545         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
9546         this function
9547
9548 2001-06-08  Alex Larsson  <alexl@redhat.com>
9549
9550         * gtk/gtkcompat.h.in:
9551         Added compat macros for all old GTK_TYPE_GDK_xxx types.
9552         Fixes bug #52892
9553
9554 2001-06-08  Havoc Pennington  <hp@redhat.com>
9555         
9556         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
9557         parent still
9558
9559 2001-06-08  Havoc Pennington  <hp@redhat.com>
9560
9561         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
9562         don't call g_list funcs on GSList
9563
9564         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
9565         gtk_container_focus(), since some widgets have focusable locations
9566         which are not other widgets. These widgets should not have to be 
9567         containers just to manage the focus. For example, GtkHSV is
9568         currently a container for no good reason. Also, this cleans
9569         up the "if (is_container && is_sensitive && is_drawable)
9570         container_focus ()" mess in widget implementations.
9571
9572         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
9573         function, and have it just call gtk_widget_child_focus().
9574
9575         * gtk/gtkhsv.c: derive from widget not container
9576         
9577         Throughout: fix to reflect GtkContainer::focus change
9578         
9579 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
9580
9581         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
9582         range.  Fix bug #55921
9583
9584         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
9585         (#55920).
9586
9587 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
9588
9589         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
9590         and gdk_keymap_get_current_direction().
9591
9592         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
9593           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
9594         the current locked group, use it to set the keymap
9595         direction.
9596
9597         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
9598         to determine whether we draw a split cursor or use
9599         a jumping cursor based on the current direction.
9600
9601         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
9602         Obey the split cursor setting. 
9603
9604 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
9605
9606         * gtk/gtkimmulticontext.c (activate_cb): Only activate
9607         when toggling on, not when toggling off... (#55906)
9608
9609 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
9610
9611         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
9612         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
9613         in docs. (#55812, Vitaly Tishkov)
9614
9615 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
9616
9617         * demos/gtk-demo/main.c (create_tree): Changed signal name from
9618         selection_changed to changed in signal connection to GtkTreeSelection,
9619         also used g_signal_connectc since GtkTreeSelection is now a GObject.
9620
9621 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
9622
9623         * gtk/gtktreeselection.c: Now it's a GObject instead of a
9624         GtkObject.  The GtkTreeSelection::selection_changed signal is now
9625         the GtkTreeSelection::changed signal.
9626
9627         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
9628         object.
9629
9630         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
9631         object.
9632
9633 2001-06-07  Havoc Pennington  <hp@redhat.com>
9634
9635         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
9636
9637 2001-06-07  Havoc Pennington  <hp@redhat.com>
9638         
9639         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
9640         (not tested yet because with absolute path to srcdir I can't build
9641         atk, but it was broken anyway so this may help) 
9642
9643 2001-06-07  Havoc Pennington  <hp@redhat.com>
9644
9645         * configure.in: output m4macros/Makefile
9646         
9647 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
9648
9649         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
9650         buttons.  Fixes #55460 reported by matthiasc@poet.de.
9651
9652 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
9653
9654         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
9655         expansion/collapsing so it only happens in one place.
9656         (gtk_tree_view_real_expand_row): ditto.
9657
9658 2001-06-07  Havoc Pennington  <hp@redhat.com>
9659
9660         * tests/Makefile.am: add missing -I flag
9661
9662         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
9663
9664         * configure.in: use pkg-config to see if GModule is
9665         supported; fix to properly turn on included loaders 
9666         when GModule isn't supported; don't use AC_CHECK_LIB 
9667         when libs are not installed yet
9668
9669         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
9670
9671         * Makefile.am (SUBDIRS): add m4macros subdir
9672
9673         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
9674         dependencies also.
9675
9676 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
9677
9678         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
9679         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
9680
9681 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
9682
9683         * gtk/gtktreeview.c
9684         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
9685         bindings to expand and collapse rows.
9686         (gtk_tree_view_real_select_cursor_parent): New key binding.
9687         (gtk_tree_view_real_toggle_cursor_row): New key binding.
9688
9689         * gtk/gtkmarshal.list: new
9690         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
9691
9692 2001-06-06  Havoc Pennington  <hp@redhat.com>
9693
9694         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
9695
9696         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
9697         Down to move visually rather than logically, since it confuses 
9698         people. Add -/+ and Ctrl--/+ bindings for logical movement.
9699
9700 2001-06-06  Alex Larsson  <alexl@redhat.com>
9701
9702         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
9703         Fix up error messages.
9704
9705 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
9706
9707         * gtk/gtktooltips.h: Include gtkwidget.h 
9708         (#55798, Karl Nelson)
9709
9710         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
9711         a valid latin-1 character. (Marc Lehmann, #35467)
9712
9713         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
9714         (Marc Lehmann, #35467)
9715         
9716 2001-06-05  Alex Larsson  <alexl@redhat.com>
9717
9718         * demos/gtk-demo/appwindow.c (do_appwindow):
9719         Don't swap the order of the args to gtk_widget_destroyed.
9720
9721         * tests/testgtk.c (destroy_properties):
9722         Don't crash when the properties window is destroyed.
9723
9724         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
9725         Use with_mnemonics to handle the case of stock items with
9726         underscores in them.
9727
9728 2001-06-05  Havoc Pennington  <hp@redhat.com>
9729
9730         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
9731         gtk_text_iter_reorder
9732
9733 2001-06-05  Havoc Pennington  <hp@redhat.com>
9734
9735         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
9736
9737 2001-06-05  Havoc Pennington  <hp@redhat.com>
9738
9739         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
9740         to the range that was set
9741
9742         * gtk/gtkrange.c: add value_changed signal, primarily 
9743         intended for use with GtkScale
9744         (gtk_range_set_increments): new function
9745         (gtk_range_set_range): new function with weird name
9746         (gtk_range_set_value): new function
9747         (gtk_range_get_value): new function
9748
9749         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
9750         from gtk_spin_button_get_value_as_float(). Compat #define
9751         added for get_value_as_float.
9752
9753         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
9754
9755         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
9756
9757 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
9758
9759         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
9760
9761 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
9762
9763         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
9764
9765         * tests/testgtk.c (create_tooltips): Remove usage of
9766         gtk_widget_set().
9767
9768 2001-06-05  Havoc Pennington  <hp@redhat.com>
9769
9770         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
9771
9772         Applying patch from Jeff Franks, with function docs added.
9773         
9774         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
9775         remove call to set_mnemonic_widget, change docs a bit.  
9776
9777         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
9778         new function
9779
9780         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
9781         new function
9782
9783         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
9784
9785         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
9786         function
9787         (gtk_radio_button_new_with_mnemonic_from_widget): new function
9788
9789         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
9790         new function
9791
9792         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
9793         function        
9794
9795         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
9796         auto-selection of mnemonic widget.
9797
9798 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
9799
9800         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
9801         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
9802         (gtk_tree_view_column_set_min_width): ditto.
9803
9804 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
9805
9806         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
9807         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
9808
9809 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
9810
9811         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
9812         gtk_clist_thaw().
9813
9814 2001-06-04  Havoc Pennington  <hp@pobox.com>
9815
9816         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
9817 r       eleases for buttons 6, 7
9818
9819 2001-06-04  Havoc Pennington  <hp@redhat.com>
9820
9821         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
9822         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
9823         #55562
9824
9825 2001-06-04  Havoc Pennington  <hp@redhat.com>
9826
9827         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
9828         where text_view->layout == NULL by assuming its size is 0, 
9829         i.e. same as if we haven't done any reflow. Reported by 
9830         Hidetoshi Tajima #55448 
9831
9832 2001-06-04  Havoc Pennington  <hp@redhat.com>
9833
9834         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
9835         and 7 for scroll left/right, from Thomas Broyer
9836
9837 2001-05-10  Havoc Pennington  <hp@redhat.com>
9838
9839         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
9840         we need to parse the xsetting as if it were an RC file string.
9841
9842         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
9843         value of palette from settings, not from static variable
9844
9845         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
9846         xsettings translation table
9847
9848         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
9849         hardcoding the toolbar style conflicts with new customizable 
9850         toolbar style philosophy
9851         (gtk_toolbar_class_init): add settings for default toolbar style;
9852         these are used unless the app specifically forces a toolbar style
9853
9854         * gtk/gtksettings.c (settings_install_property_parser): only
9855         return at the start if we warn and parser == NULL
9856
9857         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
9858         palette changed handler so we don't notify dead color selections
9859
9860         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
9861         xthickness/ythickness of 0 or 1 properly 
9862         (gtk_default_draw_resize_grip): clear the background behind the
9863         resize grips, and align to bottom right if we square the 
9864         area to be drawn.
9865
9866         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
9867         statusbar label to 1, so it doesn't make toplevels resize oddly
9868         (gtk_statusbar_size_request): add grip size to request
9869         (gtk_statusbar_size_allocate): hack so the hbox still works with 
9870         the grip size in the request
9871
9872         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
9873         bug where showing all on a toplevel makes the toolbar 
9874         button text appear despite the toolbar mode
9875
9876         * gtk/gtkmenubar.c: add internal padding style property
9877
9878         * gtk/gtktoolbar.c: Add internal padding style property; add
9879         shadow type style property
9880
9881         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
9882         state; and put Container::border_width outside the frame
9883
9884         * gtk/gtktextview.c: don't draw focus rectangle if we're in
9885         interior focus mode, we just use blinking cursor
9886
9887 2001-06-04  Havoc Pennington  <hp@redhat.com>
9888
9889         * configure.in: Make gdk-pixbuf have same version number as GTK
9890
9891 2001-06-04  Havoc Pennington  <hp@redhat.com>
9892
9893         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
9894         digits greater than 6. If there actually are limits (which there
9895         likely aren't), should clamp to them not warn.
9896         (gtk_spin_button_new_with_range): don't take log of 0
9897         (gtk_spin_button_size_request): use digits to compute size
9898         request, rather than step increment.
9899
9900         * tests/testgtk.c (create_spins): test larger values of digits
9901         
9902         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
9903         font on map not expose, so we don't get weirdness during scrolling
9904
9905 2001-06-04  Havoc Pennington  <hp@redhat.com>
9906
9907         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
9908         Sam Solon, bug #54577, update value even if not drawable.
9909
9910 2001-06-04  Havoc Pennington  <hp@redhat.com>
9911
9912         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
9913         SCROLL_LEFT, reported by Thomas Broyer.
9914
9915 2001-06-04  Havoc Pennington  <hp@redhat.com>
9916
9917         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
9918         Process updates immediately, to prevent funny lag effect
9919         when scrolling, at some mild potential efficiency cost.
9920
9921 2001-06-04  Havoc Pennington  <hp@redhat.com>
9922
9923         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
9924         slider on the click.
9925
9926 2001-06-03  Havoc Pennington  <hp@pobox.com>
9927
9928         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
9929         hscale/vscale details, so we can use it for scrollbar as well.
9930
9931         * tests/testgtk.c (reformat_value): honor digits from GtkScale
9932
9933         * gtk/gtkenums.h (GtkTroughType): Remove this enum
9934         (GtkScrollType): add START and END from GtkTroughType
9935
9936         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
9937         its x/y arguments
9938
9939         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
9940         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
9941         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
9942         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
9943         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
9944
9945         Notable changes in the process:
9946          
9947         - stepper_size style property is the height for vertical 
9948           ranges, width for horizontal; the other dimension matches
9949           the trough size
9950         - add ability to do NeXT-style steppers (and several other styles
9951           that don't make any sense)
9952         - added min_slider_length, fixed_slider_length properties to
9953           GtkScrollbar
9954         - cleaned some private (or at least useless) functions out of
9955           gtkscale.h    
9956         - moved bindings to GtkScale from subclasses, even arrow keys,
9957           since blind users don't know scale orientation.
9958         - change move_slider action signal to use new GtkScrollType,
9959           remove GtkTroughType argument
9960         - digits rounds the values a range will input to the given 
9961           number of decimals, but will not try to force adjustment 
9962           values set by other controllers. That is, we no longer
9963           modify adjustment->value inside a value_changed handler.
9964         - added getters for GtkScale setters
9965         - middle-click begins a slider drag
9966         
9967 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
9968
9969         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
9970         getting the focus code to work.
9971         (gtk_tree_view_class_init): Add a bunch of keybindings.
9972
9973         * gtk/gtktreeviewcolumn.c
9974         (gtk_tree_view_column_set_cell_data_func):
9975         s/GtkCellDataFunc/GtkTreeCellDataFunc.
9976         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
9977         of "properties_changed" to help justify the death of the latter
9978         signal. (-:
9979
9980         * tests/testtreefocus.c (main): Let some columns be focussable to
9981         test focus better.
9982
9983 2001-06-01  Havoc Pennington  <hp@redhat.com>
9984
9985         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
9986         
9987         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
9988         overwrite in overwrite mode if we already deleted the selection
9989         and replaced it with new text.  
9990
9991         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
9992         selection to an empty range, clear the clipboard if we owned it.
9993         (gtk_label_set_selectable): give up selection if we become
9994         unselectable.
9995         (gtk_label_state_changed): override state changed to unselect text
9996         when insensitive
9997         (get_text_callback): add paranoia check that indexes aren't
9998         outside of label->text
9999         (gtk_label_select_region): make -1 for start_offset mean "end of
10000         label," for consistency with GtkEditable
10001
10002         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
10003         GTK_DIALOG_NO_SEPARATOR flag
10004
10005 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
10006
10007         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
10008         notifications on non-existant "enable_arrow_keys".
10009         (#53753, Skip Montanaro)
10010
10011 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
10012
10013         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
10014         GDK_TYPE_RECTANGLE.
10015
10016         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
10017         of allocation argument be GDK_TYPE_RECTANGLE.
10018
10019 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
10020
10021         * gtk/gtkoptionmenu.c: Account for the fact that the border
10022         width is _outside_ the window. (Fixes #54585, bug found
10023         by Bastien Nocera.)
10024
10025 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
10026
10027         * gtk/gtksettings.c (gtk_settings_get_property): Validate
10028         value from GDK settings against parameter spec.
10029
10030         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
10031         to temporary values and use g_value_transform(), since
10032         thinking that GValue was going to be easy or efficient
10033         to use was, of course, a mistake.
10034
10035         * gtk/gtksettings.c: Add cursor blink setting.
10036         
10037         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
10038
10039         * gtk/gtkentry.c: Add cursor blinking.
10040
10041         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
10042         cursor blink global settings.
10043
10044         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
10045         for :text_position in places where it is missing.
10046
10047 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
10048
10049         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
10050
10051 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
10052
10053         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
10054         not pkg-config. (#51032)
10055
10056         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
10057         (fixes #51952, James Henstridge)
10058         
10059 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
10060
10061         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
10062         Rename to the more correct gtk-go-up.
10063
10064         * gtk/stock-icons/stock_menu_sort_ascending.png:
10065         Added new file.
10066         
10067         * gtk/stock-icons/stock_menu_sort_descending.png:
10068         Changed to show descending instead of ascending.
10069
10070         * gtk/gtkiconfactory.c:
10071         Added menu size icon to sort ascending.
10072
10073         * gtk/stock-icons/Makefile.am:
10074         Added stock_menu_sort_ascending.png.
10075         
10076         * gtk/gtkseparatormenuitem.c:
10077         Use correct typenames.
10078
10079 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
10080
10081         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
10082         gulong as in GSignal.
10083
10084 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
10085
10086         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
10087         instances of GtkCellRenderer in code (all but dnd icon code).
10088         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
10089         there, and I can do multiple Cells per column.
10090
10091         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
10092
10093         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
10094         when model was unreffed prior to removing the row reference.
10095
10096 2001-05-25  Havoc Pennington  <hp@redhat.com>
10097
10098         * gtk/gtkiconfactory.c: fix so that default icons are created if 
10099         you call gtk_stock_list_ids()
10100
10101         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
10102         in list
10103
10104 2001-05-25  Havoc Pennington  <hp@redhat.com>
10105
10106         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
10107         set can render without falling back to missing image icon
10108
10109         * gtk/gtktextview.c (gtk_text_view_size_request): request full
10110         size of text, instead of random values
10111
10112         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
10113         size of tree view, instead of random values
10114
10115         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
10116         image in an appropriate size
10117
10118         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
10119         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
10120
10121         Throughout: fix GTK_STOCK_BUTTON_ instances
10122         
10123         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
10124         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
10125         Add a bunch of new stock items/icons
10126
10127         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
10128         new function, convenience for inserting columns with a data func
10129
10130         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
10131         (_gtk_icon_factory_list_ids): use list of all factories to
10132         generate a list of all known IDs
10133
10134         * gtk/gtkstock.c (gtk_stock_list_ids): replace
10135         gtk_stock_list_items() with a function that returns all IDs known
10136         including those for GtkIconFactory.
10137
10138 2001-05-25  Hans Breuer  <hans@breuer.org>
10139
10140         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
10141         work -> check boxes and radio buttons are drawn now, even on win9x.
10142         Improved line settings a bit, still no clue how to get really dotted
10143         lines on win9x, on NT it's PS_ALTERNATE.
10144
10145         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
10146         GDK_HINT_MIN_SIZE as well
10147
10148         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
10149
10150         * gtk/gtk.def : updated
10151
10152         * gtk/gtktreeprivate.h : change column_drop_func to be a function
10153         pointer not a function pointer pointer
10154
10155         * tests/testdnd.c : include <stdlib.h> for putenv prototype
10156
10157         * tests/testsocket.c : made it compile on win32 again
10158
10159         * tests/makefile.msc : one more test-app uses prop-editor.obj
10160
10161 2001-05-22  Havoc Pennington  <hp@pobox.com>
10162
10163         * gtk/gtkbin.c (gtk_bin_get_child): New function
10164
10165 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
10166
10167         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
10168         to ignore when doing compose processing.
10169
10170 2001-05-22  Joe Shaw  <joe@ximian.com>
10171
10172         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
10173         Simplify as suggested by Havoc. Just get the last iter and work
10174         backward to the tag instead of getting a line and working back from
10175         there. Fixes passing in an invalid offset to
10176         iter_init_from_byte_offset().
10177
10178 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
10179
10180         * gtk/gtktreeview*.h: 
10181         * gtk/gtkcell*.h:
10182         * gtk/gtk*store.h:
10183         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
10184         macros to all objects.
10185
10186 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
10187
10188         * gtk/gtkcellrenderertext.c
10189         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
10190         with very large (TM) amounts of text.  May be moved to
10191         GtkCellRenderer in the future, though I'm not sure it wants to be
10192         this accessible.
10193
10194         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
10195         More sanity brought to this class.  I like it.
10196
10197         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
10198         case.  Kids, don't try this at home.
10199
10200         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
10201         convenience function.
10202
10203         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
10204
10205 2001-05-21  Alexander Larsson  <alexl@redhat.com>
10206
10207         * gtk/gtkfontsel.c:
10208         Added properties. Based on patch by Lee Mallabone.
10209
10210         * gtk/gtkruler.c:
10211         * gtk/gtkhruler.c:
10212         * gtk/gtkvruler.c:
10213         * gtk/gtktext.c:
10214         * gtk/gtktextview.c:
10215         Converted GtkArg to GParam. Based on patches by John Margaglione.
10216
10217         * tests/Makefile.am:
10218         * tests/testtext.c:
10219         Add a property editor to testtext.
10220         
10221 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
10222
10223         * gtk/gtk{h,v,}paned.c: Only show the separator if 
10224
10225         * configure.in: Fixed reversed conditional causing all image
10226         libraries to be linked in.
10227
10228 2001-05-21  Joe Shaw  <joe@ximian.com>
10229
10230         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
10231         that top_y needs to be >= 0.
10232
10233 2001-05-11  Havoc Pennington  <hp@pobox.com>
10234         
10235         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
10236         losing connection to the X server.
10237
10238 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
10239
10240         * configure.in: Start checks for X from pangox/pangoxft
10241         CFLAGS to avoid duplicate libraries.
10242
10243         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
10244
10245         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
10246         to include gobject.
10247         
10248 2001-05-18  Alexander Larsson  <alexl@redhat.com>
10249
10250         * gtk/gtkspinbutton.c:
10251         Convert GtkArgs to GParams. Based on patch by John Margaglione.
10252         Also do size request reasonable for MAXDOUBLE. Previously it printed
10253         the limits to a buffer and overran it. Instead do it using log10() and
10254         limit the width to 10 digits.
10255         
10256         * gtk/gtkwidget.c (gtk_widget_get_property):
10257         Correctly handle setting the parent property to NULL.
10258
10259 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
10260
10261         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
10262         style attributes even if the widget isn't realized.
10263
10264         * demos/gtk-demo/main.c: Use a slightly smaller font.
10265
10266 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
10267
10268         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
10269         This is something that only a widget writer would ever want
10270         to change.
10271
10272         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
10273         gtk_signal_emit_by_name().
10274
10275         * gtk/gtkviewport.c: Fix some warnings.
10276
10277         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
10278         allowing the requisitions of multiple widgets to be grouped
10279         together.
10280
10281         * tests/testgtk.c: Add GtkSizeGroup test
10282
10283         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
10284
10285         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
10286         warnings.
10287
10288         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
10289
10290 2001-04-28  Martin Baulig  <baulig@suse.de>
10291
10292         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
10293         to gtk_image_menu_item_set_icon() and made it work if there's already
10294         an image.
10295         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
10296         (gtk_image_menu_item_new_with_label): New function.
10297
10298 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
10299
10300         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
10301         highlighting code!!!!  The result is okay so long as you don't try
10302         to stress it.  It also highlights a bug in the TextView so it's in
10303         an unproportional font right now until it's fixed.
10304
10305         *demos/gtk-demo/*.c: Clean up code a bit to make it
10306         ugly-parser(TM) friendly. (-:
10307
10308 2001-05-17  Joe Shaw  <joe@ximian.com>
10309
10310         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
10311         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
10312         if it is only partially onscreen.
10313
10314 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
10315
10316         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
10317         not by characters.
10318
10319         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
10320         are not zero or one; that is, when graphemes of multiple characters
10321         are involved.
10322
10323         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
10324         FIXME.
10325
10326 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
10327         
10328         * gtk/gtkbbox.c:
10329         Add properties, based on patch by Lee Mallabone.
10330
10331         * gtk/gtknotebook.c:
10332         * gtk/gtktoolbar.c:
10333         Convert from GtkArg to GParam, based on patch by John Margaglione.
10334         
10335         * gtk/gtkhscale.c:
10336         * gtk/gtkvscale.c:
10337         * gtk/gtkhscrollbar.c:
10338         * gtk/gtkvscrollbar.c:
10339         * gtk/gtkrange.c:
10340         Move adjustment property to GtkRange.
10341
10342         * gtk/gtklabel.c:
10343         Setup mnemonics on property changes
10344
10345         * gtk/gtkwidget.c (gtk_widget_get_property):
10346         GdkExtensionMode is an enum, not a flag. Set it with
10347         g_value_set_enum ().
10348
10349         * tests/prop-editor.c:
10350         Better propery editor.
10351
10352         * tests/testgtk.c:
10353         Add new property test. Pass zero to the property editor to
10354         get properties from all derived types.
10355         
10356 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
10357
10358         * autogen.sh (have_automake): Require libtool-1.4,
10359         automake-1.4p1.
10360
10361         * acinclude.m4: Remove libtool macros.
10362
10363         * gdk-pixbuf/Makefile.am: Add dependencies to loade
10364         modules.
10365
10366         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
10367         for libgdk.
10368
10369         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
10370         libgdk.la for libgtk.
10371
10372         * modules/input/Makefile.am: Make modules have full
10373         dependencies.
10374
10375 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
10376
10377         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
10378         #54699 where paths weren't being checked for correctness.
10379
10380 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
10381
10382         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
10383         in any order you wan, whether or not the column is added to the
10384         tree, or the tree is realized.  Yay!
10385
10386         * gtk/gtktreeviewcolumn.c
10387         (gtk_tree_view_column_setup_sort_column_id_callback): handle
10388         sorting columns a lot saner
10389
10390         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
10391         new function to actually set wether or not a column is
10392         reorderable.
10393
10394         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
10395         if we have 'em.
10396
10397         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
10398         Fix nasty bug where we were showing the button just before
10399         realizing it.  As a result, the parent window was
10400         tree_view->window instead of tree_view->priv->header_window.
10401
10402         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
10403         to let you easily reorder a list or tree.
10404
10405 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
10406
10407         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
10408         from args to properties.
10409
10410 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
10411
10412         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
10413         from args to properties. (#51957)
10414
10415         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
10416         calls to after ->set_property call.
10417
10418 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
10419
10420         * tests/prop-editor.c: Block against redundant changes.
10421
10422         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
10423         properties.
10424
10425 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
10426
10427         * gdk/gdkpixmap.h: Remove creative formatting.
10428
10429 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
10430
10431         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
10432         property API. (#51669)
10433
10434         * gtk/gtkscale.c: Patch from John Margaglione converting to
10435         property API. (#51891)
10436
10437         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
10438         to property API. (#50985)
10439
10440 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
10441
10442         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
10443         buffering state across expose event, so we still call end_paint().
10444
10445 2001-05-11  Alexander Larsson  <alexl@redhat.com>
10446
10447         * gtk/gtkhsv.c (paint_triangle):
10448         Expose the ring in the triangle at the correct place when
10449         exposing just a part of the triangle.
10450
10451         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
10452         Return FALSE, or window focusing will not work.
10453
10454 2001-05-11  Havoc Pennington  <hp@pobox.com>
10455
10456         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
10457         #54144
10458
10459         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
10460         bug #54330
10461
10462 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
10463
10464         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
10465         propagate exposes to NULL child.
10466
10467         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
10468         against not having one of the scrollbars.
10469
10470         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
10471         we don't keep a mnemonic window if we have no mnemonic installed.
10472
10473 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
10474
10475         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
10476         it has the _important_ side effect of initializing a class.
10477
10478 2001-05-10  Alexander Larsson  <alexl@redhat.com>
10479
10480         * gdk/linux-fb/gdkprivate-fb.h:
10481         Make sure you can compile out the implementation/wrapper assert
10482         macros.
10483
10484         * gdk/linux-fb/gdkdrawable-fb2.c:
10485         Check implementation/wrappers, initialize type for pixmap dummys.
10486
10487         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
10488         Hide the cursor if reading from the screen.
10489
10490         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
10491         Fix sign bug in tiling code.
10492
10493         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
10494         Handle background pixmaps.
10495
10496 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
10497
10498         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
10499         function to let user control where columns are dragged.
10500
10501         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
10502         Escape is pressed.
10503
10504 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
10505
10506         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
10507         "columns_changed" signal.
10508         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
10509         motion code to draw arrows to the side if indicator is outside the
10510         widget.
10511         (gtk_tree_view_map_expanded_rows): Implement.
10512
10513 2001-05-07  Alexander Larsson  <alexl@redhat.com>
10514
10515         * demos/testpixbuf-save.c: 
10516         * demos/testpixbuf-drawable.c:
10517         Include gdkfb.h on linux-fb.
10518
10519 2001-05-07  Alexander Larsson  <alexl@redhat.com>
10520
10521         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
10522         New function for getting toplevel window at position.
10523         (gdk_drag_find_window): Use get_toplevel_window () instead
10524         of gdk_window_get_pointer(). (gdk_drag_status): Use
10525         correct context for getting window.
10526
10527         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
10528         g_strdup the atom name.
10529
10530         * gdk/linux-fb/gdkwindow-fb.c:
10531         Costmetic fix.
10532
10533         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
10534         Add code for changing cursor on linux-fb backend (same as
10535         win32).
10536
10537 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
10538
10539         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
10540         present before doing anything with it.  Patch from Håvard Kvålen
10541         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
10542         report was not for the development branch of GTK+, but it applies
10543         anyways).
10544
10545 2001-05-04  Havoc Pennington  <hp@redhat.com>
10546
10547         * configure.in: fix some shell typos
10548
10549         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
10550
10551         * gtk/gtkimage.c: handle animations
10552
10553         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
10554         border_width * 2, not just border_width
10555
10556         * gtk/gtkscale.c: add "format_value" signal to allow people
10557         to override the way values are drawn.
10558         (gtk_scale_get_value_size): fix width/height mistake,
10559         and compute size from actual displayed text, not 
10560         from made-up text.
10561
10562         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
10563         signal registration
10564
10565         * tests/testtext.c: Add "Remove all tags" menu item for testing
10566
10567         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
10568
10569         * demos/gtk-demo/main.c (main): add hack so we can find modules
10570         without installing gtk
10571
10572         * demos/gtk-demo/textview.c (insert_text): demo font scaling
10573
10574         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
10575         factor)
10576         (gtk_cell_renderer_text_set_property): remove some bogus
10577         g_object_notify
10578
10579         * gtk/gtktexttag.c: add "scale" property which is a font scaling
10580         factor
10581
10582         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
10583         to layout
10584
10585         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
10586         gtk_text_iter_is_first
10587
10588 2001-01-06  Hans Breuer  <hans@breuer.org>
10589
10590         * gdk/gdk.def : updated exports
10591
10592         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
10593         gdk won't compile anymore
10594  
10595         * gdk/win32/gdkevents-win32.c : initialize ret_val when
10596         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
10597         Improved gdk_flush () to not only do pending drawing operations
10598         but also process all currently pending events. This should make
10599         the behaviour more similar to the X11 version.  
10600
10601         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
10602         option needs to be set even if there is no GDK_GC_BACKGROUND.
10603         (gdk_win32_hdc_get) : use predraw_set_background () independent
10604         of value_mask. This allows to draw dashed lines leaving the original
10605         background intact.
10606
10607         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
10608         after processing, because we can't reuse it as the X11 version does.
10609
10610         * gtk/gtk.def : updated exports
10611
10612         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
10613         would like to get rid of this file again, and use straight
10614         makefile.msc again, as the other Gtk+ subdirs do)
10615
10616         * test/makefile.msc (new file) : build the test apps here
10617
10618 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
10619
10620         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
10621         strike-through setting
10622         (gdk_draw_layout_line_with_colors): Render strike-through
10623
10624 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
10625
10626         * Release 1.3.5
10627
10628         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
10629
10630         * NEWS: Updated
10631
10632         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
10633         Makefile breakage.
10634
10635 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
10636
10637         * demos/gtk-demo/images.c (progressive_timeout): Fix
10638         typo in filename.
10639
10640         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
10641         out FIXME warning; just too annoying.
10642
10643 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
10644
10645         * gdk/linux-fb/gdkcolor-fb.c:
10646         Better error messages.
10647
10648         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
10649         Initialize abs_x and abs_y.
10650         
10651         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
10652         Correct handling of stipple offset.
10653
10654         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
10655         Treat directcolor framebuffers as truecolor.
10656         
10657 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
10658
10659         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
10660         dependency on Atk for accessibility support.
10661
10662         * configure.in **/Makefile.am: Major reworking of substituted
10663         variables for CFLAGS/LIBS to make a lot more sane and 
10664         keep the the compile/link lines a bit shorter.
10665
10666         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
10667
10668 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
10669
10670         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
10671         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
10672         use _gtk_boolean_handled_accumulator.
10673
10674 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
10675
10676         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
10677         to fix things so clicking inside selection leaves cursor
10678         at point where clicked. (#50324)
10679
10680         * gtk/gtksettings.c (gtk_settings_class_init): Restore
10681         sane value for default double click time.
10682
10683         * tests/testtext.c (test_init): Really path to input modules.
10684
10685 2001-05-03  Sven Neumann  <sven@convergence.de>
10686
10687         * demos/testpixbuf-save.c: include target-specific headers as
10688         done in testpixbuf-drawable.c
10689
10690 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
10691
10692         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
10693         new_text_length appropriately when we run into the 
10694         size limit for the entry. (#53445, reported by Jeff Franks)
10695
10696         * tests/testgtk.c (create_entry): Remove most of the
10697         property toggle buttons. Replace with a "Props" button
10698         that brings up a property editor.
10699
10700         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
10701         Split the property editor code out for reuse, improve.
10702
10703 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
10704
10705         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
10706         trap errors around calls to XSetInputFocus since we have
10707         no way of knowing reliably whether we are viewable or
10708         not. (#53947)
10709
10710 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
10711
10712         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
10713         fix bug in dropping columns.  Moving columns now basically works
10714         modula some fine tuning.
10715
10716 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
10717
10718         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
10719         autoscroll support.  It mostly works, but could use some fine
10720         tuning.
10721         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
10722         Actually move the column.
10723
10724 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
10725
10726         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
10727           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
10728           New default theme! A slighly improved version of the 2.0 Raleigh
10729           theme, with Windows-esque focus/drawing default. 
10730           (GtkWidget::interior_focus defaults to TRUE.)
10731
10732         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
10733
10734 2001-04-30  Havoc Pennington  <hp@pobox.com>
10735
10736         * tests/testtext.c (line_numbers_expose): fix to work with
10737         gtk_paint_layout change
10738
10739 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
10740
10741         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
10742           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
10743           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
10744           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
10745
10746         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
10747           with GtkWidget::interior_focus = TRUE better.
10748
10749         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
10750         ::default_outside_border for more flexibility.
10751
10752         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
10753         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
10754         change that had to be made with g_object_get.
10755
10756 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
10757
10758         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
10759         (gtk_tree_view_move_column_after): Clean up interface. 
10760
10761 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
10762
10763         * gtk/gtkpacker.h:
10764         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
10765          to gtkenum.h.
10766
10767         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
10768         handled in switch).
10769
10770         * gtk/Makefile.am:
10771         (gtk.defs): generate enum portions with  glib-mkenums.
10772         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
10773         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
10774         
10775         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
10776         addition.
10777
10778         * docs/Changes-2.0.txt: keep a note on signal handlers now
10779         not getting emitted during the emission they were connected within.
10780
10781 2001-04-28  Havoc Pennington  <hp@pobox.com>
10782
10783         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
10784
10785 2001-04-24  Havoc Pennington  <hp@redhat.com>
10786
10787         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
10788         (gtk_text_layout_move_iter_to_next_line): fix these two for
10789         invisible text, lots of other stuff still hosed.
10790
10791         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
10792         new function, replaces the get/set palette stuff. This function 
10793         is intended for use by libgnomeui which should set the hook to a
10794         thing which sets the palette in GConf, and we need the
10795         GConf-to-xsettings proxy which will result in the change being
10796         propagated back to the GTK app.
10797
10798         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
10799         about unusable signals that it may be because the signal has 
10800         parameters.
10801
10802         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
10803         style, otherwise gtkrc.c won't know to create a new GtkStyle for
10804         it.
10805         (gtk_widget_modify_color_component): call
10806         gtk_widget_modify_style() so the rc style will get copied.
10807         (gtk_widget_modify_font): ditto
10808
10809         * gtk/gtkrc.c: make a couple variables static
10810
10811         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
10812         help button by default, since it does nothing
10813
10814         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
10815         around with UI
10816
10817         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
10818         so we can have tooltips
10819
10820         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
10821         can have tooltips
10822
10823         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
10824         GDK_ENABLE_BROKEN, because its memory behavior is completely
10825         hosed.
10826
10827         * gtk/gtknotebook.c: remove key press handler, replace with
10828         binding set, add numeric keypad support
10829
10830         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
10831
10832         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
10833
10834         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
10835         addition to plain Delete
10836
10837         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
10838         GDK_KP_Enter in addition to GDK_Return
10839
10840         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
10841         activate on entry instead of key press
10842         (gtk_font_selection_on_clist_key_press): get
10843         rid of this signal handler, not needed with new font sel.
10844
10845         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
10846         no-longer-needed emit_stop_by_name(), just return TRUE
10847
10848         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
10849         cruft, this widget is no longer focusable.
10850
10851         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
10852         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
10853         move_slider action signal, add binding set for vscale/hscale, in
10854         the process support numeric keypad
10855
10856         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
10857         make GDK_Return and GDK_KP_Enter activate the entry via 
10858         binding set, instead of hardcoded.
10859
10860 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
10861
10862         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
10863         code.  Some documentation added.
10864
10865 2001-04-27  Havoc Pennington  <hp@redhat.com>
10866
10867         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
10868
10869         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
10870
10871         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
10872         line/para separators
10873         (gtk_entry_create_layout): set single paragraph mode on the layout
10874
10875         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
10876         spacing between the image and label; instead, inside a button box 
10877         the button will get extra space that will go there, but if people 
10878         configure button box for 0 chubbiness, then there's no spacing.
10879
10880         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
10881         and min/max size style properties, so people can tune their
10882         chubbiness.
10883
10884         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
10885         functions
10886
10887         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
10888         space_style, and button_relief into style properties, remove
10889         functions for setting them
10890         
10891         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
10892         it back down
10893
10894         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
10895         types from gtk_widget_style_get
10896
10897         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
10898         with a style property.
10899
10900         * gdk/x11/gdkevents-x11.c: namespace the settings
10901
10902         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
10903
10904         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
10905         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
10906         be used. Also, translate doc strings for settings. Also, namespace
10907         the double-click-time property. Also, remove bell properties crap.
10908
10909 2001-04-27  Sven Neumann  <sven@gimp.org>
10910
10911         * Makefile.am: before creating links, check if pkg-config files
10912         exist for the default target. Otherwise link to the pkg-config files
10913         that got installed with this build.
10914
10915 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
10916
10917         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
10918         dragging code.  Revealed some (potential) GdkWindow bugs.
10919
10920         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
10921         _gdk_window_init_position to the end of reparent to fix the case
10922         of reparenting when new_x != old_x and new_y != old_y.
10923
10924 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
10925
10926         * gtk/gtkentry.c (strstr_len): Fix optimization that
10927         was correct for the use here, but completely incorrect
10928         in general.
10929
10930 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
10931
10932         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
10933         until patch adding gtk_window_set_size() is recommitted. 
10934
10935         * **Makefile.am configure.in gdk/x11/gdkim-11.c
10936           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
10937           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
10938           (#10784)
10939
10940 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
10941
10942         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
10943         window == NULL in a number of cases.
10944
10945         * tests/testdnd.c: Set module path for gdk-pixbuf.
10946
10947 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
10948
10949         * gtk/Makefile.am xembed.h: File containing #defines
10950         for XEMBED protocol.
10951
10952         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
10953
10954         - Change protocol from old plug/socket specific protocol
10955           to XEMBED draft
10956         - Various fixes to work with GTK+-2.0
10957
10958         Still quite a bit of work to do here to handle initiation
10959         from the socket side (as specified by XEMBED), to handle
10960         the more advanced features of XEMBED, and to figure out
10961         a good way to handle same-app embedding with less overhead
10962         than using full XEMBED.
10963
10964 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
10965
10966         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
10967         track of whether the toplevel has the focus; only send
10968         focus-in events to the focus widget when the window
10969         actually has the focus.
10970
10971 2001-04-25  Havoc Pennington  <hp@pobox.com>
10972
10973         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
10974         were still in the header
10975
10976 2001-04-24  Alexander Larsson  <alexl@redhat.com>
10977
10978         * gtk/gtkclist.[ch]:
10979         * gtk/gtkctree.c:
10980         When there is a row highlighted for D'n'D it must alse
10981         be painted hightlighted on exposes. Otherwise exposes from
10982         the icon being dragged will mess up the hightlight.
10983
10984         * gtk/gtkfontsel.c:
10985         Don't recenter selected font when exposing the font family
10986         clist. This means you can now actually scroll the font family
10987         list.
10988
10989         * gtk/gtknotebook.c:
10990         Fix focus movement on scrolling tabs that are placed on the left
10991         and right.
10992
10993 2001-04-21  Havoc Pennington  <hp@pobox.com>
10994
10995         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
10996         empty/invisible lines.
10997
10998         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
10999         (gtk_text_iter_set_visible_line_index): new functions to set
11000         indexes excluding invisible text
11001
11002         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
11003         index
11004
11005         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
11006         (gtk_text_iter_get_visible_line_offset): new functions to 
11007         get indexes excluding invisible text
11008
11009         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
11010         bunch of extra padding that served no purpose
11011
11012         * gtk/gtkdialog.c: Make all the spacings configurable via style
11013         properties, for chubbiness configuration in themes
11014
11015         * tests/testtext.c: fix path to the immodules.
11016         
11017 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
11018
11019         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
11020         got munched by #endif.
11021
11022         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
11023
11024         * gtk/gtktreeview.c: Refactored code to clean up a number of
11025         events.
11026
11027         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
11028         values to make consistent with other functions.  Spotted by Jeff
11029         Franks <jcf@tpg.com.au>.
11030
11031         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
11032         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
11033
11034 2001-04-23  Sven Neumann  <sven@gimp.org>
11035
11036         * gtk/Makefile.am
11037         * gtk/gtkplug.c
11038         * gtk/gtksocket.c: on request of Owen, reverted my last change 
11039         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
11040
11041 2001-04-23  Sven Neumann  <sven@gimp.org>
11042
11043         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
11044         compile for non-X11 targets again
11045
11046 2001-04-20  Alexander Larsson  <alexl@redhat.com>
11047
11048         * gtk/gtkcolorsel.[ch]:
11049         API Change. Take GdkColor arguments instead of gdouble *.
11050         Leave the old gtk_color_selection_set_color for compatibility,
11051         but marked deprecated.
11052         Do correct rounding when converting RGB <-> HSV.
11053         
11054         * gtk/gtkcolorseldialog.c:
11055         * tests/testgtk.c:
11056         Use new GtkColorSelection API.
11057
11058         * gtk/gtkhsv.c:
11059         Fix problem selecting colors in triangle when Hue is 330.
11060         Fix some black dots around the HSB triangle.
11061         
11062         * gtk/gtkfilesel.c:
11063         return FALSE from the focus_in_event handler to fix focus problems.
11064
11065 2001-04-18  Havoc Pennington  <hp@redhat.com>
11066
11067         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
11068         set, so keybindings are configurable    
11069         (gtk_window_activate_default): Change to activate the focus widget
11070         instead if there's a focus widget, to be consistent with the
11071         behavior that previously existed in key_press_event
11072
11073 2001-04-18  Havoc Pennington  <hp@redhat.com>
11074
11075         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
11076
11077 2001-04-18  Havoc Pennington  <hp@redhat.com>
11078
11079         Close bug #50615:
11080         
11081         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
11082         the layout
11083
11084         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
11085
11086         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
11087
11088         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
11089         
11090         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
11091         to blue for base, in addition to bg
11092         
11093 2001-04-18  Havoc Pennington  <hp@redhat.com>
11094
11095         * tests/testgtk.c (create_image): allow shrinking the image window
11096         to test that we clip to allocation.
11097
11098         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
11099         #9845
11100
11101         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
11102
11103 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
11104
11105         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
11106         mode on shm segments to 0600. We'll see who complains.
11107
11108         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
11109         _gdk_windowing_window_destroy() AFTER recursing through
11110         children.
11111
11112         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
11113         testsocket_child on X.
11114
11115         * tests/testsocket[_child].c: Fix uses of
11116         gtk_window_get_default_accel_group().
11117
11118         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
11119
11120         * gdk/gdkimage.c: (gdk_image_get):
11121         Deal with the possibility that XGetImage() might return NULL.
11122         Allocate the GdkImagePrivate structure only after XGetImage()
11123         succeeds in order not to dereference a NULL ximage pointer.  This
11124         prevents a core dump when XGetImage() fails - which is unlikely,
11125         but can happen due to race conditions accessing the geometries of
11126         drawables.  An x error will still be triggered, but the gdk image
11127         wrapper at least wont seg fault.
11128         
11129 2001-04-18  Havoc Pennington  <hp@redhat.com>
11130
11131         * gtk/gtkimage.c: fix to properly queue resizes when the image is
11132         set
11133
11134         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
11135         if the insertion point isn't editable
11136
11137         * demos/gtk-demo/images.c: Added a GtkImage demo
11138
11139         * demos/gtk-demo/drawingarea.c: drawing area demo
11140         
11141         * demos/gtk-demo/menus.c (create_menu): cleanups
11142
11143 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
11144
11145         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
11146           gdk/x11/gdkevents-x11.c: Introduce an extra child
11147         of toplevel windows that serves to hold the focus to
11148         avoid events being delivered to embedded windows.
11149
11150         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
11151         some extra variables to clean up code and reduce the
11152         number of casts.
11153
11154         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
11155         guint for 1 bit bit fields, not gboolean.
11156
11157 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
11158
11159         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
11160         not TRUE. (Fixes #52925)
11161
11162 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
11163
11164         * Released 1.3.4
11165
11166         * NEWS: Updated
11167
11168         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
11169         use GTK_TYPE_ENUM.
11170
11171 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
11172
11173         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
11174
11175         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
11176         names to compatibility #defines so docs work.
11177
11178         * gtk/gtkenums.h: Remove GtkMenuFactoryType
11179
11180         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
11181
11182         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
11183
11184         * tests/testgtkrc: No magenta cursors, please.
11185
11186         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
11187
11188         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
11189         
11190 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
11191
11192         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
11193         grabs, since they are no longer necessary.
11194
11195         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
11196         by signal_connect() and call gtk_button_pressed() rather
11197         than signal_connect_after().
11198
11199         * tests/testgtk.c: Restore radio menu items to combos 
11200         since they'll look OK with Raleigh, and it is easier
11201         than finishing the process of removing them that was
11202         started earlier.
11203
11204 2001-04-16  Hans Breuer  <hans@breuer.org>
11205
11206         * gdk/gdk.def :
11207         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
11208
11209         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
11210         we are interested in the functions return value not the function address
11211         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
11212
11213         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
11214
11215 2001-04-14  Hans Breuer  <hans@breuer.org>
11216
11217         * gdk/gdk.def :
11218         * gdk/makefile.msc : updated
11219
11220         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
11221         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
11222         (the testgtk::text backgound pixmap is drawn again)
11223         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
11224         Win32 Pango change
11225         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
11226
11227         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
11228         Not sure if the returned settings have the right unit, because I couldn't
11229         find any docs for the X version ...
11230
11231         * gtk/gtk.def :
11232         * gtk/makefile.msc.in : updated
11233
11234 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
11235
11236         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
11237         wording problems. (Compared to version from Johannes Stezenbach to
11238         check correctness.)
11239
11240 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
11241
11242         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
11243         this to compile.
11244
11245 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
11246
11247         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
11248         not pixbufpos.
11249
11250         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
11251
11252         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
11253         are unsigned insts, therefore use g_value_set_uint.
11254         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
11255
11256 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
11257
11258         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
11259
11260         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
11261         GTK_TYPE_STRING.
11262
11263         * gtk/gtktreeview.c: New functions to allow initial column
11264         dragging work.
11265
11266         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
11267
11268         * tests/testtreefocus.c: give dave some love.
11269
11270         * tests/testtreesort.c: Modify test to check really long samples.
11271
11272 2001-04-11  Alexander Larsson  <alexl@redhat.com>
11273
11274         * gtk-2.0.m4: Pass pkg-config options
11275         before the other args so it works even if
11276         POSIXLY_CORRECT is set.
11277
11278 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
11279
11280         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
11281         0, interface 0).
11282
11283 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
11284
11285         * gtk/gtkcalendar.c (gtk_calendar_button_press):
11286         check for action_func != NULL
11287
11288 2001-04-04  Sven Neumann  <sven@gimp.org>
11289
11290         * tests/testgtk.c (test_init): corrected path to gtk.immodules
11291
11292 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
11293
11294         * Released Gtk+-1.3.3.
11295
11296 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
11297
11298         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
11299
11300 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
11301
11302         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
11303         files to/from source dir. (if we don't stay in builddir, we
11304         can't reach make-inline-pixbuf.
11305
11306         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
11307         deps.
11308
11309         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
11310         ages 0).
11311
11312 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
11313
11314         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
11315         moved to the GtkTreeSortable interface.
11316
11317         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
11318         Make more efficient (fixes #50262).
11319
11320 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
11321
11322         * NEWS: Updated.
11323
11324         * configure.in: Remove support for uninstalled glib.
11325
11326         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
11327         so as not to stop emission.
11328
11329         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
11330         is no longer supported.
11331
11332         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
11333         into tests, change build order to build modules before
11334         gtk/.
11335
11336         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
11337         to here.
11338
11339 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
11340
11341         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
11342         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
11343         GPatternSpec. this is actually unlikely to cause breakage in
11344         third-party apps since except for gle, pretty much ever caller
11345         passes NULL here.
11346
11347         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
11348
11349         * *.c: use g_pattern_*() API.
11350
11351         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
11352
11353         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
11354         directions aren't passed in.
11355
11356         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
11357         functionality to be usable from gtkstyle.c as well, give precedence
11358         for conversion to user-supplied parsers.
11359         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
11360
11361         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
11362         _gtk_settings_parse_convert() for rcporperty value conversion.
11363
11364 2001-04-03  Alexander Larsson  <alexl@redhat.com>
11365
11366         * gdk/linux-fb/gdkevents-fb.c:
11367         Add empty gdk_setting_get().
11368
11369 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
11370
11371         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
11372         variable names.
11373         
11374         * gtk/makeenums.pl: touch this so enum files get remade.
11375
11376 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
11377
11378         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
11379         work again when not sorted.
11380
11381         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
11382         and "expand_row" signal, closing bug 52578.
11383
11384         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
11385         support.
11386
11387         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
11388         support.
11389
11390 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
11391
11392         * gdk/gdkevents.h: Add GdkEventSetting event for notification
11393         of changes to system settings, gdk_setting_get() to retrieve
11394         a single system setting.
11395
11396         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
11397         to the draft XSETTINGS mechanism.
11398
11399         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
11400         XSETTINGS.
11401
11402         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
11403         of GDK settings changes to the GtkSettings object.
11404
11405         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
11406         double-click-timeout property to GDK.
11407
11408         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
11409         Define GDK boxed types here.
11410
11411         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
11412         gdk/gdkenumtypes.[ch] for enum definitions.
11413
11414         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
11415         * gtk/gtk-boxed.defs: Comment out GDK types
11416         * gtk/gtktypeutils.h: Remove GDK types
11417         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
11418
11419 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
11420
11421         * Applied patch from Ron Steinke to add signal accumulators
11422         so that signals with the convention 'TRUE return means
11423         handled' stop emission on a TRUE return.
11424
11425         * gtk/gtkmain.[ch]: Add private accumulator 
11426         _gtk_boolean_handled_accumulator, used throughout GTK+.
11427         
11428         * gtk/gtkspinbutton.c: Add accumulator for ::output.
11429
11430         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
11431         
11432         * gtk/gtkwidget.c: Add accumulators for event signals,
11433         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
11434         for ::mnemonic-activate.
11435
11436         * gtk/gtkwindow.c: Add accumulator for ::frame_event
11437
11438 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
11439
11440         * gtk/gtkwidget.c: Add missing include.
11441
11442 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
11443
11444         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
11445         marshaller.
11446
11447         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
11448         "changed" signal to "range_changed".
11449
11450         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
11451         removing a tree from one model would remove all trees from that
11452         model.
11453         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
11454         changed signal instead.
11455
11456 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
11457
11458         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
11459         chaining up to parent impl, since we have a INPUT_ONLY
11460         window.
11461
11462         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
11463         foreground color for the cursor.
11464
11465 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
11466
11467         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
11468         param spec when caching property values, since we unref it
11469         later when we free the style.
11470
11471         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
11472         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
11473
11474 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
11475
11476         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
11477         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
11478         stupidity.
11479
11480 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
11481
11482         [ First pass at adding style properties. Still needs some definite
11483         fine-tuning. ]
11484
11485         * gtk/gtkbutton.c: Add ::default_spacing style property.
11486          
11487         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
11488         ::indicator_spacing style properties.
11489
11490         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
11491         style properties.
11492
11493         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
11494         rather than a normal property.
11495
11496         * gtk/gtkwidget.c: Add an ::interior_focus style property to
11497         draw focus inside buttons, in the Windows/Java Metal/etc. style.
11498
11499         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
11500         Honor ::interior_focus.
11501         
11502         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
11503         TRUE.
11504
11505         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
11506         Add ::slider_width, ::trough_border, ::stepper_size,
11507         ::stepper_spacing style properties.
11508
11509         * gtk/gtkscale.[ch] Add ::slider-length style property.
11510
11511 2001-04-02 Alexander Larsson   <alexl@redhat.com>
11512
11513         * gdk/linux-fb/gdkwindow-fb.c:
11514         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
11515         warnings that were spewed on startup.
11516
11517         * gtk/gtkwindow-decorate.c:
11518         gtk_window_reposition -> _gtk_window_reposition
11519
11520 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
11521
11522         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
11523         Add boxed type for GtkRequistion. Use it for ::size-request.
11524
11525         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
11526         Add a new GtkBorder structure useful for geometry properties
11527         for widgets. Add corresponding GTK_TYPE_BORDER.
11528         
11529         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
11530         Support automatic parser selection like
11531         gtk_settings_install_property_parser().
11532
11533         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
11534         functionality for use by gtk_widget_class_install_style_property.
11535         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
11536
11537 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
11538
11539         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
11540         g_param_spec_unichar(). 
11541
11542 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
11543
11544         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
11545         _NET window managers.
11546
11547         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
11548
11549 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
11550
11551         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
11552         bad needs to be nuked, not just deprecated.
11553
11554         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
11555         gtk_widget_popup().
11556
11557         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
11558         
11559         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
11560         widget.
11561         
11562         * docs/Changes-2.0.txt: updates.
11563         
11564 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
11565
11566         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
11567         for (i = 0; i < 100; i ++)
11568           g_print ("I will confirm it compile before committing\n");
11569
11570 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
11571
11572         * gtk/gtktreestore.c: Initial work on implementing the
11573         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
11574
11575 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
11576
11577         * gtk/gtkwidget.c: fixed a bunch of notifications, added
11578         reference counts around emissions where the widget is used afterwards.
11579         added freeze/thaws around multiple properties being notified.
11580         (_gtk_widget_get_aux_info): cleanups.
11581         
11582         * gtk/gtksettings.c (gtk_settings_install_property): provide
11583         default parsing functions for gdkcolor, enums and flags.
11584
11585         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
11586         applied by owen.
11587         backed out gtk_window_get_location(), gtk_window_set_location(),
11588         gtk_window_get_size() and gtk_window_set_size(), these
11589         have to be sorted out wrg x/y/width/height/default_with/default_height
11590         properties.
11591         kept a flag in GtkWindowGeometryInfo to handle user
11592         resetting default sizes.
11593         cleaned up ZVT comments.
11594         bunch of assorted bug fixes, notification fixes.
11595         (_gtk_window_reposition): make this a really internal function.
11596         
11597         * gtk/testgtk.c: fixups.
11598         
11599 2001-03-31  Hans Breuer  <hans@breuer.org>
11600
11601         * config.h.win32.in : disable USE_MMX for msvc build cause
11602         the assembler doesn't fit and is out of my scope. Disable
11603         USE_GMODULE for msvc build as wel. The right way to share
11604         binaries on win32 would be to use libtiff.dll etc. To reduce
11605         installation hassles IMO it's better to include all fileformats
11606         builtin to gdk-pixbuf
11607
11608         * gdk-pixbuf/makefile.msc : new file
11609
11610         * gdk/gdk.def : updated
11611
11612         * gdk/win32/gdkevents-win32.c : don't erase the background if
11613         .no_bg is set. It improves the scrolling (e.g. of testgtk main
11614         buttons
11615         * gdk/win32/gdkgeometry-win32.c : added comment about the above
11616
11617         * gdk/win32/gdkwindow-win32.c : added three new functions like
11618         the X version. Only one is implemented, because the other two
11619         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
11620         be default behaviour on win32 anyway ...
11621
11622         * gtk/gtk.def : updated
11623
11624         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
11625         from where it was built and add an additional rule to automagically
11626         build gtkmarshal.[hc]
11627
11628         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
11629         before array access for the current entry isn't finished
11630
11631         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
11632         use g_return_val_if_fail
11633
11634         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
11635         for the static array, but let the compiler calculate it. It
11636         makes me wonder if gcc isn't capable to catch bugs like this ...
11637
11638 2001-03-31  James Henstridge  <james@daa.com.au>
11639
11640         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
11641         constant "-1" in the aux info structure.
11642
11643 2001-03-30  Alexander Larsson  <alexl@redhat.com>
11644
11645         * gtk/gtkbutton.c (gtk_button_get_property):
11646         * gtk/gtklabel.c:
11647         Remove leaks.
11648         
11649         * gtk/gtkcontainer.c:
11650         * gtk/gtkhscale.c:
11651         * gtk/gtkhscrollbar.c:
11652         * gtk/gtklayout.c:
11653         * gtk/gtkmisc.c:
11654         * gtk/gtkprogress.c:
11655         * gtk/gtkprogressbar.c:
11656         * gtk/gtkrange.c:
11657         * gtk/gtktable.c:
11658         * gtk/gtkviewport.c:
11659         * gtk/gtkvscale.c:
11660         * gtk/gtkvscrollbar.c:
11661         * gtk/gtkwidget.c:
11662         Property patches, based on patches from John Margaglione and Lee Mallabone.
11663
11664 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
11665
11666         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
11667         adjustment. Cleaned redundant preconditions (spin != NULL). Added
11668         inline API function docs.
11669         (gtk_spin_button_new_with_range): New convenience constructor.
11670         (gtk_spin_button_set_increments): New adjustment helper.
11671         (gtk_spin_button_set_range): New adjustment helper.
11672
11673         * gtk/testgtk.c : added test of the new convenince constructor and
11674         value_changed signals.
11675
11676 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
11677
11678         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
11679         listen to the reorder signal.
11680
11681 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
11682
11683         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
11684         to get the aux info structure fo the widget.
11685
11686         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
11687         above function.
11688
11689         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
11690
11691         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
11692         to get the size of the window manager frame, basically the same
11693         code that gdk_window_get_root_origin() had
11694         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
11695
11696         * gtk/gtkwindow.c (gtk_window_set_default_size): use
11697         gdk_window_resize() if the window is realized and resizeable
11698
11699         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
11700         typo so that setting gravity works
11701
11702         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
11703         allocation if auto_shrink is on, even if the default size
11704         has not changed.
11705
11706         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
11707         g_return_if_fail
11708
11709 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
11710
11711         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
11712         reordering/sorting work.  Now pretty much works.
11713
11714         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
11715         reorder mostly work.  Still need to get the parity correct.
11716
11717         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
11718         signal, so I can listen for the sort_column_changed signal so I
11719         can change my "sort_indicator" property.  Cool.
11720
11721 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
11722
11723         [ Patch from Havoc Pennington, hp@redhat.com ]
11724
11725         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
11726         Add functions gdk_window_begin_resize_drag/begin_move_drag
11727         to start resizing or moving a toplevel window. This
11728         is done either using the _NET_WM_MOVERESIZE protocol,
11729         or, if that isn't present, by emulation.
11730
11731         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
11732         to export the above to GTK+-land.
11733
11734         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
11735         
11736         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
11737         Move this function into gdkwindow, since we need it
11738         when implementing fallback resizing.
11739
11740         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
11741         Fix typo when setting gravity.
11742
11743         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
11744         Add an optional (but on by default) resize grip for resizing 
11745         the parent window.
11746
11747 01-03-29  Alexander Larsson  <alexl@redhat.com>
11748
11749         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
11750         Don't return TRUE from the event handler, that blocks all
11751         event signals on the tooltip widget. Now you can press buttons
11752         in toolbars again.
11753
11754 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
11755
11756         * gtk/testtext.c (create_buffer): Add missing NULL on
11757         valist.
11758
11759         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
11760         c-n-p problem with INCONSISTENT property.
11761
11762         [ Patch from Havoc Pennington  <hp@redhat.com> ]
11763
11764         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
11765         hook.
11766
11767         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
11768         signal as a hook for extending the default popup menu
11769
11770         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
11771         use radio menu items for the input method menuitems
11772
11773         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
11774         inserted unicode from Ctrl-Shift-hex input method
11775
11776         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
11777         validatation here, already done at GtkTextBuffer level.
11778
11779         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
11780         popup_menu run action signal and Shift+F10 and Menu keybindings.
11781
11782         * gtk/gtkentry.c: implement a default handler for popup_menu
11783
11784         * gtk/gtktextview.c: implement a default handler for popup_menu
11785
11786         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
11787         from a key event
11788         
11789         * gtk/gtklabel.c: remove "trailer" cruft
11790
11791 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
11792
11793         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
11794         handle reordering of trees.  Seems to mostly work w/ the exception
11795         of the parity flag.
11796
11797         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
11798         signal.
11799
11800 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
11801
11802         * gtk/gtkwidget.h: c++ fixes.
11803
11804 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
11805
11806         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
11807         memory.
11808
11809 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
11810
11811         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
11812         Nils Barth fixing event return values. (#51041)
11813
11814         * gtk/gtkwidget.c: Fix some return values for default
11815         functions.
11816
11817         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
11818         return values for trough_keys functions.
11819
11820         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
11821         value for add_accelerator (shoudl have been a void
11822         return.)
11823
11824         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
11825         Fix return type of EVENT.
11826
11827         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
11828         signal return a boolean.
11829
11830 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
11831
11832         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
11833         reordered signal.
11834
11835         * tests/testtreesort.c (main): fix spelling.
11836
11837 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
11838
11839         * gtk/gtkliststore.c: More work on implementing sortable
11840         interface.
11841
11842 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
11843
11844         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
11845         reference the widgets in the resulting list. (#11821)
11846         This makes this consistent with gtk_container_children.
11847
11848         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
11849         uses of gtk_window_list_toplevels.
11850
11851 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
11852
11853         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
11854         a virtual function to set whether the IM context should use 
11855         the preedit string. (#51922)
11856         
11857 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
11858
11859         * gdk/gdkpango.h: Remove stale FIXME comment.
11860
11861 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
11862
11863         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
11864         Fixed bug that returned NULL if a filename was selected.
11865
11866 2001-03-24  Havoc Pennington  <hp@pobox.com>
11867
11868         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
11869         to contain the word "theme"
11870
11871 2001-03-24  Havoc Pennington  <hp@pobox.com>
11872
11873         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
11874         slower but finer-grained
11875         (gtk_hsv_focus): get initial focus on the ring or triangle 
11876         according to tab direction
11877
11878         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
11879
11880 2001-03-23  Havoc Pennington  <hp@pobox.com>
11881
11882         * gtk/gtkhsv.c: make this somewhat key-navigable
11883
11884         * gtk/gtkfontsel.c: mnemonics
11885
11886         * gtk/gtkgamma.c: mnemonics
11887
11888         * gtk/gtkcolorsel.c: add mnemonics to labels
11889
11890 2001-03-22  Havoc Pennington  <hp@pobox.com>
11891
11892         Applied big patch from Seth Lytle to fix event handler return
11893         values, slightly modified.
11894
11895         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
11896         handled.
11897         (gtk_calendar_key_press): return TRUE for GDK_space triggers
11898         select_day
11899
11900         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
11901         (gtk_clist_button_release): return TRUE if handled
11902
11903         * gtk/gtkcolorsel.c (mouse_release):
11904         (palette_activate): 
11905         (palette_press): 
11906         (palette_new): 
11907         (mouse_press): 
11908         (get_screen_color): 
11909         fixed return type (void to gboolean), return TRUE,
11910         added GTK_SIGNAL_FUNC cast
11911
11912         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
11913         (void to gboolean), and return TRUE
11914         (gtk_combo_button_release): changed return value to TRUE after
11915         gtk_grab_add on combo->popwin
11916
11917         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
11918         collapse or expand
11919
11920         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
11921         button/motion
11922
11923         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
11924         press/release and motion that trigger act
11925
11926         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
11927
11928         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
11929         for GDK_Return
11930         
11931         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
11932         (gtk_list_button_release): return TRUE if selection
11933
11934         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
11935         press
11936
11937         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
11938         (gtk_menu_shell_button_release): chain parent_menu_shell retval
11939
11940         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
11941         nothing triggered
11942         (gtk_notebook_button_release): return TRUE if we do anything
11943
11944         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
11945         (gtk_spin_button_button_release): return TRUE or chained retval
11946
11947         * gtk/gtktext.c (gtk_text_button_press): 
11948         (gtk_text_button_release): return TRUE
11949         (gtk_text_key_press): remove redundant retval code
11950         
11951         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
11952         and sensitive
11953         (gtk_tree_item_subtree_button_click): changed type to gint, and return
11954         TRUE if sensitive
11955
11956         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
11957         return TRUE
11958
11959 2001-03-23  Havoc Pennington  <hp@redhat.com>
11960
11961         * gtk/testgtk.c: fix warnings
11962
11963         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
11964
11965         * gtk/gtktextview.c: fix warnings
11966
11967         * gtk/gtktext.c (find_cursor_at_line): fix warning
11968
11969         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
11970
11971         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
11972         of this function
11973
11974         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
11975         fix warning
11976
11977         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
11978
11979         * gtk/gtkfontsel.c: fix warning
11980
11981         * gtk/gtkcolorsel.c: fix warnings
11982
11983 2001-03-23  Havoc Pennington  <hp@redhat.com>
11984
11985         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
11986
11987         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
11988
11989         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
11990         and deprecated gtk_check_menu_item_set_show_toggle().
11991         
11992         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
11993
11994         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
11995
11996         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
11997
11998 2001-03-23  Havoc Pennington  <hp@redhat.com>
11999
12000         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
12001         some docs
12002
12003 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
12004
12005         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
12006         this.
12007
12008         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
12009         set_cell to set_value
12010
12011         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
12012         set_cell to set_value
12013
12014 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
12015
12016         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12017         fix braino.
12018         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
12019         support.
12020
12021         * gtk/gtktreeview.c: Addition of initial sortable support.
12022
12023         * gtk/gtktreestore.c: Addition of initial sortable support.
12024
12025         * gtk/gtkliststore.c: Addition of initial sortable support.
12026
12027         * gtk/gtkmarshal.list: yet another marshaller.
12028
12029         * gtk/gtktreedatallist.[ch]: shared code between the store models
12030         for handling sorting headers.
12031
12032 2001-03-22  Havoc Pennington  <hp@redhat.com>
12033
12034         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
12035         (gtk_container_unset_focus_chain): Add ability to override the 
12036         focus chain for a container explicitly
12037
12038 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
12039
12040         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
12041         added PROP_MNEMONIC_WIDGET.
12042
12043         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
12044         (gtk_window_remove_mnemonic): 
12045         (gtk_window_add_mnemonic): fixed assertions.
12046         (gtk_window_activate_mnemonic): constrain modifier checks to those
12047         permitted by gtk_accelerator_get_default_mod_mask().
12048         got rid of gtk_window_get_default_accel_group().
12049
12050         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
12051         activatable widgets either by focussing or a warning.
12052         added a signal accumulator to ::activate_mnemonic which stops the
12053         emission once a handler returned TRUE.
12054
12055 2001-03-22  Havoc Pennington  <hp@pobox.com>
12056
12057         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
12058         the stock item label
12059
12060         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
12061
12062         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
12063
12064         * demos/gtk-demo/*.c: Add mnemonics all over the place
12065
12066         * gtk/gtklabel.h: mark parse_uline deprecated
12067
12068 2001-03-21  Alexander Larsson  <alexl@redhat.com>
12069
12070         * gtk/gtkitemfactory.[ch]:
12071         Add support for stock and normal imagemenuitems.
12072         
12073         * gtk/testgtk.c:
12074         Add some tests for mnemonics, stock toolbars, stock
12075         and image menuitems in itemfactory and gdk_window_scroll.
12076
12077 2001-03-21  Alexander Larsson  <alexl@redhat.com>
12078
12079         * gtk/gtkbutton.[ch]:
12080         * gtk/gtkdialog.c:
12081         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
12082         removed accel_group argument. Renamed gtk_button_new_accel() to
12083         gtk_button_new_with_mnemonic() and removed accel_group argument.
12084
12085         * gtk/gtkcheckbutton.[ch]:
12086         New function gtk_check_button_new_with_mnemonic().
12087
12088         * gtk/gtkentry.c:
12089         Override activate_mnemonic and just grab focus.
12090
12091         * gtk/gtkitemfactory.c:
12092         Don't add menu uline accel group, instead use mnemonics support.
12093
12094         * gtk/gtklabel.[ch]:
12095         New support for mnemonics.
12096
12097         * gtk/gtkmarshal.list:
12098         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
12099
12100         * gtk/gtkmenu.[c]:
12101         * gtkmenushell.c:
12102         Use mnemonics instead of accel groups for uline
12103         support in menu items.
12104         Removed gtk_menu_get_uline_accel_group() and
12105         gtk_menu_ensure_uline_accel_group().
12106
12107         * gtk/gtkmenuitem.c:
12108         Override activate_mnemonic to handle switching between
12109         menu items if there are collisions.
12110         
12111         * gtk/gtknotebook.c:
12112         Connect to activate_mnemonic on the tab_label, so that
12113         activating it switches to that notebook page.
12114
12115         * gtk/gtkwidget.[ch]:
12116         Add activate_mnemonic signal. New function
12117         gtk_widget_activate_mnemonic() to emit it.
12118         Default implementation does activate/grab_focus.
12119
12120         * gtk/gtkwindow.[ch]:
12121         Add support for mnemonics in windows.
12122         New functions:
12123         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
12124         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
12125
12126         * gtk/testgtk.c:
12127         Update to function name changes.
12128         
12129 2001-03-21  Alexander Larsson  <alexl@redhat.com>
12130
12131         * gtk/gtkimagemenuitem.[c]:
12132         Add gtk_image_menu_item_new_from_stock()
12133
12134 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
12135
12136         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12137         Fix buglet in meeting.
12138
12139 2001-03-19  Havoc Pennington  <hp@redhat.com>
12140
12141         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
12142         add a bunch of accessor functions. This is because we have
12143         reasonable expectations of extending what fields it contains in
12144         the future.
12145
12146         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
12147         changes
12148
12149         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
12150         GtkIconSource   
12151
12152 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
12153
12154         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
12155         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
12156
12157         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
12158           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
12159           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
12160           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
12161         Change float to double everywhere with the exception of 0<->1.0 alignment
12162         and GtkCurve.
12163
12164 2001-03-19  Tor Lillqvist  <tml@iki.fi>
12165
12166         * gdk/win32/gdkdrawable-win32.c
12167         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
12168         output.
12169
12170         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
12171         gdkwin32.h.
12172
12173 2001-03-18  Tor Lillqvist  <tml@iki.fi>
12174
12175         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
12176         print_event_state, print_event): Use preprocessor macro to make
12177         code more compact. Print also GDK_WINDOW_STATE events.
12178         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
12179         
12180         * gtk/gtk.def
12181         * gtk/makefile.mingw.in: Update.
12182
12183         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
12184         to catch also Cygwin.
12185
12186 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
12187
12188         * gtk/gtkspinbutton.[hc]: added rc-style argument
12189         GtkSpinButton::shadow_type.
12190         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
12191         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
12192         rc-style settings.
12193
12194         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
12195
12196         * gtk/gtkwidget.c: quark cleanups.
12197
12198         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
12199         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
12200         to create_rc_style() (we don't do cloning in standard OO sense).
12201         added per rc style properties.
12202         
12203         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
12204         property values and for caching those. some cleanups.
12205         
12206         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
12207         
12208         * gtk/gtksettings.[hc]: new file for global rc-file properties
12209         (at least currently, should get extended to support X properties
12210         and other communication mechanisms).
12211         
12212         * gtk/gtkwidget.[hc]: added style property support:
12213         (gtk_widget_class_install_style_property_parser): install style
12214         property pspec with parser function for rc-file values other
12215         than LONG, DOUBLE or STRING.
12216         (gtk_widget_class_install_style_property): same as above without
12217         parser (parsers are going to be needed quite infrequently).
12218         (gtk_widget_style_get_property): retrive style property value.
12219         (gtk_widget_style_get_valist): same as above with varargs support,
12220         has NOCOPY semantics.
12221         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
12222
12223 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
12224
12225         * demos/gtk-demo/main.c (row_activated_cb): modified to use
12226         "row_activated" signal.
12227
12228         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
12229         stupidity.  Lets actually pass in the row with this signal...
12230
12231 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
12232
12233         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
12234
12235         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
12236
12237         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
12238         everything into the ::destroy function, and freed a lot more.
12239
12240 2001-03-16  Havoc Pennington  <hp@redhat.com>
12241
12242         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
12243         instead of gint16, to avoid overflow issues, since sizes > 16-bit
12244         are now allowed.
12245
12246 2001-03-16  Havoc Pennington  <hp@redhat.com>
12247
12248         * Applied patch from Nils Barth (bug # 51041) to 
12249         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
12250         in various places.
12251
12252 2001-03-15  Havoc Pennington  <hp@redhat.com>
12253         
12254         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
12255         for properties to set on the tag.
12256
12257         * gtk/testtext.c: fixups to reflect create_tag change
12258         
12259         * gtk/gtktexttag.c (gtk_text_tag_set_property):
12260         background/foreground stipple are objects, not boxed.
12261
12262         * demos/gtk-demo/textview.c: intellihancing
12263
12264 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
12265
12266         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
12267         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
12268
12269 2001-03-16  Alexander Larsson  <alexl@redhat.com>
12270
12271         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
12272         Fix sign error with queued region translations.
12273
12274 2001-03-15  HideToshi Tajima  <tajima@happy>
12275
12276         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
12277         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
12278         * gtk/gtkentry.c (update_im_cursor_location): 
12279         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
12280         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
12281         set_cursor_pos to set_cursor_location in GtkInputContext class
12282
12283 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
12284
12285         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
12286         the location of the cell relative to its area.
12287         * gtk/gtkcell*: modified for above change
12288         * gtk/gtktreeview.c: modified for above change.
12289
12290 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
12291
12292         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
12293          (gtk_tree_view_finalize): actually unref the model.  Thanks to
12294         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
12295
12296 2001-03-14  Havoc Pennington  <hp@redhat.com>
12297
12298         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
12299         
12300         * gtk/gtk.h: remove gtkdata.h
12301
12302         * gtk/Makefile.am: remove gtkdata
12303         
12304         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
12305         not "disconnect" on the adjustments.
12306         
12307         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
12308         GtkData
12309
12310         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
12311         not GtkData
12312
12313         * configure.in: handle case where X render exists, but Pango lacks
12314         Xft support.
12315
12316 2001-03-15 Alexander Larsson  <alexl@redhat.com>
12317
12318         * gtk/gtktoolbar.[ch]:
12319         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
12320         to add stock items to toolbars.
12321
12322         * gtk/Makefile.am:
12323         Remove ../gdk/gdkim.h from gdk_headers.
12324
12325 2001-03-15  Sven Neumann  <sven@gimp.org>
12326
12327         * gdk/gdkim.h: removed
12328         
12329         * gdk/gdkprivate.h
12330         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
12331
12332 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
12333
12334         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
12335         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
12336         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
12337         set_cursor_pos() virtual method
12338
12339         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
12340         (gtk_im_context_xim_set_cursor_pos): add implementation for
12341         set_cursor_pos() method
12342
12343         * gtk/gtkentry.c (recompute_idle_func): set current cursor
12344         position to input methods
12345
12346 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
12347
12348         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
12349         code a lot.
12350
12351         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
12352         g_mem_chunk.
12353         (_gtk_tree_data_list_alloc): use g_mem_chunk.
12354         (_gtk_tree_data_list_node_to_value): Fix to switch on
12355         G_TYPE_FUNDAMENTAL.
12356         (_gtk_tree_data_list_value_to_node): Fix to switch on
12357         G_TYPE_FUNDAMENTAL.
12358         (_gtk_tree_data_list_node_copy): Fix to switch on
12359         G_TYPE_FUNDAMENTAL.
12360
12361 2001-03-12  Havoc Pennington  <hp@redhat.com>
12362
12363         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
12364         to convert to new property API. Also, change default_width and
12365         default_height get_property to return 0 as the flag value for
12366         "unset"; -1 is not a valid value for these fields.
12367
12368 2001-03-12  Havoc Pennington  <hp@redhat.com>
12369
12370         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
12371         enum with registration for icon sizes, instead of strings.
12372
12373         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
12374         gtkwidget.c: Fix to reflect GtkIconSize
12375         
12376 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12377
12378         Make GtkFB compile and link.
12379         
12380         * gdk/linux-fb/gdkdrawable-fb2.c:
12381         window->mapped to GDK_WINDOW_IS_MAPPED(). 
12382         
12383         * gdk/linux-fb/gdkwindow-fb.c:
12384         window->mapped to GDK_WINDOW_IS_MAPPED(). 
12385         Added gdk_window_shape_combine_region.
12386         Added assorted placeholders for unimplemented new GdkWindow API calls.
12387
12388 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12389
12390         * gtk/gtkfilesel.c:
12391         Add more test when converting filenames from/to utf-8.
12392         Don't allow entering text in the filename entry which isn't allowed in
12393         a filename. Just beep instead.
12394
12395 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12396
12397         * gtk/gtkclist.c:
12398         Scroll using gdk_window_scroll(). Don't wait for exposes.
12399         Move the column headers in an order that makes them flash less.
12400
12401 2001-03-10  Hans Breuer  <hans@breuer.org>
12402
12403         * gdk/gdk.def : updated
12404
12405         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
12406         to offseting the clip_mask at the right place
12407
12408         * gdk/win32/gdkwindow-win32.c : don't create background brushes
12409         for all the gdkClasses, especially not for the input_only case.
12410         Otherwise flickering wont be avoidable, because we don't get
12411         WM_ERASEBKGND message for these windows.
12412
12413         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
12414         and fixed massive redraw problems apparently triggered by Alexanders 
12415         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
12416         but it seems to work quite well :-)
12417
12418         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
12419         prototype
12420
12421 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
12422
12423         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
12424         (gtk_list_store_set_cell): Fix a stupid typo.
12425
12426 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
12427
12428         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
12429         select_all not work if you're in SINGLE mode (it doesn't make that
12430         much sense, anyway.)
12431
12432         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
12433         handle types more sanely.
12434         (_gtk_tree_data_list_value_to_node): handle types more sanely.
12435         (_gtk_tree_data_list_node_copy): handle types more sanely.
12436
12437         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
12438         GValue better. Converts the type as well.
12439
12440         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
12441         GValue better. Converts the type as well.
12442
12443 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
12444
12445         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
12446         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
12447         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
12448         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
12449
12450         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
12451         gdk_im/gdk_ic.
12452
12453 2001-03-09  Hans Breuer  <hans@breuer.org>
12454
12455         * gdk/gdk.def : updated
12456
12457         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
12458         for their palette
12459
12460         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
12461         removing
12462
12463         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
12464         removing and implemented Havoc's GdkWindow state functions; 
12465         stick/unstick only as no-op, cause I don't know how to emulate 
12466         on win32 ...
12467
12468         * gtk/gtk.def : updated
12469
12470         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
12471
12472         * gtk/gtktypeutils.c : #include <string.h>
12473
12474         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
12475
12476 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
12477
12478         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
12479         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
12480         not a boxed.
12481
12482 2001-03-09  Alexander Larsson  <alexl@redhat.com>
12483
12484         * docs/Changes-2.0.txt:
12485         Document expose event->region change and that gtk_widget_event
12486         doesn't allow passing expose events.
12487
12488         * gdk/gdkevents.h:
12489         Add region to expose event.
12490         
12491         * gdk/gdkevents.c:
12492         Handle event->region in gdk_event_copy() and gdk_event_free().
12493
12494         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
12495         Generate expose_event->region when creating expose events.
12496
12497         * gdk/x11/gdkevents-x11.c:
12498         Generate expose events with regions when translating X events.
12499
12500         * gtk/gtkcontainer.[ch]:
12501         Default expose handler that propagates expose events to NO_WINDOW
12502         children. New function gtk_container_propagate_expose()
12503
12504         * gtk/gtkwidget.[ch]:
12505         Moved gtk_widget_event implementation to gtk_widget_event_internal.
12506         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
12507         expose events. New function gtk_widget_send_expose() to send expose
12508         events. New function gtk_widget_region_intersect() to calculate
12509         window/region intersections.
12510         
12511         * gtk/gtkmain.c (gtk_main_do_event):
12512         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
12513         Use gtk_widget_send_expose() to send expose events.
12514         
12515         * gtk/gtkbin.c:
12516         * gtk/gtkbox.c:
12517         * gtk/gtkfixed.c:
12518         * gtk/gtkimagemenuitem.c:
12519         * gtk/gtklist.c:
12520         * gtk/gtkpacker.c:
12521         * gtk/gtktable.c:
12522         * gtk/gtktree.c:
12523         Remove expose handler, using the default container implementation
12524         instead.
12525         
12526         * gtk/gtkbutton.c:
12527         * gtk/gtkcheckbutton.c:
12528         * gtk/gtkeventbox.c:
12529         * gtk/gtkfixed.c:
12530         * gtk/gtkhandlebox.c:
12531         * gtk/gtklayout.c:
12532         * gtk/gtklistitem.c:
12533         * gtk/gtkmenu.c:
12534         * gtk/gtkmenubar.c:
12535         * gtk/gtkmenuitem.c:
12536         * gtk/gtknotebook.c:
12537         * gtk/gtkoptionmenu.c:
12538         * gtk/gtkpaned.c:
12539         * gtk/gtkscrolledwindow.c:
12540         * gtk/gtktogglebutton.c:
12541         * gtk/gtktoolbar.c:
12542         * gtk/gtktreeitem.c:
12543         * gtk/gtkviewport.c:
12544         Chain expose handler to parent class handler. Use
12545         gtk_container_propagate_expose() to propagate exposes.
12546
12547         * gtk/gtkclist.c (check_exposures):
12548         * gtk/gtktext.c (process_exposes):
12549         Use gtk_widget_send_expose instead of gtk_widget_event.
12550
12551 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
12552
12553         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
12554
12555 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
12556
12557         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
12558         unref the nodes.   Fixes bug #50058.
12559
12560         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
12561         "::ref_iter" to "::ref_node".
12562         (gtk_tree_model_unref_node): change "::unref_iter" to
12563         "::unref_node". Fixes bug #50064.
12564
12565 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
12566
12567         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
12568         support for invisible cells.
12569          (gtk_tree_view_bin_expose): ditto
12570
12571 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
12572
12573         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
12574         on gobjects.
12575
12576         * tests/testtreefocus.c (main): New test file.
12577
12578         * tests/testtreeview.c: update to latest glib changes.
12579
12580         * tests/testtreecolumns.c: update to latest glib changes.
12581
12582 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
12583
12584         * gtk/testgtk.c: re-enabled event watcher emission hooks.
12585
12586 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
12587
12588         * *.c: added accumulator data argument to g_signal_newc()
12589         functions.
12590
12591         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
12592         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
12593         * gtk/treestoretest.c (make_window):
12594         s/g_signal_connect/g_signal_connectc/.
12595
12596         * gtk/gtktextbuffer.c: completed signal arg fixups,
12597         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
12598
12599 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
12600
12601         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
12602         G_CONST_RETURN.
12603
12604         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
12605         ::hierarchy-changed signal when a widget changes
12606         from anchored to unanchored or vice versa.
12607         (anchored means 
12608          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
12609         Use a private flag to keep track of this efficiently.
12610
12611 2001-03-07  Havoc Pennington  <hp@redhat.com>
12612
12613         * gtk/testgtk.c (create_spins): uglify so that size request gets
12614         tested.
12615
12616         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
12617         request on values for upper/lower, completes #6152
12618
12619 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
12620
12621         * Makefile.am: Remove gtk-config-2.0 again.
12622         (Grrrr, pkg-config. And stops make loops.)
12623
12624 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
12625
12626         * gtk/gtksignal.[hc]: removed old emission hook API.
12627         
12628         * docs/Changes-2.0.txt: fixed sections.
12629         
12630         * gtk/gtktextbuffer.c: signal arg fixups.
12631
12632 2001-03-07  Havoc Pennington  <hp@redhat.com>
12633
12634         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
12635
12636         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
12637         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
12638         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
12639         validation and the redraw which is higher priority than the
12640         validation.
12641
12642 2001-03-07  Havoc Pennington  <hp@redhat.com>
12643
12644         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
12645         (gtk_entry_set_property): remove trailer
12646
12647         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
12648         (gtk_entry_get_width_chars): new functions, to set size request to 
12649         a given number of characters
12650
12651         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
12652
12653         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
12654         (gtk_dialog_get_has_separator): new function
12655         (run_delete_handler): fix to not emit "response" signal
12656         because we already did in the delete event handler installed
12657         at dialog creation time.
12658         
12659         * gtk/gtkdialog.h: add a has_separator property,
12660         add GTK_DIALOG_NO_SEPARATOR flag
12661
12662 2001-03-07  Havoc Pennington  <hp@redhat.com>
12663
12664         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
12665         off decorations for a window.
12666
12667         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
12668         changes
12669
12670         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
12671         to get location of PangoLayout inside the label, closes #51198
12672
12673         * gtk/testgtk.c (create_bbox): fix up button box usage
12674
12675         * gtk/testcalendar.c (create_calendar): fix up button box usage
12676
12677         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
12678
12679         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
12680
12681         * gtk/gtkhbbox.h: deprecations
12682
12683         * gtk/gtkvbbox.h: deprecations
12684
12685         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
12686         emulate deprecated gtk_button_box_get_spacing
12687
12688         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
12689         the "set global default" functions
12690         (struct _GtkButtonBox): remove "spacing" field, use the one from 
12691         GtkBox base class
12692
12693         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
12694
12695         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
12696         render the icon, return the missing image icon.
12697
12698         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
12699         image icon if the load fails.   
12700
12701         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
12702         when no image is found; should be the Netscape "missing image"
12703         icon eventually but for now is a random image
12704
12705         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
12706         role for the session manager
12707
12708         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
12709
12710         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
12711         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
12712
12713         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
12714
12715 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
12716
12717         * gtk/*.c: marshaller fixes.
12718         
12719         * gtk/gtkmarshal.list: extreme cleanup.
12720
12721         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
12722         param spec for now.
12723
12724         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
12725         where appliable.
12726
12727         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
12728         special cased autogenerated boxed types from gtktypebuiltins_ids.c
12729         which are not reference counted:
12730         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
12731         PangoFontDescription, GtkTreeIter and GtkTreePath.
12732
12733 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
12734
12735         * gtk/gtktreeselection.h: 
12736         * gtk/gtktreemodel.c:
12737         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
12738         file should be included directly, and gobject/gmarshal.h
12739         as well as gtk/gtkmarshal.h even can't be included directly.
12740
12741         * Makefile.am: grr, install gtk-config-2.0.
12742
12743         * gtk/testgtk.c:
12744         * gtk/simple.c:
12745         * gtk/gtkmenu.c:
12746         * gtk/gtkitemfactory.c: use g_object_connect() instead of
12747         passing "*signal*::*" args to gtk_widget_set().
12748         
12749         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
12750         
12751         * gtk/*.c: removed trailer arg from property setters and getters.
12752         macro fixups.
12753
12754 2001-03-07  Alexander Larsson  <alexl@redhat.com>
12755
12756         * gtk/gtklabel.c (set_markup): Removed warning
12757
12758 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
12759
12760         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
12761         field to allow you to hide cell renderers.
12762
12763         * gtk/gtkcellrenderer.c: Add support for invisible cells.
12764
12765         * gtk/gtktreeview.c: Add support for invisible cells.
12766
12767 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
12768
12769         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
12770         Add "clicked" signal back to columns.
12771
12772         * ChangeLog: remove conflict markers.
12773
12774 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
12775
12776         * gtk/gtkbutton.c: Add animation of activation by, on 
12777         activate, pressing the button, and adding a timeout that 
12778         releases the button after 250ms or on key release and
12779         emits ::clicked. (#51501)
12780
12781         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
12782         action area, we connect to ::clicked instead of ::activate
12783         so the dialog stays up through the animation.
12784
12785 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
12786
12787         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
12788         check the ignore_enter flag for the menu shell that
12789         the item is actually a child of, not for attached
12790         submenus. (#51536)
12791
12792 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
12793
12794         * gtk/gtkmain.c (gtk_propagate_event): Only do special
12795         special key-press grab handling for widgets within
12796         GtkWindows. Otherwise, fall through to normal case.
12797
12798         This prevents key events being sent twice to GtkInvisible
12799         widgets, which can cause all sorts of mischief.
12800
12801 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
12802
12803         * gtk/gtkmain.c (gtk_propagate_event): When a grab
12804         widget is in effect, give the grab widget a first
12805         crack at KEY_PRESS/RELEASE events. (#424)
12806
12807 2001-03-06  James Henstridge  <james@daa.com.au>
12808
12809         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
12810         offset for the window_state_event to point at window_state_event
12811         rather than no_expose_event.
12812
12813 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
12814
12815         * gtk/gtkimmodule.h: fix busted /* comment */
12816
12817 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
12818
12819         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
12820         object properties.
12821
12822 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
12823
12824         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
12825         add object properties.
12826
12827         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
12828         to add object properties.
12829
12830         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
12831         object properties.
12832
12833         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
12834         add object properties.
12835
12836         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
12837         object properties.
12838
12839 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
12840
12841         * gtk/gtktreemodel.c: renamed "child_toggled" to
12842         "has_child_toggled".
12843
12844         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
12845         handle new signal name.
12846
12847         * gtk/gtktreestore.c: Updated to handle new signal name.
12848         * gtk/gtklisttore.c: Updated to handle new signal name.
12849         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
12850
12851 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12852
12853         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
12854         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
12855
12856 2001-03-05  Michael Natterer  <mitch@gimp.org>
12857
12858         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
12859         pixbuf-engine coincidentially also failed to make one of it's
12860         parent_class pointers static, causing overwriting of GtkLabel's
12861         parent_class pointer in pixbuf_style_class_init().
12862         (Will commit the fix to the pixbuf-engine too).
12863
12864 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12865
12866         * gdk/gdkwindow.h:
12867         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
12868         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
12869         gdk_window_set_icon_list for net wmspec functionality.
12870
12871         * gdk/x11/gdkwindow-x11.c:
12872         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
12873         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
12874         gdk_window_set_icon_list.
12875         Added gdk_wmspec_change_state helper function and used it in the code.
12876         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
12877
12878         * gtk/gtkdialog.c (gtk_dialog_init):
12879         Set GDK_WINDOW_TYPE_HINT_DIALOG.
12880
12881         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
12882         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
12883
12884         * gtk/gtkwindow.c:
12885         new function gtk_window_set_type_hint.
12886         On realize, set type hint and modal hint.
12887
12888         * gtk/gtkwindow.h:
12889         Added type_hint field and gtk_window_set_type_hint.
12890
12891 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12892
12893         * gtk/gtklabel.[ch]:
12894         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
12895         New function gtk_label_get_accel_keyval () to get the underline accelerator
12896         of the label. Setting the label pattern overrides other attributes.
12897
12898 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
12899
12900         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
12901         Added missing initializers to gtk_rc_style_init().
12902
12903 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
12904
12905         * gtk/gtktextview.c: fixed bug #51097 about setting 
12906         gtk_text_view_set_border_window_size() if the widget is 
12907         already realized.
12908
12909 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
12910
12911         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
12912
12913         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
12914         comment. Won't do to have duplicated doc comments between
12915         the platform subdirs.
12916
12917 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
12918
12919         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
12920           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
12921
12922         Detectable auto-repeat - make a repeating key generate
12923         press/press/press/release instead of press/release pairs.
12924
12925         If we have Xkb and XkbSetDectableAutoRepeat supports
12926         that, we do it that way. Otherwise, when we get
12927         a release event, we check ahead with XPending to see
12928         if the next key is a KeyPress with the same keycode
12929         and timestamp. (Not 100% reliable, but pretty close.)
12930           
12931 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
12932         
12933         * gtk/gtkmain.c (gtk_propagate_event): Only do special
12934         special key-press grab handling for widgets within
12935         GtkWindows. Otherwise, fall through to normal case.
12936  
12937         This prevents key events being sent twice to GtkInvisible
12938         widgets, which can cause all sorts of mischief.
12939  
12940 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
12941  
12942         * gtk/gtkmain.c (gtk_propagate_event): When a grab
12943         widget is in effect, give the grab widget a first
12944         crack at KEY_PRESS/RELEASE events. (#424)
12945  
12946 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
12947
12948         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
12949         to extend the selection. (Roughly based on patch
12950         from Jay Cox, #50939)
12951
12952         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
12953         to properly handle previous GDK_BUTTON_PRESS. 
12954         (Patch from Jay Cox, #50938)
12955
12956         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
12957         '\0' back along with the deleted text. (#51148)
12958
12959 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
12960
12961         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
12962         the group when extracting it from the X keyboard event.
12963
12964         * modules/input/Makefile.am modules/input/imipa.c: 
12965         Simple module for entering IPA. (Do we need a 
12966         gtk-stupid-input-tricks CVS module?)
12967
12968 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
12969
12970         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
12971         const.
12972
12973         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
12974
12975         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
12976         is no focus widget for the dialog currently, grab the focus as well
12977         as the default.
12978
12979         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
12980         the action area's children to iterate through, not the
12981         dialog's children.
12982
12983 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
12984
12985         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
12986         Add plug-socket tests. (Won't work worth a darn until I commit
12987         the rest of the plug-socket changes, but no reason these
12988         can't go into CVS now.)
12989
12990 2001-03-02  Havoc Pennington  <hp@redhat.com>
12991
12992         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
12993         _gdk_region_get_xrectangles()
12994
12995         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
12996
12997         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
12998
12999         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
13000         function, contributed by Ron Steinke    
13001
13002         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
13003         gdk_net_wm_supports
13004
13005         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
13006         New function, contributed by Ron Steinke
13007
13008         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
13009         used to line up the text in the entry when using the entry for
13010         editable sheet cell hacks
13011
13012         * gtk/testgtk.c (create_entry): test the activate_default setting
13013         on GtkEntry
13014
13015         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
13016         cause the entry to activate the default button for a dialog when 
13017         activated
13018         (gtk_entry_get_activates_default): new function
13019
13020 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
13021
13022         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
13023         Hwang to move call to sync_selection() up a few lines
13024         to before the row list is modified, to fix crash when
13025         removing rows in the undo_selection list.
13026
13027         (Test case provided by Daniel Elstner:
13028
13029         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
13030
13031 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
13032
13033         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
13034         of tree->root_tree in parent_set rather than _map(), 
13035         fixing #50892 in a bit better manner.
13036
13037 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
13038
13039         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
13040
13041 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
13042
13043         * gtk/gtkstyle.c : Remove duplicate fwd decl for
13044         gtk_default_draw_shadow.
13045
13046 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
13047
13048         * gdk/gdkimage.c (gdk_image_new): Remove excess 
13049         warning, make warnings more verbose, treat a error
13050         in shmat as permanent, and don't try again.
13051         (#51163, Ed Randall.)
13052
13053 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
13054
13055         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
13056         delay for the first click before starting to scroll.
13057         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
13058
13059         * gtk/gtktext.c: GtkText should have I-beam cursor. 
13060         (based on gtk-enf-990513-1.patch, Eric Fisher.)
13061
13062 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
13063
13064         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
13065         cleanup to remove some references to unused
13066         ->xoffset, ->yoffset.
13067
13068 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
13069
13070         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
13071         mask. (#51039, fix from Martin Maierhofer)
13072
13073 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
13074
13075         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
13076         for unshifted + and shifted = for non-us keyboards.
13077         Make <Control>+ and <Control>- work as well as 
13078         <Control>KP_Plus, <Control>KP_Minus for recursive
13079         open/close.  (#2682, René Seindal)
13080
13081 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
13082
13083         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
13084         the active menu item before deactivating the menu,
13085         so gtk_menu_popdown doesn't change the history. (#50964)
13086         
13087 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
13088
13089         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
13090         draw lines with text_gc rather than black_gc.
13091         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
13092
13093 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
13094
13095         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
13096         Move handling of buttons fully in gtktreeviewcolumn.  This code is
13097         less interrelated then it was, but it still requires the
13098         GtkTreeView to map it.
13099
13100         * test/testtreecolumn.c: Now I can add a column to one view,
13101         remove it, add it to the another view, remove it, then re-add it
13102         to the first.  Nifty.
13103
13104 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
13105
13106         * docs/tutorial/gtk-tut.sgml: Minor corrections
13107
13108 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
13109
13110         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
13111         GtkRowReference.
13112
13113 2001-02-28  Havoc Pennington  <hp@redhat.com>
13114
13115         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
13116         draw_default
13117         (gtk_widget_draw_focus): remove this function; we could instead
13118         make it just gtk_widget_draw(), but in most cases I think the
13119         result would be broken user code, so think it's better to have
13120         that code not compile and get fixed
13121         (gtk_widget_draw_default): ditto
13122
13123         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
13124         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
13125         
13126         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
13127         widgets lose/get the default, instead of calling draw_default
13128         
13129         * docs/Changes-2.0.txt: note about all this
13130
13131         Then fixed every widget in GTK, I won't list all the filenames.
13132
13133 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
13134
13135         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
13136         _gtk_tree_row_reference_deleted.
13137         (inserted_callback): Proxy out to
13138         _gtk_tree_row_reference_inserted.
13139         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
13140         get around signal emission ordering problem.
13141
13142         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
13143         fix to work with SINGLE 
13144         (_gtk_tree_selection_internal_select_node): Major sanitization on
13145         selections.  SINGLE now seems to work.
13146
13147         * tests/Makefile.am: add testtreecolumn.c:
13148
13149         * tests/testtreecolumn.c: New test.  Mostly points out selection
13150         bugs currently, but will test columns later.
13151
13152         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
13153         selection bug.  I hate touching this code -- it's scary.
13154
13155 2001-02-26  Havoc Pennington  <hp@redhat.com>
13156
13157         * gtk/testgtk.c: test the window state stuff
13158
13159         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
13160         window come to the user's attention as if it were just created
13161         (gtk_window_iconify): new function
13162         (gtk_window_deiconify): new function
13163         (gtk_window_stick): new function
13164         (gtk_window_unstick): new function
13165         (gtk_window_maximize): new function
13166         (gtk_window_unmaximize): new function
13167
13168         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
13169
13170         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
13171
13172         * gdk/x11/gdkevents-x11.c: create window state events when
13173         appropriate
13174         (gdk_wmspec_supported): new function
13175
13176         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
13177         iconification before showing the window
13178         (gdk_window_deiconify): new function
13179         (gdk_window_stick): new function
13180         (gdk_window_unstick): new function
13181         (gdk_window_maximize): new function
13182         (gdk_window_unmaximize): new function
13183
13184         * gdk/gdkwindow.c: store the window state in the window; 
13185         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
13186         window->mapped.
13187         (gdk_window_get_state): return the current window state
13188
13189         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
13190         (gdk_event_get_state): handle GDK_WINDOW_STATE
13191         (gdk_synthesize_window_state): function to create the window state
13192         events
13193
13194         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
13195         event, for changes to "window state" such as maximized, sticky, 
13196         etc.
13197         
13198         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
13199         focuses a window
13200
13201         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
13202         finds out if we support a given WM spec hint
13203
13204 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
13205
13206         * docs/faq/gtk-faq.sgml: New question re memory leaks.
13207
13208 2001-02-25  Hans Breuer  <hans@breuer.org>
13209
13210         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
13211         cause we want to loose those prototypes only in the latter case
13212
13213         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
13214         GdkPixmapImplWin32 because it itsn't derived from it. Use the
13215         impl member variable instead
13216
13217         * gtk/gtk.def : updated
13218
13219         * gtk/gtklist.c : 
13220         * gtk/gtkmenus.c : include <string.h> for memset ()
13221
13222         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
13223         for everthing built here, but for gtk-x.x.dll only. This solves
13224         problem of indifferent gtk type definitions
13225
13226 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
13227
13228         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
13229
13230 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
13231
13232         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
13233         column that is exposed.
13234
13235         (_gtk_tree_view_update_size): Changed name from set_size, and
13236         changed function to do more work, and not force people calling it
13237         to figure out the size.  Simplifies a lot of code elsewhere.
13238
13239 2001-02-23  Alexander Larsson  <alexl@redhat.com>
13240
13241         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
13242         return solid masks for xpms that have no transparent color.
13243         This makes the ..._create_from_xpm... API backwards
13244         compatible.
13245
13246 2001-02-23  Tor Lillqvist  <tml@iki.fi>
13247
13248         * README.win32: Update. Mention the gtk-1-3-win32-production
13249         branch.
13250
13251         * gdk/win32/bdfcursor.c: New file. A program that generates
13252         xcursors.h. Thanks to Stefan Ondrejicka.
13253
13254         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
13255         compact format.
13256
13257         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
13258
13259         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
13260         function, uses xcursors.h.
13261         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
13262         cursor from inline data instead of using LoadCursor() to generate
13263         it from a resource.
13264
13265         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
13266         event, must check the Windows message for mouse button state, as
13267         the GDK event state might not have been built if it is
13268         undelivered. Remove one goto.
13269
13270         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
13271         SetCursor() if the current cursor as returned by GetCursor() is
13272         the window's previous cursor. The ChildWindowFromPoint() test
13273         apparently didn't work correctly.
13274
13275         * gdk/win32/rc/*.cur: Remove.
13276
13277         * gdk/win32/rc/gdk.rc.in: Remove cursors.
13278
13279         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
13280
13281         * gtk/makefile.{mingw,msc}.in: Updates.
13282
13283 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
13284
13285         * gtk/gtktreemodel.h: add functions for signal emission.
13286
13287         * gtk/gtktreestore.c: move to use above functions instead of
13288         g_signal_emit.
13289
13290         * gtk/gtkliststore.c: ditto
13291
13292 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
13293
13294         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
13295         GObject instead of GtkObject.
13296
13297         * gtk/gtkliststore.c: ditto.
13298
13299         * gtk/gtktreemodelsort.c: ditto.
13300
13301         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
13302         GtkTreeModelIface, instead of in each model.
13303
13304 2001-02-21  Havoc Pennington  <hp@redhat.com>
13305
13306         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
13307         unbreak this function
13308
13309         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
13310         properties
13311
13312         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
13313         properties
13314
13315         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
13316         properties
13317
13318         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
13319         mean unset the max length
13320
13321 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
13322
13323         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
13324         Changed name to be set_cell_data_func to make it clear what
13325         the functino does.  Close bug #51069.
13326
13327 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
13328
13329         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
13330         have memory actually freed.  Keeps box running longer.
13331
13332 2001-02-21  Alexander Larsson  <alexl@redhat.com>
13333         
13334         * gtk/gtkseparatormenuitem.[ch]:
13335         Added new menu separator item. The drawing and size handling
13336         is still done in GtkMenuItem, but the API is a bit more sane.
13337         
13338         * gtk/Makefile.am:
13339         Add gtkseparatormenuitem.[ch].
13340
13341         * gtk/gtk.h:
13342         Add gtkseparatormenuitem.h.
13343         
13344         * gtk/gtkentry.c:
13345         * gtk/gtkmenufactory.c:
13346         * gtk/gtktextview.c:
13347         Use the new API for menu separators.
13348         
13349         * demos/gtk-demo/menus.c (create_menu):
13350         Add some GtkSeparatorMenuItem demo code.
13351
13352 2001-02-20  Havoc Pennington  <hp@redhat.com>
13353
13354         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
13355         Lee Mallabone
13356
13357         * gtk/gtkarrow.c: Convert to new property API, patch from 
13358         Lee Mallabone
13359
13360 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
13361
13362         * tests/testtreeview.c (toggled_callback): fix to reflect change
13363         in GtkTreeModelStore.
13364
13365 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
13366
13367         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
13368         function to create an icon set from a pixbuf.
13369
13370 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13371
13372         * gtk/gtkcellrenderertext.[ch]:
13373         Add a "markup" property.
13374
13375         * gtk/treestoretest.c:
13376         Use the markup property, remove some leftover stuff from
13377         GtkTreeModelMapping.
13378
13379 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13380
13381         * gtk/gtklabel.c (gtk_label_set_selectable):
13382         Queue a redraw if the selectable setting was changed.
13383
13384 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13385
13386         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
13387         Actually copy the whole gc, not just the public parts.
13388         
13389         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
13390         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
13391         labels.
13392
13393 2001-02-19  Havoc Pennington  <hp@pobox.com>
13394
13395         * gdk/gdkwindow.c: docs
13396
13397         * gdk/gdkrgb.c: docs
13398
13399         * gdk/gdkregion-generic.c: docs
13400
13401         * gdk/gdkgc.c (gdk_gc_set_values): docs
13402
13403         * gdk/gdkdraw.c: docs
13404
13405         * gdk/gdkdrawable.h: deprecate drawable get/set data
13406
13407 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
13408
13409         * demos/gtk-demo/dialog.c: Add simple new demo.
13410
13411 2001-02-19  Havoc Pennington  <hp@redhat.com>
13412
13413         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
13414         insert_child_anchor signal, bug #50245
13415
13416         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
13417         from create_child_anchor, so the anchor is passed in
13418
13419         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
13420         (_gtk_widget_segment_new): have the child anchor object passed in, 
13421         instead of creating it.
13422
13423         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
13424         to gtk_text_buffer_get_modified
13425
13426 2001-02-19  Havoc Pennington  <hp@redhat.com>
13427
13428         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
13429         changed GLib without fixing GTK
13430
13431         * gtk/gtkrange.h: Rename all the stupid implementation detail 
13432         functions to have an underscore in front. Most of them should 
13433         probably just go away, but for starters don't export them.
13434         Bug #50482
13435
13436 2001-02-19  Havoc Pennington  <hp@redhat.com>
13437
13438         * gdk/gdkcolor.h: test was backward, so deprecated functions were
13439         excluded by default
13440
13441         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
13442         clean up the old code a bit
13443
13444         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
13445         inconsistent state
13446
13447         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
13448         draw inconsistent state
13449
13450         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
13451         (create_menu): add inconsistent test
13452
13453         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
13454         new function
13455         (gtk_check_menu_item_get_inconsistent): new function
13456         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
13457         state (using etched in for now)
13458
13459         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
13460         draw inconsistent state
13461
13462         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
13463         function, used when the user has selected a range of stuff in
13464         different states
13465         (gtk_toggle_button_get_inconsistent): accessor for that
13466         (gtk_toggle_button_paint): draw inconsistent state (etched in?
13467         don't know what else to do)
13468
13469 2001-02-19  Hans Breuer <hans@breuer.org>
13470
13471         * gtk/gtk.def : updated exported symbols
13472
13473         * gtk/makefile.msc.in : updated
13474
13475         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
13476         a colormap, when invoked from testgtk::entry. I'm not sure where
13477         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
13478         avoids immediate crashing ...
13479
13480         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
13481         any objections ?
13482
13483         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
13484         0 parameter. At least msvc doesn't like macros with var args. 
13485         I simply removed the extra 0, was it a feature or a typo ?
13486
13487         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
13488         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
13489         because the value assignment to the internal struct wasn't working.
13490         I'm not absolutely sure. The problem could have been resolved by
13491         changing the "func" declartion in the struct, but was the pointer
13492         to the function pointer intended ?
13493
13494         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
13495
13496         * gdk/gdk.def : updated exported symbols
13497
13498         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
13499         only use SetDIBitsToDevice if there is a palette at the drawable
13500         and the image is GDK_VISUAL_PSEUDO_COLOR
13501
13502         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
13503
13504         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
13505
13506         * gdk/*/makefile.msc : updated
13507
13508 2001-02-19  Havoc Pennington  <hp@redhat.com>
13509
13510         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
13511         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
13512
13513         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
13514         (gdk_key_repeat_restore): nuke
13515
13516         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
13517         (gdk_init_check): no atexit func
13518
13519         * gdk/gdkrgb.h: mark some stuff deprecated
13520
13521         * gdk/gdkcolor.h: mark some stuff deprecated
13522         
13523         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
13524
13525         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
13526
13527 2001-02-16  Havoc Pennington  <hp@redhat.com>
13528
13529         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
13530         scroll steps.
13531
13532         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
13533         steps, and add Ctrl-arrow shortcuts for paging visually as with
13534         HScale, since Page Up and Page Down move logically.
13535
13536         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
13537         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
13538         
13539         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
13540         steps
13541         (gtk_range_scroll): handle the visual steps
13542
13543         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
13544         scroll steps
13545
13546         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
13547         steps, not the logical ones.
13548
13549         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
13550         (scroll_vertical): handle up/down steps
13551
13552 2001-02-19 Alexander Larsson  <alexl@redhat.com>
13553
13554         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
13555         Copy data and free data with free().
13556
13557         * gdk-pixbuf/gdk-pixbuf.c:
13558         * gdk-pixbuf/io-jpeg.c:
13559         * gdk-pixbuf/io-png.c:
13560         Use g_try_malloc/g_free instead malloc/free.
13561         
13562         * gdk-pixbuf/test-gdk-pixbuf.c:
13563         Must... initialize... gobject...
13564         
13565         * gdk-pixbuf/pixops/timescale.c:
13566         * gtk/gtkcalendar.c:
13567         Use g_malloc instead of malloc.
13568         
13569 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
13570
13571         * gtk/testgtkrc:
13572         Comment out property assignments, these don't work yet.
13573
13574 2001-02-17  Havoc Pennington  <hp@pobox.com>
13575
13576         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
13577         bit.
13578
13579 2001-02-17  Havoc Pennington  <hp@pobox.com>
13580
13581         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
13582         shadowed variables that had broken size request in some cases,
13583         leading to bogus tooltips (#50996)
13584
13585 2001-02-06  Jon K Hellan  <hellan@acm.org>
13586
13587         Implement fast browsing of tooltips, bug #50619
13588         
13589         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
13590         and last_popdown
13591         
13592         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
13593         use_sticky_delay and last_popdown.
13594         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
13595         time of popdown.
13596         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
13597         is NULL.
13598         (gtk_tooltips_recently_shown): New static function.  Return true
13599         if < sticky_delay has elapsed since last popdown.
13600         (gtk_tooltips_event_handler): Display window after sticky_delay
13601         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
13602         since last popdown.
13603         
13604 2001-02-17  Havoc Pennington  <hp@pobox.com>
13605
13606         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
13607         instead of (). #6394
13608
13609         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
13610         G_CONST_RETURN, make it return by reference, #50473
13611         
13612 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
13613
13614         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
13615         generated ENTER_NOTIFY event with 0, otherwise not explicitely
13616         setup fields contain garbage (e.g. subwindow, breaking
13617         gdk_drawable_ref() upon event copy).
13618         (gtk_menu_stop_navigating_submenu_cb): same here.
13619
13620         * gtk/gtklist.c (gtk_list_vertical_timeout): 
13621         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
13622         * gtk/gtkclist.c (vertical_timeout): 
13623         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
13624         default-zero-intialization for unions to memset(,0,), as unions are
13625         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
13626         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
13627
13628         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
13629         g_closure_sink() warning.
13630
13631         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
13632         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
13633         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
13634         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
13635         
13636 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
13637
13638         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
13639         gtk_*_store_get, and moved to GtkTreeModel.
13640
13641         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
13642
13643         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
13644
13645         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
13646
13647         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
13648         set the func.
13649
13650         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13651         freeze/thaw notify between setting all the properties for a cell.
13652
13653         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
13654
13655 2001-02-15  Havoc Pennington  <hp@redhat.com>
13656
13657         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
13658         the X coordinates so they're with respect to the line, rather than 
13659         with respect to the layout.
13660
13661         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
13662         Mallabone
13663
13664         * gtk/testgtk.c (create_range_controls): add vscale tests, 
13665         and inverted test
13666
13667         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
13668         #50806
13669
13670         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
13671
13672         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
13673         gtk_text_iter_is_end
13674
13675         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
13676         rename gtk_text_buffer_get_end_iter
13677
13678         * gtk/testgtk.c (create_labels): Add test for selectable
13679
13680         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
13681         the selection stuff. This code is kind of broken since it doesn't 
13682         use the theme engine.
13683
13684         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
13685         fix infinite loop and y offset problem
13686         (gdk_draw_layout_line_with_colors): fix foreground color handling
13687
13688         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
13689         that makes the label selectable.
13690         
13691         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
13692         layout when the style is set, since fonts etc. could have changed.      
13693
13694 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
13695
13696         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
13697
13698         * gtk/gtktreemodelsimple.[ch]: removed.
13699
13700 2001-02-16  Alexander Larsson  <alexl@redhat.com>
13701
13702         * gtk/gtktreemodelmapping.[ch]:
13703         New files. Implement GtkTreeModelMapping.
13704         
13705         * gtk/Makefile.am:
13706         Add gtktreemodelmapping.[ch].
13707         
13708         * gtk/gtk.h:
13709         Add gtktreemodelmapping.h
13710
13711         * gtk/treestoretest.c:
13712         Test the GtkTreeModelMapping
13713
13714 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
13715
13716         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
13717         have a demo, we might as well pass in real values.  Thanks to
13718         clahey for pointing this out.
13719
13720 2001-02-14  Havoc Pennington  <hp@pobox.com>
13721
13722         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
13723         "static" to a private function
13724         (gtk_image_menu_item_class_init): remove destroy handler,
13725         add "image" object property
13726
13727 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
13728
13729         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
13730         Add a shortcut if the window and the current clip_region doesn't
13731         overlap. This is needed when there are a lot of windows in a
13732         window. The layout test in testgtk is a good test.
13733
13734         * gdk/linux-fb/gdkwindow-fb.c:
13735         Whitespace fix.
13736
13737 2001-02-13  Sven Neumann  <sven@convergence.de>
13738
13739         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
13740
13741 2001-02-13  Alexander Larsson  <alexl@redhat.com>
13742
13743         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
13744         Don't reference last_cursor if it is null. Fixes crash when rotating
13745         the screen before having moved the mouse.
13746
13747         * gdk/linux-fb/gdkcc-fb.c: Zapp!
13748
13749         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
13750
13751         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
13752         when using 90 or 270 degrees rotation.
13753
13754 2001-02-12  Havoc Pennington  <hp@pobox.com>
13755
13756         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
13757         it always set the foreground, even if we were only using
13758         a stipple.
13759         (gdk_draw_layout_line_with_colors): new function, allow
13760         override colors
13761         (gdk_draw_layout_with_colors): new function, allow override
13762         colors
13763         (gdk_pango_layout_line_get_clip_region): function to get the clip
13764         region for a logical text range
13765         (gdk_pango_layout_get_clip_region): get the clip region for a
13766         logical text range
13767
13768         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
13769         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
13770         the right number of arguments.
13771
13772         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
13773         enhance the function to check that node data corresponds to a 
13774         view still belonging to the tree.
13775
13776         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
13777         GtkTreePath
13778         (gtk_tree_view_inserted): ditto
13779         (gtk_tree_view_child_toggled): ditto
13780
13781         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
13782         simplify this code.
13783
13784         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
13785         a PangoAttrList
13786
13787         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
13788
13789         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
13790
13791         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
13792         size in the size request 
13793         (gtk_menu_bar_size_allocate): consider toggle size here
13794
13795         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
13796         that displays a widget in the toggle slot
13797
13798         * gtk/testgtk.c: test GtkImageMenuItem
13799
13800         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
13801         
13802         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
13803         request and allocation
13804
13805         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
13806
13807         * gtk/gtkcheckmenuitem.c
13808         (gtk_check_menu_item_toggle_size_request): ditto
13809         
13810 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
13811
13812         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
13813         reference.
13814
13815         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
13816         and refuse to initialize GTK+ if they fail.
13817
13818 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
13819
13820         * configure.in: Add check for gtk-doc version.
13821
13822 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
13823
13824         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
13825         where the xpad/ypad was only being used on one side!
13826
13827 2001-02-11  Tor Lillqvist  <tml@iki.fi>
13828
13829         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
13830         function, copied from X11 version.
13831
13832         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
13833         DestroyCursor failures. The reason for the problem (despite the
13834         inconsistent messages from GetLastError()) was that
13835         DestroyCursor() cannot be called while a cursor is set in a
13836         window. Set the new cursor first and then destroy the old one.
13837         Thanks to jpe@archaeopteryx.com.
13838
13839         * gdk/win32/gdkcc-win32.c: Remove.
13840
13841         * gdk/win32/Makefile.am: Remove from here, too.
13842         
13843         * gdk/gdk.def
13844         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
13845
13846         * gtk/gtk.def
13847         * gtk/makefile.mingw.in: Updates.
13848
13849 2001-02-08  Havoc Pennington  <hp@redhat.com>
13850
13851         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
13852         add a widget to a bin that already has a child.
13853
13854         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
13855
13856         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
13857         
13858         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
13859
13860         * gdk/gdk.h: remove gdkcc.h
13861
13862         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
13863
13864         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
13865         GdkPixbuf, since the previous implementation was GdkColorContext
13866         dependent.
13867
13868         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
13869         
13870 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
13871
13872         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
13873         a sane value!
13874
13875 2001-02-08  Havoc Pennington  <hp@redhat.com>
13876
13877         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
13878         lighten them.
13879
13880 2001-02-08  Havoc Pennington  <hp@redhat.com>
13881
13882         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
13883         validation idle
13884
13885         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
13886         cell renderer
13887
13888         * demos/pixbuf-demo.c (timeout): remove deprecated
13889         gtk_widget_draw
13890
13891         * demos/testpixbuf-save.c (main): remove deprecated
13892         gtk_drawing_area_size
13893
13894         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
13895         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
13896         at the start of the allocation.
13897         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
13898         unsetup or NULL model.
13899
13900         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
13901         even/odd/sorted cells in the tree view.
13902
13903         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
13904         bugfixes
13905
13906         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
13907         backgrounds with draw_flat_box using different detail for even/odd
13908         rows.
13909
13910         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
13911         row, so we can draw the alternating colors thing
13912
13913         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
13914         property from a synonym property, notify for the synonym.
13915         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
13916         (gtk_text_tag_get_property): Always return the font, even if
13917         all its fields aren't set
13918
13919         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
13920         store the attr list; it leaves us with no way to change attributes
13921         in _render according to the render flags, and no way to implement
13922         get_property. Instead store all the specific text attributes. 
13923         Separate whether an attribute is enabled from its value. Sync all
13924         properties with GtkTextTag, make them all consistent, etc.
13925
13926         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
13927         renderers can highlight the sort row/column     
13928
13929         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
13930         accessor functions to get values; this has the side effect of
13931         showing up which accessor functions were missing. Added those.
13932
13933         * gtk/gtktreeviewcolumn.h: Replace set_justification with
13934         set_alignment, to be consistent with GtkLabel, GtkMisc
13935
13936         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
13937         arrow.
13938
13939         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
13940
13941         * gtk/gtktreesortable.h: updates in here
13942
13943 2001-02-07  Sven Neumann  <sven@convergence.de>
13944
13945         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
13946         pango dimensions after painting the background. We used to draw
13947         gigantic flat boxes here.
13948
13949 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
13950
13951         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
13952         error introduced with earlier commit) (pointed out by
13953         Ollie Lho)
13954
13955 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
13956
13957         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
13958         which are no longer necessary.
13959
13960 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
13961
13962         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
13963
13964 2001-02-04  Tor Lillqvist  <tml@iki.fi>
13965
13966         * gdk/gdk.def
13967         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
13968         Provide dummy implementations.
13969
13970 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
13971
13972         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
13973
13974         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
13975         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
13976         deprecated this function.
13977
13978         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
13979         argument.
13980
13981 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
13982
13983         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
13984
13985 2001-02-03  Havoc Pennington  <hp@pobox.com>
13986
13987         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
13988         Mikael Hermansson with patch from Mikael (if there was a toggle
13989         start one after the first character in the range, this function
13990         was broken). Bug #50380
13991
13992 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
13993
13994         * configure.in: Remove confusing comment about X11.
13995
13996 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
13997
13998         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
13999         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
14000         
14001 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
14002
14003         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
14004         it breaks things on BSD. If you want to compile GTK+ with
14005         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
14006         when configuring, since GTK+ simply can't be "pure ANSI" 
14007         in the header files it uses. (#8170, Greg Hudson)
14008
14009 2001-02-02  Havoc Pennington  <hp@redhat.com>
14010
14011         * gtk/gtkwindow.c: docs
14012
14013         * gtk/gtkwidget.c: docs
14014         (gtk_widget_set_colormap): add a reference to the colormap
14015         (gtk_widget_get_default_colormap): add a reference to the colormap
14016
14017         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
14018
14019         * gtk/gtktextiter.c: docs
14020
14021         * gtk/gtkmain.c (gtk_propagate_event): docs
14022
14023         * gtk/gtkpaned.c (gtk_paned_get_position): docs
14024         (gtk_paned_set_position): docs
14025
14026         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
14027         sort interface, no implementation yet.
14028
14029         * demos/testpixbuf.c (new_testrgb_window): replace
14030         gtk_drawing_area_size() with gtk_widget_set_usize()
14031
14032         * demos/testpixbuf-drawable.c (main): ditto
14033         
14034         * gtk/testgtk.c: remove use of GtkStatusbarMsg
14035
14036         * gtk/gtktextbuffer.c: docs
14037
14038         * gtk/gtkstock.c: docs
14039
14040         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
14041
14042         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
14043
14044         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
14045         
14046         * gtk/gtkimage.c: add some docs in here
14047         (gtk_image_size_request): change name of
14048         gtk_widget_render_stock_icon
14049         (gtk_image_get_icon_set): don't dup returned string
14050         (gtk_image_get_icon_set): don't dup returned string
14051
14052         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
14053         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
14054         and gtkiconfactory.h functions
14055
14056         * gtk/gtkiconfactory.c: add some docs in here
14057
14058         * gtk/gtkmain.c (gtk_get_default_language): document
14059         (gtk_get_current_event): document
14060         (gtk_get_current_event_state): document
14061         (gtk_get_event_widget): document
14062
14063         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
14064
14065         * gtk/gtkcontainer.c: Add some documentation
14066         (gtk_container_add): give a more explanatory warning on adding an
14067         already-parented widget, this is kind of a FAQ and also a common
14068         typo that's easier to debug with a nice warning 
14069
14070         * gtk/gtkcellrenderertoggle.c
14071         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
14072         adding this, it's useless
14073         (gtk_cell_renderer_toggle_set_active): remove
14074         (gtk_cell_renderer_toggle_get_radio): add
14075
14076         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
14077         the NULL cell renderer, that doesn't make any sense to me. 
14078
14079         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
14080         demo code should never use deprecated features.
14081
14082         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
14083         code should never use deprecated features.
14084
14085         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
14086         gtk_widget_queue_clear_area deprecated
14087
14088         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
14089         deprecated
14090
14091         * gtk/gtklabel.h: mark gtk_label_get() deprecated
14092
14093         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
14094         a GdkImage deprecated, replaced by new consistently-named
14095         functions       
14096
14097         * gtk/gtkmain.h: Mark gtk_exit() deprecated
14098
14099         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
14100
14101         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
14102         deprecated
14103
14104         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
14105         so it won't appear in docs and confuse people.
14106
14107         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
14108
14109         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
14110         macros deprecated. (can't mark the type itself deprecated, since
14111         GtkProgressBar is not deprecated and we need the type decl to use
14112         GtkProgressBar)
14113
14114         * gtk/gtkpixmap.h: Mark deprecated
14115
14116         * gtk/gtkoldeditable.h: Mark deprecated
14117
14118         * gtk/gtklist.h: Mark deprecated
14119
14120         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
14121         for anything anymore.
14122
14123         * gtk/gtkctree.h: Mark deprecated
14124
14125         * gtk/gtkclist.h: Mark deprecated
14126
14127         * gtk/gtkpreview.h: Mark deprecated
14128
14129         * gtk/gtkpacker.h: Mark deprecated
14130
14131         * gtk/gtktipsquery.h: Mark deprecated
14132
14133         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
14134
14135         * gtk/gtkvruler.h: Add comment that it will move out of GTK
14136
14137         * gtk/gtkhruler.h: Add comment that it will move out of GTK
14138
14139         * gtk/gtkruler.h: Add comment that it will move out of GTK
14140
14141         * gtk/gtkgamma.h: Add comment that it will move out of GTK
14142
14143         * gtk/gtkcurve.h: Add comment that it will move out of GTK
14144
14145 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
14146
14147         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
14148         gdk_colormap_sync private since it was never exported
14149         in a header file.
14150
14151         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
14152         colormap->colors[] for StaticGray, StaticColor colormaps.
14153
14154         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
14155         was being used as if it was image->bits_per_pixel.
14156
14157         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
14158         for the image in the GdkImage structure since it isn't
14159         reconstructable, and we need it to handle packed types
14160
14161         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
14162         the assumption that on Win32 image->bits_per_pixel == image->depth,
14163         always.
14164
14165         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
14166
14167         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
14168         warning message if no converter can be found. 
14169
14170 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
14171
14172         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
14173         chars to isupper() / tolower(). (#567)
14174
14175         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
14176         to clear up 64-bit warnings. (#567)
14177
14178 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
14179
14180         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
14181         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
14182
14183         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
14184         since some people set $(libdir) separately. (#1290, David Kaelbling)
14185
14186 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
14187
14188         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
14189         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
14190         MAXPATHLEN, but the code here depends on a fixed value.)
14191         (#4524)
14192
14193 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
14194
14195         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
14196         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
14197
14198 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
14199
14200         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
14201         viewable there is no way that moving the node will cause the 
14202         focus row to become not viewable, so omit check on the visibility
14203         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
14204
14205 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
14206
14207         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
14208         selection before inserting new text.
14209
14210 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
14211
14212         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
14213         Make the sensitivity of the reparented child track that of
14214         the original parent menu item. (#34218, David Hodson)
14215
14216         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
14217         the case where the current item is destroyed properly.
14218
14219         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
14220         some edge cases with child-less menuitems.
14221         
14222 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
14223
14224         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
14225         key pop down window. (#12074, Jon K Hellan)
14226
14227 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
14228
14229         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
14230         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
14231         The solution here isn't perfect - you get an extraneous
14232         emission of "toggle", which could conceivably confuse an app,
14233         but better than the current situation. LXR search seems to
14234         indicate that no apps in GNOME CVS connect to "toggle".
14235
14236 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
14237
14238         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
14239         gtk_public_h_sources to directly here to avoid warning when
14240         building srcdir != builddir. (#9656)
14241
14242 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
14243
14244         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
14245         handlers in gtkrange.c return the proper values (TRUE == handled)
14246         (#10316).
14247
14248         This is just the tip of the iceberg, but gtkrange.c is the
14249         most common place where the propagation is problematical,
14250         and also a place where it is almost certainly safe to change
14251         this in the stable branch.
14252
14253         (You don't want right click popups on a range control or anything...)
14254
14255 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
14256
14257         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
14258         area on focus out, even if a background pixmap isn't set.
14259         (#13941)
14260         
14261 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
14262
14263         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
14264         to deal with setting the shape properly when scrolling arrows are
14265         turned on, but not visible because there is sufficient space.
14266         (#13432)
14267
14268 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
14269
14270         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
14271         items with submenus, destroy the item along with the submenu.
14272         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
14273         properly.
14274
14275         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
14276         later.
14277
14278 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
14279
14280         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
14281         the focus widget sometimes wasn't drawn with the default if there
14282         was no default widget.
14283
14284         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
14285         unreference pixmaps. 
14286
14287         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
14288         for some extra safety.
14289
14290 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
14291
14292         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
14293         the text of a cell to the old pointer value better, by
14294         copying the new text before freeing the old text. Some code
14295         cleanup. (#8079, Karl Nelson)
14296
14297 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
14298
14299         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
14300         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
14301
14302 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
14303
14304         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
14305         item from a menu, check to see if it matches 
14306         menu->old_active_menu_item, and if so, unref and clear
14307         old_active_menu_item (Patch from Pavel Cisler)
14308
14309         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
14310         menu_shell->active_menu_item, if it is the child being
14311         removed. (Patch based on that of Gene Ragan, #50337)
14312
14313 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
14314
14315         * gdk/linux-fb/gdkselection-fb.c: 
14316         * gdk/linux-fb/gdkcolor-fb.c: 
14317         * gdk/linux-fb/gdkdrawable-fb2.c: 
14318         * gdk/linux-fb/gdkfont-fb.c: 
14319         * gdk/linux-fb/gdkim-fb.c: 
14320         * gdk/linux-fb/gdkinput.c: 
14321         * gdk/linux-fb/gdkkeyboard-fb.c: 
14322         * gdk/linux-fb/gdkmain-fb.c: 
14323         * gdk/linux-fb/gdkrender-fb.c: 
14324         A bunch of whitespace cleanup.
14325         
14326 2001-01-30  Havoc Pennington  <hp@pobox.com>
14327
14328         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
14329         #ifdef GTK_ENABLE_BROKEN.
14330
14331         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
14332         GTK_ENABLE_BROKEN just before including the broken headers.
14333         
14334         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
14335         deprecated types registered.
14336
14337         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
14338         we have to test the broken stuff.
14339
14340         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
14341         
14342 2001-01-30  Havoc Pennington  <hp@redhat.com>
14343
14344         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
14345         here where prev pointer was set to the wrong thing
14346
14347         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
14348         (gtk_tree_path_is_descendant): new function
14349
14350         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
14351         cached length
14352         (gtk_list_store_get_iter): don't modify iter if we can't get the
14353         path.
14354
14355         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
14356         
14357         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
14358         GtkTreeDragDest
14359
14360         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
14361         was causing segfault
14362
14363         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
14364         pointer to NULL
14365
14366         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
14367
14368         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
14369         on returning FALSE
14370         (gtk_list_store_iter_children): ditto
14371         (gtk_list_store_iter_nth_child): ditto
14372         (gtk_list_store_iter_nth_child): ditto
14373         (gtk_list_store_iter_parent): ditto
14374
14375         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
14376         on iter->user_data != NULL instead of silently accepting it.
14377         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
14378         we are returning TRUE.
14379         (gtk_tree_store_iter_children): ditto
14380         (gtk_tree_store_iter_nth_child): ditto
14381         (gtk_tree_store_iter_parent): ditto
14382         (gtk_tree_store_insert): remove handling of parent->user_data ==
14383         NULL, replace with parent == NULL       
14384
14385         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
14386         and a comment explaining things
14387
14388         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
14389         interface support to GtkTreeStore.
14390
14391         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
14392         FALSE if no prev, fix
14393
14394         * gtk/gtktreeview.c (set_source_row): use a row reference
14395         (set_dest_row): use a row reference
14396
14397 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
14398
14399         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
14400         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
14401         (gtk_tree_selection_select_iter): The same as above.
14402
14403 2001-01-26  Havoc Pennington  <hp@redhat.com>
14404
14405         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
14406         which holds a handle to a specific row (particular set of values
14407         in the model, i.e. pointer-identity row).
14408
14409         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
14410         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
14411         Still need to use it for the src/dest row saved on the drag context.
14412
14413 2001-01-26  Havoc Pennington  <hp@redhat.com>
14414
14415         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
14416
14417         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
14418         not offset by TREE_VIEW_HEADER_HEIGHT
14419         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
14420         TREE_VIEW_HEADER_HEIGHT
14421
14422         * configure.in (included_loaders): for me, --with-included-loaders
14423         generates the error "the specified loader yes does not exist",
14424         i.e. the arg defaults to "yes", so change test for value ""
14425         to test for value "yes", and include all loaders in that case.
14426
14427         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
14428
14429         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
14430         handle TREE_VIEW_VERTICAL_SEPARATOR
14431         (gtk_tree_view_bin_expose): fix to consider the row offset as
14432         pointing halfway into vertical separator.       
14433         (gtk_tree_view_draw_node_focus_rect): ditto
14434
14435         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
14436         --gtk-debug=updates, which causes gdk_window_set_debug_updates
14437         (TRUE) to be called.
14438
14439         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
14440         debug mode where the invalid region is colored in on invalidate,
14441         so you can see the flicker and know whether your redraw code is 
14442         doing a good job.
14443
14444         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
14445         tree window coordinates (clip rect is in tree window coords)
14446
14447         * gtk/Makefile.am: add gtktreednd.[hc]
14448
14449         * gtk/gtkliststore.c: implement gtktreednd interfaces.
14450
14451         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
14452         drag-and-drop data operations on a model (so we can set up tree
14453         drag-and-drop automatically)
14454
14455         * gtk/testgtk.c: Add a window to change sensitivity in the
14456         GtkLabel test; add a way to change the entry frame in GtkEntry
14457         test
14458
14459         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
14460         (gtk_entry_get_has_frame): new functions to remove the frame
14461         around an entry
14462         (gtk_entry_size_request): shrink requisition if no frame
14463         (gtk_entry_draw_focus): don't draw frame if no frame
14464
14465         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
14466         checks inside a cell renderer
14467         (gtk_default_draw_option): ditto for options
14468
14469         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
14470         children from the alignment, not the button
14471         (gtk_tree_view_column_init): ref/sink the column, to emulate
14472         GObject refcounting.
14473
14474         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
14475         
14476         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
14477         Use theme functions to draw the toggles 
14478
14479         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
14480
14481         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
14482         GdkPangoAttrEmbossed to use in rendering insensitive text
14483
14484         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
14485
14486         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
14487         using new GDK features
14488         
14489 2001-01-24  Alexander Larsson  <alexl@redhat.com>
14490
14491         * gtk/gtkimage.c:
14492         Splitted gtk_image_clear into gtk_image_clear() and
14493         gtk_image_reset(). Call gtk_image_clear() in ::destroy
14494         to avoid leaks.
14495
14496         * gtk/gtklabel.c (set_markup):
14497         Don't leak text.
14498
14499         * gtk/gtktextlayout.c:
14500         Always free display->shaped_objects.
14501
14502         * gtk/testgtk.c (create_clist):
14503         Don't leak custom style.
14504
14505 2001-01-23  Alexander Larsson  <alexl@redhat.com>
14506
14507         * gtk/gtkcolorsel.c (grab_color_at_mouse):
14508         Don't leak image. Simplify using gdk_colormap_query_color().
14509         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
14510
14511         * linux-fb/gdkcolor-fb.c:
14512         Implemented gdk_colormap_query_color.
14513
14514 2001-01-23  Alexander Larsson  <alexl@redhat.com>
14515
14516         * linux-fb/gdkcursor-fb.c:
14517         Don't leak built-in cursors.
14518
14519         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
14520         Don't leak tmp_points.
14521
14522         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
14523         Don't modify desc. Don't leak font if the PangoFont
14524         isn't found.
14525         
14526         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
14527         Free dash_list.
14528
14529         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
14530         Don't leak string.
14531         
14532 2001-01-20  Havoc Pennington  <hp@pobox.com>
14533
14534         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
14535         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
14536         me, matches Pango
14537
14538 2001-01-22  Havoc Pennington  <hp@redhat.com>
14539
14540         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
14541
14542         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
14543
14544         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
14545         Remove, move back to gdk-pixbuf
14546
14547         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
14548         to all the word functions
14549
14550         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
14551         before doing anything on NULL layout or if we don't have the focus
14552
14553         * gtk/testtext.c (fill_example_buffer): "justification"
14554
14555         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
14556         to be called "justification" not "justify"
14557
14558         * demos/gtk-demo/textview.c (create_tags): "justification"
14559         
14560         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
14561
14562 2001-01-22  Alexander Larsson  <alexl@redhat.com>
14563
14564         * gdk/gdkwindow.c (gdk_window_invalidate_region):
14565         Don't leak visible_region. Use visible_region instead of region.
14566         
14567         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
14568         Don't do extra gdk_drawable_ref(). This is not X.
14569         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
14570         gdk_fb_focused_window is ref:ed.
14571         (gdk_fb_window_send_crossing_events): Watch out for destroyed
14572         windows.
14573
14574 2001-01-22  Alexander Larsson  <alexl@redhat.com>
14575
14576         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
14577         Don't leak the PangoFontDescriptor.
14578
14579 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
14580
14581         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
14582         when not realized.
14583         (gtk_tree_view_scroll_to_cell): Make work when not realized.
14584         (gtk_tree_view_realize): add scroll_to support
14585         (gtk_tree_view_finalize): add a finalize method.  Populate.
14586         (gtk_tree_view_insert_column): ref and sink the column.
14587         (gtk_tree_view_append_column): ref and sink the column.
14588         (gtk_tree_view_queue_draw_node): New function to handle redrawing
14589         individual nodes.  Should make the code much more efficient, if
14590         actually used.
14591
14592 2001-01-19  Havoc Pennington  <hp@redhat.com>
14593
14594         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
14595         byte_offset variable was being used to mean both "offset into
14596         layout" and "offset into buffer line" which was no longer true
14597         with addition of preedit string; fix
14598
14599 2001-01-19  Havoc Pennington  <hp@redhat.com>
14600
14601         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
14602
14603         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
14604         function
14605
14606         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
14607         implement
14608
14609         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
14610         scroll_to_cell, matches TextView scroll functions better
14611         (gtk_tree_view_tree_to_widget_coords): new function
14612         (gtk_tree_view_widget_to_tree_coords): new function
14613         (gtk_tree_view_get_visible_rect): new function
14614         (gtk_tree_view_get_path_at_pos): accept negative coordinates
14615         (gtk_tree_view_draw_node_focus_rect): new function moved from
14616         draw_focus, also, use width of bin_window as width of the focus
14617         rect
14618         (gtk_tree_view_expand_row): fix bug where it didn't recognize
14619         already-expanded rows
14620         (gtk_tree_view_get_cell_rect): new function
14621         (gtk_tree_view_get_path_at_pos): return the click position
14622         relative to the passed-in cell
14623         (gtk_tree_view_set_expander_column): new function
14624
14625         * configure.in: remove gtk-config-2.0 chmod
14626
14627         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
14628         and properly handle drags with targets we don't understand
14629         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
14630         scrolling anyway
14631         (gtk_text_view_drag_drop): stop scrolling here though, and set the
14632         mark invisible
14633
14634         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
14635         function
14636         (gtk_drag_dest_get_target_list): new function
14637         (gtk_drag_dest_set_target_list): new function
14638         
14639         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
14640
14641         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
14642         related to drag-and-drop
14643
14644 2001-01-19  Alexander Larsson  <alexl@redhat.com>
14645
14646         * gdk/linux-fb/gdkprivate-fb.h:
14647         Define EMULATE_GDKFONT.
14648         Add extra pango_font stuff to GfkFontPrivate.
14649         
14650         * gdk/linux-fb/gdkdrawable-fb2.c:
14651         * gdk/linux-fb/gdkfont-fb.c:
14652         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
14653         emulation using PangoFont.
14654
14655 2001-01-17  Havoc Pennington  <hp@pobox.com>
14656
14657         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
14658         all the non-deprecated set_foo functions. Added missing object
14659         properties, and added g_object_notify() to setters. 
14660         Wrote docs.
14661         
14662 2001-01-18  Tor Lillqvist  <tml@iki.fi>
14663
14664         * gtk/gtkmain.c
14665         * gtk/gtkrc.c: (Win32) Use the new
14666         g_win32_get_package_installation_(sub)directory() functions.
14667
14668         * config.h.win32.in: New file.
14669         
14670         * config.h.win32: Removed.
14671
14672         * configure.in: Output config.h.win32.
14673
14674         * Makefile.am: Add it to EXTRA_DIST.
14675
14676         * gtk/gtk.def: Update.
14677
14678 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
14679
14680         * gtk/gtklabel.c (gtk_label_size_request): Set the
14681         attributes onto the PangoLayout even if they are newly
14682         created from label->pattern.
14683
14684 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
14685
14686         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
14687
14688         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
14689         structures in functions. Fixes bug where gtk_dataset_*
14690         was accidentally still being used in one place, causing
14691         every dest side event to be treated independently.
14692
14693         * gtk/gtkdnd.c: Remove last vestages of handling
14694         ::draw (fixes warning)
14695         
14696         * gtk/gtkentry.[ch]: Add drag and drop support.
14697
14698         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
14699         new function gtk_check_drag_threshhold() for checking
14700         to check if (dx,dy) has exceeded the threshhold for starting
14701         a drag and use it everywhere.
14702
14703 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
14704
14705         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
14706         add -I{includedir}/gtk-2.0.
14707
14708         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
14709         gdk/gdk-pixbuf.h: Doc fixups.
14710         
14711         * gtk/gtkobject.h: Remove trailing , from enum
14712
14713 2001-01-17 Alexander Larsson <alexl@redhat.com> 
14714
14715         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
14716         Doh! Mixed up x and y.
14717
14718         * gdk/linux-fb/gdkglobals-fb.c:
14719         Removed gdk_fb_pointer_grab_window_events,
14720         added _gdk_fb_pointer_grab_owner_events and
14721         _gdk_fb_keyboard_grab_owner_events.
14722
14723         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
14724         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
14725         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
14726         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
14727         Send crossing events after ungrab finished.
14728         (gdk_keyboard_grab): Set ..._owner_events
14729         (type_masks): Move out of function.
14730         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
14731         gdk_fb_keyboard_event_window): New functions, return the
14732         window an event should be targeted at. Handles grabs and
14733         event propagation. Can return NULL.
14734         (gdk_event_make): Remove event_mask checking. Now always
14735         returns an event.
14736                 
14737         * gdk/linux-fb/gdkkeyboard-fb.c:
14738         * gdk/linux-fb/gdkproperty-fb.c:
14739         * gdk/linux-fb/gdkselection-fb.c:
14740         Use new event_window/gdk_event_make() behaviour.
14741         
14742         * gdk/linux-fb/gdkmouse-fb.c:
14743         Use new event_window/gdk_event_make() behaviour.
14744         Only send motion events if in the same window.
14745         If grabbed, use cursor from window if sibling of grabbed
14746         window, and cursor from grabbed window otherwise.
14747
14748         * gdk/linux-fb/gdkprivate-fb.h:
14749         Update gdk_fb_window_send_crossing_events, gdk_event_make
14750         and grab varaible declarations. Add gdk_fb_*_event_window().
14751
14752         * gdk/linux-fb/gdkwindow-fb.c:
14753         Use new event_window/gdk_event_make() behaviour.
14754         Keep correct track of focus window.
14755         (gdk_window_set_events): Set all specific button motion masks
14756         if GDK_BUTTON_MOTION_MASK set.
14757
14758         * gtk/gtkdnd.c (gtk_drag_update):
14759         Free info->last_event if gdk_drag_motion returned FALSE.
14760
14761 2001-01-16  Tor Lillqvist  <tml@iki.fi>
14762
14763         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
14764         Eliminate redraws when input-only windows are shown or
14765         hidden. Thanks to jpe@archaeopteryx.com.
14766
14767 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
14768
14769         * docs/faq/gtk-faq.sgml: FAQ update:
14770           - Update to bugzilla
14771           - Add GTK+ and security/SUID/SGID
14772           - Add DnD question
14773
14774 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
14775
14776         * gdk/linux-fb/gdkdnd-fb.c:
14777         Some cleanups.
14778         
14779 2001-01-15  Havoc Pennington  <hp@pobox.com>
14780
14781         * tests/testtreeview.c: add test stuff for CellRendererToggle
14782
14783         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
14784         accessor
14785
14786         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
14787         only toggle on button press (would do release like GtkButton, but
14788         we'd need implicit grab code for treeview cells)
14789
14790 2001-01-16  Tor Lillqvist  <tml@iki.fi>
14791
14792         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
14793
14794         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
14795         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
14796
14797         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
14798         to g_{locale,filename}_{to,from}_utf8 to match current API.
14799
14800         * gtk/makefile.msc.in (gtk_OBJECTS)
14801         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
14802
14803         * gtk/gtk.def: Update.
14804
14805 2001-01-15  Tor Lillqvist  <tml@iki.fi>
14806
14807         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
14808         implementaion that more closely mimics the events that an X server
14809         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
14810         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
14811         with nested preview widgets, for instance, more responsive when
14812         you move the mouse quickly into them.
14813         (find_window_for_pointer_event): Make it actually compile.
14814         (gdk_event_translate): Set send_event to the value of
14815         InSendMessage (). This doesn't really mean the same as X11's
14816         send_event flag, but is close enough, says jpe@archaeopteryx.com
14817
14818 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14819
14820         * gdk/linux-fb/gdkdnd-fb.c:
14821         Implemented drag and drop.
14822         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
14823         when it tries to free and then copy the same event (info->last_event).
14824         I am not sure about why this happens, but will continue looking.
14825
14826 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14827
14828         * gdk/linux-fb/gdkwindow-fb.c:
14829         Use gdk_window_invalidate_rect instead of
14830         gdk_window_invalidate_rect_clear to minimise flashing.
14831         When hiding windows you need to clear the root window though.
14832
14833 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14834
14835         * gdk/linux-fb/gdkdrawable-fb2.c:
14836         For optization, add an full_shapes argument to gdk_fb_clip_region.
14837         If this is false, only the cliprects of the shapes are used.
14838
14839         * gdk/linux-fb/gdkprivate-fb.h:
14840         Export gdk_fb_window_peek_shape.
14841         Add full_shapes to gdk_fb_clip_region.
14842
14843         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
14844         When moving a window, don't clear everything under the it, just the
14845         root window. Makes stuff faster and flash less.
14846         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
14847         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
14848         offset of the shape.
14849         
14850
14851 2001-01-12  Havoc Pennington  <hp@redhat.com>
14852
14853         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
14854         current invalid region, fixes redraw bug while scrolling the 
14855         text widget
14856
14857         * gtk/gtktextview.c, gtk/gtktextview.h:
14858         Rearrange the scrolling/validation/etc. code in a major way, 
14859         so it seems to make sense to me. Probably isn't genuinely that
14860         much better, but...
14861
14862         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
14863         notifies
14864
14865         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
14866
14867 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
14868
14869         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
14870         Hide mouse pointer while rotation. Show it afterwards.
14871
14872 2001-01-12  Alexander Larsson  <alexl@redhat.com>
14873
14874         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
14875         windows in consideration when generating clip region.
14876
14877         * gdk/linux-fb/gdkfb.h:
14878         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
14879
14880         * gdk/linux-fb/gdkprivate-fb.h:
14881         Add shape to GdkWindowFBDatat.
14882         exported gdk_fb_window_get_abs_shape().
14883         removed gdk_fb_draw_lines declaration.
14884
14885         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
14886         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
14887         send focus changes when there is a grabbed window.
14888         (gdk_window_get_pointer): Handle shaped windows.
14889         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
14890         (gdk_fb_window_peek_shape): Returns the shape for a window,
14891         handles GDK_FB_USE_CHILD_SHAPE.
14892         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
14893         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
14894         (gdk_window_shape_combine_mask): Implement.
14895
14896         * gtk/gtkwindow-decorate.c:
14897         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
14898         setting the shape of a window makes the window transparent.
14899
14900 2001-01-11  Havoc Pennington  <hp@redhat.com>
14901
14902         * gtk/gtktreemodelsimple.h: Oops, broke some macros
14903
14904 2001-01-10  Havoc Pennington  <hp@redhat.com>
14905
14906         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
14907         add this function, bug 40251
14908
14909         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
14910         of type macro   
14911
14912 2001-01-11  Alexander Larsson  <alexl@redhat.com>
14913
14914         * acconfig.h:
14915         Added ENABLE_SHADOW_FB
14916
14917         * configure.in:
14918         Added --disable-shadowfb
14919
14920         * gdk/linux-fb/gdkcursor-fb.c:
14921         Update shadowfb when updating cursor
14922
14923         * gdk/linux-fb/gdkdrawable-fb2.c:
14924         Added wrappers for shadowfb that calls  the normal drawable
14925         methods, but calls gdk_shadow_fb_update(bounding box) when
14926         GdkWindows are drawed to.
14927         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
14928         which also returns the bounding box.
14929
14930         * gdk/linux-fb/gdkfb.h:
14931         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
14932
14933         * gdk/linux-fb/gdkgeometry-fb.c:
14934         Update shadowfb when scrolling window.
14935
14936         * gdk/linux-fb/gdkglobals-fb.c:
14937         Add _gdk_fb_screen_angle.
14938         
14939         * gdk/linux-fb/gdkkeyboard-fb.c:
14940         Test code for screen rotation. Shift-F2 in the xlate driver
14941         rotates the screen.
14942
14943         * gdk/linux-fb/gdkmain-fb.c:
14944         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
14945
14946         * gdk/linux-fb/gdkmouse-fb.c:
14947         Use fb_width/height instead of modeinfo.xres/yres.
14948
14949         * gdk/linux-fb/gdkprivate-fb.h:
14950         Added fb_men, fb_width, fb_height & fb_stride. When using
14951         shadow fb these can differ from the framebuffer stuff.
14952         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
14953         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
14954         _gdk_fb_screen_angle. Removed CM, RP.
14955
14956         * gdk/linux-fb/gdkrender-fb.c:
14957         Added code for shadowfb handling and screen rotation using
14958         shadowfb.
14959
14960         * gdk/linux-fb/gdkwindow-fb.c:
14961         Use fb_mem, fb_stride, fb_width, fb_height.
14962         Added recompute_rowstride to reset the rowstride of all windows.
14963         Added gdk_fb_recompute_all() which recomputes rootwindow size,
14964         window abs positions and window rowstrides. Usefull when the
14965         rotation has changed.
14966
14967 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
14968
14969         * docs/faq/gtk-faq.sgml: update to make web site updating easier
14970
14971 2001-01-10  Havoc Pennington  <hp@redhat.com>
14972
14973         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
14974         where sibling == iter
14975         (gtk_tree_store_insert_after): handle sibling == iter
14976         (gtk_tree_store_prepend): remove stamp checks
14977         (gtk_tree_store_insert_before): ditto
14978         (gtk_tree_store_append): ditto
14979         (gtk_tree_store_get_path): ditto
14980         (gtk_tree_store_get_value): ditto
14981         (gtk_tree_store_iter_has_child): ditto
14982         (gtk_tree_store_iter_n_children): ditto
14983         (gtk_tree_store_iter_nth_child): ditto
14984         (gtk_tree_store_insert_after): ditto
14985         (gtk_tree_store_is_ancestor): ditto
14986         (gtk_tree_store_iter_depth): ditto
14987         (gtk_tree_store_insert_before): assert that sibling's parent is
14988         the same as the passed-in parent
14989         (gtk_tree_store_insert_after): assert that sibling's parent is
14990         the same as the passed-in parent
14991
14992         
14993         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
14994         function to get the first iterator in a model
14995         
14996         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
14997         conventionally the "root" in this sense is just NULL afaict.
14998
14999         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
15000         where sibling == iter
15001         (gtk_list_store_insert_after): handle case where sibling == iter
15002
15003         * tests/testtreeview.c (run_automated_tests): fairly lame basic
15004         automated tests for ListStore, TreeStore
15005
15006         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
15007         (gtk_list_store_insert): update tail pointer, and fix it to work
15008         (gtk_list_store_insert_before): update tail pointer, and fix it to work
15009         (gtk_list_store_append): use tail to be faster
15010         (gtk_list_store_prepend): fix it, update tail pointer
15011         (gtk_list_store_insert_after): fix it, update tail pointer
15012
15013         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
15014         the list
15015
15016 2001-01-09  Havoc Pennington  <hp@redhat.com>
15017
15018         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
15019         is NULL due to a pending resize
15020
15021         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
15022         column width to values less than 1
15023
15024         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
15025         width to be between min/max width, and still set the width 
15026         even if autosize is turned on, so the tree view can use this 
15027         function in order to autosize.
15028         (gtk_tree_view_column_init): set initial width to 1 not 0
15029
15030         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
15031         setter function to modify column width, so we get notification
15032         (gtk_tree_view_insert_iter_height): ditto
15033         (gtk_tree_view_calc_size): ditto
15034         (gtk_tree_view_check_dirty): ditto
15035
15036         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
15037         properties to change all the interesting attributes of the tree
15038         view column.
15039         (gtk_tree_view_column_set_header_clickable): rename set_clickable
15040         (gtk_tree_view_column_get_clickable): add
15041         (gtk_tree_view_column_set_cell_renderer): don't unset the current
15042         attributes; assume a cell renderer with equivalent object
15043         properties has been swapped in. Do g_object_notify().
15044         (gtk_tree_view_column_set_visible): g_object_notify
15045         (gtk_tree_view_column_get_sizing): rename from get_col_type
15046         (gtk_tree_view_column_set_sizing): g_object_notify
15047         (gtk_tree_view_column_set_width): add g_object_notify
15048         (gtk_tree_view_column_set_min_width): ditto
15049         (gtk_tree_view_column_set_max_width): ditto
15050         (gtk_tree_view_column_set_title): ditto
15051         (gtk_tree_view_column_set_clickable): ditto
15052         (gtk_tree_view_column_set_widget): ditto
15053         (gtk_tree_view_column_set_justification): ditto
15054
15055 2001-01-09  Havoc Pennington  <hp@redhat.com>
15056
15057         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
15058         there are no rows in the model
15059
15060         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
15061         NULL, then return the start of the list
15062
15063         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
15064         if we can't get any rows from an empty model 
15065
15066         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
15067         extraneous * after function pointer typedef usage
15068
15069         * Makefile.am: don't specify full path to cp and rm
15070
15071         * gtk/gtkcellrenderertextpixbuf.c
15072         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
15073         NULL before dereferencing, fixes a segfault that happened from
15074         time to time
15075
15076         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
15077         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
15078         and reindent the function
15079         (gtk_cell_renderer_pixbuf_get_size): indentation
15080
15081         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
15082         we quit it
15083         (gtk_dialog_add_buttons_valist): add g_return_if_fail
15084         (gtk_dialog_set_default_response): New function, to set default
15085         button
15086         (gtk_dialog_set_response_sensitive): New function, to set 
15087         sensitivity of buttons
15088
15089         * gtk/gtkcellrendererpixbuf.c
15090         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
15091         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
15092
15093         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
15094         handle any G_TYPE_OBJECT subclass, not just the base class, and 
15095         also boxed types.
15096         (_gtk_tree_data_list_value_to_node): ditto
15097
15098         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
15099         --gtk-debug=tree
15100
15101         * gtk/gtkmain.c: add GTK_DEBUG_TREE
15102
15103         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
15104
15105 2001-01-09  Tor Lillqvist  <tml@iki.fi>
15106
15107         * gdk/win32/gdkevents-win32.c: Implement better mouse
15108         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
15109         (find_window_for_pointer_event): New function.
15110         (gdk_event_translate): Use it when handling mouse events.
15111
15112 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
15113
15114         * configure.in:
15115         Added --with-included-loaders option
15116
15117         * gdk-pixbuf/Makefile.am:
15118         * gdk-pixbuf/gdk-pixbuf-io.c:
15119         Add support for including selected gdk-pixbuf loaders only.
15120
15121         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
15122         gtk_window_set_has_frame):
15123         Added inline documentation.
15124
15125         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
15126         * docs/reference/gdk/tmpl/windows.sgml:
15127         Added inline documentation.
15128
15129 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
15130
15131         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
15132         realizing buttons that have already been realized.
15133
15134 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
15135
15136         * tests/testtreeview.c (main): Show menu items before adding to
15137         option menu.
15138
15139         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
15140         around if we kill them.
15141
15142         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
15143         Return if we pass in a NULL model.
15144
15145 2001-01-08  Havoc Pennington  <hp@redhat.com>
15146
15147         * tests/testtreeview.c: hack on this some
15148
15149         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
15150         gtk_tree_store_set_valist, v is for arrays, valist for varargs
15151         list
15152         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
15153
15154         * gtk/gtkliststore.h: Add varargs set() and get() convenience
15155         functions
15156
15157 2001-01-08  Alexander Larsson  <alexl@redhat.com>
15158
15159         * gtk/gtkwindow-decorate.[hc]:
15160         * gtk/Makefile.am:
15161         New files. Contains an implementation of a minimal WM for
15162         linux-fb.
15163
15164         * gtk/gtkwindow.h:
15165         Add the possibility for GtkWindows to specify a frame. This
15166         is used for the window decoration code, but could concievably
15167         be used for X programs too (xmms style windows).
15168         GtkWindow->frame is the toplevel window if the window is framed.
15169         The signal frame_event gets all events that are targeted to
15170         GtkWindow->frame.
15171         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
15172         
15173         * gtk/gtkwindow.c:
15174         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
15175         Call out to gtkwindow-decorate.c for WM support in linx-fb.
15176
15177 2001-01-08  Alexander Larsson  <alexl@redhat.com>
15178
15179         * docs/README.linux-fb:
15180         Correct filename ~/.pangoft2_aliases
15181
15182         * gdk/gdkwindow.h:
15183         Added new function gdk_window_get_decorations.
15184
15185         * gdk/linux-fb/gdkfb.h:
15186         Removed _gdk_window_get_decorations declaration.
15187         Renamed _gdk_window_set_child_handler to
15188         gdk_fb_window_set_child_handler.
15189
15190         * gdk/linux-fb/gdkwindow-fb.c:
15191         Renamed _gdk_window_set_child_handler to
15192         gdk_fb_window_set_child_handler.
15193
15194         * gdk/x11/gdkwindow-x11.c:
15195         New function gdk_window_get_mwm_hints().
15196         Implemented gdk_window_get_decorations.
15197
15198         * docs/reference/gdk/tmpl/windows.sgml:
15199         * docs/reference/gdk/gdk-sections.txt:
15200         Added gdk_window_get_decorations docs.
15201         
15202 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
15203
15204         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
15205         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
15206         gdk_fb_window_send_crossing_events):
15207         Possibly send focus events when the mouse moves from one
15208         window to another.
15209
15210 2001-01-07  Tor Lillqvist  <tml@iki.fi>
15211
15212         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
15213         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
15214         to match current API.
15215
15216         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
15217         environment variable is set, don't call g_error when on a
15218         palettized (PseudoColor) display. Some people want to use GTK+ 
15219         in 256-colour mode even though works only partially.
15220
15221         * gdk/gdk.def
15222         * gtk/gtk.def
15223         * gtk/makefile.mingw.in: Update.
15224
15225 2001-01-05  Havoc Pennington  <hp@redhat.com>
15226
15227         * tests/testtreeview.c: hack on this a bit
15228
15229         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
15230         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
15231
15232         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
15233         was spelled incorrectly
15234         (GTK_IS_TREE_MODEL_SIMPLE): ditto
15235
15236         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
15237         from gtk_tree_view_set_headers_active   
15238
15239         * gtk/gtktexttag.c:
15240         (gtk_text_tag_get_property): handle PROP_DIRECTION
15241         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
15242         properties, bug 40235
15243
15244         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
15245         forward_to_line_end
15246
15247 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
15248
15249         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
15250         modules/input/gtkimcontextxim.c: Adapt to new prototypes
15251         for unicode,locale,filename conversion functions.
15252
15253 2001-01-05  Havoc Pennington  <hp@redhat.com>
15254
15255         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
15256         broken if called on the first position in the buffer.
15257
15258         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
15259         forward_to_delimiters to be called only if we aren't already at
15260         the delimiters.
15261
15262 2001-01-05  Havoc Pennington  <hp@redhat.com>
15263
15264         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
15265
15266 2001-01-05  Alexander Larsson  <alexl@redhat.com>
15267
15268         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
15269         colormap in here. Sync from X port.
15270         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
15271         Sync from X port.
15272         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
15273         This happens now and then, and i don't think it is a bug.
15274         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
15275         != endpoint.
15276         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
15277         GDK_LINE_SOLID.
15278
15279         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
15280         some of the fields filled in at least.
15281
15282         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
15283         miLineArcD is no more, remove it from the function definition.
15284
15285 2001-01-04  Havoc Pennington  <hp@redhat.com>
15286
15287         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
15288         this
15289
15290         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
15291         user_data instead of tree_node
15292
15293         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
15294         TREE_VIEW_COLUMN_SIZE
15295
15296         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
15297         "size" field to "width" finishes bug 40061
15298
15299         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
15300         for bitfields, bug 40268
15301
15302 2001-01-04  Havoc Pennington  <hp@redhat.com>
15303
15304         Rename some stuff:
15305         
15306         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
15307
15308         s/GtkModelSimple/GtkTreeModelSimple/g;
15309         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
15310         s/gtk_model_simple/gtk_tree_model_simple/g;
15311         s/gtkmodelsimple/gtktreemodelsimple/g;
15312
15313         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
15314
15315         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
15316         s/column_set_col_type/column_set_sizing/g;
15317
15318         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
15319         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
15320
15321         s/GtkCellRendererType/GtkCellRendererState/g;
15322         
15323         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
15324         (gtk_cell_renderer_toggle_class_init): change "state" property to
15325         "active", to match GtkToggleButton
15326         (gtk_cell_renderer_toggle_get_active): new function, bug
15327         40269
15328         (gtk_cell_renderer_toggle_set_active): new function
15329         (gtk_cell_renderer_toggle_set_property): route changes to toggle
15330         state through gtk_cell_renderer_set_active
15331
15332 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
15333
15334         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
15335         temporarily until they work again.  Brought up to date with
15336         changes in the model.
15337         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
15338         model.
15339
15340 2001-01-04  Havoc Pennington  <hp@redhat.com>
15341
15342         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
15343         equal to the line length, then position iterator before paragraph 
15344         separators. Fixes crash reported by Mikael Hermansson when
15345         pressing left arrow from the start of a line.   
15346
15347         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
15348         about byte indexes off the end
15349         (iter_set_from_char_offset): add g_error about char offsets
15350         off the end
15351
15352 2001-01-03  Havoc Pennington  <hp@redhat.com>
15353
15354         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
15355
15356         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
15357         of private functions; remove inclusion of private headers.
15358
15359         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
15360         function, so we don't need private functions in gtktextdisplay.c
15361
15362         * gtk/gtktextiterprivate.h: underscore-ification
15363
15364         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
15365         to instead say "only useful to implement widgets"
15366
15367         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
15368         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
15369         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
15370
15371         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
15372         This function was completely broken
15373
15374         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
15375
15376         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
15377
15378         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
15379
15380         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
15381
15382         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
15383
15384         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
15385
15386         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
15387         gtk_paint_layout
15388
15389         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
15390         gtk_paint_layout
15391
15392         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
15393         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
15394         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
15395         which were not implemented.     
15396
15397         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
15398         insert_pixbuf signal. Rename delete_text to delete_range since it
15399         also deletes pixbufs and child anchors. This almost closes bug
15400         40245 (still need to deal with child anchors)
15401
15402         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
15403         insert_pixbuf, change signal names as appropriate, change types of
15404         signals taking marks/tags to have the specific type, not just
15405         G_TYPE_OBJECT
15406         
15407         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
15408         closes bug 40051
15409
15410         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
15411         unnecessary remove_contents() call
15412         (gtk_option_menu_class_init): add a "changed" signal, closes
15413         bug 40039
15414         (gtk_option_menu_update_contents): emit "changed" if the 
15415         active menu item changes
15416
15417         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
15418         cast to GtkObject, reported by Jonas Borgstrom
15419         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
15420         we can't do stuff with side effects in finalize. Instead, spew a
15421         warning if the loader isn't closed.
15422
15423         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
15424         colormap in here, non-X ports probably need to sync to this change
15425
15426         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
15427         assertion that colormap != NULL, you can set the colormap to NULL
15428         if you like.
15429         
15430         * Makefile.am: remove gtk-config-2.0
15431
15432         * configure.in: Use pkg-config to locate GLib. Remove
15433         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
15434         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
15435         Use pkg-config to locate Pango. Output correct Pango libs to
15436         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
15437
15438         * Makefile.am (pkgconfig_DATA): install only target-specific pc
15439         files
15440         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
15441         X11 pc files
15442
15443         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
15444         unref from here
15445
15446 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
15447
15448         * configure.in:
15449         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
15450
15451 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
15452
15453         * gtk/gtktextlayout.c
15454         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
15455         variable when moving back onto a single line.
15456
15457 2001-01-01  Havoc Pennington  <hp@redhat.com>
15458
15459         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
15460
15461         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
15462
15463         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
15464         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
15465
15466 2001-01-01  Havoc Pennington  <hp@redhat.com>
15467
15468         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
15469
15470         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
15471         GtkTextAttributes
15472
15473         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
15474         #40246
15475         (gtk_text_attributes_copy_values): rename from 
15476         gtk_text_attributes_copy
15477         (gtk_text_attributes_copy): a more standard GTK copy function, 
15478         which returns a new object
15479
15480 2001-01-01  Havoc Pennington  <hp@redhat.com>
15481
15482         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
15483         
15484         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
15485         don't fill in tree_view->priv->selection, kind of an unexpected
15486         side effect
15487
15488         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
15489         gtkintl.h
15490         
15491         * gtk/gtkcellrenderer.c: Remove definition of _ and include
15492         gtkintl.h
15493         (gtk_cell_renderer_get_property): remove calls to g_value_init
15494
15495         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
15496         gtkintl.h
15497
15498         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
15499         and include gtkintl.h
15500         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
15501         property names
15502
15503         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
15504         GtkTreeSelection
15505         (_gtk_tree_selection_new_from_with_view): rename, return
15506         GtkTreeSelection
15507         (_gtk_tree_selection_set_tree_view): rename with uscore
15508         (gtk_tree_selection_get_selected): fill in the "model" out param
15509         first, so it gets filled in even if we return at the top of the 
15510         function
15511         (gtk_tree_selection_real_select_all): add a comment and an else{}
15512         to clarify this a bit
15513         (gtk_tree_selection_real_unselect_all): add the same else{}
15514
15515         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
15516         set_tree_view to have underscore prefixes, move them to the
15517         private header, fix return type of new_with_tree_view
15518         (struct _GtkTreeSelection): mark struct
15519         fields private  
15520
15521         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
15522         GtkTreeModelFlags, not a guint
15523         (gtk_tree_path_prev): return gboolean not gint
15524         (gtk_tree_path_up): return gboolean not gint
15525
15526         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
15527         return GtkTreeModelFlags, not a guint
15528
15529         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
15530         that child model is non-null before unrefing it
15531         (g_value_int_compare_func): make this a qsort compare func, not 
15532         a boolean predicate
15533
15534         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
15535         (add -umn to the end), and mark it unimplemented
15536         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
15537         I don't see what it's for - doesn't the model always sort itself?
15538         (gtk_tree_model_sort_set_compare): this had the wrong signature
15539
15540         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
15541         Fix the docs to say that it destructively replaces existing
15542         attributes (previously said that it added attributes).
15543         (gtk_tree_view_column_set_visible): canonicalize bool before
15544         equality testing. Also, check for realization before
15545         hiding/showing the tree_column->window; if this window could exist
15546         before realization, then it's busted and needs fixing, we can't 
15547         create GDK resources pre-realization. Also, remove
15548         superfluous queue_resize(), since set_size() does that for us.
15549         (gtk_tree_view_column_set_col_type): check realization before 
15550         using tree_column->window
15551
15552         * gtk/gtktreedatalist.c: fix filename in copyright notice
15553
15554 2000-12-31  Havoc Pennington  <hp@pobox.com>
15555
15556         * gtk/gtktextview.c: Rearrange all the
15557         scroll-while-dragging-or-selecting code to be different, not
15558         necessarily better. ;-)
15559         (gtk_text_view_scroll_to_mark): Change this
15560         function to take within_margin as a fraction instead of a pixel
15561         value, and to take alignment arguments (indicating where to align 
15562         the mark inside the visible area)
15563         
15564         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
15565         to GtkObject
15566
15567         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
15568         behavior so that offsets past the end of the line are not 
15569         allowed, and an offset equal to the line length moves the iterator
15570         to the next line
15571         (gtk_text_iter_set_line_index): make parallel change
15572         (gtk_text_iter_get_bytes_in_line): add this function
15573         
15574         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
15575         of byte indexes off the end of the line; byte index at the end of
15576         the line now returns FALSE and doesn't fill in the requested
15577         values, byte index past the end of the line is an error.  Also,
15578         don't allow -1 offset anymore, since its meaning is unclear.
15579
15580         This change exposes some bug in visual cursor motion, where we
15581         end up with a huge invalid byte index; needs fixing. Symptom of 
15582         bug is a crash when you hit up arrow.
15583         
15584         (_gtk_text_line_char_locate): match the change to byte_locate
15585
15586         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
15587         from start of line properly. fixes bug reported by Mikael
15588         Hermansson where backspace would delete all text before the
15589         cursor.
15590
15591 2000-12-30  Tor Lillqvist  <tml@iki.fi>
15592
15593         * gdk/win32/gdkwindow-win32.c
15594         (gdk_window_impl_win32_get_visible_region): New function, as in
15595         the X11 backend.
15596         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
15597         instead of duplicating the same code here.
15598
15599         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
15600         GDK_COLORMAP macro.
15601
15602         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
15603         destroy function.
15604         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
15605         access that.
15606
15607         * gtk/gtk.def: Update.
15608
15609         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
15610
15611 2000-12-30  Havoc Pennington  <hp@pobox.com>
15612
15613         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
15614         colormap on input only windows, to avoid special cases all over
15615         the code for these windows.
15616
15617 2000-12-26  Tor Lillqvist  <tml@iki.fi>
15618
15619         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
15620         we are on a palettized display ("PseudoColor" in X11), as the code
15621         for that doesn't work anyway, and never has.
15622
15623 2000-12-22  Alexander Larsson  <alexl@redhat.com>
15624
15625         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
15626         Don't use isprint() for chars > 255.
15627
15628 2000-12-21  Havoc Pennington  <hp@redhat.com>
15629
15630         * tests/testtreeview.c: more work
15631
15632 2000-12-21  Alexander Larsson  <alexl@redhat.com>
15633
15634         * docs/README.linux-fb:
15635         Update the docs to the new pangoft2 way.
15636
15637 2000-12-21  Alexander Larsson  <alexl@redhat.com>
15638
15639         * configure.in:
15640         For linux-fb get the pangoft2 cflags and libs. This needs a recent
15641         pango version.
15642         Remove modules/linux-fb/Makefile.
15643
15644         * gdk/linux-fb/gdkdrawable-fb2.c:
15645         Render glyphs using freetype.
15646
15647         * gdk/linux-fb/gdkfb.h:
15648         Add new fb-specific functions needed for managing windows.
15649
15650         * gdk/linux-fb/gdkmain-fb.c:
15651         Remove gdk_font_init/fini() calls.
15652
15653         * gdk/linux-fb/gdkpango-fb.c:
15654         Remove old implementation. Use pangoft2 instead.
15655
15656         * gdk/linux-fb/gdkprivate-fb.h:
15657         Remove PangoFBFont and related stuff.
15658
15659         * gdk/linux-fb/gdkwindow-fb.c:
15660         Implement drawable->get_visible_region.
15661         Implement support for _gdk_window_set_child_handler () and
15662         _gdk_window_get_decorations().
15663
15664         * modules/Makefile.am:
15665         Remove linux-fb subdir.
15666
15667         * modules/linux-fb/*:
15668         Removed all.
15669         
15670 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
15671
15672         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
15673         calls, as they are no longer needed.
15674
15675         * gtk/gtktreemodelsort.c: Fix up the comparison code.
15676         
15677         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
15678         figure out how to emit a signal on an interface.
15679
15680 2000-12-20  Havoc Pennington  <hp@redhat.com>
15681
15682         * tests: new directory to contain tests, gtk/test* should move
15683         here sometime (with appropriate on-cvs-server hackery)
15684
15685         * tests/testtreeview.c, tests/Makefile.am: a test
15686         
15687         * configure.in (AC_OUTPUT): add tests/Makefile
15688
15689         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
15690         and "invisible_set" which were missing
15691
15692         * gtk/gtkrbtree.h: some cheesy indentation fix
15693         
15694 2000-12-20  Alexander Larsson  <alexl@redhat.com>
15695
15696         * gtk/gtkinvisible.c (gtk_invisible_realize):
15697         Attach the style to the window so that the style it is not
15698         leaked when unrealizing the window.
15699
15700 2000-12-18  Havoc Pennington  <hp@redhat.com>
15701
15702         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
15703         begin/end user action where appropriate
15704         (gtk_text_view_commit_handler): add begin/end user action
15705
15706         * gtk/gtktextbuffer.c: add begin/end user action signals, and
15707         bracket interactive operations with begin/end user action pair.
15708         
15709         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
15710         "interactive" arg from insert_text and delete_text signals.
15711         Add begin_user_action, end_user_action signals
15712         (gtk_text_buffer_begin_user_action): 
15713         (gtk_text_buffer_end_user_action): New functions to delimit 
15714         a user-visible action
15715
15716         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
15717         signals.
15718         
15719 2000-12-18  Havoc Pennington  <hp@redhat.com>
15720
15721         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
15722         was pretty non-working.
15723
15724         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
15725         by passing the length to g_utf8_validate().
15726
15727 2000-12-16  Havoc Pennington  <hp@pobox.com>
15728
15729         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
15730         Port to GObject, can go back in gdk-pixbuf after setting up 
15731         a gdk-pixbuf-marshal.h header over there.
15732
15733         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
15734         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
15735         args
15736         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
15737         set
15738         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
15739         here, do it when we create the buttons later
15740         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
15741         (gtk_tree_view_map): paranoia checks that column->button is shown 
15742         and unmapped
15743         (gtk_tree_view_size_request): only request visible children.
15744         Move header size calculation in here, for cleanliness, and 
15745         to maintain invariants for child widgets if we eventually 
15746         let users set different children inside the buttons
15747         (gtk_tree_view_map_buttons): factor out code to map buttons,
15748         since it was being called several times
15749         (gtk_tree_view_size_allocate_buttons): move_resize the drag
15750         windows instead of just moving them; their height may change 
15751         if we allow random widgets in there, or the theme changes.
15752         (gtk_tree_view_size_allocate): move button size allocation 
15753         above emitting the scroll signals, to ensure a sane state when we
15754         hit user code
15755         (gtk_tree_view_button_release): remove queue_resize after
15756         tree_view_set_size(), set_size() will handle any resize queuing
15757         that's needed
15758         (gtk_tree_view_focus_in): just queue a draw, don't fool with
15759         draw_focus goo
15760         (gtk_tree_view_focus): use gtk_get_current_event() and
15761         gdk_event_get_state()
15762         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
15763         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
15764         semicolon
15765         (gtk_tree_view_create_button): show the button here
15766         (gtk_tree_view_button_clicked): actually emit the clicked signal
15767         on the column
15768         (_gtk_tree_view_set_size): return right away if the size is
15769         unchanged, as a cheesy optimization
15770         (gtk_tree_view_setup_model): rename set_model_realized to 
15771         setup_model to match the flag that indicates whether we've 
15772         called it
15773         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
15774         exist, because set_scroll_adjustment does that and it shouldn't
15775         matter what order you call these in
15776         (gtk_tree_view_get_vadjustment): ditto
15777         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
15778         for paranoia
15779         (gtk_tree_view_set_headers_visible): call
15780         gtk_tree_view_map_buttons() instead of using cut-and-paste code
15781         (gtk_tree_view_append_column): clarify whether the return value
15782         is the count of columns before or after, and do the increment 
15783         separately from the return statement so you can tell from the code.
15784         (gtk_tree_view_remove_column): ditto
15785         (gtk_tree_view_insert_column): ditto
15786         (gtk_tree_view_get_column): remove g_return_if_fail for columns
15787         outside the existing range, the docs say that outside-range
15788         columns are allowed, so we handle them as documented. (Presumably
15789         this allows a nice loop with column != NULL as test.)
15790         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
15791         mean (left/right/center etc.).
15792         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
15793         (gtk_tree_view_expand_row): add docs
15794         (gtk_tree_view_collapse_row): add docs
15795
15796         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
15797         function to emit the clicked signal on a column
15798         
15799         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
15800         state of an event
15801         (gdk_event_get_time): don't treat GDK_SCROLL 
15802         as a button event, remove default case from switch so gcc 
15803         will whine if we don't explicitly handle all event types
15804
15805         * gtk/gtktreeselection.h: added some FIXME 
15806         
15807         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
15808         "columns" to "n_columns" and "column" to "columns" for clarity
15809
15810 2000-12-16  Havoc Pennington  <hp@pobox.com>
15811         
15812         * gtk/gtktextiter.c: General cleanup of the log attr iteration
15813         stuff. This should make e.g. the delete key work again in the
15814         text widget...
15815         (gtk_text_iter_forward_cursor_positions): handle negative count
15816         (gtk_text_iter_backward_cursor_positions): handle negative count
15817         (gtk_text_iter_forward_word_ends): handle negative count
15818         (gtk_text_iter_backward_word_starts): handle negative count
15819
15820         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
15821         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
15822         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
15823         GObject. No doubt will cause breakage.
15824
15825         * demos/gtk-demo/textview.c: remove hacks around
15826         non-GObject-ification of the text objects
15827
15828         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
15829         the text tag
15830         
15831 2000-12-14  Havoc Pennington  <hp@pobox.com>
15832
15833         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
15834         that we have Xrender
15835
15836 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
15837
15838         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
15839         Add two virtualized functions gdk_drawable_get_clip_region - to
15840         get the clip region when drawing.
15841         
15842         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
15843         use invalidate_region.
15844
15845         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
15846         region.
15847
15848         * acconfig.h configure.in: Check for Xft. For now, assume
15849         that if Xft is found, Pango was compiled with Xft support
15850         as well.
15851
15852         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
15853         gdk_colormap_query_color().
15854         
15855         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
15856         with Xft if appropriate.
15857
15858         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
15859         a pangoxft context if we have XFT and the environment
15860         variable GD_USE_XFT is set.
15861         
15862         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
15863         and also possibly an XftDraw structure.
15864
15865         * gtk/gtkfontsel.c: Handle the case where the font from the
15866         style doesn't match any of the fonts a bit better.
15867         
15868         * gtk/testgtk.c: Add tabs between directional segments for
15869         hebrew/arabic test. (Not really necessary, just a little
15870         prettier.)
15871
15872 2000-12-14  Havoc Pennington  <hp@redhat.com>
15873
15874         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
15875         reading a file
15876
15877 2000-12-14  Havoc Pennington  <hp@redhat.com>
15878
15879         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
15880         unused call to get_last_line()
15881
15882         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
15883         here until boxed is working (and maybe after that - we should
15884         really not gratuitously break old code)
15885
15886         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
15887         specific types for font_desc and tabs args, move them to
15888         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
15889         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
15890
15891         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
15892         use GTK_TYPE_POINTER for signal signatures as a hack-around
15893
15894         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
15895         PangoTabArray
15896
15897         * gtk/gtktextlayout.c (line_display_iter_to_index): 
15898         make static
15899         (line_display_index_to_iter): make static
15900
15901         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
15902         to marshal a string not a boxed
15903
15904         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
15905
15906         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
15907         since the UTF-8 isn't validated yet
15908
15909         * gtk/gtktextsegment.c (char_segment_check_func): don't require
15910         lines to end in '\n'
15911         
15912         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
15913         forward_to_delimiters, and grapheme boundaries
15914         (gtk_text_view_delete_from_cursor): properly handle non-newline
15915         delimiters, and grapheme boundaries
15916
15917         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
15918         to gtk_text_iter_forward_to_delimiters, and make it work properly
15919         if empty lines end with a character other than '\n'
15920
15921         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
15922         position
15923
15924 2000-12-15  Tor Lillqvist  <tml@iki.fi>
15925
15926         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
15927
15928         * gtk/gtk.def
15929         * gdk/gdk.def: Update.
15930
15931         * gdk/win32/gdkmain-win32.c
15932         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
15933         gdkmain-win32.c here.
15934
15935         * gdk/win32/makefile.mingw.in (all): No need to make
15936         gdk-win32res.o here, the makefile one step up will call us to make
15937         it.
15938
15939         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
15940         gdkkeys-win32.
15941
15942         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
15943
15944         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
15945         call to g_source_add().
15946
15947         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
15948         leak. Thanks to Andreas Kemnade.
15949
15950 2000-12-13  Havoc Pennington  <hp@pobox.com>
15951
15952         * gtk/gtktextbtree.h: Remove double _ in front of some functions
15953
15954         * gtk/gtktext*.[hc]: update accordingly
15955         
15956 2000-12-13  Havoc Pennington  <hp@pobox.com>
15957
15958         * gtk/gtktextbtree.h: Put _ in front of every function in this 
15959         header file
15960
15961         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
15962
15963 2000-12-13  Alex Larsson  <alexl@redhat.com>
15964
15965         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
15966         Add support for ps2 intellimouse.
15967
15968         * gdkkeyboard-fb.c:
15969         Move shift-F1 repaint handling to xlate handler only.
15970         
15971         * docs/README.linux-fb:
15972         Add imps2 to docs.
15973         Document the new refresh keys.
15974         
15975 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
15976
15977         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
15978
15979         * gtk/gtkbox.c: change property types from (u)long to (u)int for
15980         ::position and ::padding.
15981
15982         * gtk/gtkcontainer.c: make ::border_width an INT property.
15983
15984         * gtk/gtkpacker.c: make ::position an INT property.
15985
15986         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
15987         guard against NULL h/v scrollbars, since this is used at construction
15988         time.
15989
15990         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
15991         internal gtk_clist_constructor().
15992
15993         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
15994         gtk_ctree_constructor().
15995
15996         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
15997         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
15998
15999         * docs/reference/Makefile.am: fun stuff, disabled docs generation
16000         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
16001
16002         * gtk/gtkwidget.[hc]:
16003         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
16004         and gtk_widget_get().
16005         (gtk_widget_new): use g_object_new_valist().
16006         (gtk_widget_set): use g_object_set_valist().
16007
16008         * gtk/gtkobject.[hc]:
16009         removed gtk_object_arg_get_info(), gtk_object_getv(),
16010         gtk_object_query_args(), gtk_object_newv(),
16011         gtk_object_class_add_signals(),
16012         gtk_object_class_user_signal_new(),
16013         gtk_object_class_user_signal_newv(),
16014         gtk_object_arg_set(), gtk_object_arg_get(),
16015         gtk_object_args_collect(),
16016         gtk_object_default_construct(),
16017         gtk_object_constructed(),
16018         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
16019         removed nsignals, signals and n_args members from GtkObjectClass.
16020         (gtk_object_new): use g_object_new_valist().
16021         (gtk_object_set): use g_object_set_valist().
16022         (gtk_object_get): use g_object_get_valist().
16023         
16024         * gtk/gtkcompat.h: define gtk_object_default_construct().
16025         
16026         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
16027         g_object_new().
16028
16029         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
16030         fucntions, cleaned up method assignments (make sure your structures
16031         are setup properly before calling out). removed all GTK_CONSTRUCTED
16032         hacks ;)
16033
16034 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
16035
16036         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
16037         off-by-one error in checks. (Dave Lambert)
16038
16039 2000-12-12  Alexander Larsson  <alexl@redhat.com>
16040
16041         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
16042         Don't free gdk_fb_keyboard twice.
16043
16044 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
16045
16046         * gtk/testgtk.c:
16047         (create_tooltips): 
16048         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
16049         use GObject swapped_signal:: properties instead.
16050
16051         * gtk/gtkcellrenderertoggle.c: 
16052         * gtk/gtkcellrenderertextpixbuf.c: 
16053         * gtk/gtkcellrenderertext.c: 
16054         * gtk/gtkcellrendererpixbuf.c: 
16055         * gtk/gtkcellrenderer.c:
16056         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
16057         missing warnings for invalid property ids, install properties
16058         with g_object_class_install_property() now.
16059         
16060         * gtk/gtksignal.c:
16061         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
16062         
16063 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
16064         
16065         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
16066         to determine if a window is the focus widget within
16067         its toplevel.
16068
16069         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
16070         to be boolean.
16071
16072         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
16073         of the case where the container CAN_FOCUS to here instead
16074         of having it in each individual move-the-focus place.
16075
16076         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
16077         focusing to be geometric in a much more obvious sense. Arrowing
16078         around is still non-intuitive because it isn't perfect and
16079         because entries, etc, grab the arrow keys, but it at least
16080         usually will do what you expect now.
16081         
16082         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
16083         file.
16084
16085         * gtk/gtknotebook.c: Change tabs to be a single item in
16086         the focus chain. Make movement of focus on tabs with arrow
16087         keys wrap around.
16088         
16089         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
16090         CHECK_FIND_CHILD macro to give informative error messages
16091         instead of silent returns.
16092
16093         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
16094         flag since we handle GdkReturn on the tabs.
16095
16096         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
16097         windows rather than sending expose events directly.
16098
16099         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
16100         definition for GtkNotebookPage into .c file, since it is private.
16101
16102         * gtk/testgtk.c (create_notebook): Add option for 
16103         testing borderless notebook.
16104
16105         * gtk/testgtk.c (page_switch): Removed egregious poking
16106         around in GTK+ internals.
16107
16108         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
16109
16110         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
16111         properly through gtk_clist_focus. Make the title headers a
16112         single item in the tab-focus chain, and make left-right wrap
16113         around.
16114
16115         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
16116         focus method so that wrapping around works properly.
16117
16118         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
16119         that is handled for the widget now. 
16120
16121 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
16122
16123         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
16124         widgets as TOPLEVEL.
16125
16126         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
16127         TOPLEVEL widgets are containers.
16128
16129         * gtk/gtkinvisible.h: Remove useless include.
16130
16131 2000-12-11  Havoc Pennington  <hp@redhat.com>
16132
16133         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
16134         Handle chopping off \r\n and 0x2029 in addition to \n before
16135         passing to PangoLayout
16136
16137         * gtk/gtkimcontextsimple.c
16138         (gtk_im_context_simple_get_preedit_string): 
16139         return an empty string if no match is pending
16140
16141         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
16142         assertion that the returned preedit string was sane
16143
16144         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
16145         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
16146         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
16147
16148 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
16149
16150         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
16151         Fix up finalizer to chain to its parent.
16152
16153 2000-12-11  Alexander Larsson  <alexl@redhat.com>
16154
16155         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
16156         Clearified the difference between the keyboard types. Wrote a note
16157         about the magic sysrq key to get out of raw mode.
16158
16159 2000-12-09  James Henstridge  <james@daa.com.au>
16160
16161         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
16162         member to hold masks for detecting the start of a protocol packet.
16163         (mouse_devs): add packet start masks for ps2 and ms device types.
16164         Left the mask for fidmour blank, as I have no idea what it should
16165         be.
16166         (handle_mouse_io): skip bytes until we get to the start of a
16167         packet.  My Logitech mouse seems to be passing an extra NULL pad
16168         byte, and GPM does a similar thing here.
16169         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
16170         this is the ms mouse driver.
16171         (gdk_fb_mouse_ms_packet): fix up button handling, which was
16172         completely broken except for button1.  It was checking the wrong
16173         bit in the packet for the status of the right mouse button, and
16174         wrongly assuming right == button2 rather than 3.  I fixed that and
16175         also added support for middle button (button2).
16176
16177 2000-12-08  Havoc Pennington  <hp@redhat.com>
16178
16179         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
16180         that cause a segfault on text insertion
16181
16182         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
16183         warning
16184
16185         * gtk/gtktextiter.c (test_log_attrs): use
16186         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
16187
16188         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
16189         Get log attrs for a line, using a cache stored on the buffer
16190         
16191         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
16192         reported by Jeff Franks
16193
16194 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
16195
16196         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
16197         /dev/ttyS0 -> /dev/mouse
16198
16199 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
16200
16201         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
16202         Added dummy gdk_fontset_load.
16203
16204 2000-12-08  Alexander Larsson  <alexl@redhat.com>
16205
16206         * docs/README.linux-fb:
16207         * docs/Makefile.am:
16208         Initial GtkFB docs.
16209         
16210         * gdk/linux-fb/Makefile.am:
16211         Define GDK_DATA_PREFIX.
16212
16213         * gdk/linux-fb/gdkmain-fb.c:
16214         Fix typo.
16215         Change default display to /dev/fb0.
16216
16217         * gdk/linux-fb/gdkpango-fb.c:
16218         Add $(prefix)/share/fonts/ to font path.
16219         
16220 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
16221
16222         * gdk/linux-fb/gdkkeyboard-fb.c:
16223         New file containing the abstracted keyboard driver. Most code
16224         taken from gdkinput-ps2.c
16225
16226         * gdk/linux-fb/gdkinput-ps2.c:
16227         Removed file.
16228         
16229         * gdk/linux-fb/Makefile.am:
16230         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
16231
16232         * gdk/linux-fb/gdkcolor-fb.c:
16233         display->fb was renamed to display->fb_fd.
16234
16235         * gdk/linux-fb/gdkcursor-fb.c:
16236         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16237
16238         * gdk/linux-fb/gdkinput.c:
16239         Moved gdk_input_init here from gdkinput-ps2.c
16240
16241         * gdk/linux-fb/gdkmain-fb.c:
16242         display->fb was renamed to display->fb_fd.
16243         Now the tty and the console is opened here instead
16244         of in the keyboard driver. Also check GDK_VT to see what
16245         tty to open.
16246         Move gdk_beep () here from gdkinput-ps2.c
16247         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16248
16249         * gdk/linux-fb/gdkmouse-fb.c:
16250         Add header.
16251         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16252         Return correct keyboard modifiers.
16253         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
16254
16255         * gdk/linux-fb/gdkprivate-fb.h:
16256         Add tty and vt info to display.
16257         Add orignal modeinfo storage to display
16258         Update global functions
16259
16260         * gdk/linux-fb/gdkwindow-fb.c:
16261         Added gdk_fb_window_find_focus().
16262         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16263
16264 2000-12-07  Havoc Pennington  <hp@pobox.com>
16265
16266         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
16267         function, noticed by Alex
16268
16269 2000-12-06  Elliot Lee  <sopwith@redhat.com>
16270
16271         * configure.in: Detect freetype properly
16272
16273         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
16274         above.
16275
16276 2000-12-06  Alexander Larsson  <alexl@redhat.com>
16277
16278         * gdk/linux-fb/Makefile.am:
16279         Add gdkmouse-fb.c
16280         
16281         * gdk/linux-fb/gdkmouse-fb.c:
16282         New file. Abstracted the mouse drivers a bit.
16283
16284         * gdk/linux-fb/gdkcursor-fb.c:
16285         The cursor hide/show functions was moved here from gdkinput-ps2.c.
16286
16287         * gdk/linux-fb/gdkinput-ps2.c:
16288         Removed old mouse handling code. Moved cursor handling code
16289         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
16290         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
16291         gdk_mouse_get_info.
16292
16293         * gdk/linux-fb/gdkmain-fb.c:
16294         Pass NULL pointers for x,y in gdk_mouse_get_info call.
16295
16296         * gdk/linux-fb/gdkprivate-fb.h:
16297         Removed public gdk_fb_find_common_ancestor, added and renamed
16298         functions for the new mouse handling code.
16299
16300         * gdk/linux-fb/gdkwindow-fb.c:
16301         Moved gdk_fb_window_send_crossing_events here. added global
16302         variable gdk_fb_window_containing_pointer. made
16303         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
16304         renamed to gdk_mouse_get_info.
16305
16306 2000-12-06  Alexander Larsson  <alexl@redhat.com>
16307
16308         * gdk/linux-fb/gdkevents-fb.c:
16309         Update to match latest gmain/gsource changes.
16310
16311         * gdk/linux-fb/gdkinput-ps2.c:
16312         Bogus gdk_keymap_get_entries_for_keycode implementation so that
16313         it links. Will be implemented later.
16314
16315 2000-12-03  Havoc Pennington  <hp@pobox.com>
16316
16317         * gdk/Makefile.am: add gdkkeys.[hc]
16318
16319         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
16320         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
16321
16322         * acconfig.h, configure.in: add checks and command line options
16323         for XKB
16324
16325         * gdk/x11/gdkkeys-x11.c: Implement the above functions
16326         
16327         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
16328         and group in the key event
16329
16330         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
16331         field with the low-level hardware key code, and a group
16332         field with the keyboard group
16333
16334         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
16335         and declare a couple globals used for keymap handling
16336         
16337         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
16338         hold down Shift-Control and type a hex number to get a Unicode 
16339         character corresponding to the hex number
16340         (gtk_im_context_simple_get_preedit_string): Fix cursor position
16341         (return bytes not chars)
16342
16343 2000-12-05  Elliot Lee  <sopwith@redhat.com>
16344
16345         * gdk/gdkcolor.h: Make GdkColor specify element sizes
16346         to avoid waste on 64-bit platforms.
16347
16348 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
16349
16350         * INSTALL: Fix link to PNG home, remove reference
16351         to fribidi.
16352
16353         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
16354         
16355         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
16356         tested.)
16357
16358         * gtk/gtkcheckmenuitem.c: Permanently turn on
16359         always_show_toggle.
16360
16361         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
16362         be NULL. (Vladimir Klebanov, #26545)
16363
16364         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
16365         some signed/unsigned comparison problems. (#6510,
16366         David Kaelbling)
16367
16368         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
16369         return type to boolean (Oskar Liljeblad, #18648)
16370
16371 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16372
16373         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
16374         Remove bogus colormap setting.
16375
16376 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16377
16378         * gdk/linux-fb/gdkcolor-fb.c:
16379         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
16380
16381         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
16382         Must set colormap.
16383         
16384 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
16385
16386         * docs/tutorial/gtk-tut.sgml: DND updates
16387
16388 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
16389
16390         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
16391         Remove old debug g_warning().
16392         (gdk_fb_draw_drawable): The src argument can be either a wrapper
16393         or an implementation, just pass the implementation to draw_drawable_2.
16394         
16395         * gdk/linux-fb/gdkprivate-fb.h:
16396         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
16397
16398         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
16399         clear and invalidate area when window is destroyed.
16400         (send_map_events): Remove old commented out code.
16401
16402 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16403
16404         * gdk/linux-fb/gdkpango-fb.c:
16405         Use italic instead of oblique in font aliases.
16406         
16407         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
16408         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
16409         other unsupported functions.
16410
16411 2000-12-04  Havoc Pennington  <hp@redhat.com>
16412
16413         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
16414
16415         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
16416
16417         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
16418
16419         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
16420         hack to avoid infinite loops (synthetic expose event) - 
16421         Owen has more appropriate fixes in a branch he'll check in later.
16422
16423         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
16424         separator, CR, and CRLF as line ends
16425
16426         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
16427         into lines using pango_find_paragraph_boundary(); other bits of
16428         the widget are still going to be broken if the boundary isn't '\n'
16429         though
16430
16431 2000-12-04  Alexander Larsson  <alexl@redhat.com>
16432
16433         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
16434         multiply.
16435
16436         * gdk/linux-fb/gdkpango-fb.c:
16437         Copied some 26.6 scaling macros from pango to clean up the rounding.
16438         (pango_fb_font_get_glyph_info): Correct sign on x value.
16439
16440         * gdk/linux-fb/gdkprivate-fb.h:
16441         Removed unreferenced external functions.
16442
16443         * modules/linux-fb/Makefile.am: Use ` instead of '.
16444
16445         * modules/linux-fb/basic.c:
16446         Remove dead code. In particular the dummy lang engine which broke all
16447         pango layouts in GtkFB. Don't include tables-big.i anymore.
16448
16449         * modules/linux-fb/tables-big.i:
16450         Upgrade to latest version from pango. Left for reference, basic_ranges
16451         moved to basic.c.
16452         
16453 2000-12-04  Havoc Pennington  <hp@redhat.com>
16454
16455         Fix bugs Alex found:
16456         
16457         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
16458         to "draw"
16459
16460         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
16461
16462         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
16463
16464         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
16465         implementation in here, apparently the expose() implementation was
16466         dead code.
16467
16468 2000-12-04  Alexander Larsson  <alexl@redhat.com>
16469
16470         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
16471         Return positive descent.
16472
16473 2000-12-02  Havoc Pennington  <hp@pobox.com>
16474
16475         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
16476         method and signal
16477         
16478         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
16479         calls gdk_window_process_updates() to push the exposes through
16480         (gtk_widget_class_init): No more draw signal, no
16481         gtk_widget_real_draw()  
16482         
16483         * gtk/gtkbin.c (gtk_bin_draw): remove
16484
16485         * gtk/gtkbox.c (gtk_box_draw): remove
16486
16487         * gtk/gtkbutton.c (gtk_button_draw): remove
16488
16489         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
16490
16491         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
16492
16493         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
16494
16495         * gtk/gtkclist.c (gtk_clist_draw): remove
16496
16497         * gtk/gtkentry.c (gtk_entry_draw): remove
16498
16499         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
16500
16501         * gtk/gtkfixed.c (gtk_fixed_draw): remove
16502
16503         * gtk/gtkframe.c (gtk_frame_draw): remove
16504
16505         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
16506
16507         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
16508
16509         * gtk/gtklayout.c (gtk_layout_draw): remove
16510
16511         * gtk/gtklist.c (gtk_list_draw): remove
16512
16513         * gtk/gtklistitem.c (gtk_list_item_draw): remove
16514
16515         * gtk/gtkmenu.c (gtk_menu_draw): remove
16516
16517         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
16518
16519         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
16520
16521         * gtk/gtknotebook.c (gtk_notebook_draw): remove
16522
16523         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
16524
16525         * gtk/gtkpacker.c (gtk_packer_draw): remove
16526
16527         * gtk/gtkrange.c (gtk_range_draw): remove
16528
16529         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
16530
16531         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
16532
16533         * gtk/gtktable.c (gtk_table_draw): remove
16534
16535         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
16536
16537         * gtk/gtktext.c (gtk_text_draw): remove
16538
16539         * gtk/gtktextview.c (gtk_text_view_draw): remove
16540
16541         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
16542
16543         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
16544
16545         * gtk/gtktree.c (gtk_tree_draw): remove
16546
16547         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
16548
16549         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
16550
16551         * gtk/gtkviewport.c (gtk_viewport_draw): remove
16552
16553         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
16554
16555         * gtk/gtkvscale.c (gtk_vscale_draw): remove
16556
16557         * gtk/gtkwindow.c (gtk_window_draw): remove
16558
16559 2000-20-01  Anders Carlsson  <andersca@gnu.org>
16560
16561         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
16562         a GtkToggleButton is both insensitive and active, it was being
16563         drawn by the GtkButton draw handler which doesn't check the
16564         state. Now it's calling gtk_toggle_button_paint instead.
16565         
16566 2000-12-01  Havoc Pennington  <hp@redhat.com>
16567
16568         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
16569         dangling pointers to the appearance attributes from the 
16570         line display
16571
16572         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
16573         width/height to mean "full width/height of drawable"
16574
16575         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
16576         click to select word/line
16577         
16578         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
16579         when getting log attrs. Get a slice, so that pixmaps and stuff
16580         are properly handled.
16581
16582         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
16583         paste into the selection (replaces selection now, previously
16584         crashed or added to selection). Reveals longstanding btree bug -
16585         select multiple lines, middle-click on the selection, boom. This
16586         isn't related to my changes though.
16587
16588         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
16589         PangoLogAttrs changes
16590         (gtk_entry_move_backward_word): ditto
16591
16592         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
16593         functions return bool whether the iter moved onto a
16594         dereferenceable position.
16595  
16596         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
16597         functions for motion in terms of display lines.
16598
16599         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
16600         get the buffer a mark is inside
16601         
16602 2000-12-01  Alexander Larsson  <alexl@redhat.com>
16603
16604         * gdk/linux-fb/Makefile.am:
16605         * modules/linux-fb/Makefile.am:
16606         Freetype 2 final uses freetype-config
16607
16608         * gdk/linux-fb/gdkpango-fb.c:
16609         Upgrade to use Freetype 2 final.
16610         More flexible support for font aliases, this also fixes a bug with
16611         GtkFontSelector, as the aliases must be visible in the font/family list,
16612         or GtkFontSelector reads uninitialized memory.
16613
16614 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
16615
16616         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
16617         XGetIMValues to properly terminate variable argument list, and do
16618         NULL return check for ic_values and xim_styles.
16619
16620         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
16621         Restore preedit state after XmbResetIC().
16622         
16623         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
16624         XvaCreateNestedList() should take XvaNestedList, but not
16625         XvaNestedList*.
16626
16627         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
16628         preedit_draw_callback, preedit_caret_callback): Match
16629         "preedit-changed" signal name to "preedit_changed" to be
16630         consistent to the spec.
16631
16632         * gtk/gtkimcontextsimple.c (check_table):
16633         Match "preedit-changed" to "preedit_changed" to be consistent
16634         to the spec.
16635
16636 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
16637
16638         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
16639         gc->clip_region == NULL>
16640
16641 2000-11-30  Tor Lillqvist  <tml@iki.fi>
16642
16643         Changes by Hans Breuer:
16644         
16645         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
16646         Dont't use negative width and height as max_hints. This fixes
16647         Owen's recent testgtk changes for win32.
16648
16649         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
16650         gdk_win32_hdc_release): These are exported and may be called with
16651         other drawable types than our GdkDrawableImplWin32 (?).
16652
16653         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
16654         so always #define USE_BACKING_STORE.
16655
16656         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
16657         of printf for debugging output.
16658
16659         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
16660         
16661         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
16662
16663         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
16664         declaration.
16665
16666         * gtk/gtktexttypes.h: Ditto.
16667
16668         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
16669         (GDK_VoidSymbol) also if in case of arg check failure.
16670
16671         * gtk/gtkimcontextsimple.c
16672         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
16673         position to the pointer, but to the variable it points to.
16674
16675         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
16676
16677         * gtk/gtk.def: Updates.
16678
16679 2000-11-29  Elliot Lee  <sopwith@redhat.com>
16680
16681         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
16682         GTK_TYPE_TREE_MODEL.
16683
16684 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16685
16686         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
16687         Set the size of the font from the description.
16688         (gdk_text_width): Gross hack that calculates the width
16689         of text by text_length * size/2. This is necessary because
16690         GtkLabel does some ugly gtk_string_width call to calculate
16691         an good size.
16692         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
16693
16694 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
16695
16696         * docs/tutorial/gtk-tut.sgml: DND updates
16697
16698 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16699
16700         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
16701         If you pass width or height == 0 to gdk_window_clear_area they
16702         should be calculated from the window size.
16703
16704 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16705
16706         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
16707         a grab, but no grab-cursor, use the cursor from the grabbed
16708         window. (gdk_fb_window_send_crossing_events): Send normal
16709         enter/leave notifications if grab and owner_events == TRUE.
16710
16711 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16712
16713         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
16714         Do implicit button grabs, even if the window doesn't
16715         want the event.
16716         (gdk_fb_window_send_crossing_events): If there is a
16717         grab, only the grabbed window gets normal enter/leave
16718         notifications. On ungrab go from grabbed window to current.
16719         Don't send any notification to b when propagating from c -> b.
16720         If setting a grab on window, don't set prev_window.
16721         (handle_mouse_input): Send enter/leave events to the window the
16722         mouse is over, not the grabbed one.
16723         
16724 2000-11-28  Elliot Lee  <sopwith@redhat.com>
16725
16726         * gdk/gdkregion-generic.c: Zap warning.
16727         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
16728         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
16729
16730 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
16731
16732         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
16733         The cursor should be hidden if it is part of either the
16734         source or destination region. Not only if it is in both.
16735         (gdk_window_set_transient_for): Silence warnings.
16736
16737 2000-11-28  Alexander Larsson  <alexl@redhat.com>
16738
16739         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
16740         The default mode in X is Pie Arcs, therefore that is
16741         what Gtk+ uses.
16742
16743 2000-11-28  Alexander Larsson  <alexl@redhat.com>
16744
16745         * gdk/linux-fb/gdkinput-ps2.c:
16746         Implement correct EnterNotify/LeaveNotify:
16747         (gdk_fb_window_send_crossing_events): New function that sends
16748         all GdkCrossingEvents from the last mouse-window to the specified
16749         destination.
16750         (gdk_fb_window_visibility_crossing): Removed function.
16751         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
16752         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
16753         instead of gdk_window_get_pointer() for better readability.
16754
16755         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
16756         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
16757
16758         * gdk/linux-fb/gdkprivate-fb.h:
16759         removed gdk_fb_window_visibility_crossing, added
16760         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
16761
16762         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
16763         New function that finds the least common ancestor of two windows.
16764         (gdk_window_show, gdk_window_hide):
16765         Use gdk_fb_window_send_crossing_events.
16766         (gdk_fb_window_move_resize): Send configure events to toplevel
16767         windows. Use gdk_fb_window_send_crossing_events.
16768
16769 2000-11-27  Havoc Pennington  <hp@redhat.com>
16770
16771         * gtk/gtkprivate.h (enum): Remove a trailing comma
16772
16773 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
16774
16775         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
16776         the "changed" callback of the adjustment.  We need to redraw the
16777         spin button's arrows when the adjustment's range changes.
16778         (adjustment_changed_cb): Draw the arrows.
16779         (gtk_spin_button_value_changed): Draw the arrows.
16780
16781 2000-11-23  Alexander Larsson  <alexl@redhat.com>
16782
16783         * gdk/linux-fb/gdkselection-fb.c:
16784         Initial selection implementation.
16785
16786         * gtk/gtkselection.c:
16787         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
16788         requestor in gtk_selection_request.
16789         
16790         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
16791         Added gdk_selection_property atom.
16792
16793         * gdk/linux-fb/gdkprivate-fb.h:
16794         Export _gdk_selection_window_destroyed.
16795         Removed mask_off_x/y from GdkCursorPrivateFB.
16796         Removed hbearing, added top, left to PangoFBGlyphInfo.
16797
16798         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
16799         Call _gdk_selection_window_destroyed
16800         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
16801         the root window has been created.
16802         (static_dx_hack, static_dy_hack, compare_draw_rects,
16803         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
16804         in region. They are already sorted. Instead just traverse them in
16805         reverse if draw_direction < 0.
16806         
16807         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
16808         Double-clicks must be sent after the normal button_press.
16809         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
16810         
16811         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
16812         Pass _gdk_fb_screen_gc instead of NULL.
16813
16814         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
16815         Initialize gdk_selection_property.
16816         (gdk_event_make): Remove unused code.
16817
16818         * gdk/linux-fb/gdkcursor-fb.c:
16819         Make the pixmap for the cursor the same size as the mask. Also remove
16820         the mask_off_x/y fields in GdkCursorPrivateFB and combine
16821         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
16822         Now the whole cursor is visible.
16823
16824         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
16825         Fix bug where xdest+height instead of ydest+height was used
16826         to calculate if the source and dest overlapped. This fixes the
16827         redraw bug when the main window in testgtk was scrolled when
16828         partially covered by a tall window.
16829         Copy rectangles in region in order depending on draw_direction.
16830         Also moved the draw_direction flipping of start_y and end_y into
16831         the gc functions, as this might not be what all of them want.
16832         (gdk_fb_draw_lines): Support dashed lines.
16833         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
16834         so that the text is positioned correctly (was 1 pixel high).
16835
16836         gdk/linux-fb/gdkgc-fb.c:
16837         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
16838         all lines were drawn a pixel to short. Also checked the default of
16839         the rest of the values, and they're the same as X now.
16840
16841         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
16842         Clean up pixel positioning of the glyphs. Just use bgy->top and
16843         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
16844         to all divisions to get correct rounding behaviour.
16845
16846         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
16847         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
16848         Moved start_y/end_y flip into draw_drawable implementations.
16849         Flip also x rendering when draw_direction < 0.
16850         Remove unneccesary multiply with draw_direction.
16851
16852 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
16853
16854         * docs/tutorial/gtk-tut.sgml:
16855           - get rid of gtk_toggle_button_toggled FUD
16856           - start DND section - needs work - based on:
16857                 http://wolfpack.twu.net/docs/gtkdnd/
16858
16859 2000-11-22  Alexander Larsson  <alexl@redhat.com>
16860
16861         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
16862         Correct calculation of font metrics. Now GtkEntrys have sane
16863         size.
16864
16865 2000-11-22  Alexander Larsson  <alexl@redhat.com>
16866
16867         * gdk/gdktypes.h:
16868         Add new type GdkSpan
16869         
16870         * docs/reference/gdk/gdk-sections.txt,
16871         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
16872         gdk/gdkregion.h:
16873         Implement and document gdk_region_spans_intersect_foreach.
16874
16875         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
16876         Add new file gdkrender-fb.c which contains all core
16877         rendering code.
16878         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
16879         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
16880         (optimized rectangle fillers).
16881
16882         * gdk/linux-fb/gdkdrawable-fb2.c:
16883         Move all rendering code to gdkrender-fb.c.
16884         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
16885         Use the new span intersection functions in gdk_fb_fill_spans.
16886         gdk_fb_draw_rectangle() clips filled rectangles and calls
16887         gc->fill_rectangle with the result.
16888         gdk_fb_fill_spans() gets extra argument "sorted".
16889
16890         * gdk/linux-fb/gdkevents-fb.c:
16891         Remove unused includes and defines.
16892         New function gdk_fb_get_time() to get correct time for events.
16893
16894         * gdk/linux-fb/gdkinput-ps2.c:
16895         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
16896         Make sure to set the time of all events.
16897
16898         * gdk/linux-fb/gdkmain-fb.c:
16899         Use gdk_fb_get_time ().
16900
16901         * gdk/linux-fb/gdkprivate-fb.h:
16902         New virtual GC calls: fill_span & fill_rectangle.
16903         Export gdk_fb_get_time().
16904         gdk_fb_fill_spans() gets extra argument "sorted".
16905
16906         * gdk/linux-fb/mi*.c:
16907         Use GdkSpan instead of GdkRectangle.
16908         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
16909         from XFree 4 source)
16910         
16911 2000-11-22    <jrb@redhat.com>
16912
16913         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
16914         reversing the order in an if statement will do.  Doing so managed
16915         to make the treemodelsort half work.  Other half will follow after
16916         I get the insert function fully fixed.
16917
16918 2000-11-21  Elliot Lee  <sopwith@redhat.com>
16919         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
16920         more than 2 bits. Besides, I need to implement an evil hack. :)
16921
16922 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
16923
16924         * docs/tutorial/gtk-tut.sgml: minor corrections
16925
16926 2000-11-20  Jonathan Blandford <jrb@redhat.com>
16927         * gtk/gtktreemodelsort.h: Add convertion functions to let you
16928           convert to and from relative path's and iters.
16929
16930         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
16931           testing sorting functions a bit better.  Currently broken -- will
16932           fix in morning.
16933
16934 2000-11-20  Havoc Pennington  <hp@redhat.com>
16935
16936         * gtk/gtkwidget.c: Documented a bunch of functions in here
16937         (gtk_widget_realize): Warn if you try to realize
16938         a widget with no parent that isn't a toplevel
16939         (gtk_widget_intersect): return a gboolean
16940
16941 2000-11-20  Havoc Pennington  <hp@redhat.com>
16942
16943         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
16944         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
16945         scrolling to be implemented in GDK to finish. Also, right now
16946         we just size_allocate all children on every layout change,
16947         which is pretty lame. Test commented out of testtext.c, 
16948         until it works better.
16949
16950 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
16951
16952         * gdk/linux-fb/gdkdrawable-fb2.c:
16953         Removed unused arguments from gdk_fb_drawable_get_pixel().
16954
16955         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
16956         Renamed fidur specific mouse packet data in MouseDevice to
16957         generic. Used it in ps2 mouse handling code to avoid blocking
16958         reads.
16959
16960 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
16961
16962         * demos/gtk-demo/main.c: Changed to have the list become
16963         non-italic when the demo window is destroyed through an external
16964         event (like a close button).  Doing so found three bugs in the
16965         widget.
16966
16967         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
16968
16969         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
16970         we actually set the cell.
16971
16972         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
16973
16974         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
16975         free a leaked path.  Thanks memprof.
16976
16977 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
16978
16979         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
16980         off-by-one error when destroying allocated segments
16981         on failure. (Elliot)
16982
16983 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
16984
16985         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
16986         memleaks found by Evan Martin.
16987
16988 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
16989
16990         * Released 1.3.2
16991         
16992         * NEWS: Updates for 1.3.2
16993
16994 2000-11-17  Tor Lillqvist  <tml@iki.fi>
16995
16996         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
16997         but in general for window system specific events.
16998
16999         * gtk/gtk.def
17000         * gtk/makefile.mingw.in
17001         * gtk/makefile.msc.in: Update.
17002         
17003         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
17004
17005 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
17006
17007         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
17008         distribute gtk.immodules.
17009
17010         * gtk/Makefile.am (install-data-local): Don't install the
17011         gtk.immodules file created for the uninstalled modules;
17012         instead run gtk-query-immodules after install
17013
17014 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
17015
17016         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
17017         -rpath to the right install location.
17018
17019         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
17020         -export-dynamic.
17021
17022         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
17023         properly.
17024
17025 2000-11-15  Havoc Pennington  <hp@pobox.com>
17026
17027         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
17028         patch from Mikael Hermansson to temporarily stop blinking while
17029         the user is using the keyboard to type or navigate. 
17030
17031         Also, when blinking, stay on for longer than we stay off. Also,
17032         return from start_cursor_blink if !cursor_visible, to save
17033         checking that flag all over the place before we call
17034         start_cursor_blink.
17035
17036 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
17037
17038         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
17039         only contain a "fontset" line, which is now ignored.
17040
17041         * gtk/gtkentry.c (gtk_entry_button_release): Make 
17042         double-click-to-select-word work.
17043         
17044 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
17045
17046         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
17047         Don't move back one char when we are actually at the end of the 
17048         paragraph.
17049
17050 2000-11-15  Robert Brady  <robert@suse.co.uk>
17051
17052         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
17053         'o' < 'p'.
17054         
17055         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
17056         bind_textdomain_codeset.
17057
17058         (gtk_init_check): Make the warning about translating default:LTR
17059         sterner.
17060         
17061 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
17062
17063         * **/Makefile.am : remove unecessary rules for win32-specific
17064         config-substituted targets. If you want these rules, use
17065         --enable-maintainer-mode (called automatically by autogen.sh).
17066         Stops a lot of unneccessary make-time warnings.
17067
17068         * gtk/gtktext{layout,display}.c: Factor in total width as
17069         well as screen when figuring alignment for word-wrap as well as
17070         no wrap; this is necessary to handle lines that cannot be wrapped
17071         at all.
17072
17073 2000-11-15  Havoc Pennington  <hp@redhat.com>
17074
17075         * gtk/testtext.c: Implement essential color cycling feature
17076
17077 2000-11-15  Havoc Pennington  <hp@redhat.com>
17078
17079         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
17080         when we invalidate the main window.
17081
17082         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
17083         GtkTextView will now invalidate the side windows for us when text
17084         changes.
17085
17086 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
17087
17088         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
17089         unconditionally, since we may need to update the horizontal
17090         scrollbars even if the height didn't change.
17091
17092         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
17093         the extra attrs, since some of them affect size.
17094
17095         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
17096         x_offset correctly.
17097
17098 2000-11-15  Havoc Pennington  <hp@redhat.com>
17099
17100         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
17101         don't move the first line out into the margin, instead move the
17102         whole paragraph in order to make space for the first line within 
17103         the margin
17104
17105 2000-11-15  Havoc Pennington  <hp@redhat.com>
17106
17107         * gtk/gtktextview.c (changed_handler): offset redraw rect by
17108         xoffset in addition to yoffset, so horizontal scrolling doesn't
17109         break redraws
17110
17111 2000-11-15  Havoc Pennington  <hp@redhat.com>
17112
17113         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
17114         from the cursor
17115         (render_layout_line): fix reversed test that caused weird
17116         underlines to get drawn
17117
17118 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
17119
17120         * gdk/linux-fb/gdkprivate-fb.h:
17121         Fix debug macros.
17122         
17123 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
17124
17125         * gdk/linux-fb/gdkprivate-fb.h:
17126         Added virtual functions set_pixel, get_color,
17127         fill_span and draw_drawable to the GC.
17128         Added global _gdk_fb_screen_gc to use instead of
17129         NULL when drawing to the screen.
17130         Added _gdk_fb_gc_calc_state() prototype.
17131
17132         * gdk/linux-fb/gdkgc-fb.c:
17133         Call _gdk_fb_gc_calc_state() on any gc state change.
17134
17135         * gdk/linux-fb/gdkglobals-fb.c:
17136         Add _gdk_fb_screen_gc
17137                 
17138         * gdk/linux-fb/gdkdrawable-fb2.c:
17139         _gdk_fb_gc_calc_state() calculates best functions
17140         for the GC state and depth.
17141         Moved bpp specialized code to separate functions.
17142         Added optimized 24 bpp AA draw_drawable.
17143
17144         * gdk/linux-fb/gdkevents-fb.c:
17145         Silence gcc warning.
17146
17147         * gdk/linux-fb/gdkimage-fb.c:
17148         Use _gdk_fb_screen_gc
17149
17150         * gdk/linux-fb/gdkwindow-fb.c:
17151         Init and use _gdk_fb_screen_gc
17152
17153         * gdk/linux-fb/mitypes.h:
17154         Remove unused types.
17155
17156 2000-11-14  Havoc Pennington  <hp@pobox.com>
17157
17158         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
17159         to pixels
17160
17161 2000-11-14  Havoc Pennington  <hp@pobox.com>
17162
17163         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
17164
17165         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
17166         unknown char, no real reason we were using a variable. 
17167         Remove gtk_text_unknown_char variable. Fix all the text widget
17168         files accordingly.
17169
17170         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
17171         since the Unicode spec seems to prefer that character for our
17172         purposes.
17173
17174 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
17175
17176         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
17177         value of g_getenv() isn't freeable, so g_strdup it.
17178
17179         * modules/input/inuktitut.c: Inuktitut input method.
17180
17181         * modules/input/Makefile.am: Build this.
17182         
17183 2000-11-14  Elliot Lee  <sopwith@redhat.com>
17184
17185         * gtk/Makefile.am: Install gtk.immodules, needed for operation
17186         of gtk programs.
17187
17188 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
17189
17190         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
17191         reversed > that was causing Home to go to end of previous line.
17192
17193         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
17194         modified-keypresses (leave for bindings.)
17195
17196         * modules/input/Makefile.am: Remove useless -export-dynamic
17197         from module LDFLAGS.
17198
17199 2000-11-14  Havoc Pennington  <hp@redhat.com>
17200
17201         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
17202         higher.
17203
17204         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
17205         account. Also, render rise, underline, background, etc. for
17206         pixbufs as well as text. Also, draw underlines one pixel higher.
17207
17208         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
17209         PangoAttribute for the rise, so it gets drawn properly. Also,
17210         add the GtkTextAppearance attribute for pixbuf/widget segments
17211         as well; we should go ahead and have rise, underline, background,
17212         stipple work for those
17213
17214         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
17215         Pango
17216
17217 2000-11-15  Tor Lillqvist  <tml@iki.fi>
17218
17219         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
17220
17221         * gtk/gtk.def: Update.
17222
17223         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
17224         included.
17225         (gtk_rc_get_im_module_file): Use run-time installation directory
17226         on Win32.
17227
17228         * gdk/win32/rc/gdk.rc: Remove.
17229         * gdk/win32/rc/gdk.rc.in: New file.
17230         * gdk/win32/rc/Makefile.am: New file
17231         * gdk/win32/Makefile.am: Corresponding changes.
17232
17233         * gtk/gtk.rc: Remove.
17234         * gtk/gtk-win32.rc.in: New file.
17235         * gtk/Makefile.am: Corresponding changes.
17236
17237         * configure.in: Corresponding changes.
17238
17239         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
17240         has a built gtkcompat.h. Developers using CVS code on Win32 can
17241         hand-edit it from gtkcompat.h.in.
17242
17243         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
17244         gtkcompat.h from gtkcompat.h.win32.
17245
17246 2000-11-14  Havoc Pennington  <hp@redhat.com>
17247
17248         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
17249         to default to GDK_ACTION_MOVE if the drag is within a single
17250         widget. Defaults to GDK_ACTION_COPY between widgets.
17251
17252 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
17253
17254         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
17255
17256         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
17257
17258         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
17259         srcdir != builddir
17260
17261         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
17262
17263         * configure.in (GTK_VERSION): Up to 1.3.2
17264
17265         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
17266         gtkimcontextxim.h
17267
17268         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
17269         missing doc comment.
17270
17271 2000-11-14  Alexander Larsson  <alexl@redhat.com>
17272
17273         * modules/linux-fb/basic.c:
17274         Use the glib iconv wrappers.
17275
17276 2000-11-13  Havoc Pennington  <hp@pobox.com>
17277
17278         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
17279         still more bugs.
17280
17281         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
17282         scroll the GdkWindows before realization.
17283
17284 2000-11-13  Havoc Pennington  <hp@redhat.com>
17285
17286         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
17287         where GC didn't always get updated properly
17288
17289         * demos/gtk-demo/textview.c (create_tags): Use subattributes
17290         of fonts instead of setting the entire font
17291
17292         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
17293         setting entire font
17294
17295         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
17296
17297         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
17298         a bunch of individually-settable font attributes. You can still 
17299         use the "font" and "font_desc" args, they just set all the font
17300         attributes at once.
17301
17302 2000-11-13 Elliot Lee <sopwith@redhat.com>
17303
17304         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
17305
17306 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
17307
17308         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
17309         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
17310
17311         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
17312         work better.
17313
17314 2000-11-13  Havoc Pennington  <hp@redhat.com>
17315
17316         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
17317         the module file.
17318
17319         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
17320         dest->language
17321
17322         * gtk/testtext.c: Test pixels above/below/inside paragraphs
17323         settings
17324
17325         * gtk/gtktextview.c: Implement object args and setters/getters for
17326         all the aspects of the GtkTextAttributes that are not set from
17327         GtkWidget attributes. This is spacing, justification, margins,
17328         etc.
17329
17330         (gtk_text_view_set_arg)
17331         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
17332         args
17333         (gtk_text_view_class_init): Add args for justify, left_margin,
17334         right_margin, indent, and tabs
17335         
17336
17337         * gtk/gtktextlayout.c (set_para_values): fix to display indent
17338         attribute properly
17339
17340         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
17341         replace with indent attribute
17342
17343         * gtk/gtktextlayout.c (set_para_values): multiply indent by
17344         PANGO_SCALE
17345
17346         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
17347         rearranging code to do that
17348         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
17349         i.e. don't subtract the top_margin first, just to keep
17350         all margin-futzing in one place.
17351
17352         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
17353
17354         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
17355         special case of last line, Pango now handles this itself.
17356         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
17357         Y coordinate
17358         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
17359         (find_display_line_above): wasn't moving the byte index as it
17360         iterated over lines, so always returned byte 0. Also, port to use
17361         PangoLayoutIter.
17362         (find_display_line_below): same problem as
17363         find_display_line_above. Also, port to use PangoLayoutIter.
17364
17365 2000-11-13  Alexander Larsson  <alexl@redhat.com>
17366
17367         * gdk/linux-fb/*.[ch]:
17368         Massive reindent to gtk+ standard. My hands hurt.
17369
17370         * gdk/linux-fb/gdkcolor-fb.c:
17371         Move GdkColorPrivateFB from inherited to windowing_data
17372
17373         * gdk/linux-fb/gdkcursor-fb.c:
17374         _gdk_cursor_new_from_pixmap made static
17375
17376         * gdk/linux-fb/gdkdnd-fb.c:
17377         GdkDragContextPrivate moved to windowing_data
17378
17379         * gdk/linux-fb/gdkdrawable-fb2.c:
17380         Removed endian.h, use glib endianness macros instead
17381         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
17382         and GDK_DRAWABLE_IMPL_FBDATA
17383
17384         * gdk/linux-fb/gdkfont-fb.c:
17385         Add empty gdk_font_load(). Needed for linking of Gtk+.
17386
17387         * gdk/linux-fb/gdkimage-fb.c:
17388         Removed endian.h, use glib endianness macros instead
17389         Moved GdkImagePrivateFB to windowing_data
17390         gdk_image_new_bitmap didn't always allocate enough
17391         memory.
17392
17393         * gdk/linux-fb/gdkinput-ps2.c:
17394         Added semi-working support for MS serial mice.
17395
17396         * gdk/linux-fb/gdkprivate-fb.h:
17397         s/GdkWindowPrivate/GdkWindowObject/
17398         Removed GdkWindowPrivate typedef
17399         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
17400         Removed GDK_DRAWABLE_P
17401         Move GdkColorPrivateFB from inherited to windowing_data
17402         Moved GdkImagePrivateFB to windowing_data
17403
17404         * gdk/linux-fb/gdkvisual-fb.c:
17405         Removed some unused debug code.
17406
17407         * gdk/linux-fb/gdkwindow-fb.c:
17408         Use stock cursors instead of including X headers.
17409         s/GdkWindowPrivate/GdkWindowObject/
17410
17411         * gdk/linux-fb/mitypes.h:
17412         Removed unused types.
17413
17414         * modules/linux-fb/basic.c:
17415         Use the pango fribidi wrappers.
17416
17417 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17418
17419         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
17420         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
17421         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
17422         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
17423         GEqualFunc where applicable.
17424         
17425         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
17426         pango_font_description_equal as changed in pango.
17427         
17428         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
17429
17430         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
17431
17432         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
17433
17434         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
17435
17436         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
17437
17438         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
17439
17440         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
17441         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
17442
17443         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
17444         gtk_rc_styles_compare -> gtk_rc_styles_equal.
17445
17446 2000-11-12  Havoc Pennington  <hp@pobox.com>
17447
17448         * demos/gtk-demo/Makefile.am (democodedir): change demo install
17449         dir to datadir/gtk+-2.0/demo
17450
17451         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
17452         sorts of text widget and Pango font bugs. Urgh.
17453
17454         * demos/gtk-demo/Makefile.am (demos): Add textview.c
17455
17456         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
17457         tree that you should double click to see the demo. Fix 
17458         types of variables to reflect changed return values from 
17459         GtkTreeStore and GtkTreeViewColumn constructors.
17460
17461         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
17462         newly-created buffer to prepare for GObject semantics
17463
17464         * gtk/testtext.c: don't leak the buffer with GObject semantics
17465
17466         * gtk/testtextbuffer.c: ditto
17467         
17468 2000-11-12  Havoc Pennington  <hp@pobox.com>
17469
17470         Rename this testgtk to gtk-demo to avoid confusion, and 
17471         install it so people can use it as a supplement to 
17472         the documentation.
17473         
17474         * demos/gtk-demo: Moved from demos/testgtk
17475
17476         * demos/testgtk: Removed
17477
17478         * configure.in: make Makefile in gtk-demo
17479         
17480         * demos/gtk-demo/Makefile.am: Install sample source to 
17481         datadir/gtk-demo (maybe there's a better place?), and 
17482         rename the binary to gtk-demo
17483         
17484         * demos/gtk-demo/main.c (load_file): Load installed sample
17485         source if source isn't found in pwd.
17486
17487 2000-11-09  Havoc Pennington  <hp@pobox.com>
17488
17489         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
17490         argument to set the char displayed when visibility == FALSE
17491         (gtk_entry_create_layout): If !entry->visible, replace 
17492         all chars with the "invisible char"
17493
17494         * gtk/testgtk.c: Test the invisible_char deal
17495         
17496 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
17497
17498         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
17499         can't get a native font in the right encoding.
17500
17501 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
17502
17503         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
17504         respectively.
17505
17506 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
17507
17508         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
17509         Fix warning when moving between paragraphs.
17510
17511         * gtk/gtkentry.[ch]: Change move => move_cursor, 
17512         delete => delete_from_cursor, insert => insert_at_cursor
17513
17514 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
17515
17516         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
17517
17518         * modules/input/imthai-broken.c: A Thai input method for use if
17519         Thai keys are really generating Latin1 keysyms.
17520
17521         * modules/input/Makefile.am: Build these.
17522
17523 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
17524
17525         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
17526         g_filename_{to,from}_utf8 now takes an extra parameter.
17527
17528         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
17529         strftime into UTF-8.
17530
17531         (column_from_x, gtk_calendar_paint_day_names): Support RTL
17532         calendars.
17533
17534         (gtk_calendar_paint_day_names): Draw day names in the right 
17535         place.
17536         
17537 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
17538
17539         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
17540         problem with using result of g_get_charset() backwards -
17541         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
17542
17543         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
17544         negative min_width/height and max_width/height to
17545         mean "requisition"; this allows setting a window
17546         to be user-resizable in only one direction easily.
17547
17548         * gtk/testgtk.c (create_main_window): Remove hard-coded
17549         usize - set a default size in the vertical direction.
17550
17551 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
17552
17553         * gtk/gtkrange.c: Add some missing casts. Support 
17554         2 and 3 button clicks on the arrows to mean 
17555         "move by pages" and "jump to end". (Like gtkspinbutton)
17556
17557 2000-11-12 Hans Breuer <Hans@Breuer.Org>
17558
17559         * gdk/win32/makefile.msc : reflect build module changes
17560
17561         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
17562         from GdkPixmap*, cast implementation member instead.
17563
17564         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
17565         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
17566         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
17567         more Gdi functions return value checking. 
17568         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
17569         GdkImagePrivateWin32 *.
17570
17571         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
17572         menus useable again. Add #pragma message to keep reminded on this issue.
17573         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
17574         windows. This allows to enable backing store on Win32!
17575
17576         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
17577         in drawable is of impl type. Correct specific type checks appropriate.
17578  
17579         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
17580         GDK_WINDOW_DESTROYED before allocating new resources.
17581
17582         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
17583
17584         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
17585         (gdk_window_foreign_new) initialize parent handle.
17586         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
17587
17588         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
17589         Let the GDI invalidate the window on MoveWindow call to fix scrolling
17590         problems (e.g. main buttons in testgtk). 
17591
17592 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
17593
17594         * gtk/gtkentry.c (gtk_entry_key_press): Call 
17595         gtk_widget_activate for GDK_Return.
17596
17597         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
17598         of preedit cursor position.
17599
17600 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
17601
17602         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
17603         static.
17604
17605 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
17606
17607         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
17608         out support for multiple locales; that simple doesn't
17609         work reliably with current Xlib
17610
17611         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
17612         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
17613         Add support for positioning the cursor within the preedit string.
17614
17615 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
17616
17617         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
17618         at XIM input method module.
17619
17620         * gtk/gtktextview.c: Check for bindings after passing
17621         events to im context filter.
17622
17623 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
17624
17625         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
17626         empty attribute lists properly.
17627
17628 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
17629
17630         * gtk/queryimmodules.c (main): Return non-zero exit
17631         status if errors were encountered querying any
17632         modules.
17633
17634         * modules/input/Makefile.am (moduledir): remove
17635         leftover bin program target.
17636
17637         * docs/make-todo: Fix typo in error message.
17638
17639 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
17640
17641         * configure.in: Add modules/input/Makefile
17642
17643 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
17644
17645         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
17646         don't include gtkthemes.h.
17647
17648         * gtk/testgtk.c gtk/testtext.c: Set environment variables
17649         to point
17650
17651         * gtk/Makefile.am: Add new .c and .h files, build 
17652         gtk-query-immodules and use it to create a gtk.immodules
17653         file for use of test programs.
17654
17655         * gtk/gtkpreview.c: remove extra blank line.
17656
17657 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
17658
17659         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
17660         Add the ability to add extra tables beyond the default
17661         one, and also the ability to have compose sequences 
17662         that are prefixes of other compose sequences. 
17663
17664         * gtk/gtkimcontextsimple.c: Export a preedit string which
17665         consists of possible candidates for keystrokes that have
17666         been entered but not yet committed.
17667
17668         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
17669         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
17670
17671         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
17672         Add a function to add input-method switching menu items
17673         to a menu.
17674
17675         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
17676         when switching input methods.
17677
17678         * gtk/gtkimcontextsimple.[ch]: Change the format of
17679         the compose table to allow compose tables of different
17680         lengths / sequence.
17681
17682 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
17683
17684         * gtk/gtkimmodule.[ch]: Support routines for loading
17685         GtkIMContext implementations dynamically at runtime.
17686
17687         * modules/input/imcyrillic-translit.c: A sample input
17688         method (based on GtkIMContextSimple with an extra table),
17689         which demonstrates preedit strings and the module
17690         system for input modules
17691
17692         * gtk/queryimmodules.c: Program to query the available
17693         input modules and write the results into a file.
17694          
17695         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
17696         extra config options "im_module_file" (cache file for
17697         input method modules), and "im_module_path" - path
17698         to look for modules when generating cache file.
17699
17700         This doesn't scale.
17701
17702 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
17703
17704         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
17705         generic code from gtkthemes into a new abstraction
17706         GtkModule which has the logic for implementing
17707         a loadable module which implements a number of 
17708         GObject types.
17709
17710 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
17711
17712         * gtk/gtkeditable.[ch]: Convert GtkEditable from
17713         a class into an interface  
17714         
17715         * gtk/gtkoldeditable.[ch]: Move the old editable
17716         implementation into here, so legacy widgets can
17717         still rely on the implemenation. GtkOldEditable
17718         exports GtkEditable. Make selection handling
17719         code use new text conversion functions (and
17720         handle UTF-8 as a side-effect). Use GtkClipboard
17721         for CLIPBOARD.
17722
17723         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
17724         Adopt to match above changes.
17725
17726         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
17727         avoid GtkOldEditable implementation. Restructure
17728         to reduce number of places that modify state directly.
17729         Move to GtkBindingSet. Display the preedit string.
17730         Queue recomputation of PangoLayout and scroll position
17731         to improve effiency of doing complex changes naively.
17732         Add a menu with cut/copy/paste and input method selection.
17733
17734 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
17735
17736         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
17737         to set preedit string and attributes; display preedit string by
17738         inserting string and attributes at cursor when creating the
17739         GtkTextLineDisplay.
17740
17741         * gtk/gtktextlayout.c: Move all conversions between byte
17742         positions in PangoLayout and GtkTextIter into new functions
17743         line_display_iter_to_index/index_to_iter that properly
17744         handle the preedit string.
17745
17746         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
17747         it to return const char * (eventually will end up
17748         as GCONST char *, most likely.)
17749
17750         * gtk/gtktextview.[ch]: Handle the preedit string, call
17751         gtk_im_context_reset() as necessary, add a menu to switch
17752         input methods.
17753         
17754         * gtk/gtktextlayout.[ch]: Remove useless
17755         gtk_text_layout_get_log_attrs() function.
17756
17757 2000-11-11  Tor Lillqvist  <tml@iki.fi>
17758
17759         * gdk/gdk.def
17760         * gtk/gtk.def: Update.
17761
17762         * gdk/win32/*.c: Add last argument to g_type_register_static()
17763         calls.
17764
17765         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
17766
17767         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
17768         generated by older wheel mouse drivers. Get the correct y
17769         coordinate from WM_MOUSEWHEEL messages.
17770
17771         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
17772         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
17773         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
17774         Debugging functions.
17775
17776         * gdk/win32/gdkprivate-win32.h: Declare them.
17777
17778         * gdk/win32/gdkinput-win32.h: Add declaration for
17779         gdk_input_window_destroy().
17780
17781         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
17782
17783 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
17784
17785         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
17786         function to help handle keeping things in sync.
17787
17788 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
17789
17790         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
17791         BOXED marshallers.
17792
17793         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
17794         (gtk_list_store_class_init): use the new BOXED marshallers.
17795
17796         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
17797         new_with_values to new_with_types.
17798         (gtk_tree_store_get_column_type): add this.
17799         (gtk_tree_store_class_init): use the new BOXED marshallers.
17800
17801         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
17802         mirror some POINTER marshallers.
17803
17804 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
17805
17806         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
17807         allow more interesting iterators.  Also, made the lifecycle of
17808         iterators more explicit.
17809
17810         * gtk/gtktreemodelsort.[ch]: New model for sorting.
17811
17812         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
17813         types.
17814
17815 2000-11-09  Alexander Larsson  <alexl@redhat.com>
17816
17817         * demos/testgtk/menus.c:
17818         Changes to make the new testgtk compile after
17819         gtk_menu_append was removed.
17820
17821         * gdk/linux-fb/gdkdrawable-fb2.c
17822         (gdk_fb_get_depth, gdk_fb_get_visual,
17823         gdk_drawable_impl_fb_class_init): Implement
17824         these drawable functions. Now GtkImages work again.
17825
17826         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
17827
17828         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
17829         
17830         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
17831         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
17832         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
17833         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
17834
17835 2000-11-08  Havoc Pennington  <hp@pobox.com>
17836
17837         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
17838         visible_set args, don't know where these had gone, I thought they
17839         used to be there
17840
17841         * gtk/testtext.c: Add a menu item to apply invisibility tag;
17842         now we can test the feature and see that it's totally broken.
17843
17844 2000-11-08  Havoc Pennington  <hp@pobox.com>
17845
17846         Make DND copy pixbufs and tags when source and target share a 
17847         tag table.
17848         
17849         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
17850         in-process GTK_TEXT_BUFFER_CONTENTS target
17851         (gtk_text_view_drag_data_received): Paste from
17852         GTK_TEXT_BUFFER_CONTENTS if we receive it.
17853
17854 2000-11-08  Alexander Larsson  <alexl@redhat.com>
17855
17856         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
17857         API changes.
17858
17859         * gtk/gtkmenu.c: Add support for scrolling menus.
17860         Remove gtk_menu_append/prepend/insert, these have been moved to
17861         gtkcompat.h as #defines.
17862
17863         * gtk/gtkcompat.h.in:
17864         Add compatibility #defines for gtk_menu_append/prepend/insert
17865
17866         * gtk/gtkmenu.h: Add data needed for scrolling menus.
17867         GtkMenuPositionFunc gets an extra argument push_in.
17868         gtk_menu_append/prepend/insert removed.
17869         
17870         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
17871         positioning behaviour to fit to scrolling menus.
17872
17873         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
17874         into menuitem->submeny. That is wrong, and broke torn
17875         off submenus of torn off menus, since they were unrealized
17876         when the first menu was unrealized.
17877
17878         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
17879         gtk_menu_shell_select_item() since these need to be overridden in
17880         GtkMenu.
17881
17882         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
17883         positioning behaviour to fit to scrolling menus.
17884         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
17885         the current item so that it is prelighted when the menu pops up.
17886         This is a workaround to the fact that the menu doesn't get the
17887         initial enter event (due to grabs).
17888
17889         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
17890         s/gtk_menu_append/gtk_menu_shell_append/
17891
17892         * gtk/gtknotebook.c:
17893         s/gtk_menu_insert/gtk_menu_shell_insert/
17894
17895         * gtk/testgtk.c (create_menu, create_menus):
17896         Create the first menu with 50 items so that menu scrolling
17897         can be tested.
17898         
17899         
17900         Patch from Jonathan Blandford  <jrb@redhat.com>
17901
17902         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
17903         system to handle size requests.  First, we ask what the size of
17904         the toggle is.  Then, when allocating the size, we allocate the
17905         toggle_size first.  This way we can have multiple menu-item
17906         classes w/o needing a seperate class for each.
17907
17908         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
17909         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
17910
17911         * gtk/gtkcheckmenuitem.c
17912         (gtk_check_menu_item_toggle_size_request): New function to handle
17913         the toggle size-request.
17914
17915 2000-11-07  Havoc Pennington  <hp@redhat.com>
17916
17917         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
17918         Half-ass somewhat fix this function, so that scrolling to the
17919         insertion point works. Pango hacking is in the future to really
17920         fix it.
17921
17922         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
17923         length of data, no longer used.
17924
17925         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
17926         method contents in here, get rid of destroy method
17927         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
17928         that were backward. Remove debug spew.
17929         (cut_or_copy): Make the clipboard work with insert_range to
17930         preserve tags and pixbufs, not just the primary selection.
17931
17932 2000-11-07  Havoc Pennington  <hp@redhat.com>
17933
17934         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
17935         to gtk_text_mark_get_visible
17936
17937         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
17938         bug that was generating an invalid iterator
17939
17940         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
17941         ensure_char_offsets() in front of code placing the iter in an
17942         invalid state.
17943
17944         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
17945         make override_location arg const
17946         (paste): Replace the selection if we paste into the 
17947         current selection
17948
17949         * gtk/gtkselection.h: Remove "GtkSelectioData"
17950         (struct _GtkSelectionData): move the definition here.
17951
17952         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
17953         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
17954
17955         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
17956
17957         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
17958         (gtk_text_buffer_insert_range_interactive): implement
17959         (gtk_text_buffer_get_tags): Remove, replaced by
17960         gtk_text_iter_get_tags()
17961
17962         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
17963         limit parameter, to avoid infinite linear scan.
17964         (gtk_text_iter_backward_search): Add search limit
17965         (gtk_text_iter_forward_find_char): Add search limit
17966         (gtk_text_iter_backward_find_char): Add search limit
17967
17968 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
17969
17970         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
17971         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
17972         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
17973         gdk/linux-fb/gdkwindow-fb.c:
17974         use g_object_new() instead of g_type_create_instance() which
17975         is a private function for fundamental type implementations.
17976
17977         * gdk/linux-fb/gdkinput-ps2.c:
17978         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
17979         instead just store the current modifier state. Add a (somewhat broken)
17980         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
17981         Rename exported function gdk_input_ps2_get_mouseinfo to
17982         gdk_input_get_mouseinfo.
17983
17984         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
17985         gdk/linux-fb/gdkwindow-fb.c:
17986         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
17987         
17988
17989 2000-11-02  Havoc Pennington  <hp@redhat.com>
17990
17991         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
17992         use stock buttons. Should be 100% source compatible, appropriate
17993         filesel fields now point to dialog->vbox and dialog->action_area.
17994         On the bizarre side, dialog->action_area and filesel->action_area
17995         are not the same widget.
17996         (gtk_file_selection_init): Put some padding around the selection
17997         entry, so it isn't touching the GtkDialog separator.    
17998
17999         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
18000         use stock buttons, etc. Should also be source compatible.
18001         Set the dialog default title in _init not _new().
18002         
18003         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
18004         Use stock buttons; don't put a button box inside the existing
18005         dialog button box. Don't bother with push/pop colormap anymore.
18006
18007         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
18008         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
18009         for message dialog, and necessary for the font selection and color
18010         selection with help and apply buttons.
18011         
18012         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
18013         to the created button widget. Set GTK_CAN_DEFAULT on the button.
18014         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
18015         between buttons, put less padding around the action area.
18016         (gtk_dialog_run): Exit on unmap rather than on destroy. 
18017         This will also exit the loop if the widget is hidden.
18018         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
18019         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
18020         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
18021         special-case delete event.
18022
18023         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
18024         formatting
18025         
18026 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
18027
18028         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
18029         button to temporarily disable position recording in the
18030         "saved position" test.
18031
18032 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
18033
18034         * gtk/gtkthemes.c: added compat code that temporarily implements
18035         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
18036         going to be revamped by owen's upcoming GtkModule patches, but
18037         untill then people want gtk to build, right? ;)
18038
18039 2000-11-04  Havoc Pennington  <hp@pobox.com>
18040
18041         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
18042         list
18043
18044         * docs/Changes-2.0.txt: Add note about
18045         gtk_container_get_toplevels()
18046
18047         * gtk/gtktextview.h: formatting
18048         
18049         * gtk/gtktextview.c: don't start descriptions with "Returns",
18050         confuses gtk-doc
18051
18052 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
18053
18054         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
18055         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
18056
18057 2000-11-03  Havoc Pennington  <hp@redhat.com>
18058
18059         * gtk/gtktexttagtable.c: Docs
18060         (gtk_text_tag_table_size): return a signed int
18061
18062         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
18063         (gtk_text_tag_event): make the event_object a GObject
18064
18065         * gtk/gtktextview.c: Write API docs for all functions.
18066
18067         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
18068         for gtk_text_view_get_window_type() called on one of the private
18069         windows.
18070
18071         * gtk/gtktextview.c: Instead of accessing text_view->buffer
18072         directly, call get_buffer() which demand-creates a default
18073         buffer. So gtk_text_view_new() can be used to create a view with a
18074         default buffer in it, if you just want an empty text box users can
18075         put data in. Useful for GUI builders also.
18076
18077 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
18078
18079         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
18080         the charset encodign portion MUST be in lowercase.
18081         * gtk/gtkrc.az: added file for Azeri language
18082
18083 2000-11-03  Havoc Pennington  <hp@redhat.com>
18084
18085         Get widgets working on the btree/buffer side. Display of them 
18086         still doesn't work.
18087         
18088         * gtk/gtktextview.c: start implementing child widget stuff
18089
18090         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
18091
18092         * gtk/gtktextlayout.c: handle embedded widgets
18093
18094         * gtk/gtktextdisplay.c: handle embedded widgets
18095
18096         * gtk/gtktextchild.c: Implement all the child anchor goo
18097
18098         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
18099         function
18100
18101         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
18102         (insert_pixbuf_or_widget_segment): abstract out common portions of 
18103         creating a child anchor or a pixbuf segment.
18104         (gtk_text_btree_create_child_anchor): new function
18105         (gtk_text_btree_unregister_child_anchor): new function
18106
18107         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
18108         allocate_child signal on GtkTextLayout
18109
18110         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
18111         values
18112         (gtk_text_iter_get_child_anchor): new function
18113
18114         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
18115         default handler for the changed signal, which calls
18116         gtk_text_buffer_set_modified(), instead of just always emitting
18117         changed then calling set_modified() manually. I guess this is
18118         maybe more flexible. It seems logical.
18119
18120 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
18121
18122         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
18123         now.
18124
18125         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
18126
18127 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
18128
18129         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
18130         been marked static.
18131
18132 2000-11-02  Havoc Pennington  <hp@redhat.com>
18133
18134         * gtk/testgtk.c (create_labels): had a test backward
18135
18136         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
18137         fields, so the dest GC ends up with the correct clip origin, 
18138         etc. Fixes a bug where colored labels didn't redraw 
18139         properly.
18140
18141 2000-11-02  Alexander Larsson  <alexl@redhat.com>
18142
18143         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
18144         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
18145         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
18146         Add last argument to t_type_register_static call.
18147         
18148         * gdk/linux-fb/gdkdrawable-fb2.c:
18149         Add last argument to t_type_register_static call.
18150         export the get_image drawable virtual function.
18151
18152         * gdk/linux-fb/gdkimage-fb.c:
18153         Add last argument to t_type_register_static call.
18154         rename gtk_image_get to _gdk_fb_get_image and
18155         export it for use by gdkdrawable-fb2.
18156
18157         * gdk/linux-fb/gdkprivate-fb.h:
18158         export _gdk_fb_get_image.
18159
18160         * gdk/linux-fb/gdkselection-fb.c:
18161         Add new api call stubs.
18162
18163         * gtk/Makefile.am:
18164         Missing ( in linux-fb part.
18165
18166         * modules/linux-fb/Makefile.am:
18167         Must link with gdk_pixbuf or get unresolved symbol.
18168
18169 2000-11-01  Havoc Pennington  <hp@pobox.com>
18170
18171         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
18172         GTK_TYPE_TEXT_ITER and BOXED marshallers
18173
18174         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
18175
18176         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
18177         
18178         * gtk/gtk-boxed.defs: add GtkTextIter
18179
18180         * gtk/gtkmarshal.list: Add marshallers for text widget that 
18181         properly use OBJECT and BOXED
18182
18183 2000-11-01  Havoc Pennington  <hp@redhat.com>
18184
18185         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
18186
18187         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
18188         before returning it. 
18189         
18190 2000-11-01  Havoc Pennington  <hp@redhat.com>
18191
18192         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
18193         Clip the rectangle to be rendered to the drawable, since
18194         get_from_drawable() requires a region within the drawable
18195
18196 2000-11-01  Havoc Pennington  <hp@redhat.com>
18197
18198         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
18199         from coordinates.
18200
18201 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
18202
18203         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
18204         it isn't NULL.
18205
18206 2000-11-01  Havoc Pennington  <hp@pobox.com>
18207
18208         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
18209         on a label
18210         (gtk_label_finalize): unref the attr list if any.
18211
18212         * gtk/testgtk.c (create_get_image): close test on second click
18213         (make_message_dialog): close dialog if it exists
18214
18215         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
18216
18217         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
18218         gdk-pixbuf
18219
18220         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
18221         from Pango markup format
18222         (gtk_label_set_markup_with_accel): ditto but with accelerator
18223         parsing
18224
18225         * gtk/gtkimage.c (gtk_image_expose): reformatting.
18226
18227         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
18228         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
18229         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
18230         call gdk_window_get_origin().
18231
18232         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
18233         implement GDK_PIXBUF_ALPHA_FULL
18234         
18235 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
18236
18237         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
18238         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
18239         g_signal_handlers_disconnect_matched to block/unblock and disconnect
18240         multiple handlers respectively, instead of only treating the
18241         first handler found (bug reported by owen).
18242
18243 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
18244
18245         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
18246
18247         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
18248
18249         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
18250         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
18251         gtk/gtktreeviewcolumn.h: Fixed inline docs.
18252
18253         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
18254         widget.  Needs writing someday.
18255
18256         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
18257         the docs.
18258
18259 2000-10-30  Havoc Pennington  <hp@redhat.com>
18260
18261         * gtk/gtktextview.h, gtk/gtktextview.c:
18262         Rename delete_at_cursor delete_from_cursor, and 
18263         move to move_cursor.
18264
18265 2000-10-30  Havoc Pennington  <hp@redhat.com>
18266
18267         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
18268         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
18269         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
18270         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
18271         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
18272         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
18273         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
18274         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
18275         gtktexttypes.h, gtktextview.c, gtktextview.h:
18276
18277         Massive reindentation and reformatting. Arg alignment and comments
18278         still need fixing in various places.
18279
18280 2000-10-30  Havoc Pennington  <hp@redhat.com>
18281
18282         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
18283         to be named insert_at_cursor and delete_at_cursor so C++ can
18284         handle them.
18285
18286 2000-10-28  Tor Lillqvist  <tml@iki.fi>
18287
18288         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
18289         to get a double directory separator in case the home directory
18290         ends with one. This would cause trouble especially on Windows,
18291         where the path will be confused with the syntax for an an UNC
18292         (network share) path \\server\share\path.
18293         (gtk_rc_add_initial_default_files): Ditto.
18294
18295 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
18296
18297         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
18298
18299         * gtk/gtktextview.c: Use correct marshallers.
18300
18301 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
18302
18303         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
18304         use new iter stuff, and added all the appropriate signals et al.
18305
18306         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
18307         code is internal to gtk only.
18308
18309 2000-10-28  Tor Lillqvist  <tml@iki.fi>
18310
18311         * gtk/gtk.def
18312         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
18313         glib-genmarshal etc.
18314
18315 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
18316
18317         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
18318         parallel builds.
18319
18320 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
18321
18322         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
18323
18324 2000-10-27  Robert Brady  <robert@suse.co.uk>
18325
18326         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
18327         en_GB (British), ia (Interlingua).
18328
18329 2000-10-26  Havoc Pennington  <hp@redhat.com>
18330
18331         * gtk/gtktextiter.c (my_strrstr): fix constness warning
18332
18333         Fixed output of:
18334         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
18335         
18336         * gtk/gtktextsegment.c (char_segment_new): rename
18337         (_char_segment_new_from_two_strings): rename
18338         (_toggle_segment_new): rename
18339         
18340         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
18341         (make_clipboard_widget): make it static
18342         (text_get_func): static
18343         (text_clear_func): static
18344
18345         * gtk/gtkcolorsel.c (adjustment_changed): make this function
18346         static
18347         (hex_changed): make it static
18348         (hsv_changed): make it static
18349         (opacity_entry_changed): make it static
18350
18351         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
18352         (toggle_segment_check_func): rename with _gtk
18353
18354         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
18355         (_widget_segment_new): rename
18356         (_widget_segment_add): rename
18357         (_widget_segment_remove): rename
18358         (_widget_segment_ref): rename
18359         (_widget_segment_unref): rename
18360
18361         * gtk/gtktextmark.c (_mark_segment_new): Rename
18362         _gtk_mark_segment_new   
18363
18364 2000-10-26  Havoc Pennington  <hp@redhat.com>
18365
18366         * gtk/gtkmarshal.list: add new marshallers used by the text widget
18367         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
18368         types
18369
18370         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
18371         marshaller types
18372
18373         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
18374         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
18375         license on these files.
18376
18377         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
18378         work.
18379
18380         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
18381         runtime random number different for each tree, instead of 
18382         a constant I made up.
18383
18384 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
18385
18386         * gtk/Makefile.am: buncha cleanups, kludged build sources
18387         dependencies with a Makefile: oldest-source-stamp dependancy
18388         for the moment. automake is really fighting us here, with
18389         intentionally not allowing user-defined rules or dependancies
18390         prior to it's -include $(DEP_FILES) statement. sucks rocks!
18391
18392         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
18393         to public headers. tehy have a comment stating that they are
18394         "semi-public" aren't included by gtk.h and if enums popup there,
18395         they can be /*< skip >*/-ed.
18396
18397         * gtk/gtktextlayout.h: 
18398         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
18399         added LGPL... <SIGH>
18400
18401 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
18402
18403         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
18404         GtkTreeIter.  Added iterators everywhere.
18405
18406         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
18407
18408         * gtk/gtktreeviewselection.c: Changed to use the iterators.
18409
18410         * gtk/gtktreestore.c: Changed to use the iterators.
18411
18412         * gtk/gtkliststore.c: Commented out the code.  Will convert to
18413         iterators tomorrow.
18414
18415         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
18416         iterators tomorrow.
18417
18418         * gtk/treestoretest.c: Changed to use iterators.
18419
18420         * demos/testgtk/main.c: Moved to use the new iterator system.
18421
18422 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
18423
18424         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
18425         localization misbehaviour.
18426
18427         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
18428         a useless type without copy/free.
18429
18430         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
18431         of GTK_TYPE_CTREE_NODE.
18432
18433 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
18434
18435         * gtk/gtksignal.c:
18436         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
18437         applicable.
18438
18439         * gtk/gtk-boxed.defs (GtkSelectionData): specify
18440         gtk_selection_data_copy and gtk_selection_data_free
18441         do GtkSelectionData work as params in signals.
18442
18443 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
18444
18445         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
18446         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
18447         couldn't they at least give it a non-standard name?
18448         
18449         * gtk/gtktextlayout.c: arg! yet another implementation of
18450         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
18451
18452         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
18453         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
18454         home. now i know this _is_ a conspiracy.
18455
18456         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
18457         ::state-changed.
18458
18459         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
18460         (gtk_accel_group_create_add): marshaller signature fixups.
18461
18462         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
18463         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
18464
18465         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
18466         anymore.
18467
18468 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
18469
18470         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
18471         due to the signal system changes, it wouldn't build currently. to
18472         be fixed soon.
18473
18474         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
18475
18476         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
18477         so it needs gtk_marshal_VOID__ENUM() instead of
18478         gtk_marshal_NONE__UINT().
18479
18480         * gdk/gdk*.c: adapted type registration functions.
18481
18482         * gtk/gtkbindings.c:
18483         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
18484         gone.
18485
18486         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
18487
18488         * gtk/gtkobject.c:
18489         (gtk_object_destroy):
18490         (gtk_object_shutdown): fixed recursion guards. basically we have to
18491         catch the case where any of GObject.shutdown() or gtk_object_destroy()
18492         is called during ::destroy, and avoid recursion there.
18493
18494         * gtk/gtktypeutils.c:
18495         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
18496         boxed_copy/boxed_free. this needs a more general solution based on a
18497         publically installed code-generator utility.
18498
18499         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
18500         glib's gobject has support for that now.
18501         define GtkSignalMarshaller in terms of GSignalCMarshaller.
18502
18503 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
18504
18505         * gtk/gtksignal.[hc]:
18506         * gtk/gtkmarshal.[hc]:
18507         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
18508         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
18509         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
18510         care of that.
18511
18512         * *.c: marshaller name fixups.
18513
18514         * gtk/gtkmarshal.list: added a comment briefing the format.
18515
18516 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
18517
18518         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
18519         compatibility macros here now. more specifically, most of
18520         the API is preserved (yes, _most_, nonwithstanding the
18521         following exceptions listed, the API is stil lHUGE ;)
18522         things that got removed completely:
18523         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
18524         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
18525         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
18526         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
18527         gtk_signal_remove_emission_hook().
18528         non-functional functions variants:
18529         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
18530         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
18531         not supported anymore.
18532         (gtk_signal_compat_matched): new internal function to aid
18533         implementation of the compatibility macros, it  provides
18534         functionality to block/unblock/disconnect handlers based
18535         on func/data.
18536
18537         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
18538
18539         * *.c: adaptions to new type registration API signatures.
18540
18541 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
18542
18543         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
18544
18545 2000-10-25  Robert Brady  <robert@suse.co.uk>
18546
18547         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
18548         gdk_property_delete): If window == NULL, assume the root window.
18549         (restoring the behaviour that was in 1.2).
18550         
18551         * gtk/testtext.c (save_buffer): Allow creation of new files when
18552         saving.
18553
18554         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
18555         calls to read().
18556
18557 2000-10-25  Tor Lillqvist  <tml@iki.fi>
18558
18559         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
18560
18561         * gdk/win32/gdkdrawable-win32.c
18562         * gdk/win32/gdkimage-win32.c
18563         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
18564         X11 backend.
18565
18566         * gdk/win32/gdkcc-win32.c
18567         * gdk/win32/gdkcolor-win32.c
18568         * gdk/win32/gdkfont-win32.c
18569         * gdk/win32/gdkinput-win32.c
18570         * gdk/win32/gdkmain-win32.c
18571         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
18572
18573 2000-10-24  Havoc Pennington  <hp@redhat.com>
18574
18575         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
18576         it a static function
18577
18578         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
18579         redraw text when a tag is applied to it.
18580
18581         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
18582         (gtk_text_tag_affects_nonsize_appearance): private functions to
18583         see if a tag requires various kinds of redraw/layout to be queued
18584         up.
18585
18586         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
18587
18588         * gtk/testtext.c (fill_example_buffer): Put the cursor 
18589         at the start of the buffer, so search works by default
18590
18591         * gtk/gtktextiter.c (lines_match): init match_start always
18592
18593         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
18594         function, get iter at a line + a byte index
18595
18596         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
18597         to set byte position within a line
18598         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
18599
18600 2000-10-23  Havoc Pennington  <hp@redhat.com>
18601
18602         * gtk/testtext.c: Re-enable the "find" dialog
18603
18604         * gtk/testgtk.c: Add test for gdk_drawable_get_image
18605         
18606         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
18607         the arguments to gdk_draw_drawable were in the wrong order
18608         (gdk_window_paint_init_bg): This function was ignoring the
18609         init_region, instead of clipping to it, so the entire backing
18610         pixmap was cleared on every begin_paint()
18611         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
18612         was in here again, the loop kept using the same GtkWindowPaint
18613         over and over.
18614         (gdk_window_begin_paint_region): Fix a bug where we had two
18615         x_offset instead of x_offset and y_offset
18616
18617         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
18618         before we get the image.
18619         (gdk_draw_drawable): get the composite before we draw the drawable.
18620         (gdk_drawable_real_get_composite_drawable): default
18621         get_composite_drawable implementation that returns the drawable 
18622         itself
18623
18624         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
18625         get_composite_drawable virtual function
18626
18627         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
18628         list-walking bug
18629
18630         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
18631         make this work if the source drawable is a GdkDrawableImplX11
18632         instead of a public drawable type. This is really broken; the
18633         problem is that GdkDrawable needs a virtual method get_xid(), but
18634         of course that doesn't work in practice. Enter RTTI.
18635
18636         Also, improve mismatched depth message.
18637
18638         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
18639         GdkPixmap
18640
18641         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
18642         install _gdk_x11_get_image as our implementation of get_image
18643         
18644         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
18645         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
18646
18647         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
18648         gdk_drawable_get_image
18649
18650         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
18651
18652         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
18653         get_image
18654
18655         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
18656         trailing semicolon after for loop
18657
18658 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
18659
18660         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
18661         where font_desc for widget's context lagged widget's font_desc by
18662         one step.
18663
18664 2000-10-22  Tor Lillqvist  <tml@iki.fi>
18665
18666         * gdk/win32/gdkgc-win32.c
18667         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
18668
18669         * gtk/makefile.mingw.in
18670         * gtk/gtk.def: Updates.
18671
18672         * gtk/testgtk.c: sleep() is called _sleep in MS's C
18673         library.
18674
18675         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
18676
18677         * gtk/makefile.msc: Remove
18678
18679         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
18680
18681         * gtk/Makefile.am: Add it.
18682
18683         * configure.in: Generate it.
18684
18685         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
18686         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
18687         something even if not implemented, to satisfy picky MSVC.
18688
18689         Patches by Hans Breuer:
18690         
18691         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
18692         SetBkMode() and SetTextAlign() before calling
18693         pango_win32_render().
18694
18695         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
18696         Set hcliprgn to NULL after destroying it.
18697         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
18698
18699         * gdk/win32/gdkgeometry-win32.c
18700         (_gdk_windowing_window_queue_antiexpose): More effective
18701         implementation.
18702
18703         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
18704         depth as default, not the visual's.
18705
18706         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
18707         against empty title.
18708
18709         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
18710         IMAGE_PRIVATE_DATA.
18711
18712         * gdk/win32/gdkimage-win32.c: Use it.
18713
18714 2000-10-22  Robert Brady  <robert@suse.co.uk>
18715
18716         * configure.in: Check for bind_textdomain_codeset
18717
18718         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
18719         present, make use of it.
18720
18721         Add a translatable string "default:LTR" which, if translated
18722         to "default:RTL", will cause the default direction to be
18723         Right-to-Left.
18724
18725         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
18726         direction if marked as flippable.
18727
18728         * gtk/gtkhscale.c: Mark widget as flippable.
18729         
18730 2000-10-04  Havoc Pennington  <hp@redhat.com>
18731
18732         * gtk/testgtk.c (create_buttons): create some stock buttons
18733         with the default accel group
18734         (create_image): test some new GtkImage features
18735         (make_message_dialog): test GtkMessageDialog
18736         (create_modal_window): fix someone's bizzarro indentation
18737
18738         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
18739         GTK_WIN_POS_CENTER_ON_PARENT. 
18740         Add "destroy with parent" setting, which means the window goes
18741         away with its transient parent.
18742         (gtk_window_get_default_accel_group): get the default accel group
18743         for the window.
18744         (gtk_window_set_destroy_with_parent): set/unset destroy with
18745         parent flag
18746         (gtk_window_read_rcfiles): invalidate icon set caches
18747         after reloading rcfiles 
18748
18749         * gtk/gtkenums.h (GtkWindowPosition): add
18750         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
18751         on its parent window when the dialog is mapped for the first time.
18752
18753         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
18754         a simple message dialog class
18755         
18756         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
18757         handler to emit response signal, and maybe later it would
18758         honor a hide_on_delete flag - though that isn't there yet.
18759         Set border width on the vbox to 2, so we get some padding.      
18760         Use a button box for the action area.
18761         (gtk_dialog_key_press): synthesize a delete event if Esc
18762         is pressed and the GtkWidget key press handler didn't 
18763         handle the escape key.
18764         (gtk_dialog_new_with_buttons): new function creates a dialog
18765         with some default buttons in it.
18766         (gtk_dialog_add_action_widget): add an activatable widget
18767         as a button in the dialog - you can also add a non-activatable
18768         widget by accessing the action area directly.
18769         (gtk_dialog_add_button): add a simple button - stock ID or 
18770         label - to the action area
18771         (gtk_dialog_response): emit response signal
18772         (gtk_dialog_run): block waiting for the dialog, return 
18773         the response. Override normal delete_event behavior, so that 
18774         delete_event does nothing inside gtk_dialog_run().
18775         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
18776         emitted when an action widget is clicked or the dialog gets
18777         delete_event
18778
18779         * gtk/gtk.h: add gtkmessagedialog.h
18780
18781         * gtk/Makefile.am: add gtkmessagedialog.[hc]
18782
18783 2000-10-18  Havoc Pennington  <hp@redhat.com>
18784
18785         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
18786         where any number of empty lines would get skipped
18787
18788         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
18789         edge.
18790
18791         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
18792         warning about invalid iterators (explain more thoroughly)
18793         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
18794
18795         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
18796         big
18797
18798         * demos/*.c: Add error handling
18799
18800         * gtk/gtktextbuffer.c: don't modify const iterators
18801
18802         * gtk/gdk-pixbuf-loader.c: Add full error handling here
18803
18804         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
18805         on file load
18806
18807         * gtk/gtkiconfactory.c: Update to reflect addition of error
18808         handling to gdk-pixbuf loaders
18809
18810 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
18811
18812         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
18813         move to new modularized testgtk.
18814
18815 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
18816
18817         * gtk/gtktreeview.c: Draw the arrows correctly.
18818
18819         * gtk/gtktreemodel.c: Added user docs.
18820
18821         * gtk/gtk.h: remove gtktreedatalist.h.
18822
18823         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
18824         parent when generating my type.
18825
18826         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
18827         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
18828
18829 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
18830
18831         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
18832         GtkTreeModel from object to interface.
18833
18834 2000-10-16  Havoc Pennington  <hp@redhat.com>
18835
18836         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
18837         compilation
18838
18839 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
18840
18841         * gtk/gtktreeselection.c: Add API documentation to all public
18842         functions.
18843
18844         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
18845         functions.
18846
18847 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
18848
18849         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
18850         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
18851         docs to all public functions.
18852
18853         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
18854         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
18855         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
18856         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
18857         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
18858         issue.
18859
18860 2000-10-14  Robert Brady  <robert@suse.co.uk>
18861
18862         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
18863
18864 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
18865
18866         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
18867         values other then G_TYPE_STRING.
18868         * gtk/gtktreeselection.c: Minor commenting updates.
18869         * gtk/gtktreeview.c: Format updates.
18870
18871 2000-10-09  Tor Lillqvist  <tml@iki.fi>
18872
18873         * README.win32: Update.
18874
18875         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
18876         lines that had been deleted by mistake (?).
18877
18878         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
18879         also the case fg==white and bg==black (but still not randomly
18880         coloured cursors). Thanks to Wolfgang Sourdeau.
18881
18882         * gdk/win32/*.c: Silence gcc -Wall.
18883
18884         * gtk/gtk.def: Add missing entry points.
18885
18886         Fixes by Hans Breuer:
18887
18888         * gdk/makefile.msc
18889         * gdk/win32/makefile.msc: Update.
18890
18891         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
18892         some MSVC thing, presumably), cause breakpoint on failures. Add
18893         GDK_NOR case. Call g_log_set_always_fatal.
18894
18895         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
18896         should be pased by reference.
18897         
18898         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
18899         
18900         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
18901
18902         * gdk/win32/gdkevents-win32.c
18903         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
18904
18905         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
18906         implementation object.
18907
18908         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
18909         not just windows.
18910         
18911         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
18912         Use the wrapper object.
18913         
18914 2000-10-06  Havoc Pennington  <hp@redhat.com>
18915
18916         * Makefile.am (SRC_SUBDIRS): contrib subdir
18917
18918         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
18919         so it can be used in Xlib version
18920
18921         * demos/testpixbuf.c (update_timeout): error checking from 1.0
18922         tree
18923
18924         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
18925         change from 1.0 tree that returns first frame of animation
18926         if the loaded file is an animation.
18927
18928         * contrib: add new directory to hold stuff that comes with GTK+
18929         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
18930         
18931         * configure.in: add contrib/*
18932
18933 2000-10-05  Havoc Pennington  <hp@redhat.com>
18934
18935         * demos/testpixbuf-save.c: add pixbuf save test
18936
18937         * demos/Makefile.am: add testpixbuf-save.c
18938
18939 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
18940
18941         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
18942         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
18943         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
18944         * gtk/gtktreeselection.[ch]: Replaced
18945         "node_selected"/"node_unselected" signal with "selection_changed"
18946         signal.
18947
18948 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
18949
18950         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
18951         tree widget.
18952
18953 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
18954
18955         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
18956         drawing.
18957
18958 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
18959
18960         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
18961         Move list pointer forwards before removing item from
18962         list. (Crash reported by Salmaso Raffaele)
18963
18964         * gdk/gdkwindow.h: Remove spurious trailing ,
18965
18966         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
18967         dependencies on uninstalled libraries, sorry folks.
18968
18969 2000-10-04  Havoc Pennington  <hp@redhat.com>
18970
18971         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
18972         gtk/gtkiconfactory.c: Fix copyrights    
18973
18974         * demos/testpixbuf.c: add inline pixbuf test
18975         
18976 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
18977
18978         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
18979         Add gdk_window_iconify.
18980
18981         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
18982         (gdk_window_set_geometry_hints): Add win_gravity
18983         to geometry structure.
18984
18985         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
18986         Implement _NET_WM_PING.
18987
18988         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
18989         Set _NET_WM_PID on the client leader.
18990
18991         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
18992         Handle UTF-8 better.
18993
18994         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
18995         UTF-8 better, set _NET_WM_NAME as well. Only set
18996         icon name if it hasn't previously been explicitely 
18997         set.
18998
18999 2000-10-03  Havoc Pennington  <hp@redhat.com>
19000
19001         * gtk/testtextbuffer.c: clean up trailing whitespace,
19002         add extensive tests for tag toggle iteration.
19003         
19004         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
19005         distance
19006
19007         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
19008         optimize case where the tag root is on level 1
19009         (gtk_text_line_previous_could_contain_tag): attempt to implement
19010         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
19011         functionality
19012
19013         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
19014         Implement this, though not very efficiently.
19015
19016         * gtk/gtktextiterprivate.h: reformat
19017
19018         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
19019         iterator
19020
19021         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
19022         this to properly revalidate the iterators.
19023
19024         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
19025         properly at the end of the line (and therefore on empty lines)
19026
19027         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
19028         maybe we should return a value...
19029
19030 2000-10-03  Tor Lillqvist  <tml@iki.fi>
19031
19032         * config.h.win32: Guard definition of alloca(). glib.h now handles
19033         that.
19034
19035         * gdk/gdk.def
19036         * gtk/gtk.def: Add new entry points.
19037
19038         Changes just to make GTK+ build without errors on Win32. No hope
19039         of it working in its current state, though...:
19040         
19041         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
19042         some functions from the X11 backend, just to make GTK+ build.
19043
19044         * gdk/makefile.mingw.in
19045         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
19046         number. Add new object files.
19047
19048         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
19049         GetMessageTime to get timestamp (where on X11 uses
19050         gdk_x11_get_server_time()).
19051
19052 2000-10-02  Havoc Pennington  <hp@pobox.com>
19053
19054         * gtk/gtktextview.c: text_window_* weren't static and should have
19055         been.
19056         Start work on child widgets; not yet complete, syncing to 
19057         office computer.
19058
19059         * gtk/gtktextchild.h: change this to contain a public interface,
19060         starting work on child interfaces.
19061         * gtk/gtktextchildprivate.h: move private interfaces here
19062
19063         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
19064
19065         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
19066         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
19067         gtk/gtktextmark.c: copyright notices
19068
19069         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
19070         internal functions      
19071
19072         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
19073         internal function
19074
19075         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
19076         Reformatting    
19077
19078 2000-09-30  Havoc Pennington  <hp@pobox.com>
19079
19080         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
19081         NULL start/end pointers
19082
19083         * gtk/gtktextbuffer.c: Write some docs
19084         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
19085         NULL, so you can just check whether there's a selection.        
19086
19087         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
19088         cleanup_line or segments_changed ourselves, it gets done 
19089         in unlink_segment
19090
19091         * gtk/gtktextmark.h:
19092         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
19093         
19094         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
19095
19096         * gtk/gtktextmark.c: delete some more old Tk cruft
19097
19098         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
19099         mark before removing it, so we can emit MARK_DELETED with a valid
19100         pointer.
19101         (gtk_text_buffer_mark_set): hold ref across signal emission
19102
19103         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
19104         whining about attempts to delete special marks
19105
19106         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
19107         underscore, since it's internal.
19108
19109         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
19110         now implemented in terms of iterators in gtktextiter.h
19111
19112         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
19113         New function, destructively sets contents of buffer. Also 
19114         a convenient way to clear the buffer by setting text to ""
19115
19116         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
19117         multiline string literal
19118
19119         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
19120         text changes.
19121
19122         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
19123         is not dereferenceable
19124         (gtk_text_iter_forward_lines): fix return value
19125
19126 2000-09-29  Havoc Pennington  <hp@redhat.com>
19127
19128         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
19129
19130         * gtk/gtktextview.c: Implement drag thresholding; change functions 
19131         that set border window size to have nicer name
19132         (gtk_text_view_mark_set_handler):  Fix this to have the 
19133         right signature.
19134
19135         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
19136
19137         * gtk/testtext.c: Update with API changes, put line numbers on 
19138         both sides.
19139         
19140         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
19141         with this
19142
19143         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
19144         pixbuf; delete a big block of #if 0 Tk code
19145
19146         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
19147         insert_pixmap with insert_pixbuf
19148
19149 2000-09-29  Martin Baulig  <baulig@suse.de>
19150
19151         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
19152         confusion with the GdkPixbuf of the GNOME 1.x platform.
19153
19154 2000-09-29  Havoc Pennington  <hp@pobox.com>
19155
19156         * gtk/gtktextview.c: Implement the side windows.
19157
19158         * gtk/testtext.c: Implement simple line numbering in the 
19159         left side window; seems to make scrolling sloooow. Oops.
19160         Also, cursor blink is for some reason causing redraws
19161         of the line numbers. Should investigate...
19162
19163 2000-09-28  Havoc Pennington  <hp@redhat.com>
19164
19165         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
19166         scrolling child windows, and draw focus rectangle properly.
19167         
19168         (gtk_text_view_buffer_to_window_coords):
19169         Coordinate transformation to deal with all these freaking windows
19170         and offsets
19171         (gtk_text_view_window_to_buffer_coords): transform the other way
19172
19173         * gtk/testtext.c (create_buffer): Update to match Pango API change
19174
19175         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
19176         anonymous tags
19177         (foreach_unref): don't emit remove signal from finalize, just
19178         set tag's parent to NULL
19179
19180 2000-09-26  Havoc Pennington  <hp@redhat.com>
19181
19182         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
19183         Fix some warnings       
19184
19185 2000-09-26  Havoc Pennington  <hp@redhat.com>
19186
19187         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
19188         headers into the private header list
19189
19190         * Makefile.am (pkgconfig_DATA): install pkg-config files
19191
19192         * configure.in: add pkg-config files
19193
19194         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
19195
19196         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
19197         outstanding icon caches on theme change.
19198
19199         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
19200         important types:
19201
19202         (GtkIconSource): Specification for creating a pixbuf 
19203         appropriate for a direction/state/size triplet from 
19204         a source pixbuf or filename
19205
19206         (GtkIconSet): List of GtkIconSource objects that are used to
19207         create the "same" icon (e.g. an OK button icon), and cache for
19208         rendered icons
19209
19210         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
19211         up the icon set for a given stock ID.  GTK maintains a stack of
19212         GtkIconFactory to search, and applications or libraries can add
19213         additional icon factories on top of the stack
19214         
19215         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
19216         the set of GtkIconSource specified for a given stock ID into 
19217         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
19218         RcStyle, under the specified stock ID.
19219
19220         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
19221         render_icon used to derive a GdkPixbuf from a GtkIconSource.
19222         This allows people to theme how prelight, insensitive, etc. are
19223         done.
19224
19225         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
19226         icon factories for a style, and return the resulting 
19227         icon set if any.
19228
19229         (gtk_style_render_icon): Render an icon using the render_icon 
19230         method in the GtkStyleClass.
19231
19232         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
19233         Use the style for a given widget to look up a stock ID, get the
19234         icon set, and render an icon using the render_icon method 
19235         of the style
19236
19237         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
19238         (contains information about a stock item), the built-in stock item
19239         IDs, and functions to add/lookup stock items.
19240
19241         * gtk/stock-icons/*: Stock icons that come with GTK
19242
19243         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
19244         a button based on a GtkStockItem
19245         (gtk_button_new_accel): Takes a uline string and accel group, and
19246         installs the accelerator.
19247
19248         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
19249         image-display widget.
19250
19251 2000-09-25  Havoc Pennington  <hp@redhat.com>
19252
19253         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
19254
19255         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
19256         Fix a bug when removing node data, we didn't properly 
19257         re-splice the linked list after removing the data.
19258
19259         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
19260         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
19261
19262         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
19263
19264         * gtk/gtktextlayout.c (set_para_values): Set tab array 
19265         for the layout from the GtkTextTag.
19266
19267         * gtk/gtktexttypes.h: delete tab and search cruft, 
19268         remove g_convert() in favor of GLib version
19269
19270         * gtk/gtktexttypes.c: remove tab implementation from here,
19271         move to Pango
19272
19273         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
19274         tab stuff using new PangoTabArray from Pango
19275
19276         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
19277         unused border_width stuff
19278
19279 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
19280
19281         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
19282         glib) and now useless utf_to_latin1() latin1_to_utf()
19283
19284         * gtk/gtktextview.[ch]: Change ::move_insert and
19285         ::delete_text action signals to ::move and ::delete;
19286         create the signals with the right enumeration type,
19287         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
19288         C-v bindings, change Home, End to move to beginning/end
19289         of line, Add C-Home C-End to move to beginning/end
19290         of buffer. Change ::cut_text to ::cut_clipboard, etc;
19291         combine ::scroll_text into ::move; use new GtkSelectionData
19292         functions to simplify DND text handling.
19293         
19294         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
19295         deletion enumerations here, rename enumeration values to 
19296         be consistently plural.
19297
19298         * gtk/gtktextbuffer.c: Use new clipboard interfaces
19299         for cut/copy/paste and primary selection.
19300
19301         * gtk/gtktextbuffer.[ch]: Remove excess time and
19302         'interactive' arguments from cut/copy/paste;
19303         rename cut to cut_clipboard, etc; remove
19304         gtk_text_buffer_get_clipboard_contents().
19305
19306         * gtk/gtktextlayout.[ch]: Add 
19307         gtk_text_layout_move_iter_to_line_end() to move the iter to 
19308         line ends.
19309
19310         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
19311         Functions to set or get a UTF-8 string on the selection
19312         data.
19313
19314         * gtk/gtkclipboard.[ch]: New, simplified selection handling
19315         interfaces.
19316
19317         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
19318         created widgets - one of these is useless if we don't.
19319
19320         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
19321         a public function clear all targets registered for the
19322         widget.
19323
19324         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
19325         Never call gtk_widget_realize() - that was just asking
19326         for bizarre side-effects.
19327
19328         * gtk/gtkselection.c (gtk_selection_owner_set): Call
19329         gdk_selection_owner_set even if the widget is the
19330         same so that we reliably update the timestamp on
19331         the server.
19332
19333         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
19334         gdk_x11_get_server_time() function.
19335         
19336         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
19337         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
19338         Add some tricky filtering on serial numbers for
19339         selection clear events to fix up long-standard
19340         race condition FIXME's in gtkselection.c.
19341
19342         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
19343         routines to convert from utf8 to compound text or
19344         STRING and from a text property to UTF-8.
19345
19346         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
19347         a convenience function gdk_get_current_event_time().
19348
19349         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
19350         and free selection_data->data properly
19351
19352 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
19353
19354         * gtk/gtkthemes.c: Remove some unecessary includes.
19355
19356 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
19357
19358         * gtk/gtktextdisplay.c
19359         * gtk/gtktextlayout.c
19360         * gtk/gtktexttag.c
19361         * gtk/gtktexttag.h
19362         * gtk/testtext.c: Change the overstrike property to strikethrough,
19363         to closer match pango.
19364
19365 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
19366
19367         * gtk/gtktextview.c: Fix up visibility so that focus,
19368         cursor_visible and blink interact properly.  Reenable cursor blink
19369         which had been roughly disabled. Make blink and focus
19370         properly per-view.
19371
19372         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
19373         Add a flag for whether to display insertion cursor and
19374         a function to set the flag.
19375
19376         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
19377         get_line_y() to get_line_yrange(), to be a bit more generally
19378         useful.
19379
19380 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
19381
19382         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
19383           do stop_navigating_submenu, to clear last timeout properly.
19384           Also in gtk_menu_motion_notify move ignore_enter above
19385           the conditional to make it always happen as suggested by Owen
19386
19387 2000-09-07  Tor Lillqvist  <tml@iki.fi>
19388
19389         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
19390
19391         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
19392         w32api headers.
19393
19394         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
19395         declarations.
19396
19397         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
19398         (gdk_win32_get_colormap): A line had been deleted by mistake.
19399
19400         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
19401         (gdk_event_translate): Handle more virtual keycodes to be able to
19402         generate GDK events for Control-comma, Control-period, etc.
19403
19404         * gtk/gtk.def: Add some missing entry points.
19405
19406 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
19407
19408         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
19409         Doc comment fixing. (Mostly non-matching parameter names.)
19410
19411         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
19412         comments a little to avoid looking like a doc comment.
19413
19414         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
19415         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
19416         conversions be changed to GError?)
19417
19418         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
19419         Move private #defines into .c file.
19420
19421         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
19422         order of argument addition, remove duplicates.
19423
19424         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
19425         parent class is FrameClass, not BinClass.
19426
19427         * gtk/gtk.h: Add gtkinvisible, which was missing.
19428         (It's occasionalyl useful for client apps, if seldom.)
19429
19430         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
19431         #define.
19432
19433 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
19434
19435         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
19436         coordinates when creating window, instead of GDK-space
19437         coordinates. (Avoid BadValue on too large windows.)
19438
19439 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
19440
19441         * configure.in (use_mmx_asm): Remove conftest* after use along the
19442         lines of AC_TRY_COMPILE.        
19443         
19444         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
19445         of g_dirname, which is deprecated.
19446         (gtk_rc_parse_any): Removed calls to
19447         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
19448
19449         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
19450         Removed calls to g_hash_table_{freeze,thaw}, as they are
19451         deprecated now.
19452
19453         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
19454         instead of g_basename.
19455         
19456 2000-09-04 Elliot Lee <sopwith@redhat.com>
19457         
19458         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
19459         ANSI warning.
19460
19461 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
19462
19463         * gtk/gtkwidget.h:  Add some documenting comments about 
19464           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
19465           just as owen said on irc.
19466
19467         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
19468           set HAS_DEFAULT.  Only set it if there isn't another window
19469           holding it (a focus window which RECEIVES_DEFAULT) and only unset
19470           it if the widget is not the focused window with RECEIVES_DEFAULT.
19471           This fixes weird double default bugs in dialogs which has things
19472           call gtk_window_set_default at times.
19473
19474 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
19475
19476         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
19477         Nils Barth and David Santiago to improve submenu
19478         navigation. The patch does this by creating a triangular
19479         region from the point where the pointer leaves the
19480         menu to the submenu.  While the pointer is in
19481         that region and a timeout has not expired, events 
19482         that would cause the active submenu to change are
19483         ignored.
19484
19485 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
19486
19487         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
19488         moving a toplevel window immediately after sizing it would
19489         result in it being sized back to the old size since 
19490         impl->width, impl->height aren't updated until we hear
19491         back from the server. There is still a (longstanding) bug
19492         here that gdk_window_get_size() will give the wrong size
19493         until we do hear back.
19494
19495 2000-08-31  Havoc Pennington  <hp@redhat.com>
19496
19497         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
19498         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
19499         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
19500         Rename GtkTextStyleValues to GtkTextAttributes
19501
19502 2000-08-31  Havoc Pennington  <hp@pobox.com>
19503
19504         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
19505         for rapid testing whether an iterator is the end iterator
19506         (gtk_text_btree_new): init end line cache
19507         (gtk_text_line_is_last): use fast cached line to 
19508         see if we're the last line.
19509         (get_last_line): use cached line here too, should 
19510         speed up some random unrelated code.
19511         
19512 2000-08-30  Havoc Pennington  <hp@pobox.com>
19513
19514         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
19515         signals.
19516
19517         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
19518         delete_text signals. This allows the signals to be used for
19519         implementing undo.
19520
19521         * gtk/gtktextbuffer.c: Change signal handler signatures; 
19522         provide "interactive" argument when emitting insert_text or
19523         delete_text signal.
19524         
19525 2000-08-30  Havoc Pennington  <hp@pobox.com>
19526
19527         * gtk/gtktextbuffer.c: Docs
19528
19529 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
19530
19531         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
19532         from switch statements, since Tor removed the enumeration
19533         value.
19534         
19535         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
19536         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
19537
19538 2000-08-29 Elliot Lee <sopwith@redhat.com>
19539         * */*.h: Use G_GNUC_CONST.
19540
19541 2000-08-27  Havoc Pennington  <hp@pobox.com>
19542
19543         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
19544         minor indentation fixes, inserted some FIXME about stuff I
19545         realized was broken while documenting it.
19546         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
19547         GTK convention  
19548
19549 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
19550
19551         * gtk/testgtk.c (create_styles): Fix double free of
19552         font desc.
19553
19554 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19555
19556         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
19557         
19558         * gtk/testgtk.c (create_styles): Add a test for modifying
19559         the style through gtk_widget_modify_*.
19560
19561         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
19562         a function to get the current modifier style.
19563
19564         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
19565         of the passed in GtkRcStyle instead of ref'ing it.
19566
19567         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
19568
19569 2000-08-20  Tor Lillqvist  <tml@iki.fi>
19570
19571         * gdk/gdkimage.h
19572         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
19573         shared memory image+pixmap GdkImage type, or
19574         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
19575         I am dropping that.
19576
19577         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
19578         actually call gtk_init_abi_check(), passing also
19579         sizeof(GtkWindow). Ditto for gtk_init_check(). 
19580
19581         * gtk/gtk.def
19582         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
19583         New functions, used to check that the GTK+-using code has been
19584         compiled using the correct compiler and switches. In particular,
19585         with gcc one has to use the -fnative-struct switch as GTK+ is
19586         compiled with that.
19587
19588 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
19589
19590         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
19591         ->prev fields when merging lists. (Found simultaneously
19592         by Pawel Salek and Jakub Jelinek)
19593
19594 2000-08-12  Tor Lillqvist  <tml@iki.fi>
19595
19596         * gdk/gdk.def
19597         * gtk/gtk.def: Add missing entries.
19598
19599         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
19600         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
19601
19602         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
19603         function. Dummy implementation at this point.
19604
19605         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
19606         rules. Undefine GTK_COMPILATION when compiling the test programs.
19607         
19608         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
19609
19610 2000-08-11  Tor Lillqvist  <tml@iki.fi>
19611
19612         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
19613         to convert back and forth from UTF-8 and the "system" (or "current
19614         locale") charset when necessary. Indentation/spacing cleanup.
19615
19616 2000-08-10  Havoc Pennington  <hp@redhat.com>
19617
19618         * Makefile.am (snapshot): Change the format of the snapshot
19619         version to match glib
19620
19621         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
19622         from EXTRA_DIST since it doesn't seem to exist
19623
19624 2000-08-10  Tor Lillqvist  <tml@iki.fi>
19625
19626         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
19627         version of the directory name (not the UTF-8 one) when building
19628         the path name to stat().
19629
19630 2000-08-03  Elliot Lee  <sopwith@redhat.com>
19631
19632         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
19633         PANGO_ATTR_SHAPE set.
19634
19635 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
19636
19637         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
19638         Peter Osterlund to simplify the code while keeping the
19639         functionality the same.
19640
19641 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
19642
19643         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
19644         is_viewable() test further inside the function, since removing the 
19645         window from the redraw list without clearing ->update_area
19646         was also very broken.
19647
19648 2000-08-02  Tor Lillqvist  <tml@iki.fi>
19649
19650         * configure.in: Check for <unistd.h>.
19651
19652 2000-08-01  Martin Baulig  <baulig@suse.de>
19653
19654         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
19655         to display the message that this is a development version of GTK+.
19656
19657 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
19658
19659         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
19660         was depending on widget->allocation instead of the width of text_area,
19661         which was incorrect for subclasses like GtkSpinButton.
19662
19663         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
19664         with width == 1 tests that should be width == -1.
19665
19666 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
19667
19668         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
19669         (broken, Elliot, every single window blank on X) custom code with call
19670         to gdk_window_is_viewable() which a) prevents code duplicate and
19671         b) works. 
19672
19673 2000-07-31  Elliot Lee  <sopwith@redhat.com>
19674
19675         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
19676         to get the GDK_PARENT_ROOT() macro to work.
19677         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
19678         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
19679         of, windows that aren't shown.
19680         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
19681         pointer grab stuff.
19682
19683 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
19684
19685         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
19686           s/gtk_main_iteration/g_main_iteration/
19687
19688           Did this already in change:
19689                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
19690           don't know how it got reverted.
19691
19692 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
19693
19694         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
19695         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
19696
19697         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
19698         not gdk_pixbuf.
19699
19700 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
19701
19702         * configure.in,po/{sp,sr}.po: Added Serbian files
19703
19704 2000-07-30  Tor Lillqvist  <tml@iki.fi>
19705
19706         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
19707
19708         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
19709         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
19710         GIOChannel implementation.
19711
19712         * gdk/win32/gdkinput.c
19713         * gdk/win32/gdkpango-win32.c: Update license name here, too.
19714
19715         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
19716         definition to match prototype.
19717
19718         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
19719
19720 2000-07-27  Elliot Lee  <sopwith@redhat.com>
19721
19722         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
19723         function, to allow handling image formats that cannot be detected
19724         by looking at content alone.
19725
19726 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
19727
19728         * docs/tutorial/*.gif *.jpg *.eps
19729           Update these to the same look-n-feel.
19730           Why does including images in DocBook suck so badly?
19731
19732 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
19733
19734         * gtk/gtktable.c: applied patch from Phil Thompson
19735         <phil@river-bank.demon.co.uk> that enables space settings for
19736         the last row/columns as well.
19737
19738 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
19739
19740         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
19741         updates the license headers to the GNU Lesser General Public License,
19742         as well as updating the copyright year to 2000.
19743
19744 2000-07-26  Robert Brady  <rwb197@zepler.org>
19745
19746         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
19747           and po/Makefile, was installing and looking for them under gtk20
19748           and gtk2 respectively.
19749
19750 2000-07-25  Havoc Pennington  <hp@redhat.com>
19751
19752         * gtk/testtext.c: Comment out some stuff that depends on the rest
19753         of my patches.
19754
19755 2000-07-25  Havoc Pennington  <hp@redhat.com>
19756
19757         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
19758         buffer
19759
19760 2000-07-25  Havoc Pennington  <hp@redhat.com>
19761
19762         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
19763         widget changes.
19764
19765         * gtk/gtktextview.h: To be consistent with usage of "line"
19766         throughout the API to mean "newline-terminated thingy", change
19767         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
19768         to MOVEMENT_LINE.
19769
19770         (GtkTextView): Add flags for default editability, and whether to
19771         show the cursor. Add functions to get/set that. Add 
19772
19773         (gtk_text_view_get_iter_location): new function
19774
19775         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
19776         gtktextlayout.h
19777         (g_convert): Add g_convert temporarily, will go in glib in a bit
19778         
19779         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
19780         GtkTextTagTableForeach instead of brokenly using GHFunc.
19781         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
19782
19783         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
19784         moved to public header.
19785
19786         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
19787         "invisible", since "elide" was a bad name.
19788         (gtk_text_tag_get_priority): Added
19789
19790         (GtkTextStyleValues): put this in public header, along with
19791         functions to use it.
19792
19793         * gtk/gtktextmarkprivate.h: Include more headers, since we no
19794         longer include gtktextbtree.h.
19795
19796         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
19797         gtk_text_mark_deleted
19798
19799         * gtk/gtktextlayout.h: Don't include the "really private" headers,
19800         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
19801         to make this possible. Now we only need to install
19802         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
19803         (However the Makefile.am isn't changed yet because of the
19804         logistics of merging gtk-hp-patches piecemeal)
19805
19806         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
19807         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
19808         gtk_text_iter_get_line is now used in the public API for a
19809         different purpose.
19810
19811         * gtk/gtktextiter.h: Clean up function names to be more
19812         consistent. Always call char offset "offset" and byte index
19813         "index". A "line" is always a line number. 
19814
19815         (gtk_text_iter_is_last): new function, more efficient than 
19816         the existing way to check
19817         (gtk_text_iter_is_first): new function, also more efficient
19818
19819         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
19820
19821         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
19822         gtk_text_iter_forward_char, etc.
19823
19824         (gtk_text_iter_forward_to_tag_toggle): Renamed from
19825         forward_find_tag_toggle, since this isn't a linear search
19826
19827         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
19828
19829         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
19830         New functions, search for a buffer substring.
19831
19832         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
19833         interactive and default editable (since we need to store that info
19834         until we receive the selection data).
19835
19836         Remove all the _at_char and at_line etc. versions of functions;
19837         only have iterator versions.
19838
19839         Add _interactive() versions of functions, that consider the
19840         editability of text. (FIXME add interactive flag to the 
19841         insert/delete signals per Darin's suggestion)
19842
19843         (gtk_text_buffer_get_tag_table): new function, demand-creates the
19844         tag table if necessary
19845
19846         Remove declaration of gtk_text_buffer_get_iter_from_string
19847
19848         (_gtk_text_buffer_get_btree): private/internal function, added.
19849         
19850
19851         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
19852         (gtk_text_line_is_last): new function
19853
19854 2000-07-25  Havoc Pennington  <hp@redhat.com>
19855
19856         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
19857         using GtkProgressBar. See Changes-2.0.txt for details.
19858
19859         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
19860         "pulse_step" which are the equivalent of
19861         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
19862         Implement new API.
19863         
19864         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
19865         (use_text_format) to mark whether text set on the progress bar is
19866         a format string. Deprecate entire GtkProgress interface.
19867
19868         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
19869         (gtk_progress_build_string): make this a no-op if use_text_format
19870         is FALSE
19871
19872         * docs/Changes-2.0.txt: Describe progress bar changes.
19873
19874 2000-07-25  Tor Lillqvist  <tml@iki.fi>
19875
19876         * Makefile.am: Include the build directory.
19877
19878         * configure.in: Generate build/Makefile, build/win32/Makefile,
19879         gdk/, gdk/win32/, and gtk/makefile.mingw.
19880
19881         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
19882         Add GETTEXT_PACKAGE.
19883         
19884         * gdk/gdk.def
19885         * gtk/gtk.def: Updates.
19886
19887         * gdk/gdkfont.h
19888         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
19889         need them any longer.
19890
19891         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
19892
19893         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
19894         PANGOWIN32_LIBS and gdk_pixbuf.
19895
19896         * gdk/win32: Compiles, but no doubt doesn't work at all.
19897
19898         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
19899
19900         * gdk/win32/gdkinput.c: New file, temporarily.
19901         
19902         * gdk/win32/gdkinput-win32.h: New file
19903
19904         * gdk/win32/gdkinputprivate.h: Remove.
19905
19906         * gdk/win32/gdkpango-win32.c: New file.
19907
19908         * gtk/makefile.mingw.in: New file
19909
19910         * gtk/makefile.cygwin: Removed
19911         
19912         * gtk/Makefile.am: Update accordingly.
19913
19914         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
19915         made externally visible.
19916
19917         * gtk/gtkmain.c: Use it.
19918         
19919         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
19920         is enough.
19921
19922         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
19923
19924 2000-07-24 Elliot Lee <sopwith@redhat.com>
19925         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
19926         individual backends already.
19927         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
19928         again. Yes, there really is a good reason for this, if you are using the gdkregion
19929         internals, and if you're not, why do you care?
19930         * gdk/gdkwindow.c: Fix inverted condition
19931         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
19932         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
19933         * gtk/gtkrange.c: Redraw trough when moving.
19934         * gtk/gtktypeutils.c: Fix warning by adding const cast.
19935         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
19936
19937 2000-07-23  Tor Lillqvist  <tml@iki.fi>
19938
19939         * configure.in: Check for mkstemp and sigsetjmp. Output
19940         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
19941
19942         More work on GDK for Win32. Still in an intermediate state.
19943
19944         * gdk/makefile.cygwin
19945         * gdk/win32/makefile.cygwin: Removed.
19946         
19947         * gdk/makefile.mingw.in
19948         * gdk/win32/makefile.mingw.in: New files.
19949
19950         * gdk/Makefile.am
19951         * gdk/win32/Makefile.am: Generate and distribute them.
19952
19953         * gdk/win32/gdkwindow-win32.h
19954         * gdk/win32/gdkdrawable-win32.h
19955         * gdk/win32/gdkpixmap-win32.h: New files.
19956
19957         * gdk/win32/gdkcolor-win32.c
19958         * gdk/win32/gdkcursor-win32.c
19959         * gdk/win32/gdkdrawable-win32.c
19960         * gdk/win32/gdkgc-win32.c
19961         * gdk/win32/gdkimage-win32.c
19962         * gdk/win32/gdkprivate-win32.h
19963         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
19964         Rename fields and variables called xcursor, xid, etc (these names
19965         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
19966
19967 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
19968
19969         * gtk/gtkentry.[ch]: Fix some problems with vertical
19970         alignment.
19971
19972         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
19973         char/byte confusion.
19974
19975 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
19976
19977         * gtk/gtktextview.c (changed_handler): Fix bug where
19978         redraw wasn't being done properly when height of
19979         dirty region changed.
19980
19981         * demos/Makefile.am: Remove various references to
19982         -lgmodule
19983
19984 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
19985
19986         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
19987         PangoAttrShape to reserve space for pixmaps, add 
19988         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
19989         in the display functions.
19990         
19991         * gtk/testgtk.c (create_layout): Set some more exotic
19992         scrolled window options
19993
19994         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
19995         Add function to set the shadow type of a window, to allow
19996         putting a shadow around widgets such as GtkLayout or GnomeCanvas
19997         which don't draw their own frame.
19998
19999 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
20000
20001         * docs/tutorial/package-db-tutorial.sh: New file for
20002           packaging DocBook format tutorial
20003
20004 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
20005
20006         * docs/tutorial/gtk-tut.sgml: Minor updates
20007
20008         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
20009
20010 2000-07-19  Tor Lillqvist  <tml@iki.fi>
20011
20012         * gtk/gtksignal.c: Fix C++ comment.
20013
20014         * gtk/gtkimmulticontext.c
20015         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
20016         don't return value from void functions.
20017
20018         * gtk/gtk.def: Add gtk_rc_style_unref.
20019
20020 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
20021
20022         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
20023         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
20024         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
20025         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
20026         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
20027         gtk/gtktypeutils.h: Include files outside of the extern "C"
20028         block. Makes some C++ compiler happy. Reported by Denis Vakatov
20029         <vakatov@peony.nlm.nih.gov>.
20030
20031 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
20032
20033         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
20034           Completes first pass. Hurrah!
20035
20036 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
20037
20038         * docs/tutorial/gtk-tut.sgml: More clean ups.
20039
20040 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
20041
20042         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
20043         paint the background of the text area which was accidentally
20044         removed at some point.
20045
20046         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
20047           
20048          - Move most of the functionality from the theme vtable
20049            into GtkRcStyleClass and GtkStyleClass. The moved
20050            vtable functions were changed a bit in the move to
20051            work better in their new home.
20052
20053          - Get rid of the engine and engine_data fields from
20054            GtkRcStyle and GtkStyle; instead the theme
20055            engine derives theme-specific subclasses of GtkRcStyle
20056            and GtkStyle
20057
20058          - Add extra dlsym() found entry point to themes,
20059            theme_create_rc_style().
20060
20061         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
20062         in gtk_style_real_copy.
20063
20064         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
20065         to register a type associated with an engine. (The engine
20066         won't be unloaded as there is an instance of the type.)
20067
20068
20069 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
20070
20071         * docs/tutorial/gtk-tut.sgml: Clean ups.
20072
20073 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
20074
20075         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
20076           of cleaning up to do.
20077
20078 2000-07-15  Tor Lillqvist  <tml@iki.fi>
20079
20080         * gdk/testgdk.c: New file, quick hack to test backends for
20081         pixel-by-pixel correctness of the most simple graphic operations.
20082
20083 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
20084
20085         * Really release 1.3.1
20086         
20087         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
20088         include structure.
20089
20090 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
20091
20092         * Released 1.3.1
20093
20094 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
20095
20096         * gtk/gtktextlayout.c: use FALSE for size_only most
20097         of the time when calling gtk_text_layout_get_line_display()
20098         to avoid causing double reshapes when a redraw follows
20099         immediately after.
20100
20101 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
20102
20103         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
20104         appropriate region and gdk_window_process_updates() so trough
20105         updating doesn't lag behind the window being scrolled.
20106
20107         * gdk/gdkgc.c: Make parent_class pointer static.
20108          
20109 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
20110
20111         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
20112         include <string.h>.
20113          
20114         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
20115         cut-and-paste error in computing memory offset for 4 channels.
20116
20117 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
20118
20119         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
20120         gtk_rc_append_default_pixmap_path(), since it wasn't
20121         adding an interesting path and we don't have a meaningful
20122         default for this value.
20123
20124 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
20125
20126         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
20127         gtk-config to gtk-config-2.0 move gtk_.m4 to
20128         gtk-2.0.m4
20129
20130         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
20131         gdk/Makefile.am demos/Makefile.am: Change 
20132         library names to libgtk-1.3.la, etc, so that we
20133         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
20134
20135         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
20136         gdk/Makefile.am gdk/x11/Makfile.am
20137         Move include files into /usr/include/gtk-2.0, 
20138         /usr/lib/gtk-2.0/include/
20139          
20140         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
20141         gtk/gtkintl.h: Change package for gettext from 
20142         gtk+ to gtk20. Put hack in autogen.sh to modify
20143         po/Makefile.in.in after gettextize to make this
20144         possible.
20145
20146         * gtk+.spec: Some updates, not tested.
20147
20148         * gdk-pixbuf/Makefile.am: Move loaders into
20149         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
20150
20151         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
20152         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
20153         to THEMENAME/gtk-2.0/. Move engine directory  to
20154         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
20155         
20156 2000-07-12  Tor Lillqvist  <tml@iki.fi>
20157
20158         Win32 changes, still doesn't build though.
20159
20160         * gdk/makefile.cygwin
20161         * gdk/win32/makefile.cygwin
20162         * gtk/makefile.cygwin: Updates.
20163
20164         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
20165         default values for fg and bg pixel as X11 does (0 and 1), not
20166         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
20167         Use 0 for pen width by default (treated as 1 anyway later, but for
20168         apps that might check the value in the GdkGC).
20169         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
20170         interface to gdk_gc_predraw and _postdraw.
20171
20172         * gdk/win32/gdkwin32.h
20173         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
20174
20175         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
20176         extraneous semicolon.
20177
20178         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
20179
20180         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
20181         not the Win32 bitspixel value.
20182
20183         * gdk/win32/gdkcc-win32.c:
20184         * gdk/win32/gdkcolor-win32.c 
20185         * gdk/win32/gdkprivate-win32.h
20186         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
20187         GDK object structure.
20188
20189 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
20190
20191         * docs/tutorial/gtk_tut_12.es.sgml (name): 
20192         * docs/tutorial/gtk_tut_it.sgml (name): 
20193         * docs/tutorial/gtk_tut_fr.sgml (name): 
20194         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
20195         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
20196
20197 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
20198
20199         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
20200           small changes.
20201
20202 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
20203
20204         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
20205         a bug here, never been here and never fixed anything ;(
20206         (don't segfault if tree->root_tree is NULL, which happens prior
20207         to widget realization, but puke instead).
20208
20209 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
20210
20211         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
20212         add the necessary tokens.
20213
20214         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
20215         (gtk_rc_style_to_style): copy thicknesses.
20216         (gtk_rc_init_style): apply thicknesses.
20217         (gtk_rc_parse_style): parse xthickness and ythickness.
20218
20219         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
20220
20221         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
20222         (gdk_window_new): 
20223         (_gdk_windowing_window_init): 
20224         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
20225         (gdk_pixmap_create_from_data): 
20226         (gdk_bitmap_create_from_data): 
20227         (gdk_pixmap_new): 
20228         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
20229         (gdk_image_new): 
20230         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
20231         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
20232         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
20233         (gdk_colormap_get_system): 
20234         (gdk_colormap_new): 
20235         * gdk/gdkwindow.c (gdk_window_init): 
20236         * gtk/gtkstyle.c (gtk_style_new):
20237         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
20238         * gdk/gdkpixmap.c (gdk_pixmap_init): 
20239         * gtk/gtkrc.c (gtk_rc_style_new):
20240         use g_object_new() instead of g_type_create_instance() which
20241         is a private function for fundamental type implementations.
20242
20243 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
20244
20245         * configure.in: Add check for db2html
20246
20247 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
20248
20249         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
20250         hack to set glib_debug_objects based on gtk_debug_flags.
20251
20252 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
20253
20254         * INSTALL.in: Update the Prerequisites section.
20255
20256         * Makefile.am demos/Makefile.am docs/Makefile.am
20257         docs/tutorial/Makefile.am gdk/x11/Makefile.am
20258         gdk/linux-fb/Makefile.am: Dist fixes
20259
20260 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
20261
20262         * NEWS: 10,000 foot view of 1.3.1 changes.
20263
20264 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
20265
20266         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
20267         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
20268         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
20269         gdk/x11/gdkmain-x11.c: 
20270
20271         Patch from George Lebl to add a GdkGrabStatus enumeration to use
20272         as a return value of gdk_*_grab(). Previously, we just
20273         returned the X11 values directly.
20274
20275 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
20276
20277         * gdk/x11/Makefile.am: Patch from George Lebl to 
20278         install all the headers in the right place.
20279
20280 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
20281
20282         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
20283           initial conversion to DocBook.
20284
20285 2000-07-04  Tor Lillqvist  <tml@iki.fi>
20286
20287         * README.win32: Improve a bit.
20288
20289         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
20290         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
20291         Alt+0nnn on the numpad (used to enter characters by numeric code
20292         from current DOS or ANSI codepage) working correctly, as in other
20293         Windows apps.
20294
20295         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
20296         same argument validity tests as in X11 version.
20297         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
20298
20299         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
20300         definitions in case missing from headers.
20301
20302         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
20303         destroy the window-specific cursor.
20304         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
20305         calling GetModuleHandle(NULL).
20306         (gdk_window_set_cursor): Reworked to always copy the passed cursor
20307         with CopyCursor before setting it as the window-specific
20308         cursor. It is OK for the caller to destroy the GdkCursor (and thus
20309         also its Windows cursor) after calling this function. Destroy any
20310         previous window-specific cursor.
20311
20312 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
20313
20314         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
20315         font charset is iso8859-1, not iso-8859-1.
20316
20317 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
20318
20319         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
20320         Use g_get_charset() instead of g_get_codeset().
20321
20322         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
20323         Comment out some strdup'ing functions to keep timj
20324         happy until we finish fighting this out.
20325
20326 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
20327
20328         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
20329         <= width or height.
20330
20331         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
20332         from 1.2 for parent/child states.
20333
20334         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
20335         of typos.
20336
20337         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
20338         event structures, replace with a generic axes field. Replace 
20339         deviceid/sourec with GdkDevice *device.
20340
20341         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
20342         to extract particular axis use value from event. (Also
20343         can be used for normal X/Y.)
20344
20345         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
20346         allow for arbitrary number of axes, namespace everything
20347         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
20348         everywhere.
20349
20350         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
20351         Get rid of the gdk_input_vtable setup if favor of simply
20352         defining the functions in gdkinput-none/gxi/xfree.c in
20353         a similar fashion to the way that the port structure is 
20354         done.
20355
20356         * gtk/gtkdnd.c: Fix fields of synthesized button press event
20357         for new event structures. 
20358
20359         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
20360         new device interfaces.
20361
20362 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
20363
20364         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
20365         set the initial text.
20366
20367         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
20368         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
20369         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
20370         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
20371
20372         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
20373         pango_layout_set_font_description to simplify.
20374
20375 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
20376
20377         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
20378         pango_layout_set_font_description to simplify.
20379
20380 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
20381
20382         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
20383         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
20384         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
20385
20386         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
20387         PANGO_PIXELS() macro.
20388
20389 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
20390
20391         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
20392         that returns a PangoContext owned by the widget and updated to
20393         match future changes in the widget. Also, make 
20394         gtk_widget_create_pango_layout() use this context. If we ever
20395         add a ::changed signal to PangoContext, this will make things
20396         much more convenient. 
20397
20398         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
20399         in the appropriate places instead of destroying the layouts and
20400         creating new ones.
20401
20402         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
20403         in a few strategic places.
20404
20405 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
20406
20407         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
20408         gtk_widget_size_request() on reparented child, if one. Otherwise,
20409         queue_resize() on the child never results in it getting size-requested
20410         at all.
20411
20412         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
20413         in option menus, so that (with luck) people won't copy it into
20414         their apps in the future.
20415
20416         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
20417         to gtk_option_menu_calc_size. This isn't perfect, but should fix
20418         a lot of problems with changing the size of the menu's menu
20419         items after adding it to the option menu.
20420
20421         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
20422
20423         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
20424         the text direction for a widget changes.
20425
20426         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
20427         ::direction_changed to get rid of various hacks.
20428
20429 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
20430
20431         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
20432         name.
20433
20434 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
20435
20436         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
20437         flag to the structure. Do not call XFreePixmap on pixmaps created
20438         by gdk_pixmap_foreign_new().
20439
20440 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
20441
20442         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
20443         value using GdkRGB functionality given GdkColormap and GdkColor.
20444         (name not final, waiting for inspiration.)
20445         
20446         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
20447         set the foreground/background of a GC using the GC's colormap
20448         and GdkRGB. (name not final, waiting for inspiration.)
20449
20450         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
20451         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
20452
20453         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
20454         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
20455         purely a function of the corresponding colormap. Make
20456         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
20457
20458         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
20459         gdk_pixbuf_*create_from_xpm_* in terms of
20460         gdk_pixbuf_new_from_xpm_data(), move into platform independent
20461         code.
20462
20463         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
20464         advantage of the new draw_rgb_32_image_dithalign.
20465
20466         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
20467
20468         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
20469         on each created GC.
20470
20471         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
20472
20473         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
20474         which we initialize from the drawable when the GC is created,
20475         if the drawable has a colormap.
20476
20477         * gdk/x11/gdkgc-x11.c: include string.h for memset.
20478
20479         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
20480
20481         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
20482
20483 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
20484
20485         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
20486         actually returning expose events, make sure to set
20487         the count field properly.
20488
20489         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
20490         accidentally reintroced bug which always cleared
20491         the graphics_exposures value. 
20492
20493 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
20494
20495         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
20496
20497 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
20498
20499         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
20500
20501 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
20502
20503         * docs/faq/gtk-faq.sgml: Start of Section 6.
20504
20505 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
20506
20507         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
20508         
20509         (Fixes problem with drawing childless frames. Pointed out
20510         by and a first patch from Anders)
20511         
20512         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
20513         compute a child_allocation, even if we don't have a child.
20514
20515         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
20516         Always chain to the parent's impl, even if we don't have a child.
20517
20518 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
20519
20520         * gdk/gdkrgb.c: If possible, create only a single shm segment and
20521         use multiple parts of it instead of creating a bunch of separate
20522         segments, since the maximum number of segments per system is not
20523         large. (This might be worth backporting to GTK+-1.2.x if we make a
20524         new release )
20525
20526         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
20527         structure in preparation for per-colormap GdkRGB.
20528
20529         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
20530         to False when we get EINVAL from shmget so that the caller of
20531         gdk_image_new can retry with a smaller segment size.
20532
20533 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
20534
20535         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
20536
20537 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
20538
20539         * configure.in: make the current version number 1.3.1 (binary age 0,
20540         interface age 0).
20541         
20542         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
20543         gtkcompat.h is all we want.
20544
20545         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
20546         GLib primitive types. fixed g_type_register_fundamental() argument
20547         ordering.
20548
20549         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
20550         compiles.
20551
20552         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
20553         object code cleanup, comment trigraph fixes, etc...
20554
20555 2000-06-23  Havoc Pennington  <hp@redhat.com>
20556
20557         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
20558         instead of making up a bogus name for first_para_mark
20559
20560         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
20561         0 as a context ID
20562
20563 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
20564
20565         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
20566
20567 2000-06-21  Havoc Pennington  <hp@pobox.com>
20568
20569         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
20570         we didn't check window->bg_pixmap != GDK_NO_BG.
20571
20572         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
20573         gdk-pixbuf
20574
20575 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
20576
20577         * docs/faq/gtk-faq.sgm: Move file to here.
20578           TODO: Update Makfile.am 
20579
20580 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
20581
20582         * docs/gtk-faq.sgm: Add Section 2
20583
20584 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
20585
20586         * docs/gtk-faq.sgm: New file. Start of DocBook
20587           version of the FAQ.
20588
20589 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
20590
20591         * configure.in (GDK_PIXBUF_MAJOR): Define version
20592         numbers for GDK_PIXBUF_*, as they get substituted
20593         into a header file. Need to consider versioning
20594         for gdk-pixbuf more carefully later.
20595
20596 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
20597
20598         Work with srcdir != builddir.   
20599         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
20600         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
20601         * demos/testpixbuf.c: Likewise.
20602         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
20603         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
20604         <gdk/x11/gdkx.h>.
20605         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
20606         "gdk-pixbuf.h".
20607         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
20608
20609 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
20610
20611         * TODO.xml: Change 1.4 version numbers to 2.0.
20612
20613 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
20614
20615         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
20616         fixups to GTK+ standard.
20617
20618 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
20619
20620         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
20621         gdk-pixbuf.
20622
20623         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
20624         fixups for GObject.
20625
20626         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
20627         gdk-pixbuf with GDK dependencies moved into GDK.
20628         
20629         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
20630         move gdk-pixbuf-loader here until GObject has signals.
20631
20632         * demos/: New directory of demos. Move demos from
20633         gdk-pixbuf here.
20634
20635         * demos/pixbuf-init.c: Small bit of code to check for
20636         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
20637         set GDK_PIXBUF_MODULEDIR appropriately.
20638
20639         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
20640         define which no longer makes sense.
20641
20642 2000-06-21  Havoc Pennington  <hp@redhat.com>
20643
20644         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
20645         gtk_get_default_language
20646
20647         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
20648         new function to get the default language
20649
20650         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
20651         s/gtk_text_view_style_values/gtk_text_style_values/
20652
20653         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
20654         Add a "language" field to tags.
20655
20656         (gtk_text_tag_set_arg): Fix bug in setting
20657         "bg_full_height_set" tag.
20658
20659 2000-06-21  Havoc Pennington  <hp@redhat.com>
20660
20661         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
20662         in the interfaces
20663
20664         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
20665         stuff instead when possible.
20666
20667         * gtk/gtktexttypes.h: Delete some unused constants
20668
20669         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
20670         testtextbuffer.c: use glib instead of custom unicode routines
20671
20672 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
20673
20674         * docs/es/: Removed mistakenly added generated sgml
20675
20676         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
20677         Remove outdated info files.
20678
20679         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
20680         Moved tutorial files into subdir
20681
20682         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
20683         subdir.
20684
20685         * docs/man/gtk_button.pod: Remove. (contents will be
20686         integrated into gtk-reference button page.)
20687
20688         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
20689         docs/faq/Makefile.am: Adjust for new organization
20690
20691 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
20692
20693         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
20694         not $(MKINSTALLDIRS)
20695
20696 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
20697
20698         * gtk/testgtk.c (create_text): Finish the job Elliot started
20699         of removing font setting test for text widget. (Since text widget
20700         and GdkFont are not deprecated, and cause portability problems.)
20701
20702 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
20703
20704         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
20705         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
20706         Remove use of libunicode in favor of new GLib functions.
20707
20708         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
20709         nano-x, framebuffer. The X11 include is just a hack until we get
20710         the necessary functions in gdkcolor.h, so there is no reason to
20711         add other includes of platforms.
20712
20713         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
20714         window bigger than the screen change.
20715
20716         * gtk/testgtk.c: Revert some random changes from Elliot
20717         that had no particular point and were causing testgtkrc
20718         not to function correctly.
20719         
20720         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
20721         because GdkSegment and GdkRegionBox have the same fields,
20722         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
20723         results in clearer code.
20724
20725         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
20726         gdk_input_translate_coordinates): Fix missed GdkObjectification
20727
20728 2000-06-18  Elliot Lee  <sopwith@redhat.com>
20729
20730         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
20731         * gtk/gtk{plug,socket}.h: Missed commits from previous.
20732
20733 2000-06-20  Havoc Pennington  <hp@redhat.com>
20734
20735         * modules/linux-fb/Makefile.am: Make this compile
20736         without framebuffer enabled
20737
20738         * gdk/linux-fb/Makefile.am: Add conditional to not build
20739         framebuffer unless specified in configure
20740
20741         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
20742         the size of the target instead of source if -1 was passed for
20743         width/height
20744
20745         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
20746         width/height confusion.
20747
20748 2000-06-19  Havoc Pennington  <hp@redhat.com>
20749
20750         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
20751         GDK_DRAWABLE_XID. In the future, we probably want to make it
20752         faster with G_DISABLE_CHECKS turned on.
20753
20754 2000-06-14  Havoc Pennington  <hp@redhat.com>
20755
20756         * gdk/Makefile.am: add gdkpixmap.c
20757
20758         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
20759         s/gdk_image_init/_gdk_windowing_image_init
20760
20761         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
20762         ref/unref
20763
20764         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
20765
20766         * gdk/gdkcompat.h: remove GdkWindowType compat, since
20767         GdkWindowType is now non-deprecated; 
20768         change gdk_window_get_type() compat to be
20769         gdk_window_get_window_type().
20770
20771         * gdk/gdkdnd.h: make GdkDragContext a GObject.
20772
20773         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
20774         virtual GObject. Make all functions call into the vtable.
20775         Move gdk_image_put() guts in here. Remove GdkDrawableType
20776         and gdk_drawable_get_type(), these are now GdkWindow-specific.
20777         draw_image, get_depth, get_size, set_colormap, get_colormap,
20778         get_visual added to the vtable.
20779         
20780         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
20781         GObject. Virtualize everything. 
20782         (gdk_gc_new_with_values): remove check for destroyed window,
20783         because now GdkWindow::create_gc will check this.
20784         (gdk_gc_set_values): New function to set GC values, this 
20785         was already implemented but wasn't in the header
20786
20787         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
20788
20789         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
20790         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
20791         remove _gdk_window_class; add _gdk_window_impl_get_type() and
20792         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
20793         _gdk_windowing_window_init, rename gdk_image_init to
20794         _gdk_windowing_image_init.
20795         
20796         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
20797         (gdk_draw_layout): Remove check for destroyed window, 
20798         because all the drawable methods already check it.
20799         
20800         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
20801         Add gdkpixmap.c which contains implementation of GdkDrawable
20802         virtual table (by chaining to a platform-specific implementation
20803         object).
20804         
20805         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
20806         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
20807         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
20808         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
20809         GdkColormapPrivate. 
20810
20811         * gdk/gdktypes.h: #include <glib-object.h>
20812
20813         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
20814         Move most functionality to platform-specific implementation
20815         object. GdkWindow itself now handles the backing store, then
20816         chains to the platform-specific implementation.
20817         (gdk_window_get_window_type): return GdkWindowType of the window.
20818         (gdk_window_peek_children): New routine, returns the children of 
20819         a GdkWindow
20820         (gdk_window_get_children): Was in X11-specific code and did 
20821         XQueryTree. Changed to simply return a copy of window->children; 
20822         so it can go in cross-platform code.
20823         
20824         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
20825
20826         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
20827         GdkColormap; just changed to use the new private data instead
20828         of casting to GdkColormapPrivate.
20829
20830         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
20831         gdk_cursor_new().
20832
20833         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
20834         (private data member in the GObject). 
20835         (xdnd_manager_source_filter): Function had broken 
20836         error handling, fix it (use gdk_error_trap_push).
20837
20838         * gdk/x11/gdkdrawable-x11.c: This file now implements
20839         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
20840         base class is purely for the convenience of the X port,
20841         and not part of the interface to cross-platform GDK.
20842
20843         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
20844         
20845         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
20846         specific to X, and returned by the create_gc virtual method
20847         of GdkDrawableImplX11. 
20848         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
20849         rather than gchar, this was also changed in the GdkGC vtable.
20850         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
20851         mask is 0, return immediately, instead of checking every flag.
20852         This is faster, and keeps us from segfaulting if values is NULL
20853         and the mask contains some nonzero flags.
20854
20855         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
20856         GdkWindow.
20857
20858         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
20859         GdkWindowPrivate is gone.
20860
20861         * gdk/x11/gdkim-x11.c: rename things that got renamed.
20862
20863         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
20864         remove the image_put stuff that got transferred to GdkDrawable.
20865         
20866         * gdk/x11/gdkinput.c: renamings
20867
20868         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
20869
20870         * gdk/x11/gdkpixmap-x11.c: GObject conversion
20871
20872         * gdk/x11/gdkprivate-x11.h: indentation fixes
20873
20874         * gdk/x11/gdkproperty-x11.c: renamings
20875
20876         * gdk/x11/gdkselection-x11.c: renamings
20877
20878         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
20879         implements the platform-specific "impl" object.
20880         Moved gdk_window_get_children to gdk/gdkwindow.c
20881
20882         * gdk/x11/gdkx.h: Remove all the private structs and private datas
20883         that no longer exist. Add declaration of GdkGCX11 object here.
20884         Fix all the macros to still work. 
20885
20886         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
20887         GdkDragContext from the boxed types since they are now GObjects.
20888
20889         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
20890         moved xthickness/ythickness into the instance. GtkStyleClass
20891         functions are now in the standard vtable for GtkStyle, so you have
20892         to create a GObject subclass to write a theme engine.
20893         (gtk_style_copy): fixed a leaked PangoFontDescription
20894         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
20895         can be the standard GObject function.
20896         
20897         * Throughout GTK:
20898         s/style->klass->[xy]thickness/style->[xy]thickness
20899         s/pango_layout_unref/g_object_unref/
20900
20901         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
20902         
20903         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
20904         accessing GDK internals.
20905
20906         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
20907         accessing GDK internals.
20908
20909 2000-06-18  Elliot Lee  <sopwith@redhat.com>
20910
20911         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
20912
20913         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
20914         problem by calculating event position relative to the trough
20915         rather than the slider.
20916         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
20917
20918         * gdk/gdkgc.h: Add GDK_NOR.
20919
20920         * configure.in, Makefile.am: Add modules top level dir
20921         * configure.in: Only use pangox library if building x11 target.
20922         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
20923
20924 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
20925
20926         * gtk/gtkcolorsel.c: Change private class member to be named
20927         private_data throughout the file.
20928
20929         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
20930         private_data to avoid clashing with keyword.
20931
20932 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
20933
20934         * gdk/gdkdnd.h: Add comment to remove warning.
20935
20936 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
20937
20938         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
20939         Byelorussian language; changed the Makefile and file names 
20940         to reflect that.
20941
20942 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
20943
20944         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
20945         rather than gdk_window_hide; this makes things work
20946         correctly if the window is programmatically hidden while
20947         iconified.
20948
20949 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
20950
20951         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
20952         cut and paste typo where wrong pixmap was being
20953         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
20954
20955 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
20956
20957         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
20958         Add helper function to compute format / bytes 
20959         relationship. Use in a couple places to fix up
20960         errors which assume 8 * format.
20961
20962         * gtk/gtkselection.c (gtk_selection_request): Use 32
20963         rather than 8 * sizeof (GdkAtom), to work correctly
20964         on Alpha.
20965
20966 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
20967
20968         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
20969         libgtk.la
20970         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
20971         versions
20972
20973         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
20974         checking macros return NULL since the function has a return value.
20975
20976 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
20977
20978         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
20979         GTK+ from building at all.
20980
20981         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
20982
20983 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
20984
20985         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
20986         gtk/Makefile.am: make it possible to configure gtk for different
20987         targets on the same platform. The library name is now 
20988         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
20989         flag. Only the x11 target compiles right now.
20990         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
20991         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
20992         * gdk/nanox/gdk*generic*: delete generic region code.
20993         * gdk/linux-fb/gdk*generic*: delete generic region code.
20994         * README.nanox: update information.
20995         
20996 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
20997
20998         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
20999         prepend not append. (Pointed out by Brett Hall.)
21000
21001 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
21002
21003         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
21004
21005 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
21006
21007         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
21008         need this later, and this makes sure that the atexit for
21009         glib gets called after that for GDK, so atexits are
21010         properly ordered for object leak checking.
21011
21012         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
21013
21014         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
21015         pango_x_shutdown_display()
21016
21017         * gtk/simple.c (main): Close window on destroy.
21018
21019 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
21020
21021         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
21022         to treat initial creation different from setting with 
21023         regards to the graphics-exposures parameter, so add a parameter
21024         indicating whether this is initial or not.
21025
21026 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
21027
21028         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
21029         to sort of work by adding an extra return_exposes arg
21030         to gdk_event_translate() - it might be better to simply
21031         deprecate the function altogether and force people to rewrite
21032         without it. gdk_window_scroll() handles most of it, and where
21033         gdk_window_scroll() doesn't work, simply redrawing more does.
21034
21035         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
21036         assertion.
21037
21038         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
21039
21040         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
21041         bunch of pretty much useless /* Print debugging info */ comments 
21042         which had drifted away from the code they were commenting.
21043
21044 2000-06-02  Havoc Pennington  <hp@pobox.com>
21045
21046         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
21047         is in working order.
21048         
21049         * gtk/testtext.c: Change to reflect anonymous mark API
21050
21051         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
21052
21053         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
21054         field, which was unused.
21055
21056         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
21057         saves some typing.
21058
21059         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
21060
21061         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
21062         flag on the insertion point and selection bound
21063
21064         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
21065         make mark-manipulation functions take a GtkTextMark* instead of a
21066         mark name.
21067         
21068         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
21069         GtkTextMarkBody; will be used to detect attempts to delete
21070         the permanent marks (insert and selection bound)
21071
21072         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
21073
21074 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
21075
21076         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
21077         flag to on.
21078
21079         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
21080         Honor DOUBLE_BUFFRED_FLAG
21081
21082         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
21083         function to set the DOUBLE_BUFFERED flag.
21084
21085         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
21086         or not exposes done on the widget should be double-buffered.
21087
21088         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
21089         to be what would be expected. (Fixes problem with a
21090         g_return_if_fail() validating a TextDirection enumeration)
21091
21092 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
21093
21094         * gtk/gtkwidget.c: Remove all references to 
21095         offscreen flag which was no longer used.
21096
21097         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
21098
21099         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
21100         for non-null label_widget->parent.
21101
21102         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
21103         which no longer was used.
21104
21105         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
21106
21107         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
21108         for null arguments.
21109
21110         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
21111         check for destroyed windows.
21112
21113 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
21114
21115         * gtk/gtkimmulticontext.c: Add a finalize method and unref
21116         the slave context there.
21117
21118         * gtk/gtkinvisible.[ch]: Make reference counting behavior
21119         identical to GtkWindow.
21120
21121 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
21122
21123         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
21124         pangox to here, so we can write them independent of rendering
21125         system, using GDK primitives.
21126
21127         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
21128         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
21129         since we have a rendering-system independent implementation in
21130         terms of draw_glyphs().
21131         
21132         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
21133         function to render a single line.
21134
21135         * gdk/x11/gdkpango.c: Move the guts of this file mostly
21136         into ../gdkpango.c, which simplifies things, since we
21137         don't have to deal with raw X gc's.
21138
21139 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
21140
21141         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
21142         get the logical attributes for a given GtkTextLine.
21143
21144 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
21145
21146         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
21147         g_locale_get_codeset() to g_get_codeset() change.
21148
21149 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
21150
21151         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
21152         descriptions.
21153
21154         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
21155         the entry.
21156
21157         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
21158         redoing (vastly simplifying) for Pango. Still needs quite
21159         a bit of work. (Size selection is currently poor. List of 
21160         predefined sizes is not a good idea, since all of these
21161         sizes won't necessarily be distinct.)
21162
21163 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
21164
21165         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
21166         CODESET results for LANG=C.
21167
21168 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
21169
21170         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
21171         which takes a stringized pango font description;
21172         ignore the older 'font' and 'fontset' declarations.
21173
21174         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
21175         field with a GdkFont derived via gdk_font_from_description(),
21176         for compatibility. (Should we just remove it entirely?
21177         Probably too much compatibility breakage, but people
21178         should be migrating to the new Pango stuff as quickly
21179         as possible.)
21180
21181 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
21182
21183         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
21184
21185 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
21186
21187         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
21188         redoing; there are some bugs in size allocation right
21189         now, the semi-existant distinction between header / day
21190         fonts was removed, but, with Pango, could actually
21191         be made functional in a nice way.
21192         
21193         * gtk/testcalender: Move calender from examples into this
21194         directory as a test program. (We really need to restrcture
21195         testgtk into a whole directory full of tests for every
21196         widget or functionality group, separated into multiple .c
21197         files.)
21198
21199 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
21200
21201         * gtk/testgtk.c (file_exists): Fix stupid typo that
21202         was keeping RC file from being loaded.
21203
21204         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
21205         RC file font code.
21206
21207 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
21208
21209         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
21210         Add function to load a GdkFont from a PangoFontDescription.
21211
21212 2000-05-29  Tor Lillqvist  <tml@iki.fi>
21213
21214         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
21215         variable should be of type GdkEventPrivate.
21216
21217 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
21218
21219         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
21220         to have any widget for the label, use a GtkLabel widget
21221         to display the text. (Based partially on a patch from
21222         Anders Carlson.)
21223
21224         (Quite a bit of code reorganization - strip 90% of the
21225         guts out of gtkaspectframe and add a single virtual
21226         func to GtkFrameClass - compute_child_allocation.)
21227
21228 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
21229
21230         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
21231         (Removed clist->row_center_offset field because caching
21232         it wasn't saving time or code, added private function
21233         _gtk_clist_create_cell_layout()).
21234
21235 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
21236
21237         * gtk/gtkaccellabel.c: Pangoized.
21238
21239         * gtk/[hv]ruler.c: Pangoized
21240
21241 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
21242
21243         * gtk/gtkfilesel.c (gtk_file_selection_init):
21244         Use gtk_clist_set_column_auto_resize() to remove need
21245         need for manual column width computations.
21246
21247 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
21248
21249         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
21250         ensuring Pango correctness, and considerably simplifying the
21251         code.
21252         
21253         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
21254
21255         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
21256         getting of numbers of lines.
21257
21258         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
21259         to the actual requested width of the lable, not to the wrap
21260         width we set.
21261
21262         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
21263
21264         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
21265           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
21266
21267         * gtk/gtktextview.c: Fix structure inheritance.
21268
21269         * gtk/gtkprogressbar.c: Pangoize.
21270
21271 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
21272
21273         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
21274         in a function.
21275
21276         * gtk/gtktextlayout.c (find_display_line_above): Fixed
21277         bug with computing line tops.
21278
21279         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
21280
21281 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
21282
21283         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
21284         and y_offset coordinates to do what we need now. (The offset between
21285         buffer and layout coordinates has been reintroduced, but is a 
21286         bit different than before.)
21287
21288         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
21289         handle the adjustments ourselves, and scroll as necessary using
21290         the new gdk_window_scroll().
21291         
21292         The advantage of this is that when we are incrementally revalidating,
21293         we are essentially rearranging things around the visible portion
21294         of the screen. With the old setup, the visible portion of the
21295         screen was moved around in the layout, so scrolling and redrawing
21296         to track that caused jumping of the display. Since we now
21297         control the scrolling ourselves, we can suppress this and
21298         only redraw when things actually change.
21299
21300 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
21301
21302         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
21303         the region not just redisplay it after-all, since we store the
21304         cursors in the LineDisplay. (Ugly interactions here between
21305         GtkLayout and GtkTextBTree here.)
21306         
21307         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
21308
21309 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
21310
21311         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
21312         Added function to scroll contents of a window while keeping the
21313         window constant. Works by XCopyArea or guffaw-scrolling depending
21314         on the details of how the window is set up. (guffaw-scrolling
21315         still needs to be filled in.)
21316
21317 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
21318
21319         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
21320         move the debugging that was tied to a global variable
21321         to that.
21322
21323         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
21324
21325         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
21326         validated flag, in line data instead of setting height/width to
21327         -1. This allows us to perform operations with partially invalid
21328         buffer (using the old size for invalid lines) and thus to do
21329         incremental vaidation. Keep height/width aggregates up to date
21330         when deleting text and rebalancing the tree.
21331
21332         * gtk/gtktextbtree.[ch]: Add functions validate a line
21333         (gtk_text_btree_validate_line), and to validate up
21334         to a number of pixels (gtk_text_btree_validate).
21335
21336         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
21337         that indicates that something is changed and a revalidation
21338         pass is needed. Change ::need_repaint to ::changed, and
21339         make it take old and new yranges instead of a rectangle.
21340
21341         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
21342         the line_data_destroy() function from 
21343         gtk_text_btree_add_view() to a virtual function in 
21344         GtkTextLayout
21345
21346         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
21347         since we are handling partial repaints in a different fashion
21348         now.
21349
21350         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
21351         of the selection instead of queueing a repaint on the
21352         entire widget.
21353
21354         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
21355         get_selection_bounds() down to btree, make the function
21356         in buffer a wrapper around the btree function.
21357
21358         * gtk/gtktextlayout.[ch]: Add functions to check if the
21359         layout is valid and to recompute either a range of pixels
21360         aroudn a line or a certain total number of pixels.
21361
21362         * gtk/gtktextlayout.[ch]: Cache a single line display;
21363         now that we only redraw the needed portions, the hit rate
21364         for this cache is quite high.
21365         
21366         * gtk/gtktextview.[ch]: Keep track of the first paragraph
21367         on the screen so that when re-laying-out the buffer, we can
21368         keep the same place. This requires connecting to ::value_changed
21369         on the adjustments
21370
21371         * gtk/gtktextview.[ch]: Add idle functions to revalidate
21372         the buffer after we receive an ::invalidated signal.
21373         
21374 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
21375
21376         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
21377         to max of allocation and layout size, not just to the
21378         layout size.
21379
21380         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
21381         Invalidate window so it gets redrawn properly.
21382
21383         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
21384         to mean the entire window.
21385
21386         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
21387         into public header.
21388
21389 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
21390
21391         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
21392         to get the name of a mark.
21393
21394         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
21395         to find the paragraph from a y position.
21396
21397 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
21398
21399         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
21400         nodes have width/height >= 0, not > 0.
21401
21402 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
21403
21404         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
21405         Add a size_only flag, so when we only need the size, we don't create
21406         useless appearance attributes.
21407
21408         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
21409         duplicate setting of font description.
21410
21411         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
21412
21413 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
21414
21415         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
21416         EXTRA_DIST. It does not work well when the file that
21417         everything depends on is not in the tarball.
21418
21419 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
21420
21421         * gtk/testgtk.c: Some hacks and fixes so that it basically
21422         works when not sitting in the GTK+ build tree.
21423
21424 2000-05-03  Havoc Pennington  <hp@redhat.com>
21425
21426         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
21427         Properly determine the ordering of the tag root and the current
21428         line within the tree. Previous algorithm only worked if the tag
21429         root's immediate parent was the common root of both the current
21430         line and the tag root.
21431
21432 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
21433
21434         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
21435         alignment.
21436
21437         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
21438         the widget text directional dynamically.
21439
21440         * gtk/gtktextview.[ch]: Added functions to get and set default
21441         wrap mode.
21442
21443 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
21444
21445         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
21446         in cursor location computation.
21447
21448 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
21449
21450         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
21451         vadjusment values properly when layout gets smaller.
21452
21453         * gtk/gtktextview.c (need_repaint_handler): Areas being
21454         passed in are far completely inaccurate, and sometimes
21455         too small, so, for now, just queue a redraw on the
21456         whole visible region.
21457
21458 2000-04-25  Havoc Pennington  <hp@redhat.com>
21459
21460         * gtk/gtktextbtree.c (summary_destroy): new function to 
21461         destroy tag summary nodes
21462         (gtk_text_line_next_could_contain_tag): this function was 
21463         totally broken if the line passed in wasn't below the tag
21464         root. Fix it.
21465         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
21466         "wildcard" case, we have to do a linear scan. Blah.
21467         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
21468         we have to do the linear scan
21469         (tag_removed_cb): When a tag is removed from the tag table, 
21470         remove the GtkTextTagInfo node from the btree.
21471         (gtk_text_btree_spew): Implement the spew function, for 
21472         our debugging pleasure.
21473
21474 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
21475
21476         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
21477         a problem with referring to the wrong buffer.
21478
21479         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
21480
21481         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
21482         font description to gtk_style_new() - otherwise things
21483         don't work without a .gtkrc file.
21484
21485         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
21486         tags table if we create it ourself, too.
21487
21488         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
21489         it was conflicting with XKB modifiers.
21490
21491         * gtk/gtktextview.[ch]: Add simple support for 
21492         GtkIMContext.
21493
21494 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
21495
21496         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
21497         with deletion from last commit.
21498
21499 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
21500
21501         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
21502         in the context from the current locale.
21503         
21504         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
21505         context, not hardcoded value.
21506
21507         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
21508         not logical.
21509
21510 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
21511
21512         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
21513         attributes - that doesn't handle partial-glyph selection
21514         properly. Instead use new pango_layout_line_get_x_ranges()
21515         functionality to draw the selection.
21516
21517         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
21518         now properly handles out-of-range coordinates.
21519
21520         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
21521
21522         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
21523         public.
21524
21525         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
21526         for paragraphs opposite to the base direction of the widget.
21527
21528         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
21529
21530         * gtk/gtktextlayout.c: Don't split segments on marks, since that
21531         causes Arabic words to reshape as you cursor through.
21532
21533         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
21534         cursor position when moving vertically with the arrow keys and
21535         scrolling with page-up/page-down. (Arrow keys save only the X,
21536         scrolling saves both X and Y.)
21537
21538         This means you can line-up / line-down or page-up / page-down
21539         without losing your place, and also that moving vertically
21540         with the cursor keys keeps the same X position, not the same
21541         character count:
21542
21543         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
21544         arrow keys move by display lines, not paragraphs.
21545
21546 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
21547
21548         * gtk/gtklayout.c: Make sure that the bin window is at least
21549         as big as the allocation. (Should we also make sure that the
21550         bin window is big enough to completely cover widget->window?)
21551
21552         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
21553         function to get the onscreen rectangle.
21554
21555         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
21556         for offsets in window coordinates.
21557
21558 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
21559
21560         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
21561         confusion.
21562
21563         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
21564         from the widget direction.
21565
21566         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
21567         Add a "direction" attribute.
21568
21569         * gtk/gtktextview.c: global s/tkxt/text_view/.
21570
21571         * gtk/testtext.c: Added long block of text in Arabic, to test out
21572         the direction attributes. (Some problems with the shaping system
21573         for arabic become obvious - like the fact the cursor splits words
21574         into unjoined pieces.)
21575
21576 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
21577
21578         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
21579
21580         * gtk/gtktextlayout.c: Fix up alignment.
21581
21582         * gtk/testtext.c: Add some tests for centering, wrapping.
21583
21584 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
21585
21586         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
21587         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
21588         If we wrote GTK+-specific layout-render function this could just replace
21589         the draw_layout() operation in the vtable.
21590
21591         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
21592         pango_layout_get_cursor_pos() and use that function.
21593
21594         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
21595         is a non-static symbol.
21596
21597         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
21598         with gtk_text_btree_find_line_by_y()
21599
21600         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
21601         renderer that handles GtkTextAppearance attributes.
21602
21603         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
21604
21605           - Move the values in the style that don't affect geometry into a
21606             GtkTextAppearance structure.
21607           - Change underline to take a PangoUnderline and "font" a string
21608             representation of a font description
21609           - Add a "font_desc" attribute which takes a FontDescription structure.
21610
21611         * gtk/gtktextlayout.[ch]:
21612
21613           - Get rid of the display-line list per each line. Instead, we
21614             generate, on demand, a GtkTextLineDisplay structure which]
21615             contains a PangoLayout * and other necesary information
21616             (offsets, cursor locations) for displaying a paragraph.
21617           - Get rid of the code to wrap lines, create display chunks,
21618             etc. Instead, we just go through a paragraph and convert
21619             it into the necessary inputs to a PangoLayout.
21620           - Implement a new attribute type, GtkTextAttrAppearance. This
21621             holds a GtkTextAppearance, and is used to pass colors, 
21622             stipple, etc, through from the layout to the display without
21623             having to use lots and lots of individual attributes.
21624           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
21625             in terms of PangoLayout functions.
21626         
21627         * gtk/gtktextview.c: 
21628          
21629           - Handle passing the necessary PangoContext to the layout
21630           - Some fixups in painting to deal with the automatic backing store
21631             and offsetting of GTK+-1.4
21632           - Add a style_set handler so that the default style reacts
21633             properly to theme changes.
21634         
21635         * gtk/gtktext?*.[ch]: Random code-style fixes.
21636
21637         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
21638
21639 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
21640
21641         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
21642         in original form preparatory to Pango-ization and gdkimcontext-ization.
21643
21644 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
21645
21646         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
21647         so that we can derive from gtkimcontext in language bindings properly.
21648
21649 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
21650
21651         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
21652         Add a compose table including (almost) all the compose combinations
21653         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
21654         data in the XIM implementation.
21655
21656         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
21657         Moved functions to convert keyvalues from and to unicode here from
21658         the win32 port and made them public.
21659
21660 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
21661
21662         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
21663
21664 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
21665
21666         * gtk/gtkimcontext.[ch]: Base class for new input context system
21667
21668         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
21669         the real input context implementation to be loaded from modules
21670         and switched on the fly.
21671
21672         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
21673         context that just does direct keysymbol => unicode translation.
21674
21675         * gtk/gtkentry.[ch]: Start switching editing over to using
21676         GtkInputContext. (No handling of preedit yet.)
21677
21678 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
21679
21680         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
21681         many substitutions. (klass should not be subsituted.)
21682
21683 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
21684
21685         * configure.in: Add checks for Pango
21686
21687         * configure.in docs/Makefile.am: Add test for sgml2html
21688         and allow 'make dist' without building html, but print out
21689         warnings in that case. (For making snapshots)
21690
21691         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
21692         Add Pango libraries and C flags
21693
21694         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
21695         Add function (gdk_draw_layout) to draw a pango layout.
21696
21697         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
21698         for getting Pango contexts for GDK.
21699
21700         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
21701
21702         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
21703         editing.
21704
21705         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
21706         keysym => unicode translations. More languages can be added
21707         here, but real input-method support is needed.
21708
21709         * docs/Changes-1.4.txt: Added note about entry behavior.
21710         
21711         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
21712         to set the reading direction for a widget and the global direction.
21713         Add test which allows toggling the global direction. Two private
21714         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
21715
21716         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
21717           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
21718
21719         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
21720
21721         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
21722         underlining now handled by Pango.
21723
21724         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
21725         to RCStyle and Style. (Having both this and the old font name and GdkFont 
21726         is temporary.)
21727
21728         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
21729         convenience functions for creating contexts and layouts for widgets.
21730
21731         * gtk/testgtk.c: Enhance label tests with multilingual labels.
21732
21733 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
21734
21735         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
21736         titles to be active, even if they aren't visible.
21737         (gtk_clist_column_titles_passive):  Ditto.
21738
21739 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
21740
21741         * gtkmenu.c:
21742         * gtkmenu.h:
21743         * gtktypeutils.h: Spelling/grammar fixes in comments.
21744
21745 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
21746
21747         * gdk/nanox/*.h: add missing header files.
21748
21749 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
21750
21751         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
21752         send_event to TRUE.
21753         (gtk_drawing_area_size): queue a resize.
21754
21755 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
21756
21757         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
21758         the handlers, also invalidate them. bug nailed down by Karl Nelson
21759         <kenelson@ece.ucdavis.edu>.
21760
21761 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
21762
21763         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
21764         "(nil)" foundries, patch from Grigorios Magklis.
21765
21766         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
21767         on non-available fonts, based on a patch by Grigorios Magklis
21768         <maglis@cs.rochester.edu>.
21769
21770 2000-05-18  Elliot Lee  <sopwith@redhat.com>
21771
21772         * gdk/x11/gdkregion-generic.c: If a region does not have any
21773         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
21774         instead of GDK_OVERLAP_RECTANGLE_IN.
21775
21776 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
21777
21778         * gtk/gtklayout.c (gtk_layout_map): Remove references to
21779         OFFSCREEN, as it is no longer necessary.
21780
21781 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
21782
21783         * gtk/gtkcolorsel.c: Patch from David Santiago
21784         <mrcooger@cyberverse.com> to change things so that the 
21785         indicator of the active palette entry is done independently,
21786         not via the focus, since it should always be visible.
21787
21788 2000-05-17  Tor Lillqvist  <tml@iki.fi>
21789
21790         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
21791         refcount leaks as in the X11 backend.
21792
21793         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
21794         cosmetics.
21795
21796         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
21797         backend. Add _gdk_windowing_window_destroy().
21798
21799         * gtk/gtkcolorsel.c: Include correct backend-specific header.
21800         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
21801         either, but these probably do exist on nanox?)
21802         
21803         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
21804         which isn't necessarily defined by <math.h>.
21805
21806         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
21807         ancestry past GtkObject.
21808
21809         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
21810         from DLL on Win32.
21811
21812         * gtk/gtk.def: Update corresponding to recent changes.
21813
21814         * gtk/makefile.{cygwin,msc}: Updates.
21815
21816 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
21817
21818         * docs/Changes-1.4.txt: A bit of editing.
21819
21820         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
21821         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
21822         to clear the update area for the window, and clear it
21823         when hiding a window.
21824
21825         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
21826         if window destroyed.
21827
21828         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
21829
21830         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
21831         gdk_window_destroy() to the generic code, since there was a lot of 
21832         window-system-independent logic it in. Add a function:
21833         
21834          _gdk_window_destroy() 
21835
21836         to the internal API to destroy a window without unreferencing it.
21837         Add a function:
21838
21839          _gdk_windowing_window_destroy()
21840
21841         That does the windowing-system-dependent part of destroying 
21842         the window.
21843
21844 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
21845
21846         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
21847
21848 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
21849
21850         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
21851         Make gtk_widget_shape_combine_mask() keep a reference count on
21852         the pixmap since it keeps it around.
21853
21854 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
21855
21856         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
21857         leak.
21858
21859         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
21860         leak with event filters.
21861
21862 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
21863
21864         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
21865         signal handlers with the right data arguments. (Fixes
21866         some warnings when a widget was repeatedly set as a drag
21867         destination.)
21868
21869         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
21870         window so we can avoid avoid setting the DND properties on the
21871         toplevel window repeatedly.
21872
21873 2000-05-13  Tor Lillqvist  <tml@iki.fi>
21874
21875         * gdk/win32/gdkwin32.h: Define more message types missing from
21876         mingw headers.
21877
21878         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
21879         call gdk_window_destroy_notify(). It was never called. This
21880         probably meant that the GdkWindow was never freed. Thanks Owen for
21881         noticing (!).
21882
21883         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
21884         window as destroyed before calling DestroyWindow(). DestroyWindow()
21885         causes a call to the window procedure (gdk_WindowProc), which
21886         calls gdk_event_translate(), which calls
21887         gdk_window_destroy_notify(), which gets confused unless the window
21888         is set as destroyed.
21889
21890         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
21891         this function to indicate it's win32 only. Put inside #ifdef
21892         G_ENABLE_DEBUG.
21893
21894         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
21895         debugging function. (gdk_event_translate:) Add a default branch
21896         that uses the above function to print debug messages with all
21897         Windows messages symbolically.
21898
21899         * gdk/win32/gdkprivate-win32.h: Declare it, and
21900         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
21901
21902 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
21903
21904         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
21905         public header file.
21906
21907 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
21908
21909         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
21910
21911         * gtk/gtktext.c: made the adjustments no-construct args, simply
21912         provide default adjustments.
21913         (gtk_text_destroy): release adjustments.
21914
21915         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
21916         adjustment argument non-construct.
21917
21918         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
21919         instead of in finalize.
21920         (gtk_progress_get_text_from_value): 
21921         (gtk_progress_get_current_text): 
21922         (gtk_progress_set_value): 
21923         (gtk_progress_get_percentage_from_value): 
21924         (gtk_progress_get_current_percentage): 
21925         (gtk_progress_set_percentage): 
21926         (gtk_progress_configure): ensure an adjustment is present.
21927
21928 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
21929
21930         * gtk/gtkcolorsel.[hc]:
21931         * gtk/gtkcolorseldialog.[hc]:
21932         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
21933         their parent implementation, use bit fields for boolean values, don't
21934         create unused widgets, usage of glib types, braces go on their own
21935         lines, function argument alignment, #include directives etc. etc. etc..
21936
21937         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
21938
21939 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
21940
21941         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
21942
21943         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
21944         of NULL.
21945
21946         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
21947         to freed data.
21948         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
21949
21950         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
21951         to NULL when the toplevel is getting destroyed.
21952         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
21953         (gtk_menu_destroy): 
21954         (gtk_menu_init): store the information of whether we have to
21955         readd the initial child ref_count during destruction in a new
21956         GtkMenu field needs_destruction_ref_count.
21957
21958         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
21959         here, those reading: learn from my mistake! ;)
21960         in order for set_?adjustment to support a default adjustemnt if
21961         invoked with an adjustment pointer of NULL, the code read (pseudo):
21962         if (v->adjustment) unref (v->adjustment);
21963         if (!adjustment) adjustment = adjustment_new ();
21964         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
21965         now imagine the first unref to actually free the old adjustment and
21966         adjustment_new() creating a new adjustment from the very same memory
21967         portion. here, the latter comparision will unintendedly fail, and
21968         all hell breaks loose.
21969         (gtk_viewport_set_hadjustment):
21970         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
21971         after unreferencing it.
21972
21973         * gtk/gtkcontainer.[hc]: removed toplevel registration
21974         functions: gtk_container_register_toplevel(),
21975         gtk_container_unregister_toplevel() and
21976         gtk_container_get_toplevels() which had wrong semantics
21977         anyways: it didn't reference and copy the list.
21978
21979         * gtk/gtkwindow.c: we take over the container toplevel registration
21980         bussiness now. windows are registered across multiple destructions,
21981         untill they are finalized. the initial implicit reference count
21982         users are holding on windows is removed with the first destruction
21983         though.
21984         (gtk_window_init): ref & sink and set has_user_ref_count, got
21985         rid of gtk_container_register_toplevel() call. add window to
21986         toplevel_list.
21987         (gtk_window_destroy): unref the window if has_user_ref_count
21988         is still set, got rid of call to
21989         gtk_container_unregister_toplevel().
21990         (gtk_window_finalize): remove window from toplevel list.
21991         (gtk_window_list_toplevels): new function to return a newly
21992         created list with referenced toplevels.
21993         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
21994
21995         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
21996         adjustment a non-construct arg.
21997         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
21998         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
21999         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
22000
22001         * gtk/gtkrange.c: added some realized checks.
22002         (gtk_range_destroy): get rid of the h/v adjustments in the
22003         destroy handler instead of finalize. remove timer.
22004         (gtk_range_get_adjustment): demand create adjustment.
22005
22006         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
22007         we simply create them on demand now and get rid of them in
22008         the destroy handler.
22009         (gtk_viewport_destroy): get rid of the h/v adjustments in the
22010         destroy handler instead of finalize.
22011         (gtk_viewport_get_hadjustment): 
22012         (gtk_viewport_get_vadjustment): 
22013         (gtk_viewport_size_allocate): demand create h/v adjustment
22014         if required.
22015
22016         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
22017         gtk_widget_real_destroy () functionality.
22018         (gtk_widget_real_destroy): reinitialize with a new style, instead
22019         of setting widget->style to NULL.
22020
22021 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
22022
22023         * gtk/gtkcalendar.c:
22024         * gtk/gtkbutton.c: ported _get_type() implementation over to
22025         GType, either to preserve memchunks allocation facilities,
22026         or because Gtk+ 1.0 GtkTypeInfo was still being used.
22027
22028         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
22029         over. prepare for ::destroy to be emitted multiple times.
22030         removed reference tracer magic. chain into GObjectClass.shutdown()
22031         to emit ::destroy signal.
22032
22033         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
22034         fundamental.
22035
22036         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
22037         cludge.
22038
22039         * gtk/gtksocket.c:
22040         * gtk/gtkplug.c:
22041         * gtk/gtklayout.c:
22042         * gtk/gtklabel.c:
22043         * gtk/gtkargcollector.c:
22044         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
22045         not being a fundamental anymore, and to work with the new
22046         type system (nuked fundamental type varargs clutter).
22047
22048         * gtk/*.c: install finalize handlers in the GObjectClass
22049         part of the class structure.
22050         changed direct GTK_OBJECT()->klass accesses to
22051         GTK_*_GET_CLASS().
22052         changed direct object_class->type accesses to GTK_CLASS_TYPE().
22053
22054         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
22055         GType. made most of the GTK_*() type macros and Gtk* typedefs
22056         simple wrappers around macros and types provided by GType.
22057         most notably, a significant portion of the old API vanished:
22058         GTK_TYPE_MAKE(),
22059         GTK_TYPE_SEQNO(),
22060         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
22061         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
22062         GTK_TYPE_ARGS,
22063         GTK_TYPE_CALLBACK,
22064         GTK_TYPE_C_CALLBACK,
22065         GTK_TYPE_FOREIGN,
22066         GtkTypeQuery,
22067         gtk_type_query(),
22068         gtk_type_set_varargs_type(),
22069         gtk_type_get_varargs_type(),
22070         gtk_type_check_object_cast(),
22071         gtk_type_check_class_cast(),
22072         gtk_type_describe_tree(),
22073         gtk_type_describe_heritage(),
22074         gtk_type_free(),
22075         gtk_type_children_types(),
22076         gtk_type_set_chunk_alloc(),
22077         gtk_type_register_enum(),
22078         gtk_type_register_flags(),
22079         gtk_type_parent_class().
22080         replacements, where available are described in ../docs/Changes-1.4.txt.
22081         implemented compatibility functions for the remaining API.
22082
22083         * configure.in: depend on glib 1.3.1, use gobject module.
22084
22085 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
22086
22087         * TODO.xml: Various updates to current status.
22088
22089 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
22090
22091         * gtk.m4: Print out version when test succeeds.
22092
22093 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
22094
22095         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
22096         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
22097         
22098         (Original triangle color selector from Simon Budig
22099         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
22100         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
22101         Santiago <mrcooger@cyberverse.com>)
22102
22103         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
22104         out into a separate widget.
22105
22106         * gtk/testgtk.c: Add some checkbuttons for toggling palette
22107         and opacity controls.
22108
22109 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
22110
22111         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
22112         snuck in prematurely.
22113
22114 2000-05-07  Tor Lillqvist  <tml@iki.fi>
22115
22116         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
22117         had deleted a ! operator by mistake, which caused
22118         GDK_SELECTION_CLEAR events never to be generated, which caused
22119         only the first copy to the clipboard from an gtkeditable to
22120         actually cause a copy to the Windows clipboard.
22121
22122 2000-05-06  Tor Lillqvist  <tml@iki.fi>
22123
22124         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
22125         compilation, too. Current mingw gcc distributions include the
22126         necessary headers. Also the necessary IIDs are now in mingw
22127         headers/libraries, and own definitions unnecessary.
22128
22129         More hacking on OLE2 DND, still doesn't work though, and thus
22130         ifdeffed out.
22131
22132         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
22133         here, too.
22134
22135 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
22136
22137         * gdk/nanox/*: nano-X port work in progress.
22138         * gdk/simple.c: simple test for Gdk.
22139         * README.nanox: notes about the port: read this first!
22140         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
22141         with nano-X.
22142
22143 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
22144
22145         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
22146         gdk_window_clear() into common code, implement in terms of
22147         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
22148         not redirected to the backing rectangle.
22149
22150 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
22151
22152         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
22153         EXTRA_DIST. It does not work well when the file that
22154         everything depends on is not in the tarball.
22155
22156 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
22157
22158         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
22159         with recursion where process_updates() is called from
22160         an expose handler. (GtkTextView is highly broken in
22161         doing this, but it should work, so it is a nice test
22162         case.)
22163
22164 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
22165
22166         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
22167         handle the case where updates are queued during processing of
22168         updates.
22169
22170 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
22171
22172         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
22173         window is on gdk_display - use that instead of segfaulting.
22174
22175 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
22176
22177         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
22178         broken and require an empty arg, give it to them.
22179
22180 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
22181
22182         * gtk/gtklabel.h: indentation fixes.
22183
22184 2000-05-02  Tor Lillqvist  <tml@iki.fi>
22185
22186         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
22187         draw too narrow or too low arcs, they seem to fail, at least with
22188         some display drivers.
22189
22190         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
22191
22192         Large changes to the Win32 backend, partially made necessary by
22193         the changes to the backend-independent internal
22194         structures. Attempts to implement similar backing store stuff as
22195         on X11. The current (CVS) version of the Win32 backend is *not* as
22196         stable as it was before the no-flicker branch was merged. A
22197         zipfile with that version is available from
22198         http://www.gimp.org/win32/. That should be use by "production"
22199         code until this CVS version is usable. (But note, the Win32
22200         backend has never been claimed to be "production quality".)
22201
22202         * README.win32: Add the above comment about versions.
22203
22204         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
22205
22206         * gdk/gdk.def: Update.
22207
22208         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
22209         presumably be replaced by some more better mechanism as 1.4 gets
22210         closer to release shape.
22211
22212         * gdk/makefile.{cygwin,msc}: Update.
22213
22214         * gdk/win32/*.c: Correct inclusions of the backend-specific and
22215         internal headers. Change code according to changes in these. Use
22216         gdk_drawable_*, not gdk_window_* where necessary.
22217
22218         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
22219         our old DND.
22220
22221         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
22222         to interpret single characters as UTF-8. Thanks to Hans Breuer.
22223         Use correct function name in warning messages.
22224
22225         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
22226         GSourceFuncs gdk_event_prepare and gdk_event_check.
22227         (gdk_event_get_graphics_expose): Do implement, use
22228         PeekMessage. Thanks to Hans Breuer.
22229         (event_mask_string): Debugging function to print an GdkEventMask.
22230         (gdk_pointer_grab): Use it.
22231
22232         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
22233         (old) book I used claimed was Hangul actually is CJK Unified
22234         Ideographs Extension A. Also, Hangul Syllables were missing.
22235         Improve logging.
22236
22237         * gdk/win32/gdkgc-win32.c: Largish changes.
22238
22239         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
22240         g_win32_getlocale() from GLib, and not setlocale() to get current
22241         locale name.
22242
22243         * gdk/win32/gdkprivate-win32.h
22244         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
22245         gdkwin32.h, similarily as in the X11 backend.
22246
22247         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
22248         assignment was used instead of equals in if test. Thanks to Hans
22249         Breuer.
22250
22251         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
22252         the X11 version.
22253
22254         * gdk/win32/makefile.{cygwin,msc}
22255         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
22256         path to the Win32 headers that works also with the mingw compiler.
22257
22258         * gtk/gtkstyle.c: Include <string.h>.
22259
22260 2000-04-26  Havoc Pennington  <hp@redhat.com>
22261
22262         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
22263         replacing the broken gtk_label_get ()
22264
22265 2000-04-15  Havoc Pennington  <hp@pobox.com>
22266
22267         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
22268         this keeps scanner scripts from getting confused.
22269
22270         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
22271         data, rather than void
22272
22273 2000-04-15  Tor Lillqvist  <tml@iki.fi>
22274
22275         * gtk/gtkclist.c (gtk_clist_motion)
22276         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
22277         with is_hint FALSE, get x and y from the event. They used to be
22278         used uninitialised. The Win32 backend never sends motion events
22279         marked as hints. This for instance fixes the annoying file and
22280         font selector behaviour in the Win32 version.
22281
22282 2000-04-14  Tor Lillqvist  <tml@iki.fi>
22283
22284         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
22285         gtk_private_n_signals variables, they are used by some software,
22286         sigh.
22287
22288         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
22289         installation directory from the Registry, where the installer
22290         should have put it.
22291
22292 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
22293
22294         * gdk/x11/Makefile.am: Fix problem with installation directory for
22295         gdkx.h
22296
22297         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
22298         <mrcooger@cyberverse.com> so that when selecting menus with the
22299         mouse, the first item will not be selected, but when selecting
22300         with an accelerator, or navigating left-right on a menubar with
22301         the menus popped up, the first item will be selected.
22302
22303 2000-04-05  Dan Damian  <dand@dnttm.ro>
22304
22305         * configure.in: Added "ro" to ALL_LINGUAS.
22306
22307 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
22308
22309         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
22310         indentation.
22311
22312         * Makefile.am (EXTRA_DIST): Fix typo.
22313
22314         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
22315         to catch gdkconfig.h
22316
22317         * gtk/gtkitemfactory.c: Added FIXME.
22318
22319 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
22320
22321         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
22322         s/return_if_fail/return_val_if_fail/g and add a return value.
22323
22324 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
22325
22326         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
22327         merge slipup.
22328
22329         * gdk/gdkinput.h: Fix missing line from merge.
22330
22331 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
22332
22333         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
22334         instead of gdkprivate.h.
22335
22336 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
22337
22338         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
22339         parent class to correctly be GtkDialogClass.
22340
22341 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
22342
22343         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
22344         toplevel windows and their immediate children by their parents,
22345         since the size of toplevel windows is out of our immediate
22346         control and we don't get any real benefit from trying to track
22347         this size for clipping.
22348
22349         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
22350         for input_only windows.
22351
22352         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
22353         to fix some hacks and make sure that we don't try to set the
22354         background of input only windows.
22355
22356 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
22357
22358         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
22359         the _really_ internal stuff, and leave gdkprivate.h for the fake private
22360         stuff that we've traditionally exposed.
22361
22362         * gdk/**.c: Use gdkinternals.h where appropriate.
22363
22364         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
22365         not include gdkprivate-x11.h, move all stuff of conceivable public
22366         interest into gdkx.h; keep all really private stuff in
22367         uninstalled header gdkprivate-x11.h.
22368
22369         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
22370         image->image_put on windows through a new function _gdk_window_draw_image()
22371         to allow us to do backing store for images. (Sort of ugly)
22372
22373         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
22374         contexts locally so that we can offset them properly when drawing 
22375         onto backing pixmaps.
22376
22377         * gdk/gdkinput.h: Reindented
22378
22379         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
22380         pixmap or color for the window, so we can properly initialize
22381         our double-buffer pixmaps, and also so that we temporarily set
22382         a background of None while scrolling.
22383
22384         * gdk/gdkregion.h: Revise region boolean operators to have an
22385         interface that is actually convenient - switch from creating new
22386         regions on every op, to "methods" that modify existing regions
22387         (A = A OP B). 3 argument forms which allow dest == src, would also
22388         be possible, but the current interfaces seem to map nicely
22389         onto what needs to be done. (There is quite a lot of region
22390         code in GDK now.)
22391
22392         * gdk/gdkregion.h: Add constructor from rectangle and a copy
22393         operator.
22394
22395         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
22396         gdkpoly-generic.h: Copy region code from Xlib, switch it over
22397         to 32 bit coordinates, modify it to be mostly GTK+ style
22398         and to have interfaces that match gdkregion.h.
22399
22400         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
22401         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
22402         create a backing pixmap and redirect all drawing to
22403         that backing pixmap until a matching gdk_window_end_paint().
22404
22405         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
22406         Create a special drawable class for GtkWindow's that 
22407         redirects the drawing to the backing pixmap as necessary
22408         and then calls the real operations in _gdk_windowing_window_class.
22409
22410         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
22411         Store invalid region for each window. Generate expose events for invalid
22412         region in an idle. This replaces both the expose compression
22413         and the redrawing queuing in GTK+. It is both more efficient and
22414         simpler than either one individually and far more so then the
22415         combination.
22416
22417         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
22418         Emulate 32 bit coordinates for windows with 16 bit coordinates
22419         by offsetting drawing, guffaw scrolling techniques and
22420         mapping/unmapping child windows as necessary.
22421
22422         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
22423         where, when invalid regions are processed, the region is stored,
22424         and if expose events come in that are detectably duplicate
22425         the processed exposes (by comparison of event serial numbers),
22426         the stored region is subtracted out of those exposes.
22427
22428         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
22429         regions newly exposed when scrolling or resizing windows.
22430         This, combined with forcing processesing of queued invalidated
22431         regions, gives nice flicker-free scrolling.
22432
22433         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
22434         invalidated regions after every scroll.
22435
22436         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
22437         emulation in GDK. Its, for all practical purposes just a
22438         GtkViewport/GtkFixed hybrid now.
22439
22440         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
22441         (16-bit) structures as necessary instead of just casting.
22442
22443         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
22444         in terms of the structures from gdkregion-generic.c, using appropriate
22445         offsets from GDK to X11 coordinates. Cache clip mask and
22446         origin and ts origin locally and only flush to the server
22447         when drawing, to avoid constantly setting and resetting these
22448         values when offsetting GC's for scrolling and backing pixmaps.
22449
22450         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
22451
22452         * gtk/gtkcontainer.c: Call process_all_updates at end
22453         of resizing to reduce flicker. (Avoids having redraw
22454         lag arbitrarily behind resize under some circumstances)
22455
22456         * gtk/gtkentry.c: Remove old backing store code, and simply take
22457         advantage of the new backing store capabilities of GDK.
22458
22459         * gtk/gtkmain.c: Simple implementation of widget backing
22460         store - simply push a paint while handling each expose.
22461         (Should really be configurable widget for widget.)
22462         
22463         * gtk/gtkwidget.c: Remove all the old complicated redraw
22464         code, and simply invalidate the GDK windows from
22465         gdk_window_queue_clear(), etc. (Sigh, so much carefully
22466         debugged complexity ... gone to the winds.)
22467
22468         Remove all the code for suppressing expose events while
22469         resizes are pending; this isn't needed since the invalid
22470         areas won't be processed until after the resizes are
22471         processed, since they are in a lower priority idle.
22472
22473 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
22474
22475         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
22476         and height of dest rectangle for non-intersecting rectangles.
22477
22478 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
22479
22480         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
22481         for GdkRectangle.
22482
22483 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
22484
22485         * gdk/gdk{events,image,private,types,window}.h
22486          gdk/x11/gdkinputprivate.h: Change all coordinates
22487          from int16 to int. Also, Change width and height from
22488          unsigned to signed to avoid all the stupid C 
22489          signedness bugs.
22490
22491 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
22492
22493         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
22494         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
22495         Add some more detailed checking.
22496
22497         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
22498         New function to retrieve the depth of a drawable.
22499
22500         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
22501         field, reorder fields to save memory. 
22502
22503 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
22504
22505         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
22506         of the background image instead of scaling the background down to
22507         a line.
22508
22509         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
22510         which temporarily set slider to wrong size.
22511
22512         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
22513         queue_clear().
22514
22515 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
22516
22517 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
22518
22519         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
22520
22521 2000-03-17  Tor Lillqvist  <tml@iki.fi>
22522
22523         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
22524         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
22525
22526         * gdk/win32/gdkfont-win32.c
22527         * gdk/win32/gdkproperty-win32.c
22528         * gdk/win32/gdkselection-win32.c
22529         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
22530         now declared such.
22531
22532 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
22533
22534         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
22535
22536 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
22537
22538         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
22539         is called without trapping X errors.
22540
22541 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
22542
22543         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
22544         way into the fontset lists.
22545
22546 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
22547
22548         * gtk/gtkthemes.h: add extern "C" scope.
22549
22550 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
22551
22552         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
22553         to make appends to the list constant. (gtk-guy-990901-0.patch)
22554
22555 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
22556
22557         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
22558         for the typename hash table.
22559
22560 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
22561
22562         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
22563         to make sure we never divide by zero. 
22564         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
22565
22566 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
22567
22568         * gtk/gtkfontsel.c: Apply patch from
22569         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
22570         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
22571
22572         Also, some cleanups in atom handling.
22573
22574 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
22575
22576         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
22577         not GtkWidget.
22578
22579 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
22580
22581         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
22582         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
22583         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
22584         more guint wrap-around bugs before going to bed.
22585
22586 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
22587
22588         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
22589         guint wrap arounds in allocation.width.
22590
22591         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
22592         process untill we fit the allocation given.
22593
22594 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
22595
22596         * gtk/gtkwidget.c:
22597         (gtk_widget_unrealize): guard widget access with ref/unref
22598         around signal emission.
22599         (gtk_widget_hide): same here, but also check its destroyed
22600         state before queueing a resize.
22601
22602 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
22603
22604         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
22605         of gtk_default_insensitive_bg as insensitive base color.
22606
22607         * gtk/gtktext.c (gtk_text_style_set): set the background color according
22608         to the widget's state.
22609         (gtk_text_realize): same here.
22610         (gtk_text_state_changed): same here.
22611         (draw_bg_rect): compare background color against base[] from
22612         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
22613
22614 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
22615
22616         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
22617         grabs are active, unless a delete event is send to the toplevel
22618         of the currently grab holding widget.
22619
22620 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
22621
22622         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
22623         debugging g_print's.
22624
22625 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
22626
22627         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
22628         ever make the scrolled-window requisition ever depend on the 
22629         visibility state of the scrollbars for the AUTOMATIC policy. 
22630         This breaks the GTK+ requisition model, and causes loops.
22631
22632 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
22633
22634         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
22635         the default font to avoid problems with XFree86-4.0 where the
22636         default charset is iso10646-1, not iso8859-1.
22637
22638 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
22639
22640         * acinclude.m4
22641         * config.guess
22642         * config.sub
22643         * ltconfig
22644         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
22645
22646         * gtk/Makefile.am: minor cosmetic consistency tweak
22647
22648 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
22649
22650         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
22651         the activate_time to 0, so that we handle a quick
22652         press/release press/release properly and don't suppress
22653         the second release. (Red Hat bug #7545)
22654
22655 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
22656
22657         * gtk/gtkctree.c (row_delete):
22658         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
22659         bugs with destruction notifier, *always* update internal
22660         structures *before* calling user code.
22661
22662 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
22663
22664         A few more fixes for bug #5487, #2051, #2677.
22665         * gtk/gtkclist.c : 
22666         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
22667         not GDK_BUTTON_PRESS.
22668         (resync_selection): resync only if selection_mode is
22669         GTK_SELECTION_EXTENDED
22670         * gtk/gtkctree.c (resync_selection): same here
22671
22672 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
22673
22674         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
22675         gdk_drag_get_selection() and gtk_menu_detach().
22676
22677         [ From Jeroen Ruigrok/Asmodai ]
22678
22679 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
22680
22681         * gtk/gtknotebook.c (gtk_notebook_size_request): 
22682         page->tab_label can be NULL.
22683
22684 2000-01-25  Havoc Pennington  <hp@pobox.com>
22685         
22686         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
22687         arg is boolean
22688
22689         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
22690
22691         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
22692
22693         * gdk/gdkproperty.c (gdk_property_get): return boolean
22694
22695         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
22696
22697         * gdk/gdkim.c (gdk_im_ready): return boolean
22698
22699         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
22700
22701         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
22702         glib clash, should fix glib)
22703
22704         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
22705         (gdk_get_show_events): return gboolean, and canonicalize 
22706         to TRUE/FALSE
22707
22708         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
22709         colormap is private
22710         (gdk_colors_alloc): gboolean whether to be contiguous
22711         (gdk_color_equal): return gboolean since we are a predicate
22712         and not a qsort() (this looks semi-wrong due to glib breakage,
22713         IMO glib should be fixed)
22714         
22715         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
22716         (gdk_get_use_xshm): return gboolean
22717         (gdk_pointer_is_grabbed): return gboolean
22718
22719         * gdk/gdk.h: Change prototypes to match all the above changes,
22720         and re-run egtk-format-protos as required.
22721
22722 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
22723
22724         * gtk/gtkctree.c (resync_selection): 
22725         * gtk/gtkclist.c (resync_selection):
22726
22727         Return immediately if clist->drag_pos < 0. This is a workaround
22728         for the corrupt state that the clist gets into when a
22729         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
22730
22731         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
22732         
22733         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
22734         variable from recent commit.
22735
22736 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
22737
22738         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
22739
22740 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
22741
22742         * gtk/Makefile.am: prefix all autogenerated source that get build in
22743         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
22744         in builddir. since we subsequently cd into srcdir for autogeneration,
22745         the paths have to be stripped from the target file names, thusly we
22746         use $(@F) as target names now.
22747         put a comment about configure.in's --disable-rebuilds option,
22748         which can be used for non-writable source directories, for development
22749         setups though, srcdir has to be *writable*.
22750
22751 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
22752
22753         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
22754           Finish the job of allowing event to be NULL.
22755           (Fixes bug #4283, reported by Chris Blizzard)
22756
22757         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
22758           things so that the cursor appears on screen, properly
22759           take into account INNER_BORDER.
22760           (Fixes bug #4754, reported by Antonio Campos)
22761
22762 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
22763
22764         * gtk/gtknotebook.c (gtk_notebook_map): Don't
22765           show the tab_label unless it itself is visible.
22766
22767           gtk/gtknotebook.c (gtk_notebook_size_request):
22768           Do a better job of making sure that the visibility
22769           of the tab label corresponds to whether it should
22770           be mapped or not.
22771
22772 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
22773
22774         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
22775           Use the requisition, not the allocation, since the
22776           allocation has not necessarily been computed yet.
22777           (Pointed out by Eugene Osintsev)
22778
22779 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
22780
22781         * gtk/gtkstyle.c (gtk_style_new): Dont' set
22782           style/base[GTK_STATE_INSENSITIVE] both to
22783           gtk_default_insensitive_bg!
22784           (Bug #2187, reported by Jonathan Blandford)
22785
22786         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
22787           Add Alt_L, Alt_R to list of invalid accelerators.
22788           (Bug #3736, reported by Vlad Harchev)
22789
22790 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
22791
22792         * gtk/gtkfilesel.c (open_ref_dir): Fix several
22793         bugs which occured after an attempt to open 
22794         invalid home directory left cmpl_state->reference_dir == NULL.
22795
22796          - completion on files in home directory didn't work
22797          - completion on an empty string caused  segfault
22798
22799          (Bug #3678, reported by Steve Ratcliffe)
22800
22801         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
22802         cut and paste error that was causing scales to
22803         be incorrectly positioned.
22804         (Bug #2956,
22805          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
22806
22807 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
22808
22809         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
22810         when checking for dcgettext, if we've found we needed
22811         it for dgettext.
22812 +
22813 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
22814
22815         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
22816         queue_clear on NO_WINDOW widgets during a reparent,
22817         since at that point the window and widget heirarchies
22818         are out of sync. This stops crashing in some cases
22819         (the scrolled window reparent test, for instance), and
22820         _probably_ won't cause drawing errors.
22821
22822         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
22823         test do what it was supposed to do and be robust against
22824         window closings, etc. (Bug #2443)
22825
22826 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
22827
22828         * gtk/gtkentry.c: Fix return values on mouse events.
22829         (Bug #2686, Sky <seb_sky@yahoo.com>)
22830
22831         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
22832         (pointed out by George Lebl)
22833
22834         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
22835         (From Ettore Perazzoli  <ettore@helixcode.com>)
22836  
22837 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
22838
22839         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
22840         clicks between rows or outside calender area correctly.
22841         (Patch from Damon Chaplin)
22842
22843         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
22844         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
22845           Call destroy function when overwriting existing data. 
22846           (Pointed out by Damon Chaplin)
22847
22848 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
22849
22850         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
22851           which was causing problems on various systems with Xmu.
22852           This hasn't been needed for a very long time.
22853           (Fixes #1185 3167)
22854
22855 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
22856
22857         * gdk/gdki18n.h: Include <ctype.h> when defining
22858           gdk_isw* in terms of is* as a fallback.
22859           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
22860
22861 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
22862
22863         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
22864           realize the widget when it is size allocated!
22865           (old, old bug)
22866
22867         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
22868           Removed unused call to gdk_window_get_size() that
22869           showed up when the above was fixed.
22870
22871 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
22872
22873         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
22874           fix up widget->window when the widget is a
22875           NO_WINDOW container widget.
22876
22877 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
22878
22879         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
22880           to account for the fact that feof() does _not_ 
22881           return TRUE on errors, and thus avoid infinite loops
22882           when trying to use gdk_pixmap_create_from_xpm()
22883           on unreadable values.
22884
22885 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
22886
22887         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
22888
22889 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
22890
22891         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
22892           gdk_gc_set_dashes to take gint8 instead of gchar to
22893           make it clearer that it is _not_ a NULL terminated string.
22894
22895         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
22896           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
22897           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
22898           arguments.
22899
22900 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
22901
22902         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
22903         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
22904         background size relative to our allocation, guard against small
22905         allocations, we may have not yet been size allocated.
22906
22907 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
22908
22909         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
22910         not just version == 3. We implement all 3 + most of 4 - 
22911         (we don't support matching text/plain;charset=iso-8859-1
22912         to a dest that expects text/plain). We'll still advertise
22913         3 to be safe, but any client implementing version >= 3
22914         must interoperate with 3.
22915         
22916 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
22917
22918         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
22919         background and gc members, add a warning in gtk_tooltips_set_color()
22920         indicating that this function is deprecated.
22921
22922 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
22923
22924         * docs/gtkfaq.sgml: FAQ Update:
22925           - Minor cleanups (Emmanuel, me)
22926           - New questions:
22927                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
22928                 How can I retrieve the text from a GtkMenuItem? (timj)
22929                 How do I validate/limit/filter the input to a GtkEntry? (me)
22930                 Memory does not seem to be released when I free the list
22931                         nodes I've allocated (timj)
22932
22933 2000-03-07  Tor Lillqvist  <tml@iki.fi>
22934
22935         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
22936         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
22937         for which it is no use to call GetLastError onWin9x.
22938         (gdk_other_api_failed) New function, for general error
22939         reporting without calling GetLastError.
22940         (gdk_win32_api_failed) OTOH, this function always calls
22941         GetLastError. (gdk_win32_last_error_string) Remove this function,
22942         GLib has the equivalent now.
22943
22944         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
22945         call them with function name, file name and line number in the
22946         arguments.
22947
22948         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
22949         functions.
22950         
22951         * gtk/gtk.def: Add some missing entry points.
22952
22953         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
22954         gtk_paned_set_gutter_size, which don't exist any longer, as void.
22955         
22956         Fixes by Hans Breuer:
22957
22958         * gdk/makefile.msc: Update for debugging.
22959
22960         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
22961         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
22962         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
22963         in the dash_list.
22964
22965         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
22966         the x11 backend.
22967
22968         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
22969
22970         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
22971
22972 2000-03-04  Tor Lillqvist  <tml@iki.fi>
22973
22974         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
22975         just pixel value of background colour.
22976
22977         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
22978         containing code snippet previously duplicated in a couple of
22979         places.
22980         
22981         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
22982         gdk_colormap_color.
22983
22984         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
22985         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
22986         events for autorepeated Shift, Control and Alt keys. Use
22987         gdk_colormap_color.
22988
22989         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
22990         pointer is inside the window the cursor of which we are setting,
22991         call SetCursor immediately.
22992
22993         * gdk/win32/makefile.cygwin
22994         * gtk/makefile.cygwin: If we don't have the build number stamp
22995         file, use zero.
22996
22997         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
22998         gtk_paned_set_gutter_size as empty.
22999
23000         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
23001         
23002 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
23003
23004         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
23005           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
23006           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
23007           docs/gtk_tut.sgml docs/gtk.texi TODO:
23008
23009           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
23010
23011 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
23012
23013         * gtk/gtkcalendar.c: Implement num_marked_dates,
23014           and don't emit mutiple day_selected signals on
23015           month_prev.
23016
23017 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
23018
23019         * docs/make-todo (lineno): let title and logo be configurable so
23020         that GNOME can use this script too.
23021
23022         * TODO.xml: added logourl and a title
23023
23024 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
23025
23026         * TODO.xml: Added some UI items, and an explanatory
23027         comment at the top of the file.
23028
23029 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
23030
23031         * TODO.xml: some updates, added abunch of new entries.
23032         a note for those fiddeling with this file, when done
23033         with it, invoke:
23034         $ ./docs/make-todo TODO.xml >/dev/null
23035         and correct output errors before comitting changes.
23036
23037 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
23038
23039         * TODO.xml: Added XML-structured TODO file.
23040         * docs/make-todo: python script to turn TODO.xml into
23041           pretty XML output. 
23042
23043 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
23044
23045         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
23046         the function to let it draw the seven dots, instead of the old,
23047         much maligned, method.
23048         (draw_dot): New function to draw a dot.
23049
23050         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
23051         to draw the handle inside the border width as opposed to outside.
23052         Use paint function instead of gdk_draw_point.
23053
23054         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
23055         to draw the handle inside the border width as opposed to outside.
23056         Use paint function instead of gdk_draw_point.
23057
23058         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
23059         Change indenting to be more GTK like.
23060
23061 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
23062
23063         * docs/gtk_tut.sgml: New section on GtkCalendar
23064         * examples/calendar: Update example code
23065
23066 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
23067
23068         * docs/gtkfaq.sgml: FAQ Update
23069
23070 2000-02-19  Anders Carlsson  <andersca@gnu.org>
23071
23072         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
23073         to prevent the scroll event to be propagated upwards.
23074
23075 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
23076
23077         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
23078         OwnerGrabButtonMask from button entries for
23079         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
23080
23081         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
23082         to the event mask (which will result in button/press release
23083         being added to the event mask on Unix) so scrolling works
23084         for layouts in scroll windows.
23085
23086         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
23087
23088         Patch from Anders Carlsson  <andersca@gnu.org> to add
23089         a scroll event.
23090
23091         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
23092         scrolling to the "Test Scrolling" part of testgtk.
23093  
23094         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
23095  
23096         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
23097         it against GDK_SCROLL.
23098  
23099         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
23100         way of mouse wheel scrolling.
23101  
23102         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
23103  
23104         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
23105  
23106         * gtk/gtkmain.c: Removed previous mouse wheel hack.
23107  
23108         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
23109         gdk_event_mask_table.
23110  
23111         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
23112         GdkEventScroll handler.
23113  
23114         * gdk/gdkevents.h: Added GdkEventScroll structure.
23115  
23116 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
23117
23118         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
23119         and Anders Carlsson to change the Paned widgets so that they
23120         can be dragged from anywhere along the length. Also change
23121         the way that this is drawn to make this apparent.
23122
23123         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
23124         from George Lebl to check that option_menu->menu is present
23125         before getting history.
23126
23127 2000-02-14  Tor Lillqvist  <tml@iki.fi>
23128
23129         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
23130         before the assertion for non-NULL segment list.
23131
23132         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
23133         Seems that pattern brushes *must* be 8x8 pixels! At least on my
23134         machine, but it might be display driver dependent. Sigh, so make
23135         sure the stipple is that size. Does Windows suck or what?
23136
23137         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
23138         places.
23139
23140 2000-02-13  Havoc Pennington  <hp@pobox.com>
23141
23142         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
23143         refcount to 1
23144         (gdk_cursor_new): init refcount to 1
23145
23146         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
23147
23148 2000-02-13  Tor Lillqvist  <tml@iki.fi>
23149
23150         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
23151         so that we don't have to do unnecessary settings to the HDC.
23152
23153         * gdk/win32/gdkdrawable-win32.c
23154         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
23155         gdk_gc_predraw.
23156
23157         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
23158         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
23159         GDI paths, call WidenPath to get the outline of the stroken path,
23160         and then fill the outline (with the brush that was built from the
23161         stipple).
23162
23163         * gdk/win32/gdkgc-win32.c: Factor out common code from
23164         _gdk_win32_gc_new and gdk_win32_gc_set_values into
23165         gdk_win32_gc_values_to_win32values. Use correct colour for
23166         SetBkColor() (Until now the code actually used a random colour in
23167         the call to SetBkColor()... but that didn't show up as not many
23168         GDI APIs use the background colour. Pattern (opaque stippled)
23169         brushes do.)
23170
23171         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
23172         gdk_win32_api_failed): New functions for error logging.
23173
23174         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
23175         WIN32_API_FAILED to call them, passing function or file name and
23176         line number.
23177
23178         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
23179
23180         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
23181         GdkColor for foreground and background in GdkGCWin32Data.
23182
23183         * gdk/makefile.cygwin: Link in the resource object separately.
23184
23185         * gdk/win32/rc/gdk.rc
23186         * gtk/gtk.rc (New file)
23187         * gdk/win32/makefile.cygwin
23188         * gtk/makefile.cygwin: Update build number in DLLs automatically,
23189         as in GLib.
23190
23191 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
23192
23193         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
23194         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
23195         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
23196         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
23197         parameters given and cursor->ref_count. coding style fixups.
23198
23199         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
23200         not GtkWidget.
23201         
23202         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
23203         fix up widget macros and add _GET_CLASS() variant.
23204         
23205         * gtk/*.c: some GtkType fixups.
23206
23207 2000-02-09  Tor Lillqvist  <tml@iki.fi>
23208
23209         * gdk/win32/gdkproperty-win32.c
23210         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
23211         were reversed.
23212
23213 2000-02-04  Tor Lillqvist  <tml@iki.fi>
23214
23215         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
23216         g_filename_to_utf8 to convert the font names Windows gives us from
23217         whatever is the default codepage to UTF-8.
23218         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
23219         in the other direction.
23220
23221         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
23222         error in debugging output.
23223
23224 2000-02-02  Tor Lillqvist  <tml@iki.fi>
23225
23226         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
23227         and height parameters to gdk_window_clear_area(). Not minus one.
23228
23229 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
23230
23231         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
23232         checks if the widget passed to gtk_drag_get_data() was not the
23233         dest widget.
23234
23235 2000-02-01  Tor Lillqvist  <tml@iki.fi>
23236
23237         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
23238         g_filename_from_utf8 functions (which were added a moment ago to
23239         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
23240         size buffers.
23241
23242         gtk_file_selection_get_filename returns the filename in the C
23243         runtime encoding. It calls g_filename_from_utf8, but copies the
23244         returned string to a static buffer, which is returned. I think
23245         this is better than returning the result from g_filename_from_utf8
23246         directly, which would mean all apps that use it would have to free
23247         the return value. Or should this function care about this issue at
23248         all? Maybe a new function with clearly defined semantics.
23249
23250         * gtk/gtkfilesel.h: Add comment about
23251         gtk_file_selection_get_filename returning the filename in the C
23252         runtime's encoding.
23253
23254         * README.win32
23255         * gdk/gdk.def
23256         * gdk/makefile.{cygwin,msc}
23257         * gtk/gtk.def: Updates.
23258
23259         * gdk/gdkcursor-win32.c: Initialise refcount.
23260
23261 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
23262
23263         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
23264
23265 2000-01-30  Havoc Pennington  <hp@pobox.com>
23266
23267         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
23268         destroy
23269
23270         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
23271
23272         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
23273         implemented in platform-specific code
23274
23275         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
23276
23277         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
23278         underscore in front
23279
23280         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
23281         put an underscore in front
23282
23283         * gdk/gdkcursor.c: new file, implements
23284         gdk_cursor_ref/gdk_cursor_unref
23285
23286         * gdk/gdkcursor.h: Refcount GdkCursor
23287
23288         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
23289
23290 2000-01-29  Tor Lillqvist  <tml@iki.fi>
23291
23292         * gdk/gdkwindow.h
23293         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
23294
23295 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
23296
23297         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
23298         structures to properly inherit from GtkWidget not GtkBin.
23299
23300 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
23301
23302         * gtk+.spec.in: Added lib/gtk+/include/* to %files
23303         (bug #5178 - Peter Wainright)
23304         
23305         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
23306         so that it will be installed.
23307         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
23308
23309 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
23310
23311         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
23312         for the GtkStyleClass vtable const.
23313
23314         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
23315         take a const string argument like GtkTranslateFunc. This will
23316         require changes in use code.
23317
23318 2000-01-19  Tor Lillqvist  <tml@iki.fi>
23319
23320         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
23321         semantics (to mimic the X11 backend, which just calls XClearArea)
23322         is to check for zero width (and height), and in that case use the
23323         window's width minus x (height minus y). This fixes for instance
23324         some redraw problems with gtkclist, which were easily noticeable
23325         in the gtk file selection widget.
23326
23327         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
23328         windows.
23329
23330 2000-01-13  Tor Lillqvist  <tml@iki.fi>
23331
23332         * configure.in
23333         * gdk/Makefile.am
23334         * gdk/x11/Makefile.am
23335         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
23336         (bug #5177).
23337         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
23338         out later.
23339
23340 2000-01-09  Tor Lillqvist  <tml@iki.fi>
23341
23342         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
23343         WM_MOVE for iconified or invisible windows. This fixes various
23344         problems when minimising windows. Thanks to Bernd Herd.
23345
23346 2000-01-05  Tor Lillqvist  <tml@iki.fi>
23347
23348         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
23349         backend's draw_lines method, not draw_points.
23350
23351 2000-01-02  Tor Lillqvist  <tml@iki.fi>
23352
23353         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
23354         before Owen's reorganisation: Don't have queued_events and
23355         queued_tail statics in this file, but use gdk_queued_events and
23356         gdk_queued_tail. This makes exposure event compression work again.
23357
23358         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
23359         seem to be needed?
23360
23361 1999-12-30  Tor Lillqvist  <tml@iki.fi>
23362
23363         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
23364         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
23365         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
23366         doesn't do anything.
23367
23368         * gdk/gdk.def: Add gdk_xid_table_insert.
23369
23370         * gdk/win32/gdkprivate-win32.h
23371         * gdk/win32/gdkevents-win32.c
23372         * gdk/win32/gdkinput-win32.c
23373         
23374         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
23375         extension_events field in the GdkWindowWin32Data struct. Use only
23376         the extension_events field in GdkWindowPrivate. Previously one was
23377         set, and the other one tested, which broke tablet
23378         functionality. Thanks to Keishi Suenaga for pointing this out.
23379
23380 1999-12-18  Tor Lillqvist  <tml@iki.fi>
23381
23382         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
23383         When handling a single character (text length == 1), don't handle
23384         it as if it was UTF-8.
23385
23386 1999-12-11  Tor Lillqvist  <tml@iki.fi>
23387
23388         * Makefile.am: Distribute README.win32.
23389         
23390         * gdk/Makefile.am
23391         * gdk/win32/Makefile.am: Distribute Win32 files.
23392
23393         * gdk/makefile.msc: New file.
23394
23395         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
23396         after label).
23397
23398         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
23399         gdk_error_code as GDKVAR, as they are referred outside GDK.
23400
23401         * gdk/win32/makefile.msc: Update.
23402
23403         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
23404         tweaks. Check only if at least one of those Unicode subrange bits
23405         we care for is set. If no code page bits are set, guess (wildly)
23406         based on the charset.
23407
23408         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
23409
23410         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
23411         non-NULL.
23412
23413         * gtk/gtkdnd.c
23414         * gtk/gtklayout.c
23415         * gtk/gtkplug.c
23416         * gtk/gtkselection.c
23417         * gtk/gtksocket.c
23418         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
23419         appropriate. There must be a cleaner way to handle this?
23420
23421         * gtk/gtkrc.c: Must include windows.h on Win32.
23422
23423         * gtk/testgtk.c: No need to include gdkx.h.
23424
23425         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
23426
23427 1999-12-07  Tor Lillqvist  <tml@iki.fi>
23428
23429         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
23430         the rbearing is set to the same as the width, but this should be
23431         fixed.
23432
23433 1999-12-06  Tor Lillqvist  <tml@iki.fi>
23434
23435         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
23436         function. If Windows doesn't tell us what Unicode subranges a font
23437         covers, guesstimate based on the codepages it covers. This will
23438         hopefully help those Windows versions or fonts that don't give us
23439         any useful Unicode subrange information with GetTextCharsetInfo.
23440         Call this function in gdk_font_load_internal.
23441
23442         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
23443         minor changes.
23444
23445 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
23446
23447         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
23448         New function, long needed.
23449
23450 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
23451
23452         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
23453         only_if_exists argument of gdk_atom_intern to
23454         bool.
23455
23456 1999-11-25  Tor Lillqvist  <tml@iki.fi>
23457
23458         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
23459         Fix two copy&paste errors.
23460
23461         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
23462         win32 has changed.
23463
23464         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
23465         GdkWin32SingleFont struct.
23466
23467         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
23468         subranges of loaded fonts. Clear font signature first, in case
23469         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
23470         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
23471
23472         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
23473         Unoffset clip region.
23474
23475 1999-11-23  Tor Lillqvist  <tml@iki.fi>
23476
23477         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
23478         event->any.window before calling filter functions.
23479
23480 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
23481
23482         * gtk/gtkgamma.h: Adapt cast macros to standard.
23483
23484 [ Merges from 1.2 ]
23485
23486 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
23487
23488         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
23489         If translation does not include a '/', use entire
23490         translation instead of crashing.
23491
23492 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
23493
23494         * docs/gtk_tut.sgml:
23495         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
23496
23497 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
23498
23499         * gtk/gtkselection.c (gtk_target_list_remove): Use
23500         g_list_remove_link, not g_list_remove.
23501
23502         [ From Geert Bevin <gbevin@thunderstorms.org> ]
23503         
23504 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
23505
23506         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
23507         statement upon unselection (how the heck did that slip in?).
23508
23509 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
23510
23511         * gtk/gtktext.c (gtk_text_freeze): 
23512         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
23513         in frozen state (and aparently crashes). patch provided by Anders
23514         Melchiorsen <and@kampsax.dtu.dk>.
23515
23516 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
23517
23518         * fix insensitive default/focus widget activation,
23519         reported by Matt Goodall <mgg@isotek.co.uk>.
23520
23521         * gtk/gtkwindow.c (gtk_window_key_press_event): 
23522         (gtk_window_activate_default):
23523         (gtk_window_activate_focus):
23524         return handled=FALSE for actiavtion of insensitive default
23525         widgets. return handled=TRUE for activation of insensitive
23526         focus widgets. don't activate in either case.
23527
23528 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
23529
23530         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
23531         and $glib_cflags to match library order and in the
23532         theory that an old version of GLib is more likely to
23533         be in the include directory for X then vice-versa.
23534         (Bug #2776)
23535
23536 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
23537
23538         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
23539         to determine the locale for fontsets, not LC_MESSAGES;
23540         the user may want English messages with a handling
23541         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
23542         will still be broken) (Bug #2891)
23543
23544 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
23545
23546         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
23547
23548 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
23549
23550         * gtk/gtkrc.ko: Changed the Korean default fontset.
23551
23552 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
23553
23554         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
23555         where when scrolling to the left or top double exposes
23556         were done, causing major slowdowns.
23557
23558 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
23559
23560         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
23561         names to lowercase and alphanumeric, before looking
23562         them up.
23563
23564         * gtk/Makefile.am: Install codeset variant gtkrc files
23565         with normalized names.
23566
23567 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
23568
23569         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
23570         popup menus when the menu is already visible, but its parent
23571         is still hidden, (happens after tornoff window got hidden).
23572
23573 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
23574
23575         * gtk/Makefile.am (install-data-local): Fix
23576         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
23577         deleted, causing error messages on install.
23578
23579 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
23580
23581         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
23582         the handle as well, since we now sometimes ignore
23583         exposes on the handle while resizing.
23584
23585 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
23586
23587         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
23588         extra g_free introduced in one of the last one or two 
23589         commits.
23590
23591 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
23592
23593         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
23594         consistent, put each style that a gtkrc.* file creates
23595         in a unique namespace, remove old files before installing.
23596
23597 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
23598
23599         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
23600         gtk_rc_init is called multiple times. (Yes, people who
23601         do that have bugs in their code.)
23602
23603 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
23604
23605         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
23606         Remove it since it's generated by the Makefile anyway
23607
23608 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
23609
23610         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
23611         device->info.axes for core pointer.
23612
23613 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
23614
23615         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
23616         idle_id, to deal with obsolete, broken C libraries.
23617
23618 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
23619
23620         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
23621         allocation->x/y twice!
23622
23623         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
23624         consistent with gtk_vscale_pos_trough().
23625
23626 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
23627
23628         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
23629         be queueing a resize on a toplevel container between
23630         the time we show it and when we map it. So, we need
23631         to test GTK_WIDGET_VISIBLE() for toplevels, and only
23632         use GTK_WIDGET_DRAWABLE() for child windows.
23633
23634 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
23635
23636         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
23637         (fixes bug #2144)
23638
23639 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
23640
23641         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
23642         container DRAWABLE (instead of VISIBLE), so we don't queue
23643         resizes on non-toplevel containers.
23644
23645 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
23646
23647         * gtk/gtkselection.[ch]: Make the data argument
23648         const guchar *.
23649
23650 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
23651
23652         * gtk/gtkwindow.c: Try to behave sensibly if 
23653         the focus widget is the window itself. (Should
23654         we allow this at all?)
23655
23656 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
23657
23658         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
23659         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
23660         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
23661         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
23662         in prototypes and implementations consistent (Tomas Ogren).
23663
23664         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
23665         before the widget is unparented (reported by damon).
23666
23667         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
23668         since we provide unsigned data anyways.
23669
23670 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
23671
23672         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
23673         the call to gtk_tooltips_layout_text() until later.
23674
23675         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
23676         Call gtk_widget_ensure_style() before using the style.
23677
23678 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
23679
23680         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
23681         for old widgets that don't propagate draws to all
23682         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
23683
23684 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
23685
23686         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
23687         for a redraw but just the widget that requested the resize.
23688
23689 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
23690
23691         * gtk/gtkcontainer.c: added new widget level method
23692         gtk_container_set_reallocate_redraws() and a GtkContainer flag
23693         reallocate_redraws : 1 to reflect the setting, exported this through
23694         the argument system as a boolean ::reallocate_redraws.
23695
23696         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
23697         on the widget because the allocation changes, do so as well for
23698         widget->parent if the parent has reallocate_redraws set to TRUE.
23699         with that containers requesting reallocation redraws get automatically
23700         redrawn if their children changed allocation (this unfortunately
23701         affects also other children that didn't change allocation, but we
23702         cannot work around that before 1.3).
23703
23704 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
23705
23706         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
23707         _and_ height are >0 (not _or_).
23708
23709         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
23710         instead of gtk_container_queue_resize(), which is a core gtk internal
23711         function (must have been on crack when i queued that).
23712
23713         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
23714         we can check more reliably if we want to discard expose events.
23715         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
23716         flag.
23717         
23718         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
23719         we simply trust these events. for deciding whether to discard exposes,
23720         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
23721         
23722 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
23723
23724         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
23725         queues of areas that are completely off screen.
23726
23727         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
23728         logic for handleboxes.
23729
23730         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
23731         check on width/height.
23732
23733 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
23734
23735         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
23736         we are fine with using $@ the way we do (if we actually encounter
23737         brokeness with $@ in VPATH builds because of additional path prefixes,
23738         we need to use $(@F) actually).
23739
23740 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
23741
23742         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
23743         short lived bugs, that would allow language bindings to do surgeries
23744         to our guts.
23745
23746 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
23747
23748         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
23749         where comparison was being done against an uninitialized
23750         value causing intermittant results depending on
23751         compiler flags. Also make it clearer that we aren't
23752         ever initializing the child as 0x0 (though this will
23753         be caught in gtk_widget_size_allocate())
23754
23755 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
23756
23757         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
23758         gtk_window_unset_transient_for() call after we do checks
23759         involving the old transient parent.
23760         [ From Lance Capser <lmc@cyberhighway.net> ]
23761
23762 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
23763
23764         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
23765         an empty file.
23766
23767 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
23768
23769         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
23770         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
23771
23772 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
23773
23774         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
23775         `$@' is valid only in the build dir, not after we've done 
23776         `cd $srcdir'.  Also use `test -f' instead of less portable
23777         `test -e'.
23778
23779 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
23780
23781         * gtk/gtktext.c (correct_cache_insert): Rewrite
23782          for simplicity, and hopefully correctness.
23783          (Fixes bug #1322, which was a segfault when
23784           on some insertions with the properties around
23785           the insertion set up just wrong.)
23786
23787         * gtk/gtktext.c (gtk_text_adjustment): When we receive
23788          a "changed" signal, clamp the new value to the adjustment
23789          bounds to avoid segfaulting if someone tries to change
23790          the adjustment to a bogus value. (Bug #1795)
23791
23792 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
23793
23794         * gtk/gtkmain.c: Ignore unexpected destroy notifies
23795         for children, for toplevel windows handle them
23796         like delete_event.
23797
23798         * gtk/gtkplug.c: Add an unrealize handler so that
23799         we unref plug->socket_window when we are done
23800         with it.
23801
23802 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
23803
23804         * gtk/gtktext.c (clear_area): Fix stupid signedness
23805          problem that was causing background to sometimes
23806          be misaligned.
23807
23808 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
23809
23810         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
23811         
23812         * gtk/gtkmenu.c (gtk_menu_position): Make
23813          sure we never position menus with negative x, y,
23814          since gtk_widget_set_uposition() can't handle that.
23815
23816         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
23817          Modify the positioning code a bit so that we always
23818          put the top-left corner onscreen. (This is for
23819          UI reasons, gtk_menu_position() now takes care of
23820          gtk_widet_set_uposition() brokeness.)
23821
23822 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
23823
23824         * gtk/Makefile.am: fixed up things for -jx, x > 1.
23825
23826 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
23827
23828         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
23829           RC style that is passed in. The lack of the ref
23830           before was a bug. If people worked around this
23831           bug, this will introduce a slight memory leak
23832           in their code. The code should typically look like:
23833
23834             rc_style = gtk_rc_style_new ();
23835             [...]
23836             gtk_widget_modify_style (widget, rc_style);
23837             gtk_rc_style_unref (rc_style);
23838
23839         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
23840           the style if it was already set.
23841
23842         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
23843           style if it was set before.
23844
23845 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23846
23847         * gtk/testgtk.c (main): Add a check to see if we
23848           are being run from the correct directory and
23849           to quit nicely if we are not.
23850
23851         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
23852           static.
23853
23854 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
23855
23856         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
23857
23858         * gtk/gtkwindow.c:
23859         queue resizes unconditionally (gtk_widget_queue_resize will figure
23860         what to do if the window is not realized).
23861         (gtk_window_move_resize): only recenter the window
23862         for GTK_WIN_POS_CENTER_ALWAYS.
23863         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
23864         the same way as GTK_WIN_POS_CENTER.
23865
23866 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
23867
23868         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
23869         with (!(info->last_flags & GDK_HINT_POS)) instead of
23870         (!info->last_flags & GDK_HINT_POS).
23871
23872         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
23873         new_height unconditionally, because we use these values even if
23874         !default_size_changed && !hints_changed.
23875         comented the (default_size_changed || hints_changed) case with
23876         respect to resize rejects from the window manager.
23877
23878         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
23879         in the zvt condition hack, since this includes the window hints, set
23880         the hints after the handling_resize case.
23881
23882         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
23883         window is initially shown with to the geometry.
23884
23885 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
23886
23887         * gtk/gtkwindow.c (gtk_window_move_resize):
23888         s/size_changed/default_size_changed/g so i know what's
23889         really going on (frying brain on smaller flame now).
23890
23891 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
23892
23893         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
23894         we have size_changed upon handling_resize. this is a gross
23895         workaround for the broken zvt widget and should be removed in
23896         1.3 again (search for FIXME).
23897         Owen provided an accurate comment for this:
23898
23899         /* We could be here for two reasons
23900          *  1) We coincidentally got a resize while handling
23901          *     another resize.
23902          *  2) Our computation of size_changed was completely
23903          *     screwed up, probably because one of our children
23904          *     is broken. It's probably a zvt widget.
23905          *
23906          * For 1), we could just go ahead and ask for the
23907          * new size right now, but doing that for 2)
23908          * might well be fighting the user (and can even
23909          * trigger a loop). Since we really don't want to
23910          * do that, we requeue a resize in hopes that
23911          * by the time it gets handled, the child has seen
23912          * the light and is willing to go along with the
23913          * new size. (this happens for the zvt widget, since
23914          * the size_allocate() above will have stored the
23915          * requisition corresponding to the new size in the
23916          * zvt widget)
23917          *
23918          * This doesn't buy us anything for 1), but it shouldn't
23919          * hurt us too badly, since it is what would have
23920          * happened if we had gotten the configure event before
23921          * the new size had been set.
23922          */
23923
23924 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
23925
23926         * gtk/gtkrc.c: deal properly with the fact that RC
23927           style lists may include rc styles more than once.
23928
23929         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
23930           unused static function.
23931
23932         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
23933           stack of directories of RC files currently being
23934           parsed and implicitely add them to pixmap path.
23935           
23936           This fixes a bug where the directory would get
23937           appended then overwritten by pixmap_path declarations.
23938
23939           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
23940
23941         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
23942           theme's exit function. (Patch from Peter Wainwright,
23943           bug #1454)
23944
23945         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
23946           Add a destroy() handler to take care of removing
23947           group for menu item. (Fixes bug #1197)
23948
23949         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
23950           in warning message.
23951
23952 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
23953
23954         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
23955         roundtrip to figure window's width and height, since we know that
23956         anyways from widget->allocation.
23957
23958 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
23959
23960         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
23961           the hints after we request the new size.
23962
23963 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
23964
23965         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
23966           GTK_WIDGET_REALIZED() assertion - we can compute the
23967           hints before we are realized.
23968
23969         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
23970           hint changing so that we have a value of hints_changed
23971           when we decide whether to constrain the window size.
23972
23973         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
23974
23975         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
23976         change back to G_MAXINT.
23977
23978 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
23979
23980         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
23981         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
23982         contain uncluttered values.
23983         (gtk_window_compute_hints): simply assert that window is realized
23984         and that geometry_info is valid, since we rely on this anyways.
23985         (gtk_window_constrain_size): major cleanups to the code.
23986         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
23987         for the base size, instead of the minimums. use 32767 as max width
23988         and height (like in gtkwindow.c) instead of G_MAXINT.
23989
23990 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
23991
23992         * cleaned up the GtkContainer.need_resize flag handling mess, we
23993         only need to force resize requests when we were prematurely
23994         realized, or our widget tree was modified when we were temporarily
23995         hidden. handling these cases directly upon showing the window (i.e.
23996         while the GdkWindow is still unmapped) avoids the need to wait for
23997         a configure event response and therefore makes the GUI more snappier
23998         and avoids blank windows during the roundtrip.
23999
24000         * gtk/gtkwidget.c:
24001         (gtk_widget_hide): 
24002         (gtk_widget_show): don't queue resizes on toplevels, they know how
24003         to deal with matters.
24004
24005         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
24006         flag directly for not visible resize containers and spare us unecessary
24007         signal emissions.
24008
24009         * gtk/gtkwindow.c:
24010         (gtk_window_realize): if we need to enforce premature size allocation,
24011         queue a container resize so we are correctly resized later on.
24012         (gtk_window_init):
24013         (gtk_window_size_request):
24014         don't freak around with the ->need_resize flag,
24015         gtk_container_queue_resize() will care about that.
24016         (gtk_window_show):
24017         handle initial resizing issues here, we can handle matters better in
24018         this place, especially since we know that our GdkWindow is still
24019         unmapped.
24020         (gtk_window_move_resize):
24021         don't care about ->need_resize at all.
24022         handle size changes properly that occoured while we waited for a
24023         configure event.
24024
24025 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
24026
24027         * gtk/gtkwidget.c (gtk_widget_set_uposition):
24028         * gtk/gtkwindow.[hc] (gtk_window_reposition):
24029         Move the hint setting code from gtk_widget_set_uposition
24030         to here; set the hints so that we respect any previously
24031         set geometry hints.
24032
24033         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
24034         change the window hints here or move the window here,
24035         let that happen in gtk_window_move_resize().
24036
24037 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
24038
24039         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
24040         to already queued resizes (and therefore redraws) on a widget, check
24041         its anchestry as well.
24042
24043         * gtk/gtkcontainer.c:
24044         (gtk_container_queue_resize): clear resize widgets for resize
24045         containers before aborting prematurely. this is especially important
24046         for toplevels which may need imemdiate processing or their resize
24047         handler to be queued.
24048         (gtk_container_dequeue_resize_handler): added new internal function for
24049         gtkwindow.c.
24050
24051         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
24052         configure event, take possible changes in window position into account
24053         as well.
24054         if we request a new window size, queue up a resize handler that will
24055         last until the configure event response arrives.
24056         combined the ->need_resize case (initial show) with the general size
24057         (hints) changed case and added even more comments.
24058         if !auto_shrink, only revert to the old allocation if the new size
24059         is smaller than the current allocation.
24060
24061 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
24062
24063         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
24064                            gtk_window_set_geometry_hints
24065                            gtk_window_set_default_size):
24066         When hints are set, queue a resize so that the hints will
24067         be eventually reset on the toplevel.
24068
24069         * gtk/gtkwindow.c (gtk_window_show): Use
24070         gtk_window_compute_default_size(). Clear the need_resize flag
24071         on the initail map so that we don't unnecessarily trigger the
24072         resize code.
24073
24074         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
24075         into separate functions. Compare the hints we are setting
24076         with what we set last time so that we can accurately
24077         tell when we need to reset the hints.
24078
24079         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
24080         function to figure out the size from requisition
24081         and default_size.
24082
24083         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
24084         from fvwm to constrain a size to the geometry hints.
24085
24086         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
24087         to compare two sets of geometry hints.
24088
24089         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
24090         from gtk_window_set_hints(), just compute the hints,
24091         don't set them.
24092
24093         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
24094         code from gtk_window_move_resize() to separate function,
24095         rationalize a bit.
24096
24097 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
24098
24099         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
24100         structure into a new private structure.
24101
24102         * gtkrc.c: Split GtkRcStyle into public/private.
24103         In the private part, add a list of pointers to the
24104         RcStyle lists this RcStyle participates in.
24105
24106         * gtkrc.c: When a RcStyle is free, remove all
24107         lists referencing it from the 
24108         realized_style_ht hash, and free those lists.
24109         
24110         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
24111         gtk_rc_init(), since that adds the default styles
24112         to the list of parsed RC files again.
24113
24114         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
24115         
24116 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
24117
24118         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
24119         checks that ensure that a widget's allocation is at least 1 in width
24120         and height. (GNOME note: this doesn't affect old panel code anymore,
24121         because GtkSocket will request width and height of at least 1 since
24122         Fri Jul 23).
24123
24124         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
24125         allocated yet (happens if the user realizes the window prematurely),
24126         size request and allocate it.
24127         (gtk_window_size_allocate): guard against guint underflows.
24128
24129 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
24130
24131         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
24132         in gtk_built_sources, so gtk.defs gets built prior to all other
24133         sources.
24134
24135 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
24136
24137         * gtk/Makefile.am:
24138         invoke indent on gtkmarshal.*. 
24139         rewrote source generation rules, use COPYING as oldest source tag for
24140         a piggyback rule to generate all sources from (don't touch it ;).
24141         major cleanups, strip spaces on build rules for GNU Make.
24142
24143         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
24144         source and target files from commandline arguments. don't invoke indent.
24145
24146 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
24147
24148         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
24149         notebook after switch to avoid drawing problems.
24150         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
24151         
24152         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
24153         show them instead. 
24154         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
24155
24156 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
24157
24158         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
24159         notebook after switch to avoid drawing problems.
24160         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
24161         
24162         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
24163         show them instead. 
24164         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
24165
24166 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
24167
24168         * gtk/gtkwindow.c:
24169         we use window->need_resize from configure_event now, to indicate that
24170         the gtkwindow should keep its allocation (e.g. because the user resized
24171         the window through window manager handles). resize_count is now reliably
24172         used to figure whether we got the allocation we requested from the
24173         window manager.
24174         configure events get queued as resizes now, the real stuff (size
24175         computation and allocation) now only goes on in gtk_window_move_resize().
24176         GtkWindow's requisition now contains its *real* requisition (like all
24177         other widgets), *not* taking usize into account.
24178         geometry_info->last_{width|height} is now updated from set_hints() only
24179         so it always contains the last hints we set for the window manager.
24180         made some event handlers return TRUE instead of FALSE.
24181         the overall code should be much more straight forward now, and the
24182         significant code portions are accompanied by comments now.
24183         (gtk_window_set_hints):
24184         removed requisition argument and made it
24185         fetch the requisition through gtk_widget_get_child_requisition.
24186         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
24187         does that now.
24188         (gtk_window_show):
24189         ensure that the widget is realized before calling 
24190         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
24191         ensure that we got properly size requested and allocated before
24192         realization.
24193         (gtk_window_configure_event):
24194         ignore plain window moves, or reallocate the widget tree through the
24195         resize queue otherwise.
24196         (gtk_window_move_resize):
24197         mostly rewrote this function to figure window manager hints more
24198         reliably, coalesce window moves and resizes to reduce configure events
24199         and do actuall size allocations.
24200
24201 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
24202
24203         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
24204         that have a resize pending, because a redraw is already queued for them.
24205
24206         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
24207         hack to clear resize_widgets.
24208
24209         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
24210         for resize containers prior to size allocation. (this is also a bit
24211         ugly, but avoids side effects for stopped emissions and is thus more
24212         reliable).
24213         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
24214
24215         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
24216         function from gtk_tooltips_expose, as we connect to ::expose_event
24217         *and* ::draw now.
24218
24219 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
24220
24221         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
24222         checks.
24223         (gtk_target_list_unref): Likewise.
24224
24225         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
24226
24227 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
24228
24229         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
24230         guard against division by zero. (Fixes bug #1339)
24231
24232 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
24233
24234         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
24235         Prevent the trivial leak of information of allowing
24236         word motion when the entry is not visible.
24237
24238 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
24239
24240         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
24241         modality to error dialog as well as confirmation dialogs.
24242         (Bug #1803, reported by Rosanna Wing Sze Yuen)
24243
24244 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
24245
24246         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
24247         tree->view_lines.
24248         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
24249
24250         * gtk/Makefile.am (install-data-local): Solaris apparently
24251         has various troubles with ln -f; use rm first instead.
24252         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
24253
24254 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
24255
24256         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
24257         use `cp' followed by `rm' (the `rm' was already there).
24258
24259 July 30, 1999 Elliot Lee <sopwith@redhat.com>
24260         
24261         * configure.in: Fix autoconf warnings about cross compilation by
24262         trying to provide sane defaults for AC_TRY_RUN.
24263         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
24264         put them into $(srcdir) when generated. Also add a dependency of
24265         gtksignal.h on gtkmarshal.h for -j builds. 
24266         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
24267
24268 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
24269
24270         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
24271         GDK_THREADS_{LEAVE,ENTER} pair.
24272         (From Paul Fisher <pnfisher@redhat.com>)
24273
24274 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
24275
24276         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
24277         width and height are always >0 (owen).
24278
24279 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
24280
24281         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
24282         change that assured that a widget's allocated with and height are
24283         always >1, since this breaks *buggy* panel code. unfortunately this
24284         back-breaks the gimp's color selector.
24285
24286         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
24287         allocation is always >0 in width and height, before sending the
24288         configure event; this is a *gross* hack to get the gimp back to work.
24289         
24290         * marked both cases with TODO-1.3
24291
24292 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
24293
24294         * gtk/gtktext.c: Don't display wrap indicators when
24295         text is not editable and word wrap is on.
24296
24297 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
24298
24299         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
24300         option menus here as they are not derived from menu shell, assure that
24301         the option menu has a menu we can add items to.
24302
24303 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
24304
24305         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
24306         width/height to (gint) before calculations and check against < 0 to
24307         avoid guint wraparounds.
24308
24309 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
24310
24311         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
24312         width and height is never zero. sanity check both dimensions against
24313         32767 and issue a warning if the allocation is greater than that.
24314
24315 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
24316
24317         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
24318         to g_main_pending() as well.
24319
24320 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
24321
24322         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
24323         call to g_main_iteration() - since that will regrab
24324         GTK+ lock to process events.
24325
24326 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
24327
24328         * gtk/gtkwindow.c
24329         - Regularize with the rest of GTK+ by making widget->requisition
24330           not reflect the set_usize()
24331         - Always recompute geometry hints, then check if they
24332           changed before sending them to the X server. The
24333           previous checks for changes would fail in a number
24334           of circumstances. 
24335
24336 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
24337
24338         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
24339
24340 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
24341
24342         * gtk/gtkdnd.c:
24343         - Code cleanups
24344         - Instantaneously update on modifier key presses
24345         - Allow cancellation of the drag with Escape.
24346
24347 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
24348
24349         * gtk/testgtk.c (create_handle_box): Set the policy
24350         to auto_shrink - otherwise the appearance is rather
24351         strange when flipping between horizontal and vertical.
24352
24353 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
24354
24355         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
24356         (gtk_window_set_default_size): don't change a value if it's < 0.
24357         queue a resize.
24358
24359 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
24360
24361         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
24362
24363 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
24364
24365         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
24366         add an extra "/" when concating "/" + filename.
24367         (From Matt Grossman <mattg@oz.net>)
24368
24369 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
24370
24371         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
24372         for fg_gc if we set it for drawing pixmap.
24373
24374 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
24375
24376         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
24377         
24378         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
24379         already set, call old engine's destroy function and
24380         unref the old engine.
24381
24382 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
24383
24384         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
24385
24386 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
24387
24388         * gtk/gtkaccelgroup.h: mark certain functions as internal.
24389
24390 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
24391
24392         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
24393         expand behaviour changed.
24394
24395         * gtk/gtklabel.c (gtk_label_set_pattern):
24396         (gtk_label_set_justify):
24397         (gtk_label_set_line_wrap):
24398         don't bother invoking queue_clear, the reallocation does
24399         that for us, always free_words so the upcoming resize will
24400         relayout the label's contents.
24401
24402 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
24403
24404         * applied argument implementation patches from Elena Devdariani
24405         <elena@cogent.ca>.
24406
24407         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
24408         ::space_style, ::relief
24409         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
24410         * gtk/gtkpreview.c: ::expand
24411         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
24412         * gtk/gtknotebook.c: ::homogeneous
24413         * gtk/gtklabel.c: ::wrap
24414         * gtk/gtklist.c: ::selection_mode
24415         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
24416         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
24417         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
24418         * gtk/gtkclist.c: ::sort_type
24419         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
24420         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
24421
24422 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
24423
24424         * gtk/gtkstyle.c: Removed ill-thought-out part of last
24425         comment.
24426
24427 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
24428
24429         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
24430         counting right when we have to attach a new style
24431         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
24432
24433         * gtk/gtkstyle.c: Documented the refcounting
24434         peculularities of gtk_style_attach.
24435
24436 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
24437
24438         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
24439         window types.
24440
24441         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
24442         of GTK_TOPLEVEL for creating the window.
24443
24444 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
24445
24446         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
24447         the last argument (reported by Per Winkvist).
24448         
24449 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
24450
24451         Fixes for invisible XOR lines (Frank Loemker
24452         <floemker@TechFak.Uni-Bielefeld.DE>)
24453         
24454         * gtk/gtkclist.c (gtk_clist_realize): Always use
24455         a non-zero pixel for GDK_XOR.
24456
24457         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
24458         Use GDK_INVERT instead of GDK_XOR.
24459
24460 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
24461
24462         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
24463         signals if h/voffsets differ from adjustment values.
24464         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
24465
24466 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
24467
24468         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
24469         ::selection-done emissions up to the topmost menu shell.
24470
24471 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
24472
24473         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
24474         the user data on the window before destroying it.
24475
24476         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
24477         unrealize handler to take care of destroying 
24478         notebook->panel properly. 
24479         (Bug #1198 - Morten Welinder <terra@diku.dk>)
24480
24481         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
24482         of g_new and g_realloc to stop memory leak. (Actually,
24483         we could just use g_realloc(), but I'm not 100% sure
24484         that is portable).
24485         (Bug #1196 - Morten Welinder <terra@diku.dk>)
24486
24487 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
24488
24489         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
24490
24491         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
24492         for fontsets.
24493
24494         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
24495         with bin/button confusion.
24496
24497 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
24498
24499         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
24500         and show how preselection of radio items is done.
24501
24502 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
24503
24504         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
24505         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
24506         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
24507         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
24508         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
24509         * gtk/gtktable.c (gtk_table_attach): 
24510         * gtk/gtklist.c (gtk_list_insert_items): 
24511         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
24512         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
24513         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
24514         * gtk/gtkbin.c (gtk_bin_add): 
24515         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
24516         * gtk/gtkfixed.c (gtk_fixed_put): 
24517         * gtk/gtklayout.c (gtk_layout_put):
24518         general fixups to container_add logic. always realize child if
24519         child->parent is realized, only map the child and queue a resize
24520         if child and child->parent are both visible.
24521
24522 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
24523
24524         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
24525         instead of gtk_container_foreach to walk and unrealize children, so
24526         composite children get also unrealized.
24527         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
24528         (gtk_widget_map): assert that the widget is visible (basic constrain).
24529         (gtk_widget_real_map): assert that the widget is realized (basic
24530         constrain).
24531
24532 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
24533
24534         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
24535
24536 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
24537
24538         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
24539         file for iso-8859-2 locales.
24540
24541         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
24542
24543 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
24544
24545         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
24546          (Pointed out by andy@rz.uni-karlsruhe.de and others).
24547          Remove some suspicious and useless lines. 
24548
24549 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
24550
24551         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
24552         width,height = 0, 0 to mean - here to edge of window,
24553         instead of -1, -1, since the former is all we support.
24554
24555 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
24556
24557         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
24558         when removing from quit_functions list.
24559
24560 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
24561
24562         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
24563
24564 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
24565
24566         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
24567          When redrawing characters on non-visible entry, use appropriate
24568          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
24569
24570 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
24571
24572         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
24573         from drag coordinates.
24574         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
24575         use drag_dest_cell.
24576
24577         * gtk/gtktree (drag_dest_cell)
24578         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
24579         (Bug #1129)
24580
24581 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
24582
24583         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
24584         translate_* fields.
24585         (gtk_item_factory_finalize): invoke translate_notify independant from
24586         translate_data.
24587         (gtk_item_factory_set_translate_func): likewise.
24588         (gtk_item_factory_destroy): only remove ifactory pointer from those
24589         widgets that belong to us (stupid me).
24590
24591 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
24592
24593         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
24594         rc_style list when lookup succeeeds.
24595
24596 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
24597
24598         * gtk/gtkctree.c (resync_selection): 
24599         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
24600         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
24601         bug.
24602
24603 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
24604
24605         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
24606         Add some missing GDK_THREADS_ENTER()/LEAVE around
24607         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
24608
24609 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
24610
24611         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
24612         rather than emit_by_name.
24613
24614         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
24615         on the widget across multiple signal emissions.
24616         (gtk_editable_delete_text): same here.
24617         (gtk_editable_class_init): set widget_class->activate_signal after
24618         editable_signals[ACTIVATE] has been created.
24619
24620 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
24621
24622         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
24623         position here prematurely -- we might not have the
24624         right ->min_position and ->max_position yet.
24625
24626 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
24627
24628         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
24629         Add error traps so if the other end of the connection
24630         dies, we survive.
24631
24632         * gtk/gtkselection.c (gtk_selection_notify): Clean
24633         up properly when selection property retrieval fails.
24634         
24635         * gtk/gtkselection.c (gtk_selection_request): Correctly
24636         reject SelectionRequest notifies where the handler
24637         returns no data.
24638
24639 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24640
24641         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
24642         when we've previously highlighted.
24643
24644         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
24645         emit two "drag_leave" signals for Motif drops.
24646
24647         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
24648         back the correct status messages when dropping from
24649         Motif onto a proxy window that is rejecting the
24650         drop.
24651
24652 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
24653
24654         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
24655         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
24656         to compare two argument values. added gtk_arg_to_valueloc() to set a
24657         variable from an arg through its location (pointer).
24658
24659         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
24660         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
24661         as gfloat*, uchars are collected as guchar*, ints are collected as
24662         gint*, etc...
24663
24664 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
24665
24666         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
24667         Include <string.h> instead of <strings.h>.
24668
24669         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
24670         (actually, a lot more duplicate includes occur if
24671          you trace through the sequence of #include's)
24672         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
24673         
24674 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
24675
24676         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
24677         gtk-a-higuti-990322-[0-3]
24678
24679         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
24680         that was causing -DX_LOCALE not to work.
24681
24682         * gtk/gtkrc.c (gtk_rc_init):
24683         X_LOCALE will never have LC_MESSAGES defined
24684
24685 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
24686
24687         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
24688         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
24689
24690         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
24691         left/right as well (gtk-michael-980726-0.patch.gz).
24692
24693         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
24694         for pointer values, use gchar instead of char. fixed uline allocation
24695         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
24696         chunks instead of G_ALLOC_ONLY.
24697         (gtk_label_size_request): always alter requisition as passed and leave
24698         widget->requisition alone.
24699         (gtk_label_set_text): allow NULL strings.
24700         (gtk_label_new): likewise.
24701
24702 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
24703
24704         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
24705
24706 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
24707
24708         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
24709         *and* mapped (i.e. drawable).
24710         (gtk_bin_expose): only send exposes to drawable children.
24711
24712         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
24713         (gtk_box_expose): only send exposes to drawable children.
24714
24715         * gtk/gtkhscale.c (gtk_hscale_draw): 
24716         * gtk/gtkvscale.c (gtk_vscale_draw):
24717         hm, this is an ugly one. we first compute the size of our trough area
24718         here (window relative) and then check intersection with the draw_area
24719         which is parent relative because we're a NO_WINDOW widget, so we need
24720         to offset the trough area by allocation.x and allocation.y before the
24721         check. (this must not be done for the background area though, since
24722         that's already computed parent relative).
24723
24724 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
24725
24726         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
24727         unrealize title buttons.
24728
24729 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
24730
24731         * gtk/gtkclist.c (gtk_clist_column_title_passive)
24732         (gtk_clist_column_title_active): 
24733         only connect/disconnect to GtkWidgetClass::event to block mouse events.
24734
24735         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
24736         zero initialize event, removed superfluous gdk_window_get_pointer call
24737
24738         * gtk/gtklist.c (gtk_list_vertical_timeout)
24739         (gtk_list_horizontal_timeout): removed superfluous
24740         gdk_window_get_pointer call
24741
24742 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
24743
24744         * plugging problems reported by "Bruce Mitchener, Jr."
24745         <bruce@puremagic.com> due to a purify session.
24746
24747         * gtk/gtkstyle.c:
24748         (gtk_style_ref): 
24749         (gtk_style_unref): assert ref_count to be > 0.
24750
24751         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
24752         the requisition.
24753         (gtk_clist_set_shift): likewise.
24754
24755         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
24756         adjustments.
24757
24758         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
24759         event before sending it and set send_event to TRUE (which needs to
24760         be done for *all* synthesized events).
24761         (gtk_list_vertical_timeout): likewise.
24762
24763         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
24764         leaks.
24765
24766         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
24767         to TRUE when synthesizing events.
24768
24769 [ *** end of merges from 1.2 *** ]      
24770         
24771 1999-11-21  Tor Lillqvist  <tml@iki.fi>
24772
24773         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
24774         (or copied from gdkconfig.h.win32 on Win32, sigh).
24775
24776         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
24777
24778         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
24779
24780         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
24781
24782         * gdk/gdkconfig.h.win32: New file.
24783
24784         * gdk/win32/makefile.cygwin: Build just a static archive here.
24785
24786         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
24787         for the DLL from the static archive built above.
24788
24789         * gdk/gdk.def: Moved here from the win32 subdirectory.
24790
24791         * gdk/win32/*: Adapt for the changed private struct organisation.
24792
24793         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
24794
24795 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
24796
24797         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
24798         for wheel mice (buttons 4 and 5).
24799
24800 1999-11-18  Tor Lillqvist  <tml@iki.fi>
24801
24802         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
24803         drawables use just the pixel field in the foreground and
24804         background GdkColor of the GdkGC.
24805
24806         gdk_gc_set_{fore,back}ground() are called in the GIMP with
24807         GdkColors containing uninitialized (red,green,blue) fields, and
24808         just the pixel field filled in, and furthermore in the
24809         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
24810         It thus turns out that we really don't need to have the full
24811         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
24812         it later to have just the pixel values.
24813
24814 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
24815
24816         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
24817
24818 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
24819
24820         * docs/gtkfaq.sgml: threads example from Erik Mouw.
24821         New question on GtkLabel background colors.
24822
24823         * docs/gtk_tut.sgml:
24824           - Correct the example code callback
24825             function definitions.
24826           - Update the gtkdial example code, from Frans van Schaik.
24827           - Update setselection.c to current API.
24828
24829         * examples/Makefile examples/*/*.c: Update to code
24830         listed in tutorial.
24831
24832 1999-11-10  Tor Lillqvist  <tml@iki.fi>
24833
24834         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
24835         subrange table (from the "Developing International Software for
24836         WIndows 95 and Windows NT" book) was missing the Hangul syllable
24837         block... Get the loaded font's charset correctly.
24838
24839         (Note that this, and the other *-win32.c files, still really are
24840         the old ones, the win32 subdirectory is not ready for compilation
24841         yet after the reorg.)
24842
24843 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
24844
24845         * gtk/gtkclist.c: Fix off-by-one bug in parameter
24846         check.
24847
24848 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
24849
24850         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
24851         on results of XQueryDeviceState().
24852
24853 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
24854
24855         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
24856         we need to accesss only ->children. We need an accessor
24857         for the children.
24858
24859         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
24860         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
24861         to get rid of gdkx.h include.
24862         
24863         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
24864         and random references to 'None'.
24865
24866         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
24867         Get rid of unused #include <gdk/gdkx.h>
24868
24869         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
24870         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
24871         gdkconfig.h.
24872
24873 1999-11-08  Tor Lillqvist  <tml@iki.fi>
24874
24875         * gdk/win32/gdkdraw.c
24876         * gdk/win32/gdkfont.c
24877         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
24878         following yesterday's changes. (Unrelated to Owen's reorg.)
24879
24880 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
24881
24882         * gdk/x11/gdkinput-gxi.c: Add missing include,
24883           fix GdkWindowPrivate => GdkDrawablePrivate.
24884
24885         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
24886
24887         * gdk/x11/Makefile.am (xinput_sources): Add missing
24888         backslash to fix building with --with-xinput=none
24889
24890 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
24891
24892         Move all X specific code into the x11/ directory.
24893         Aside from shuffling things around, did the following:
24894
24895        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
24896          gdk_arg_context_* - a simple argument parsing system
24897          in the style of popt.
24898
24899        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
24900          gdk/x11/gdkprivate-x11.h:
24901          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
24902          add ->klass and ->klass_data fields. The klass_data
24903          field points to an auxilliary structure that is
24904          windowing system dependent.
24905
24906        * gdk/gdkfont.c: Make most of the measurement functions
24907          simply wrappers around gdk_text_extents().
24908
24909        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
24910          _gdk_font_strlen() function that hides the weird
24911          behavior in gtk+-1.[02] where a string is interpreted
24912          differently for 8-bit and 16-bit fonts.
24913
24914        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
24915          to store common code for synthesizing double/triple
24916          press events.
24917         
24918        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
24919          Make all the function that modify an existing GC
24920          simply wrappers around gdk_gc_set_values().
24921          
24922        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
24923          for throwing out later.
24924
24925        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
24926          GdkImagePrivate and GdkColormapPrivate to have a
24927          windowing system dependent part (GdkFontPrivateX etc.)
24928          that "derives" from the system-independent part.
24929
24930        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
24931          Got rid of the included-source-files for XInput in
24932          favor of automake conditionals. (Which didn't exist
24933          when XInput support was originally added.)
24934
24935        * gdk/gdkrgb.c: Remove the visual id from the debugging
24936          statements since that is X11 specific; print out
24937          type/depth info instead.
24938          
24939
24940 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
24941
24942         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
24943         loading duplicates of hashed fonts.
24944
24945         * gdk/gdk.c (gdk_keysym_convert_case): rename
24946         gdk_XConvertCase to gdk_keysym_convert_case, allow
24947         results to be NULL in the GTK+ style.
24948
24949         * gdk/gdkcompat.h: Started compatibility header
24950         for renames.
24951
24952 1999-11-07  Tor Lillqvist  <tml@iki.fi>
24953
24954         * gdk/win32/gdkprivate.h: New font private structures, related to
24955         fontsets.
24956
24957         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
24958         gdk_font_list_free(). On X11, will just be wrappers to
24959         XListFonts() and XFreeFontNames(). On Win32, the code previously
24960         in gtkfontsel.c is now here.
24961
24962         New function gdk_font_xlfd_create(). On X11 will get the FONT
24963         property of the font (for GDK_FONT_FONTs), or call
24964         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
24965         builds a XLFD style name from the font information in the LOGFONT
24966         struct(s).
24967
24968         New function gdk_font_xlfd_free(), which correspondingly frees the
24969         string returned by gdk_font_xlfd_create().
24970
24971         Implement fontsets on Win32. Add a function that iterates over a
24972         wide char string and calls a callback function for each substring
24973         of wide chars from the same Unicode subrange (and thus probably
24974         available in the same real font).
24975
24976         Improve the XLFD emulation a bit.
24977
24978         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
24979
24980         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
24981         Beta3, WM_IME_CHAR messages don't seem to contain the composed
24982         multi-byte char as with the Active IMM on Win9x. Oh well, handle
24983         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
24984         ImmGetCompositionStringW() to get the composed Unicode chars.
24985
24986         * gdk/win32/gdkgc.c
24987         * gdk/win32/gdkdraw.c: Changes needed because of the font private
24988         struct changes.
24989
24990         * gdk/win32/gdk.def: Add the new functions.
24991
24992 1999-11-04  Tor Lillqvist  <tml@iki.fi>
24993
24994         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
24995         get the Platform SDK to get <dimm.h>.
24996
24997         * gdk/win32/gdkevents.c: More event handling fixes and
24998         simplification. Never generate motion events with is_hint true. We
24999         used to do that on bogus grounds earlier. Windows sends
25000         WM_MOUSEMOVE messages on button events even if the mouse hasn't
25001         moved, ignore these.
25002
25003         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
25004
25005         * gdk/win32/gdkglobals.c
25006         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
25007         the TrackMouseEvent function, and use it.
25008
25009         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
25010         char before calling WideCharToMultiByte in order to get a string
25011         for the window title.
25012
25013         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
25014
25015         * gdk/win32/gdk.def: Remove obsolete functions.
25016
25017         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
25018         /nodefaultlib and /defaultlib switches.
25019
25020         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
25021
25022 1999-10-31  Tor Lillqvist  <tml@iki.fi>
25023
25024         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
25025         EuroSign).
25026
25027         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
25028         same type as GdkWChar, especially on Win32.
25029
25030         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
25031
25032         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
25033         before passing to Windows GDI for drawing etc. Convert to the
25034         system default codepage before passing to Windows as window
25035         titles.
25036
25037         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
25038         support changing input locale on the fly.
25039
25040         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
25041         on-the-fly changes. Convert incoming characters from the current
25042         codepage to Unicode (and then to a UTF-8 multi-byte string) based
25043         on the current input language. Use keysym<->Unicode mapping tables
25044         and functions borrowed from xterm sources.
25045
25046         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
25047         editions of Win9x, use the ActiveX-based Active IMM (Input Method
25048         Manager) if available. IMEs and the Active IMM are available under
25049         the disguise of Chinese, Korean and Japanese support for IE and
25050         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
25051         support is present in all editions (as long as you install it).
25052
25053         Call DispatchMessage from gdk_events_queue() (and thus
25054         gdk_WindowProc()), instead of duplicating the code in
25055         gdk_WindowProc().
25056
25057         Reworked the grab handling and propagation code, factored out
25058         duplicated code snippets into separate functions. Other cleanups,
25059         too.
25060
25061         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
25062         the <dimm.h> header describing the Active IMM.
25063
25064         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
25065         just do the same as for "single" fonts.
25066
25067         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
25068         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
25069         the new keysyms from gdkkeysyms.h.
25070
25071         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
25072         fontset, so that gtkentry uses wide characters.
25073
25074         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
25075         GTk+'s system directory "gtk+", not "gtk".
25076
25077 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
25078
25079         * docs/gtkfaq.sgml: FAQ update
25080
25081 1999-10-21  Tor Lillqvist  <tml@iki.fi>
25082
25083         * gdk/win32/gdkprivate.h: Add more font private data.
25084
25085         * gdk/win32/gdkfont.c
25086         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
25087         fonts and strings. Now works much better. You still have to
25088         have a correct font selected, though. No fontset emulation yet.
25089
25090 1999-10-19  Tor Lillqvist  <tml@iki.fi>
25091
25092         * gtk/maketypes.awk: Use G_OS_WIN32.
25093
25094         * gtk/gtk.def: Add some missing entry points. Also some non-public
25095         ones, but PyGTK porter claims to need them.
25096
25097         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
25098         built-in type generation.
25099
25100 1999-10-14  Tor Lillqvist  <tml@iki.fi>
25101
25102         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
25103         GDK_FONT_FONT fonts (which is all we have for now, we don't
25104         emulate fontsets). The X11 version uses plain XDrawString in that
25105         case, too. The string passed to gdk_draw_text_wc seems to be in
25106         fact (at least, when used by gtkentry and gtktext) either in a
25107         single-byte charset, or a DBCS. Not Unicode.
25108
25109         This fixes the problem in gtkfontsel, where even if you had
25110         selected a font with a non-Latin1 charset (windows-greek, for
25111         instance), the preview still used Latin-1 glyphs.
25112
25113         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
25114         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
25115         (gdk_font_load): Recognize the demibold etc weights, even if we
25116         don't have the corresponding constants in the headers.
25117         (gdk_font_hash_insert): Use same hash mechanism as in the X11
25118         version. Should save font resources a bit, when we don't have
25119         multiple HFONTs for the same font.
25120
25121         * gdk/win32/gdkprivate.h: Add the names field as in the X11
25122         version.
25123
25124 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
25125
25126         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
25127         X values
25128
25129 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
25130
25131         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
25132         layout support (as mentioned on
25133         http://www.jcinteractive.com/gnome-ui/software/widgets/)
25134
25135 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
25136
25137         * gtk/fnmatch.c
25138         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
25139
25140 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
25141
25142         * configure.in (ALL_LINGUAS): Added Galician (gl)
25143
25144 1999-10-05  Tor Lillqvist  <tml@iki.fi>
25145
25146         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
25147
25148         * gdk/win32/gdkcompat.c: New file, actually provide an
25149         implementation for the deprecated functions. (Just temporarily.)
25150
25151         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
25152
25153         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
25154
25155         * gdk/win32/gdk.def gtk/gtk.def: Updates.
25156
25157 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
25158
25159         * configure.in: Added "uk" to ALL_LINGUAS.
25160         
25161 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
25162
25163         * configure.in: correct checking for BeOS check
25164
25165         * gdk/gdktypes.h
25166         * gtk/fnmatch.c
25167         * gtk/gtkfilesel.c
25168         * gtk/gtkitemfactory.c
25169         * gtk/gtkmain.[ch]
25170         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
25171
25172 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
25173
25174         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
25175         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
25176         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
25177         by Bulgarian). 
25178
25179 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
25180
25181         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
25182         Fix a reference to window_private->destroyed.   
25183
25184         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
25185         (ugly) setting of an internal GdkWindow member to use
25186         a _slightly_ cleaner macro.
25187
25188         * gdk/gdkprivate.h: Split GdkWindowPrivate into
25189         GdkDrawablePrivate and GdkWindowPrivate.
25190         Add extra macros for accessing GDK_DRAWABLE_ components.
25191
25192         * *.[ch]: Massive adjustments for the above, use the
25193         new macros in a lot of places.
25194
25195 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
25196
25197         * gdk/gdktypes.h: Make GdkDrawable the base type,
25198         not GdkWindow.
25199
25200 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
25201
25202         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
25203
25204 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
25205
25206         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
25207
25208 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
25209
25210         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
25211         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
25212
25213         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
25214
25215         * docs/gtk-config.1: Now autogenerated.
25216         * docs/Changes-1.4.txt: started
25217         
25218 1999-10-03  Tor Lillqvist  <tml@iki.fi>
25219
25220         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
25221         to #ifdef also here.
25222
25223         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
25224         Owen did to the X11 backend.
25225
25226         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
25227         ScrollWindowEx when blitting inside a window, it can't be correct
25228         in the general case.
25229
25230         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
25231         WM_GETMINMAXINFO is easier.
25232
25233         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
25234         depth equal to the bitspixel value, not the visual's depth.
25235
25236         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
25237         to 24 even if the bitspixel value is 32.
25238
25239         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
25240         need to check for depth==32 when bpp==32, depth will always be 24.
25241
25242 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
25243
25244         * docs/Changes-1.4.txt: Started
25245         
25246         * gtk/Makefile.am (gdk_headers): Include all the new headers.
25247
25248         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
25249         
25250         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
25251         into C file.
25252         
25253         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
25254         header to gdkinputprivate.h.
25255
25256         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
25257         unused since before 1.2.
25258
25259 1999-09-30  Tor Lillqvist  <tml@iki.fi>
25260
25261         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
25262         expand possible hex escapes in the font family (put there by
25263         logfont_to_xlfd if the font name isn't a legal XLFD font family,
25264         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
25265         On Win32, add hex escapes here, too.
25266
25267 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
25268
25269         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
25270         to #ifdef GDK_WINDOWING_X11.
25271
25272 [ Merges from gtk-1-2 ]
25273
25274 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
25275
25276         * configure.in: fixed "GNU Make" check to pass with new make version
25277         3.77.95.
25278
25279 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
25280
25281         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
25282         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
25283         AM_PATH_GTK() macros don't get confused by the -pre1.
25284
25285 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
25286
25287         * configure.in (REBUILD): Change check for perl5
25288           to check explicitely for v >= 5.002. (5.001
25289           does not work with our scripts.)
25290
25291 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
25292
25293         * configure.in: evaluate $PERL for the perl version check. added
25294         --disable-rebuilds to give the user an option to completely disable
25295         any source autogeneration rules.
25296
25297 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
25298
25299         * configure.in: evaluate $ac_make when checking for GNU Make.
25300
25301 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
25302
25303         * docs/Makefile.am: added generation.txt.
25304
25305         * Makefile.am: require automake 1.4, build README from README.in and
25306         INSTALL from INSTALL.in in dist-hook.
25307         
25308         * README.in:
25309         * INSTALL.in: new files to autogenerate README and INSTALL from.
25310
25311         * configure.in: figure whether we have GNU Make
25312
25313         * docs/generation.txt: minor additions/corrections.
25314
25315 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
25316
25317         * docs/gtkfaq.sgml: FAQ Update
25318
25319 July 30, 1999 Elliot Lee <sopwith@redhat.com>
25320         
25321         * configure.in: Fix autoconf warnings about cross compilation by
25322         trying to provide sane defaults for AC_TRY_RUN.
25323
25324 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
25325
25326         * ltconfig
25327         * ltmain.sh: upgrade to libtool 1.3.3
25328
25329 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
25330
25331         * INSTALL: Indicate that the --with-glib= configure
25332         time flag is unsupported.
25333
25334 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
25335
25336         * docs/generation.txt: Added a file that gives
25337         documenation about the autogeneration process for
25338         various autogenerated files.
25339         
25340 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
25341
25342         * configure.in (LIBS): Look for libgmodule in the
25343         right location.
25344
25345 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
25346
25347         * docs/gtk_tut.sgml: Removed references to
25348         code examples in my directory on gtk.org as
25349         they should all be in the tutorial now.
25350
25351         * docs/gtk_tut.sgml: Added sources for dial-test
25352         and scribble-xinput programs that were previously
25353         missing.
25354
25355 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
25356
25357         * TODO: Added entry about menu keyboard navigation, removed
25358         some finished items.
25359
25360 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
25361
25362         * acinclude.m4: Standardize on func_dgettext
25363         not func_gettext, so that the checks for dgettext
25364         actually are paid attention to.
25365
25366 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
25367
25368         * configure.in (LIBS): Add $INTLLIBS into $LIBS
25369         directly, rather than repeating the checks for
25370         gettext.
25371
25372         * INSTALL: Added information about gettext and
25373         NLS support.
25374
25375         * acinclude.m4 (LIBM): Check for dgettext, not
25376         just gettext. This should hopefully fix things wrt
25377         systems with old versions of GNU gettext installed.
25378
25379 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
25380
25381         * configure.in (LIBS): Look for libgmodule in the
25382         right location.
25383
25384 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
25385
25386         * autogen.sh: add --enable-maintainer-mode
25387
25388         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
25389
25390 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
25391
25392         * docs/gtk-config.1.in:
25393           docs/Makefile.am:
25394           configure.in: gtk-config is now generated.
25395
25396         * docs/gtk-config.1: Removed, now generated.
25397
25398 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
25399
25400         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
25401         handle CreateNotify itself, still put out a debuging message for
25402         --gdk-debug=events. made the ReparentNotify debugging message more
25403         verbose.
25404         wrap xcoords translation for ConfigureEvents into an error trap,
25405         a destroy event may already be pending, and in that case, the
25406         actuall coordinate values are not at all critical.
25407
25408 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
25409
25410         * gdk/gdkcc.c: Stop leaking the color_hash all over
25411         the place. Simplify and improve the logic.
25412
25413 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
25414
25415         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
25416         for prototypes and function implementations consistent (reported
25417         by Tomas Ogren).
25418
25419 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
25420
25421         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
25422         send_event set in debugging output.
25423         (gdk_compress_exposures): default initialize the event so we don't
25424         operate on bogus values (namely send_event).
25425
25426 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
25427
25428         * gdk/gdkwindow.c: When we receive an unexpected
25429         destroy notify on one of our windows, don't just
25430         warn about it, also mark our windows as destroyed.
25431
25432 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
25433
25434         * gdk/gdkfont.c (gdk_font_hash_insert): Add
25435           name => font and name => fontset hashes. The 
25436           name => fontset hash is a _big_ win since we
25437           weren't previously caching fontsets at all and loading
25438           fontsets is expensive. The name => font hash
25439           is less of a win, but it does save us from doing
25440           repeated XQueryFont calls on the same font.
25441
25442         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
25443           list so we can remove font/fontset from hash.
25444
25445 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
25446
25447         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
25448           and slightly confusing test. [ XInternAtom (,,TRUE)
25449           will never return None ].
25450
25451 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
25452
25453         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
25454           gdk/gdkwindow.c (gdk_window_set_hints):
25455
25456         Don't omit setting the properties if flags == 0 -
25457         there may be an existing set of properties there
25458         already. (Very old bug. Would it be better to
25459         delete the property instead?)
25460
25461         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
25462           spelling error in comment.
25463
25464 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
25465
25466         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
25467           to avoid stomping over gdk_error_warnings.
25468
25469         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
25470           as (bits_per_pixel + 7) / 8. This gives the same
25471           result as before for multiples of 8, but actually
25472           a "reasonable" value for 1bit or 4bit displays.
25473
25474 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
25475
25476         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
25477         GNU Make.
25478
25479 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
25480
25481         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
25482         discarding configure events.
25483
25484 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
25485
25486         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
25487         refcount is greater than zero.
25488
25489         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
25490
25491         * gdk/gdkfont.c (gdk_font_unref): Likewise.
25492
25493         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
25494
25495         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
25496
25497 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
25498
25499         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
25500         that format 32 => sizeof(item) == 4. It really is
25501         sizeof(long).
25502
25503 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
25504
25505         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
25506         core dump at all on X IO errors, only core dump
25507         if --enable-debug for X errors.
25508
25509 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
25510
25511         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
25512         unknown window:" message. disabled ConfigureNotify discarding code,
25513         because it led to events being processed out of order.
25514
25515 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
25516
25517         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
25518
25519         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
25520         we export this function, supress error warnings and don't reset the
25521         error code in the first half of this function.
25522
25523         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
25524         code (instead of just -1) so gdk_error_trap_pop() reveals something
25525         actually informative about the error that happened.
25526
25527         * gdk/*.c:
25528         don't rely on gdk_error_code being -1 if an error occoured, but just
25529         gdk_error_code != 0.
25530
25531 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
25532
25533         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
25534         pointer *before* invoking the filter function, so we at least don't
25535         crash if a filter is removed that is currently executed. window filters
25536         *really* need to be made truely reentrant at some point.
25537
25538 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
25539
25540         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
25541         PropertyNotify debug messages.
25542
25543 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
25544         
25545         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
25546         
25547         * gdk/gdkim.c: Fix cut-and-paste errors for 
25548         x/y and PreeditAttributes/StatusAttributes.
25549
25550 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
25551
25552         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
25553         G_MAXINT to 2^16 to alleviate overflow problems in
25554         various window managers.
25555
25556 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
25557
25558         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
25559         for fontsets.
25560
25561 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
25562
25563         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
25564         Initialize size_hints.x and size_hints.y because kwm
25565         brokenly pays attention to them.
25566         (Bug #1181 -  Lars Heete <hel@admin.de>)
25567
25568 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
25569
25570         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
25571         return value of gdk_list_visuals(). 
25572         (Bug #1193 - Morten Welinder <terra@diku.dk>)
25573
25574 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
25575
25576         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
25577         XSetIMValues to (void *) when comparing to NULL, to workaround
25578         the problem of some compilers barfing since older X headers don't
25579         have the prototype for it.
25580
25581 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
25582
25583         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
25584         for pseudocolor where colormap->colors was double
25585         allocated.
25586
25587         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
25588         color value in the hash table with the pixel filled
25589         in so when we do later hash table lookups, the color
25590         value is correct.
25591         
25592 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
25593
25594         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
25595         making the call
25596
25597 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
25598
25599         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
25600         pointed out by Morten Welinder <terra@diku.dk>.
25601
25602 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25603
25604         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25605           default filter from the list
25606
25607 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25608
25609         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25610           default filter from the list
25611
25612 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
25613
25614         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
25615
25616         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
25617         g_strdup_printf instead of calcing the length separately
25618
25619 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
25620
25621         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
25622         that we don't do in many other places. (Fixing duplicate 
25623         #include of config.h)
25624
25625         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
25626         Otherwise, #ifndef XINPUT_NONE check in the latter
25627         doesn't work. (Bug #546)
25628
25629 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
25630
25631         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
25632         "None" case insensitive.
25633
25634 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
25635
25636         * gdk/gdkselection.c: 
25637         Add error traps so if the other end of the connection
25638         dies, we survive.
25639
25640 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
25641
25642         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
25643         dest_xid field into two fields - one for the window
25644         to send in messages, one to indicate the last looked
25645         up window for caching purposes. This is needed, so
25646         that Leave messages get the correct window.
25647
25648 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
25649
25650         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
25651         Fix warning created by people mucking around
25652         with the gsource API.
25653
25654         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
25655         Change mapping between GIOCondition and GdkInputCondition
25656         to match the way the Linux kernel does it. This should
25657         fix problems where closed pipes were no longer signalling
25658         GDK_INPUT_READ on systems with a native poll().
25659
25660 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
25661
25662         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
25663         explicitly for the string "None" - it is in the XPM
25664         spec and some servers treat unknown colors in odd ways
25665         (like asking the user!)
25666
25667 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
25668
25669         * gdk/gdkevents.c: made "->" into a "." of previous change so
25670         it compiles
25671
25672 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
25673
25674         * gdk/gdkevents.c (gdk_compress_exposures): Set the
25675         window field of the event structure before calling
25676         user filters.
25677
25678 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
25679
25680         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
25681         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
25682
25683 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
25684
25685         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
25686         intermediate text property - prevents major memory
25687         leak when gdk_use_mb.
25688         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
25689
25690 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
25691
25692         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
25693         gtk-a-higuti-990322-[0-3]
25694
25695         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
25696         sizeof(wchar_t) != sizeof (GdkWChar)
25697
25698         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
25699         that was causing -DX_LOCALE not to work.
25700
25701         * gtk/gtkrc.c (gtk_rc_init):
25702         X_LOCALE will never have LC_MESSAGES defined
25703
25704         * gdk/gdk.c (gdk_init_check):
25705         Remove --xim-preedit and --xim-status from argv properly.
25706
25707         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
25708         that the client window is present on the X server
25709         before we pass it to the input method.
25710
25711 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
25712
25713         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
25714         if --display is specified on the command line, than
25715         the drag window will not be created on that display.
25716         
25717 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
25718
25719         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
25720         lookups with only_if_exists == TRUE were inserting
25721         bogus values into the atom cache.
25722
25723 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
25724
25725         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
25726         then reset it to NULL.
25727
25728         * gdk/gdkcolor.c:
25729         (gdk_colors_free): 
25730         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
25731         key for g_hash_table_remove() in both functions, this prevents us
25732         from accessing possibly uninitialized portions of a GdkColor structure
25733         where we are only interested in its pixel value.
25734
25735 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
25736
25737         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25738         font hash table, if we have a GdkFontPrivate entry for this font
25739         already, simply increment its reference count, provided by Olaf Dietsche
25740         <olaf.dietsche+list.gtk@netcologne.de>.
25741
25742 1999-09-21  Tor Lillqvist  <tml@iki.fi>
25743
25744         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
25745         just to be sure.
25746
25747         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
25748         unused variables, leftovers from the X11 version.
25749
25750         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
25751
25752         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
25753         downcase fields on X11.
25754
25755 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
25756         
25757         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
25758         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
25759
25760 1999-09-17  Tor Lillqvist  <tml@iki.fi>
25761
25762         * gdk/win32/gdk.def: Add gdk_threads_mutex.
25763
25764         * gtk/makefile.msc: Correct path to libintl.
25765
25766         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
25767         use of gint vs. int, and gint vs. gboolean in headers and
25768         definitions. Use GtkType for the *_get_type functions. Note that
25769         these changes preserve binary compatibility.
25770
25771         * gdk/gdk.c
25772         * gdk/win32/gdk.c
25773         * gdk/gdk.h: Fix inconsistencies: gint vs int.
25774
25775         * gtk/gtkmain.c
25776         * gtk/gtkclist.c
25777         * gtk/gtkmenufactory.c
25778         * gtk/gtknotebook.c
25779         * gtk/gtkwidget.c: Fix inconsistencies, also gint
25780         vs. gboolean.
25781
25782         * gtk/gtkcolorsel.[ch]
25783         * gtk/gtkcombo.[ch]
25784         * gtk/gtkdrawingarea.[ch]
25785         * gtk/gtkgamma.[ch]
25786         * gtk/gtkhandlebox.[ch]
25787         * gtk/gtkhpaned.[ch]
25788         * gtk/gtkhruler.[ch]
25789         * gtk/gtkplug.[ch]
25790         * gtk/gtkpreview.[ch]
25791         * gtk/gtkruler.[ch]
25792         * gtk/gtksocket.[ch]
25793         * gtk/gtkstatusbar.[ch]
25794         * gtk/gtktoolbar.[ch]
25795         * gtk/gtkvbbox.[ch]
25796         * gtk/gtkvpaned.[ch]
25797         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
25798         functions.
25799
25800         * gtk/gtkgamma.h: Fix bug, missing () in call of
25801         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
25802
25803 1999-09-14  Tor Lillqvist  <tml@iki.fi>
25804
25805         * gdk/gdkcolor.c (gdk_colormap_new)
25806         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
25807         colormap->colors was allocated twice.
25808
25809         * gdk/win32/gdk.c: Remove some unused stuff.
25810
25811         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
25812         colormap.
25813
25814         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
25815         * gtk/gtklabel.h (gtk_label_get_type)
25816         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
25817         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
25818         in a couple of places, not guint.
25819
25820 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
25821
25822         * configure.in,po/et.po: added Estonian language file
25823
25824 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
25825
25826         * configure.in,po/da.po: added Danish file
25827
25828 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
25829
25830         * docs/gtkfaq.sgml: Minor FAQ Update
25831
25832 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
25833
25834         * docs/gtkfaq.sgml: FAQ update
25835
25836 1999-08-27  Tor Lillqvist  <tml@iki.fi>
25837
25838         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
25839         way to get window contents continually refreshed while resizing. I
25840         didn't like the effects myself, so it's not on by default.
25841
25842         * gdk/win32/gdkprivate.h: New flag variable
25843         gdk_event_func_from_window_proc, FALSE by default.
25844
25845         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
25846         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
25847         are passed --gdk-event-func-from-window-proc.
25848
25849         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
25850         and we have am event_func, call it instead of enqueing the event.
25851
25852 1999-08-23  Tor Lillqvist  <tml@iki.fi>
25853
25854         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
25855         Kelley: Set expose_count in GdkEventExposes correctly.
25856
25857         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
25858         MULTIPLE_WINDOW_CLASSES).
25859
25860         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
25861         for bug in NT, apparently NT *does* draw the end pixel, too, in
25862         LineTo with a one-pixel pen, so we don't have to do it ourselves.
25863
25864 1999-08-21  Tor Lillqvist  <tml@iki.fi>
25865
25866         Improvements by Hans Breuer: 
25867
25868         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
25869
25870         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
25871         CS_?REDRAW flags as they cause lots of (late) redraws when "show
25872         window contents while dragging" is turned on. Allocate at least
25873         one unique class for every GdkWindowType. If support for single
25874         window-specific icons is ever needed (eg. Dialog specific), every
25875         such window should get its own class.
25876
25877 1999-08-19  Tor Lillqvist  <tml@iki.fi>
25878
25879         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
25880         error that caused crashes.
25881
25882 1999-08-17  Tor Lillqvist  <tml@iki.fi>
25883
25884         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
25885         window, use ScrollWindowEx, and call UpdateWindow. This prevents
25886         bugs when for instance part of the window was outside the
25887         display. Thanks to Philippe Colantoni for finding and fixing this.
25888
25889 1999-08-16  Tor Lillqvist  <tml@iki.fi>
25890
25891         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
25892         endpoint calculations which were totally wrong. (A little RTFMing
25893         helps a lot ;-)
25894
25895         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
25896         from a separate directory, not from gettext, because of licensing
25897         issues (we want to use the LGPL version).
25898
25899         * README.win32: Mention the intl from glibc vs from gettext issue.
25900
25901 1999-08-13  Tor Lillqvist  <tml@iki.fi>
25902
25903         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
25904         in the key event handling: Now AltGr chars work again. Also,
25905         now Alt-digits are passed up as well as Control-digits.
25906         Pass keypad plus and minus as normal plus and minus.
25907
25908 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
25909
25910         * docs/gtkfaq.sgml: FAQ Update
25911
25912 1999-07-25  Tor Lillqvist  <tml@iki.fi>
25913
25914         * README.win32
25915         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
25916         the Wintab SDK.
25917
25918         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
25919         OK, but getting closer. Guard against bogus tilt data from Wacom
25920         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
25921         enable easier building without Wintab.
25922
25923         * gdk/win32/gdkinput.h
25924         * gdk/win32/gdkevents.c 
25925         * gdk/win32/gdkwindow.c: Minor changes related related to above.
25926         
25927         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
25928         code. As we have just one visual on Win32, no sense to have it in a
25929         table, and no need for the hash table.
25930
25931         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
25932         better on white background.
25933
25934 1999-07-21  Tor Lillqvist  <tml@iki.fi>
25935
25936         * README.win32: Update gcc build instructions. Mention gettext is
25937         GPL.
25938
25939         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
25940         supported cursor size with GetSystemMetrics.
25941
25942         * gdk/win32/gdkfont.c
25943         * gtk/gtkfontsel.c: Guard against some font weight and charset
25944         symbols being undefined (in mingw32 headers).
25945
25946         * gdk/win32/makefile.cygwin
25947         * gtk/makefile.cygwin
25948         * gtk/gtkthemes.c: No longer need to have differently named
25949         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
25950
25951 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
25952
25953         * docs/gtkfaq.sgml: Long awaited FAQ update.
25954
25955 1999-07-15  Tor Lillqvist  <tml@iki.fi>
25956
25957         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
25958         it. Obscure bit manipulation needed.
25959
25960         * gdk/win32/gdkevents.c: Logging.
25961         
25962         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
25963         style (file name include compiler name) for theme engines.
25964
25965 1999-07-13  Tor Lillqvist  <tml@iki.fi>
25966
25967         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
25968
25969         * gdk/win32/gdkevents.c: Fix long-standing bug in key
25970         events. The key.string wasn't zero-terminated, still we strdup'ed
25971         it in gdk_event_copy(). Synthesize crossing events for button
25972         events before possible propagation.
25973
25974         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
25975
25976         * gdk/win32/makefile.cygwin
25977         * gtk/makefile.cygwin: Use new DLL naming style for the
25978         GCC-compiled ones.
25979
25980         * gdk/win32/makefile.msc
25981         * gtk/makefile.msc: Cosmetics mostly.
25982
25983         * gtk/gtk.def: Add missing entry points.
25984
25985         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
25986
25987 1999-07-09  Tor Lillqvist  <tml@iki.fi>
25988
25989         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
25990         or height is zero. Don't print a warning if Pie or Arc fails, they
25991         always fail (?) for very narrow ellipses.
25992
25993         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
25994         the part or the destination window corresponding to source area
25995         outside of the source drawable's boundary.
25996
25997         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
25998         anything if less than two points.
25999
26000         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
26001         return NULL. Gtk cut-and-paste inside a single program works
26002         better this way. (It always gets the clipboard contents from
26003         Windows, not from its own copy, which is cleared anyway. I can't
26004         say I fully understand what happens... Emulating the X selection
26005         and property stuff is a bit of a mess.)
26006
26007         * gdk/win32/gdkevents.c
26008         * gdk/win32/gdkproperty.c: A bit more verbose logging.
26009
26010         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
26011         that never got deleted). Revamp gdk_region_shrink.
26012
26013         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
26014         after use.
26015
26016         * gtk/gtk.def: Add some missing entry points.
26017
26018         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
26019         component.
26020
26021 1999-07-04  Tor Lillqvist  <tml@iki.fi>
26022
26023         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
26024         Control-digits specially.
26025
26026 1999-07-03  Tor Lillqvist  <tml@iki.fi>
26027
26028         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
26029
26030 1999-06-28  Tor Lillqvist  <tml@iki.fi>
26031
26032         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
26033         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
26034         finding this.)
26035
26036 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
26037
26038         * gtk+.spec.in: Corrected some typos in files section.
26039         
26040 1999-06-15  Tor Lillqvist  <tml@iki.fi>
26041
26042         * README.win32: Mention using GNU gettext.
26043         * config.h.win32: Enable NLS stuff.
26044         * gtk/makefile.msc: Use GNU gettext.
26045         * gdk/win32/gdkdnd.c: Minor header reorg.
26046         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
26047         cosmetics.
26048         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
26049         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
26050
26051 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
26052
26053         * acinclude.m4
26054         * config.guess
26055         * config.status
26056         * ltconfig
26057         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
26058
26059 1999-05-30  Tor Lillqvist  <tml@iki.fi>
26060
26061         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
26062         SafeAdjustWindowRectEx. Don't override all calls to
26063         AdjustWindowRectEx by it, but use it only in two places: When
26064         creating a new top-level window and when moving a top-level
26065         window.
26066
26067         Use screen coordinate rectangle, not client rectangle, in
26068         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
26069         when we try to place a window so that the decoration (mainly,
26070         title bar) isn't visible.
26071
26072         These changes fix the bug that showed up for instance as the
26073         GIMP's saved top-level windows moving right and down (by an amount
26074         equal to the window decoration) for each session. This bug showed
26075         up also in testgtk's "Saved Position".
26076
26077         gdk_window_resize also redone a bit.
26078
26079 1999-05-25  Tor Lillqvist  <tml@iki.fi>
26080
26081         * gtk/testgtkrc: Add (commented out) Windows-style theme
26082         include line.
26083
26084         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
26085
26086 1999-05-18  Tor Lillqvist  <tml@iki.fi>
26087
26088         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
26089         gdkx.h to a gdk subdirectory, so that applications can include
26090         these with <gdk/*.h> without trouble.
26091
26092         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
26093         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
26094         have their bitmap destroyed.
26095
26096         * gdk/win32/gdk.def: Add gdk_root_parent.
26097
26098 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
26099
26100         * configure.in
26101           gtk-config.in
26102           ltconfig
26103           ltmain.sh     
26104           gtk/Makefile.am: changes to compile nicely (with xlib) 
26105           on BeOS
26106
26107 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
26108
26109         * acinclude.m4
26110         * config.guess
26111         * config.sub
26112         * ltconfig
26113         * ltmain.sh: upgrade to libtool 1.3
26114
26115 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
26116
26117         * gtk/gtkclist.c:
26118         * gtk/gtkctree.c: merges from gtk-1-2
26119
26120 1999-04-25  Tor Lillqvist  <tml@iki.fi>
26121
26122         Support added for building using a GNU toolchain on Win32,
26123         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
26124
26125         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
26126         * config.h.win32: Changes for gcc.
26127         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
26128         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
26129         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
26130         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
26131         Protect shl stuff unavaiilable with mingw32 headers.
26132         * gdk/win32/gdkevents.c: Fix typo.
26133         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
26134         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
26135         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
26136         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
26137         the mingw32 headers.
26138         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
26139         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
26140         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
26141         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
26142         Test for NATIVE_WIN32, not _MSC_VER.
26143         * gtk/gtkmain.c: No use warning about developer version on Win32,
26144         there aren't any non-developer versions anyhow.
26145         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
26146         * gtk/makefile.msc: Use pthread from another directory. Minor other
26147         changes. 
26148
26149 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
26150
26151         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
26152           default filter from the list
26153
26154 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
26155
26156         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
26157          when gtk_widget_grab_default() is called for a widget that
26158          is not within a GtkWindow.
26159
26160 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
26161
26162         * docs/gtk_tut.sgml, examples/clist.c: use a
26163           scrolled window in the clist example. Minor
26164           tutorial fixes.
26165
26166 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
26167
26168         * docs/gtk_tut.sgml: Style check from David King
26169           <dking@youvegotmail.net>
26170
26171 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
26172
26173         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
26174         compile with unknown value of GDK_WINDOWING
26175
26176 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
26177
26178         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
26179         after the rule is fired.
26180         (install-exec-local): Install gdkconfig.h only if the contents are
26181         different from the currently installed gdkconfig.h.
26182
26183 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
26184
26185         * gdk/Makefile.am (configexecincludedir): Rename from 
26186         configincludedir so that gdkconfig.h will be installed 
26187         as part of `make install-exec'. 
26188
26189 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
26190
26191         * acinclude.m4
26192         * config.guess
26193         * config.sub
26194         * ltconfig
26195         * ltmain.sh: upgrade to libtool 1.2f
26196
26197         * autogen.sh: libtool is not required to autogen gtk+
26198
26199         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
26200         needed)
26201
26202 1999-03-18  Tor Lillqvist  <tml@iki.fi>
26203
26204         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
26205         declaring gdk variables exported/imported from the DLL. New image
26206         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
26207         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
26208         GDK_DRAG_PROTO_OLE2.
26209
26210         * gdk/gdk.h: Merge in Win32 version: Two new functions,
26211         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
26212         declared only for the Win32 version, but could be in the X11
26213         version as well. (Needed for a Xlib-less gdk_imlib.)
26214         gdk_color_hash should have only one parameter. Declare
26215         gdk_threads_mutex with GDKVAR.
26216         
26217         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
26218         just one parameter.
26219
26220         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
26221         per pixel, not bits.
26222
26223         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
26224         Fetch bpp (which means bits-per-pixel here) from another place on
26225         Win32. Accept also depth==32 (which we might get on Win32) with
26226         bpp==32.
26227
26228         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
26229         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
26230         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
26231         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
26232         in the backend-dependent directory, not in the common gdk
26233         directory.
26234
26235         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
26236         headers.
26237
26238 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
26239
26240         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
26241         want to use the Gtk+ devel version (which is true, and yes - even i am
26242         currently working with the 1.2.x branch). so everyone reading this, you
26243         probably want to issue
26244         cvs checkout -r glib-1-2 glib
26245         and
26246         cvs checkout -r gtk-1-2 gtk+
26247         as your next two comands.
26248
26249 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
26250
26251         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
26252         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
26253
26254         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
26255         file. strongly deprecated the GTK_HAVE_* macros, we provide
26256         GTK_CHECK_VERSION() for people that need to check for certain
26257         Gtk+ versions.
26258
26259         * gtk/gtkcompat.h: removed this from CVS.
26260         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
26261         idea right from the start, it just didn't seem like that back then.
26262
26263 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
26264
26265         * merges from gtk-1-2:
26266
26267 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
26268
26269         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
26270         item factory class has been created.
26271         (gtk_item_factory_parse_rc): likewise.
26272
26273         * gtk/gtkmenu.c:
26274         keep proper references for old_active_menu_item.
26275         (gtk_menu_reparent): unset the usize of the new parent,
26276         so the menu can sanely be size requested and we don't get nasty screen
26277         artefacts upon next reparentation.
26278         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
26279         enter notify. only synthesize enter notifies if the pointer really is
26280         inside the event window.
26281         (gtk_menu_popdown): use gtk_menu_shell_deselect().
26282         (gtk_menu_popup): move the background setting stuff into
26283         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
26284
26285         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
26286         gtk_menu_shell_select_item() to select the new item.
26287         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
26288         do the right thing for deselection as well.
26289
26290 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
26291
26292         * gtk/gtkwidget.[hc]:
26293         (gtk_widget_accelerators_locked): return whether a widget's accelerators
26294         are locked.
26295
26296         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
26297         existing accelerators if the widget's accelerators are locked.
26298
26299 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
26300
26301         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
26302
26303         * gtk/gtkmenu.c: truely forward key press and key release events to
26304         the menu widget from the toplevel or tearoff window. we can't simply
26305         connect to that, we need to stop further processing of the events as
26306         well.
26307
26308 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
26309
26310         * gtk/gtkmenu.c:
26311         (gtk_menu_key_press): pass event->keyval, event->state to
26312         gtk_accelerator_valid, instead of event->keyval twice.
26313         refuse to install single letter accelerators for menus that use
26314         single letter shortcuts.
26315
26316         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
26317         gtk_menu_ensure_uline_accel_group().
26318
26319         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
26320         which will always return an uline accel group, made
26321         gtk_menu_get_uline_accel_group() return NULL if the group isn't
26322         yet created.
26323
26324 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
26325
26326         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
26327
26328         * gtk/gtkclist.c (gtk_clist_column_title_passive):
26329         Leave button sensitive, trap  button_press, button_release,
26330         motion_notify, enter_notify and leave_notify events instead.
26331         (gtk_clist_column_title_active): disconnect event handler.
26332         (gtk_clist_drag_data_get): fixed memory leak. Reported by
26333         Guillaume Laurent <glaurent@worldnet.fr>
26334
26335 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
26336
26337         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
26338         width/height mixups.
26339
26340         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
26341         if needed.
26342
26343 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
26344
26345         * gtk/testgtk.c (create_item_factory): unref the item factory after
26346         window's destruction.
26347
26348         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
26349         count on the menu shell around the menu item's activation, since the
26350         signal emission may cause menu shell destruction.
26351
26352         * gtk/gtkitemfactory.c:
26353         the previous code leaked one accel group per menu. we use
26354         gtk_menu_get_uline_accel_group() now to fix that, and with that
26355         also create the underline accelerator group of the menus only if
26356         required (i.e. an underline accelerator has been specified).
26357         (gtk_item_factory_construct):
26358         (gtk_item_factory_create_item): removed code that would create an
26359         extra accel group for the menu (and leak references).
26360         (gtk_item_factory_create_item): adapted the underline accelerator
26361         installation code to properly feature gtk_menu_get_uline_accel_group().
26362
26363         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
26364         menu->accel_group, this may return NULL if the accelerator group
26365         hasn't been set yet.
26366         added gtk_menu_get_uline_accel_group() to retrive the underline
26367         accelerator group of the menu, this will be created on demand
26368         and proper care is taken about its reference count.
26369
26370         * gtk/gtkitemfactory.h:
26371         * gtk/gtkitemfactory.c:
26372         dumped the approach of keeping a widgets by action list on the
26373         factory since the factory<->widget destroy negotiation didn't work
26374         and would be hard to get going at all. instead we keep a list of
26375         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
26376         persistant throughout a program's life time).
26377         also, i removed the static const gchar *key_* variables, and made
26378         them inline strings (they weren't actually used anyways).
26379         (gtk_item_factory_add_item): update ifactory->items.
26380         (gtk_item_factory_destroy): destroy ifactory->items (and remove
26381         the item factory pointer from the remaining ifactory widgets).
26382         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
26383         list to find the widget.
26384         (gtk_item_factory_get_item): new function that works around
26385         gtk_item_factory_get_widget() limitations, this function will only
26386         return menu items, even for <Branch> entries.
26387
26388 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
26389
26390         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
26391         font hash table, if we have a GdkFontPrivate entry for this font
26392         already, simply increment its reference count, provided by Olaf Dietsche
26393         <olaf.dietsche+list.gtk@netcologne.de>.
26394
26395         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
26396         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
26397
26398 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
26399
26400         * gtk/gtkcontainer.c:
26401         (gtk_container_add_with_args):
26402         (gtk_container_addv):
26403         (gtk_container_add): before adding a child to a conatiner, make sure
26404         it is (default) constructed, this is neccessary because under certain
26405         circumstances the child will get relized and mapped immediatedly, in
26406         which case it has to be constructed already.
26407
26408 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
26409
26410         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
26411         values > 1 as TRUE also.
26412
26413 1999-03-16  Tor Lillqvist  <tml@iki.fi>
26414
26415         * README.win32: New file.
26416                 
26417         * configure.in: Check for lstat.
26418
26419         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
26420         completeness.
26421
26422         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
26423
26424         * gtk/gtk.def: Removed CRs.
26425
26426         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
26427         ..\gdk\win32).
26428
26429         * gdk/win32/makefile.msc: Correct upwards relative paths.
26430         
26431 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
26432
26433         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
26434           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
26435           it was connecting a void function to expose_event and the int
26436           returning function to the draw signal
26437
26438 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
26439
26440         * configure.in:
26441         Use correct path to libgmodule.la when ref'ing uninstalled copy
26442         of glib.  (Already in stable branch, Bug #417)
26443
26444 1999-03-15  Tor Lillqvist  <tml@iki.fi>
26445
26446         Win32 merge and general portability stuff:
26447                 
26448         * acconfig.h,configure.in: Check for <sys/time.h>.
26449
26450         * gdk/win32: New directory (actually, been there for a while).
26451         
26452         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
26453         NATIVE_WIN32, and use these. Always case fold on Win32. No
26454         backslashed escapes on native Win32.
26455
26456         * gtk/{gtk.def,makefile.msc}: New files.
26457
26458         * gtk/Makefile.am: Add above new files.
26459         
26460         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
26461         instead of <strings.h>.
26462
26463         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
26464         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
26465         <unistd.h> appropriately.
26466
26467         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
26468         Use ABS() (from <glib.h>) instead of abs().
26469         
26470         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
26471         of gtk (and thus glib) headers, so that WIN32 will be
26472         defined. With MS C, include <direct.h> for mkdir prototype.
26473
26474         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
26475         some casts, needed by MS C.
26476
26477         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
26478         implemented).
26479
26480         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
26481         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
26482         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
26483
26484         * gtk/gtkmain.h: Mark variables for export/import on Win32.
26485                 
26486         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
26487         the event is not a hint, or its window is not the slider. Needed
26488         on Win32, at least.
26489
26490         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
26491         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
26492         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
26493         a subdirectory of the Windows directory as gtk system
26494         configuration directory.
26495
26496         * gtk/gtkselection.c: No chunks on Win32.
26497
26498         * gtk/gtksocket.c: Not implemented on Win32.
26499
26500         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
26501
26502         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
26503
26504         * gtk/maketypes.awk: Declare variables with a macro that expands to
26505         necessary export/import magic in the case of Win32.
26506                 
26507         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
26508
26509 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
26510
26511         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
26512         since those were meant only for gdki18n.h.  
26513         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
26514         for widechar tests.
26515         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
26516
26517 1999-03-13  Tor Lillqvist  <tml@iki.fi>
26518
26519         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
26520         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
26521
26522         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
26523         installed) to CFLAGS.
26524
26525         * gdk/Makefile.am: Add rules for gdkconfig.h.
26526
26527         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
26528         APIs.
26529
26530         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
26531         gdkx.h anyway when compiling for X11.
26532         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
26533         general): Merge in Win32 version.
26534         
26535         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
26536         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
26537         expansion (if we don't have HAVE_PWD_H), allow for drive
26538         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
26539         included code from Craig Setera's port to Win32 (the one that uses
26540         X11, and the cygwin dll), even if it probably will be abandoned.
26541
26542         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
26543         the user entered one herself.  This way one can complete *.h and
26544         don't get matches on any .help files, for instance.
26545         
26546 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
26547
26548         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
26549         font hash table, if we have a GdkFontPrivate entry for this font
26550         already, simply increment its reference count, provided by Olaf Dietsche
26551         <olaf.dietsche+list.gtk@netcologne.de>.
26552
26553         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
26554         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
26555
26556 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
26557
26558         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
26559         the number of calls to gdk_draw_point() (and thus to X) by
26560         clipping the points by hand.
26561
26562         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
26563         the clip parameter.
26564         (gtk_handle_box_paint): Only paint the handle if the expose area
26565         intersects it.
26566
26567 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
26568
26569         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
26570
26571 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
26572
26573         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
26574         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
26575
26576 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
26577
26578         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
26579          textmode (O_TEXT) for OS/2 version.
26580
26581 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
26582
26583         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
26584         GtkSpinButton, "input" and "output", to make the output more flexible.
26585         The user has to provide a mapping between adjustment->value and the
26586         output string (and vice versa, if the spin button is editable). 
26587         See testgtk for examples.
26588
26589 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
26590
26591         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
26592         new one.
26593         
26594         * configure.in: set gtk+ version to 1.3.0.
26595
26596         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,