]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
Pass the ref_node and unref_node calls through to the child model.
[~andy/gtk] / ChangeLog.pre-2-8
1 2002-02-08  Darin Adler  <darin@bentspoon.com>
2
3         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
4         (gtk_tree_model_sort_unref_node): Pass the ref_node and
5         unref_node calls through to the child model.
6
7 2002-02-08  Laszlo Peter  <laca@ireland.sun.com>
8
9         * gtk/gtktextchild.c: s/__FUNCTION__/G_GNUC_FUNCTION/
10         * gtk/gtktextview.c: ditto
11
12 2002-02-07  Havoc Pennington  <hp@pobox.com>
13
14         * gtk/gtkspinbutton.h (struct _GtkSpinButtonClass): add
15         change_value virtual function, to fix build
16
17         * gtk/gtkpixmap.c (gtk_pixmap_class_init): parent_class was 
18         from GtkWidget not GtkMisc. Not that it ever mattered.
19
20 Thu Feb  7 19:52:00 2002  Owen Taylor  <otaylor@redhat.com>
21
22         * gtk/gtknotebook.[ch]: Add ::move-focus-out signal
23         to handle Control[-Shift]-Tab and Control-arrow
24         bindings and implement bindings as per #53612.
25
26         * gtk/gtktextview.c (gtk_text_view_move_focus): Fix 
27         fetching the toplevel for plug-socket.
28
29         * gtk/gtknotebook.c (gtk_notebook_class_init): Remove
30         bindings for Return/Enter to select the page.
31
32         * gtk/gtknotebook.c (gtk_notebook_change_current_page):
33         Beep at ends.
34
35         * gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
36         and beep at ends.
37
38         * gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
39         the page with the arrow keys, focus the first widget,
40         not the directionally closest widget.
41
42 Thu Feb  7 19:00:10 2002  Owen Taylor  <otaylor@redhat.com>
43
44         * gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
45         to using  binding set for doing key bindings. (#62622,
46         Requested by Skip Montaro)
47
48         * gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
49         bindings as overrides along with control-tab bindings.
50
51         * gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
52         type for ::focus_tab signal.
53
54 Thu Feb  7 19:39:27 2002  Kristian Rietveld  <kris@gtk.org>
55
56         Fixes #70782 and some drag dest rectangle/line issues
57
58         * gtk/gtktreeview.c (gtk_tree_view_set_model): set
59         GTK_TREE_VIEW_IS_LIST flag (we can switch from a TreeStore to a
60         ListStore for example)
61         (gtk_tree_view_get_path_at_pos): revert previous change, we
62         shouldn't correct for the header, because we are taking bin_window
63         coordinates here
64         (gtk_tree_view_set_drag_dest_row): queue old drag_dest row and
65         upper/lower neighbors for draw, so the drag dest rectangle/line will
66         be cleared correctly
67         (gtk_tree_view_get_dest_row_at_pos): correct for treeview header
68         here, as drag_y is relative to the widget and _get_path_at_pos wants
69         coords relative to bin_window, draw black outline rectangle after
70         drawing the cells
71
72 Thu Feb  7 10:53:12 2002  Owen Taylor  <otaylor@redhat.com>
73
74         * gtk/gtkentry.c (gtk_entry_draw_text): Use layout text
75         (which may be affected by invisible char) to compute
76         selection bounds, not entry text. (#70733, Alex Larsson)
77
78 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
79
80         * gtk/gtkwidget.[ch]:
81         Change show_help signal to return gboolean instead of void. This
82         allows the keypress which invokes the signal to be propagated to the
83         focus widgets ancestors if not handled by the focus widget.
84         
85         * gtk/gtktoolips.[ch]
86         Change _gtk_tooltips_show_tip () to return a gboolean indicating
87         whether widget has tooltip to display.
88         
89 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
90
91         * gtk/gtkwidget.[ch]:
92         Change popup_menu signal to return gboolean instead of void. This
93         allows the keypress which invokes the signal to be propagated to the
94         focus widgets ancestors if not handled by the focus widget.
95
96         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtktextview.c:
97         Change signature of popup_menu signal handler to return gboolean
98         instead of void and return TRUE in the signal handler
99
100 2002-02-07  Anders Carlsson  <andersca@gnu.org>
101
102         * gdk/x11/xsettings-common.c (xsettings_setting_free): Free 
103         the setting name.
104
105 Wed Feb  6 23:28:39 2002  Kristian Rietveld  <kris@gtk.org>
106
107         Fixes #70708
108
109         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): we're dealing
110         with widget coordinates here, so take the header height into
111         account while converting
112         (gtk_tree_view_widget_to_tree_coords): take header height into
113         account
114         (gtk_tree_view_tree_to_widget_coords): ditto
115         (gtk_tree_view_get_dest_row_at_pos): we were passing coords
116         relative to the tree with _get_path_at_pos, while that function
117         wants coords relative to the widget
118
119 2002-02-06  Havoc Pennington  <hp@redhat.com>
120
121         * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
122         (gtk_text_view_get_window): add warning about how you
123         can't get the private window. #70683, and avoid default: in the
124         switch so we get "enum value unhandled" warnings
125
126 2002-02-06  Havoc Pennington  <hp@redhat.com>
127
128         * gtk/gtktextchild.c: Add warnings if you try to use a child
129         anchor that isn't inside a buffer. Really kind of lame; 
130         we should separate the anchor from the buffer. But not worth 
131         fixing for now. #70601
132
133 Wed Feb  6 18:25:24 2002  Kristian Rietveld  <kris@gtk.org>
134
135         * gtk/gtktreemodelsort.c: rip out all the debugging ifdefs, as
136         modelsort seems to be stable (and nobody complained :)
137
138 Tue Feb  5 19:13:42 2002  Owen Taylor  <otaylor@redhat.com>
139
140         * gdk/x11/gdkgeometry-x11.c (gdk_window_queue): Keep
141         the length of the anti-expose queue finite, by if
142         it gets too long, first doing a XSync() and checking
143         the event queue, and if that doesn't work, simply
144         discarding all anti-expose items in the queue.
145
146         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix ordering
147         on ConfigureNotify (#56349, Thomas Leonard)
148
149 2002-02-05  Havoc Pennington  <hp@redhat.com>
150
151         * gtk/gtkimage.c (gtk_image_expose): offset area being gotten from
152         pixmap by the align/padding offsets, so we don't get warnings
153         in gdk_pixbuf_get_from_drawable (and so it works, of course)
154
155 2002-02-05  Matthias Clasen  <matthiasc@poet.de>
156
157         * gtk/gtkrc.c (gtk_rc_parse_file): Remove a (now) misleading comment.
158
159 2002-02-05  Federico Mena Quintero  <federico@ximian.com>
160
161         * gdk/gdkwindow.h: Do not #include <gdk/gdkwindow.h>.
162
163 Tue Feb  5 22:54:16 2002  Kristian Rietveld  <kris@gtk.org>
164
165         * gtk/gtkliststore.c (gtk_list_store_insert_after): let's set the
166         path, which we're going to pass with the emission of row_inserted, to
167         the iter we inserted and not its sibling.
168
169 2002-02-04 Padraig O'Briain <padraig.obriain@sun.com>
170
171         * gtk/gtkmenu.c (gtk_menu_popup):
172         Fix leak of GdkEvent (#70519)
173
174 Mon Feb  4 10:40:28 2002  Owen Taylor  <otaylor@redhat.com>
175
176         * gtk/gtkstyle.c (gtk_default_draw_resize_grip):
177         Fix from Matthias Clasen to clear background appropriately
178         for theme by calling gtk_style_apply_default_background().
179         (#70449)
180
181 Mon Feb  4 10:06:49 2002  Owen Taylor  <otaylor@redhat.com>
182
183         * gdk/x11/gdkevents-x11.c: gtk-double-click-time,
184         not gtk-double-click-timeout. (#70501)
185
186 2002-02-04  Havoc Pennington  <hp@pobox.com>
187
188         * gtk/gtksignal.c (gtk_signal_connect_while_alive): 
189         (gtk_signal_connect_object_while_alive): rename 
190         "signal" arg to "name" to avoid compiler warnings
191         about shadowing signal(). #70453
192
193 2002-02-03  Anders Carlsson  <expander-master@gtk.org>
194
195         * gtk/gtkstyle.c (gtk_default_draw_expander): Add 
196         flipping support to the expanders.
197
198 Sat Feb  2 21:54:01 2002  Owen Taylor  <otaylor@redhat.com>
199
200         RC file lookup improvements (#68234, suggestions
201         from Matthias Clasen.)
202
203         * gtk/gtkrc.c (gtk_rc_parse_file): Look for the 
204         locale suffix variants (gtkrc.en_US, gtkrc.en) for
205         all RC files we parse, not just the default RC
206         files.
207
208         * gtk/gtkrc.c (gtk_rc_parse_default_files): Remove
209         support for charset specific RC files.
210
211 Sat Feb  2 20:16:04 2002  Owen Taylor  <otaylor@redhat.com>
212
213         * gtk/gtkmenushell.c (_gtk_menu_shell_select_first): 
214         Non-exported _gtk_menu_select_first() function that
215         selects the first item of the menu in a standard
216         way. (Skipping tearoffs.)
217
218         * gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
219         gtkmenuitem.c: Use _gtk_menu_shell_select_first().
220
221         * gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
222         if we are starting the timeout from a keypress so
223         we can set menushell->ignore_enter properly.
224
225         * gtk/gtknotebook.c (focus_child_in): Return something
226         meaningful if there are no children.
227
228         * gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
229         problem.
230
231 Sat Feb  2 19:15:42 2002  Owen Taylor  <otaylor@redhat.com>
232
233         * gtk/gtkmenu.c (gtk_menu_popup): Fix some bugs in
234         the determination of xgrab_shell.
235
236 Sat Feb  2 17:43:00 2002  Owen Taylor  <otaylor@redhat.com>
237
238         * gtk/gtkentry.c (gtk_entry_grab_focus): Add a GtkSetting
239         (gtk-entry-select-on-focus) controlling whether the
240         contents of an entry are selected on focus in.
241
242         * gtk/gtkmenu.c (gtk_menu_key_press): Add a GtkSetting
243         (gtk-can-change-accels) controlling whether accelerators can be
244         changed on the fly or not. (#51902)
245
246         * gtk/gtkmenu.c (gtk_menu_key_press): Allow unmodified
247         accelerators, now that accelerator changing can be turned
248         off for those who won't expect it. (#61285)
249
250         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow 
251         Backspace/Delete/KP_Delete as valid accelerators.
252
253         * gtk/gtkmenu.c (gtk_menu_key_press): Allow setting of
254         Delete/Backspace as accelerators by making them toggle
255         the menu item between empty and the pressed key.
256         (#58605)
257
258         * tests/testgtkrc: Remove the objectionably short cursor blink
259         time setting.
260
261 Sat Feb  2 16:43:31 2002  Owen Taylor  <otaylor@redhat.com>
262
263         * gtk/gtkmenu.c (gtk_menu_popup): To get around the fact
264         that we may have a owner_events = FALSE grab in effect
265         when we pop up a window, make a temporary grab on a
266         different window, then grab on the real window. Fixes
267         a problem where if a context menu popped up under the 
268         cursor, the first item would be stuck unselected.
269         (#59812, reported by Arnaud Charlet.)
270
271 2002-02-02  Peter Williams  <peterw@ximian.com>
272
273         * gtk/Makefile.am (install-data-local): Install gtkrc.default
274         from $(srcdir) for when $(builddir) is different.
275
276 Sat Feb  2 19:00:39 2002  Kristian Rietveld  <kris@gtk.org>
277
278         * gtk/Makefile.am: remove TESTGTK_RCFILE define
279
280 Sat Feb  2 11:37:21 2002  Owen Taylor  <otaylor@redhat.com>
281
282         * gtk/gtkmenu.c (gtk_menu_popup): Remove the 
283         "select first item if popped up from keypress" hack --
284         was causing more problems than it was worth 
285         (#53191, #68483)
286
287         * gtk/gtktextview.c (popup_targets_received): 
288          gtk/gtkentry.c (popup_targets_received): If activated
289         from keyboard, select first item of popup menu.
290
291 Sat Feb  2 18:07:51 2002  Kristian Rietveld  <kris@gtk.org>
292
293         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
294         of vadjustment correct, so the vscrollbars of lists smaller than
295         1 page are somewhat saner (#66905)
296
297         * gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
298         increment the stamp, liststore is a model with persisting iters
299
300 Fri Feb  1 23:54:00 2002  Owen Taylor  <otaylor@redhat.com>
301
302         * gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support 
303         engine "" {} to mean override to the default 
304         engine. (#70205)
305
306 Fri Feb  1 23:25:33 2002  Owen Taylor  <otaylor@redhat.com>
307
308         * gtk/gtktooltips.c (gtk_tooltips_init): Parse the
309         RC string here when the first object is created
310         rather than in the class_init to not break doc 
311         building. (#70341, Havoc Pennington.)
312
313         * gtk/gtkrc.c (parse_include_file): Use the directories
314         for the currently parsed files as the starting point
315         to look for include files. (#59975)
316
317 Fri Feb  1 20:21:56 2002  Manish Singh  <yosh@gimp.org>
318
319         * gtk/gtkinputdialog.c: use gtk_label_new_with_mnemonic for labels
320         that actually have mnemonics
321
322 Fri Feb  1 19:57:59 2002  Owen Taylor  <otaylor@redhat.com>
323
324         * configure.in: Fix use of ! in shell.
325
326         * gtk/gtktooltips.c (gtk_tooltips_class_init) gtkrc.default: 
327         Move the setting of default tooltips colors to gtktooltips.c
328         from gtkrc.default. (Use default priority so themes will
329         override.) (#58542)
330
331 Fri Feb  1 17:48:51 2002  Owen Taylor  <otaylor@redhat.com>
332
333         * gtk/gtkrc.c (gtk_rc_get_style): Fix ordering of
334         priorities so that priorities take precendence over
335         the ordering by type. (#70205)
336
337         * test/testgtkrc tests/testgtk.c (create_rc_file): Add 
338         some labels to test priorities in testgtkrc.
339
340 Fri Feb  1 00:37:49 2002  Kristian Rietveld  <kris@gtk.org>
341
342         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): use
343         y coordinate relative to the tree and not the treeview window
344         (fixes the PgDn/PgUp brokenness)
345
346 Fri Feb  1 23:40:31 2002  Kristian Rietveld  <kris@gtk.org>
347
348         * gtk/gtktreeview.c (gtk_tree_view_button_press): adjust
349         cell_area and background_area for possible treeview scroll
350         (fixes #70283, #70065)
351
352 Fri Feb  1 22:20:13 2002  Kristian Rietveld  <kris@gtk.org>
353
354         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): use
355         height - page_size not height - allocation->height (fixes #66269)
356
357 Fri Feb  1 15:22:23 2002  Owen Taylor  <otaylor@redhat.com>
358
359         * gtk/gtkimage.c (gtk_image_class_init): Fix typo
360         in property description. (Christian Rose.)
361
362 Fri Feb  1 14:50:36 2002  Owen Taylor  <otaylor@redhat.com>
363
364         * gtk/gtkrc.c (gtk_rc_parse_string): Handle reparsing
365         any strings if the theme changes. (#69465)
366
367         * tests/testgtk.c: Add a test for gtk_rc_parse_string().
368
369 Fri Feb  1 20:50:29 2002  Kristian Rietveld  <kris@gtk.org>
370
371         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): set tree to
372         NULL if tree_view->priv->tree is NULL (#70152, patch by John Harper).
373
374 Fri Feb  1 12:51:20 2002  Owen Taylor  <otaylor@redhat.com>
375
376         * gtk/gtknotebook.c (focus_child_in): Catch the
377         cur_page == NULL (no children) case. (#70287,
378         Paolo Maggi.)
379
380 Fri Feb  1 12:12:12 2002  Owen Taylor  <otaylor@redhat.com>
381
382         * gtk/gtkfilesel.c (attempt_file_completion): 
383         s/directory/folder/ in all labels and messages.
384
385 Fri Feb  1 08:57:38 2002  Owen Taylor  <otaylor@redhat.com>
386
387         * gtk/gtkmain.c (gtk_exit_func): Remove this useless
388         atexit handler. (existance pointed out by Stefan Kost)
389
390         * gtk/gtkmain.c (gtk_init_check): Warning fixes.
391
392 Thu Jan 31 18:46:10 2002  Jonathan Blandford  <jrb@redhat.com>
393
394         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): unref the
395         model after the last use, not before.
396
397 Thu Jan 31 14:50:16 2002  Owen Taylor  <otaylor@redhat.com>
398
399         * gtk/gtkrc.default gtk/Makefile.am: Install a Default
400         RC file that sets the tooltips color to yellow. (#58542)
401
402         * gtk/gtksettings.c (gtk_settings_class_init): make 
403         the default theme "Default", not NULL.
404
405 Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
406
407         * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
408         another missing static.
409
410         * gtk/gtkimmodule.c (n_loaded_contexts): And another.
411
412         * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
413         build gxid sources at all except in the vanishingly
414         rare case of --with-xinput=xfree.
415
416 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
417
418         * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
419
420         * gdk/x11/gdkimage-x11.c: (get_full_image): ditto.
421
422         * gdk/x11/gxid_lib.[ch]: (_gxid_claim_device), (_gxid_release_device):
423         renamed from gxid_(claim|release)_device.
424
425         * gdk/x11/gdkinput-gxi.c: (_gdk_input_enable_window),
426         (_gdk_input_disable_window): upd for gxid change.
427
428         * gtk/gtkimage.c: (animation_timeout): make static.
429
430         * gtk/gtkstyle.c: (draw_thin_shadow), (draw_spin_entry_shadow): make
431         static.
432
433         * gtk/gtktextutil.c: (bidi_menu_entries): make static.
434
435 Thu Jan 31 10:21:05 2002  Owen Taylor  <otaylor@redhat.com>
436
437         * gtk/gtkplug.c (gtk_plug_focus): Handle the case where
438         bin->child is NULL. (#70153, Padraig O'Briain)
439
440         * gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): 
441         Actually call gettext() on the labels; previously they
442         were marked with N_() but we never called gettext().
443
444 Wed Jan 30 20:15:49 2002  Jonathan Blandford  <jrb@redhat.com>
445
446         * gtk/gtktreestore.c (gtk_tree_store_set_valist): save last minute
447         changes before committing.
448
449         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
450
451 Wed Jan 30 18:46:14 2002  Jonathan Blandford  <jrb@redhat.com>
452
453         * gtk/gtkliststore.c (gtk_list_store_set_valist): only emit the
454         signal if an interesting column changes.
455
456         * gtk/gtktreestore.c: ditto.
457
458         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): change behavior so
459         that it no longer grabs 
460
461 2002-01-30  Manish Singh  <yosh@gimp.org>
462
463         * gtk/gtkhandlebox.c (gtk_handle_box_destroy): remove unused
464         variable.
465
466         * gtk/gtkwindow.c (gtk_window_get_icon): function returns a value,
467         so return NULL with g_return_val_if_fail instead of g_return_if_fail.
468
469 2002-01-30  Matthias Clasen  <matthiasc@poet.de>
470
471         * gtk/*.c: Remove excess g_return_if_fail calls from static
472         and virtual functions.  (#57615)
473         
474 2002-01-30  Anders Carlsson  <andersca@gnu.org>
475
476         * gtk/gtkstyle.c (gtk_default_render_icon): Allow a -1 icon size.
477
478 Wed Jan 30 20:29:01 2002  Tim Janik  <timj@gtk.org>
479
480         * gtk/gtkscale.c (gtk_scale_set_digits): fix revrted bug fix.
481         (use a define for max digits).
482
483 Wed Jan 30 13:55:59 2002  Owen Taylor  <otaylor@redhat.com>
484
485         * gtk/gtkwindow.c (gtk_window_show): Try to make
486         sure that we have some focused widget on map. (#50339)
487
488         * gtk/gtkdialog.c (gtk_dialog_map): Handling picking
489         a focus widget here differently so that if a
490         response button gets picked, it's the default one.
491
492         * tests/testgtk.c (make_message_dialog): Set the 
493         default response for the dialogs.
494
495 Tue Jan 29 22:52:36 2002  Owen Taylor  <otaylor@redhat.com>
496
497         * Released 1.3.13
498
499         * configure.in: Micro version 13, interface, binary
500         age 0. Require GLIB-1.3.13, Pango 0.24.
501
502         * docs/Makefile.am (EXTRA_DIST): Add widget_geometry.txt,
503         sizing-test.txt, tree-column-sizing.txt
504
505         * docs/Makefile.am (EXTRA_DIST): Don't distribute
506         Changes-1.2.txt, Changes-2.0.txt, README.linux-fb,
507         since they are no longer canonical.
508
509         * gtk/gtk.def: Convert spaces to tabs in front of
510         gtk_widget_set_accel_path in case it matters.
511
512         * NEWS: Updated for 1.3.13.
513
514 Tue Jan 29 22:31:07 2002  Owen Taylor  <otaylor@redhat.com>
515
516         * gtk/gtkwidget.[ch] gtkmenuitem.c gtkitemfactory.c: Export 
517         gtk_widget_set_accel_path().
518
519         * gtk/gtk.def: Add gtk_widget_set_accel_path.
520
521 Tue Jan 29 21:50:28 2002  Owen Taylor  <otaylor@redhat.com>
522
523         * gtk/gtkaccelmap.[ch] gtk/gtkbindings.[ch] gtk/gtkwidget.[ch]:
524         Consistently use GdkModifierType. (#66950, Mark Patton)
525
526         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
527         For consistency with gtk_button_new_from_stock(), fall back
528         to gtk_image_menu_item_new_with_mnemnonic(). (#65944,
529         Havoc Pennington)
530         
531         * gtk/gtkitemfactory.[ch] (gtk_item_factory_path_from_widget): 
532         Make G_CONST_RETURN. (#68527, Matt Wilson)
533
534 Tue Jan 29 20:56:13 2002  Owen Taylor  <otaylor@redhat.com>
535
536         * gtk/gtk[vh]scale.c (gtk_[vh]scale_new_with_range): Document
537         that the end points are included in the range. (#69783,
538         Jeffrey Baker)
539
540 Tue Jan 29 20:38:04 2002  Owen Taylor  <otaylor@redhat.com>
541
542         * gtk/gtkscale.[ch]: Revert the last changes to make the
543         number of digits only effect drawing, instead, don't
544         round unless we are in the 'draw_value' mode -- this
545         is the behavior of GTK+-1.2, and keeps the behavior that
546         if the user sees a displayed value, it is the correct value.
547
548 Tue Jan 29 19:51:05 2002  Owen Taylor  <otaylor@redhat.com>
549
550         * gtk/gtkenums.h: Deprecate GtkPreviewType,
551         GtkSignalRunType, GtkSideType, GtkSubmenuPlacement, GtkSubmenuDirection
552         (#68183, Matthias Clasen)
553
554         * gtk/gtkmenuitem.h: Remove _gtk_menu_item_set_placement() from
555         the public header to avoid having to use GtkSubmenuPlacement.
556
557         * gtk/{gtkmenuitem.c,gtkmenubar.c,gtkmenushell.c}: #define
558         GTK_MENU_INTERNALS to preserve access to GtkSubmenu*.
559
560         * gdk/gdki18n.h: Deprecate contents. (Darin Adler.)
561
562 Tue Jan 29 19:32:47 2002  Owen Taylor  <otaylor@redhat.com>
563
564         * gtk/gtktextview.c (gtk_text_view_get/set_property): 
565         Fix wrong usage of g_value_set/get_object for PROP_TABS
566         and memory leak in getter for PROP_TABS. (Jeff Franks)
567
568 Tue Jan 29 19:04:41 2002  Owen Taylor  <otaylor@redhat.com>
569
570         * gtk/gtkstyle.c (gtk_style_render_icon): Document that
571         a size of (GtkIconSize)-1 means don't scale.
572
573         * gtk/gtkstyle.c (gtk_default_render_icon): Obey the
574         -1 convention.
575
576         * gtk/gtkimage.c (gtk_image_expose): Pass in -1 to
577         gtk_style_render_icon() to make sure that we catch it
578         obviously if the style's render function tries to
579         scale.
580
581 Tue Jan 29 18:50:59 2002  Owen Taylor  <otaylor@redhat.com>
582
583         * gtk/gtkimage.c (gtk_image_expose): Optimize exposes of
584         partial insensitive images.
585
586 2002-01-24  Havoc Pennington  <hp@redhat.com>
587
588         * gtk/gtkimage.c (gtk_image_expose): create insensitive version of
589         the image regardless of storage type, #63305
590
591         * demos/gtk-demo/images.c: add toggle button to demonstrate that
592         GtkImage makes its contents insensitive
593
594 Tue Jan 29 17:40:02 2002  Owen Taylor  <otaylor@redhat.com>
595
596         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
597         Call _gdk_draw_pixbuf(), thus enabling using this function
598         for pixbufs with alpha. (#68801)
599
600         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Move
601         implementation of gdk_pixbuf_render_to_drawable()
602         to here.
603
604 Tue Jan 29 17:16:17 2002  Owen Taylor  <otaylor@redhat.com>
605
606         * gtk/gtklayout.c: Patch from Jacob Berkman to fix problem
607         when the height/width of a layout was set before the
608         adjustments were added. (#66294)
609
610         * gtk/gtktreeview.c: Warning cleanups.
611
612 Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
613
614         * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
615         fix to size of torn off window (#60271, Detlef Reichl)
616
617         * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
618         by Ross Burton)
619
620 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
621
622         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
623         cursor_path after usage
624         (gtk_tree_view_real_start_interactive_search): use new g_signal
625         and g_object calls
626         (gtk_tree_view_search_dialog_destroy): use g_object calls and free
627         selected_iter if set
628         (gtk_tree_view_search_position_func): rework so it will never ever
629         appear offscreen (#68492)
630         (gtk_tree_view_search_move): use new g_object calls
631         (gtk_tree_view_search_init): free selected_iter if set, use new
632         g_object calls
633         (gtk_tree_view_leave_notify): don't destroy interactive search
634         dialog
635
636 Tue Jan 29 23:07:03 2002  Kristian Rietveld  <kris@gtk.org>
637
638         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
639         send focus in event
640         (gtk_tree_view_search_dialog_destroy): send focus out event (#66466)
641
642 2002-01-29  Anders Carlsson  <andersca@gnu.org>
643
644         * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
645         size in the size entry.
646
647 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
648
649         * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
650         gtk_tree_view_set_cursor() instead of gtk_tree_selection_select_iter().
651
652         * gtk/gtkfontsel.c (gtk_font_selection_init): Add mnemonic to
653         preview field. (#52433, patch from Anders Carlsson)
654         
655         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Remove the 
656         dialog separator. (#69558, Alex Larsson, patch from Anders Carlsson)
657
658 Tue Jan 29 15:24:59 2002  Owen Taylor  <otaylor@redhat.com>
659
660         * gtk/gtkfontsel.[ch]: Switch over to GtkTreeView from
661         GtkCList. Remove the entries above the font/face lists 
662         since they were a little confusing. (Not sure about this 
663         change, so the code is still there the entries are
664         just hidden.) (#68890)
665
666         * gtk/gtkfilesel.c: Switch over to GtkTreeView from
667         GtkCList. Add mnemonics for fileops. Allow Control/Shift
668         Tab to focus out.
669
670         * gtk/gtkfilesel.c: Make fileop dialogs transient-for
671         the fileselector. (#69336, patch from Melvin Hadasht)
672
673         * gtk/gtkgamma.c (button_clicked_callback): Fix handling
674         of gamma dialog a bit. (#69336, Matthias Clasen.)
675
676 Tue Jan 29 14:56:28 2002  Owen Taylor  <otaylor@redhat.com>
677
678         * gtk/gtksocket.c (toplevel_focus_out_handler): Return boolean
679         (and FALSE from focus_in / focus_out handlers. (#69528,
680         Padraig O'Briain)
681
682 Tue Jan 29 14:47:54 2002  Owen Taylor  <otaylor@redhat.com>
683
684         * gtk/gtkmain.c (gtk_init_check): Remove the scary startup
685         warning. (#69480)
686
687 Tue Jan 29 14:24:49 2002  Owen Taylor  <otaylor@redhat.com>
688
689         * gtk/gtkwindow.c (gtk_window_class_init): Add <Control>Tab
690         bindings for "move-focus" so that Control-Tab to escape from
691         something that eats Tab just works if not otherwise overriden.
692
693         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range) 
694         * gtk/gtkvscale.c (gtk_vscale_new_with_range)
695         * gtk/gtkhscale.c (gtk_hscale_new_with_range): Use a page_size
696         of zero for the adjustment, since at times we think that the range
697         is lower to upper - page_size. A page size equally to the 
698         step_increment is, in any case, not meaningful.
699
700 2002-01-29  Tor Lillqvist  <tml@iki.fi>
701
702         * README.win32: Add comment about gtk-1-3-win32-production branch
703         currently being ahead in functionality and code cleanliness (in
704         gdk/win32). Just in case somebody looks at the code in gdk/win32
705         here and starts fixing it, when it is going to change soonish
706         anyway.
707
708 2002-01-29  Sven Neumann  <sven@gimp.org>
709
710         * gtk/gtkrc.c: don't install an empty icon_set if none of the image
711         files could be found in the pixmap_path (bug #69398).
712         
713 2002-01-29  Sven Neumann  <sven@gimp.org>
714
715         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
716         that showed up when using the color picker.
717
718 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
719
720         * gtk/gtkscale.[hc]: fix default value for ::digits property,
721         leave as 1 as per havoc's request.
722         don't apply the draw_digits value to range->round_digits,
723         so we don't perform gross quantization by default.
724
725 2002-01-25  Havoc Pennington  <hp@redhat.com>
726
727         * gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion
728         failure by creating the line data, but not validating it at this
729         stage. Also, remove old code related to the "bogus newline" mess
730         that removed all tags from the last char in the buffer if you
731         tried to delete it.
732         (_gtk_text_line_data_new): put this here and prepend underscore,
733         remove from gtktextlayout.c
734
735 Mon Jan 28 19:57:39 2002  Owen Taylor  <otaylor@redhat.com>
736
737         * modules/input/imhangul.c modules/input/imhangul-defs.h
738         po/POTFILES.in. Add port of Emacs korean-hangul input
739         method from Yusuke Tabata (#67665)
740
741 Mon Jan 28 18:25:10 2002  Owen Taylor  <otaylor@redhat.com>
742
743         * gtk/gtkentry.c (gtk_entry_draw_frame): Paint shadow
744         before focus to give theme engines a bit morea
745         flexibility. (#69857)
746
747 Mon Jan 28 16:23:20 2002  Jonathan Blandford  <jrb@redhat.com>
748
749         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
750         g_assert.
751
752 2002-01-28  Jon Trowbridge  <trow@gnu.org>
753
754         * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
755         GtkTreeView's model, set prelight_node, prelight_tree,
756         button_pressed_node and button_pressed_tree to NULL. (#69603)
757
758 2002-01-28 Bill Haneman <bill.haneman@sun.com>
759
760         * gtk/gtkstyle.c:
761         Make sure that the default expanders are drawn with
762         an outline thickness appropriate to the size of the
763         expanders (RINT expander_size/7).
764         Added static gtk_style_draw_polygon_with_gc(), to
765         reduce code duplication.
766
767         * gtk/gtktreeview.c: (gtk_tree_view_bin_expose):
768         Use focus_line_thickness when drawing focus lines.
769
770         * gtk/gtktreeviewcolumn.c:(gtk_tree_view_column_cell_get_size):
771         Adjust requested width to include focus line thickness.
772         (gtk_tree_view_column_cell_render_or_focus):
773         Calculate a focus line rectangle which gets larger as the focus
774         line thickness increases, to avoid overwriting cell content.
775         Render left-aligned content at x+focus_line_width.
776         (gtk_tree_view_column_cell_draw_focus):
777         Don't draw a focus line around an editable text cell, since the
778         text caret already indicates keyboard focus.
779         Pass a GtkStateType appropriate to the focussed cell's state
780         to gtk_paint_focus.
781
782 Mon Jan 28 14:44:40 2002  Jonathan Blandford  <jrb@redhat.com>
783
784         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
785         activate/edit the row if shift is not pressed, #69248
786
787 2002-01-28  Anders Carlsson  <andersca@gnu.org>
788
789         * gtk/gtkcurve.c (gtk_curve_set_vector): Fix build.
790
791 2002-01-28  Matthias Clasen  <matthiasc@poet.de>
792
793         * gtk/{gtkalignment.c,gtkaspectframe.c,gtkbutton.c,
794         gtkcellrenderer.c,gtkcellrendererpixbuf.c,gtkcombo.c,
795         gtkcontainer.c,gtkcurve.c,gtkframe.c,gtklabel.c,
796         gtkmessagedialog.c,gtknotebook.c,gtkspinbutton.c,gtktable.c,
797         gtktext.c,gtktextview.c,gtktreeview.c,gtktreeviewcolumn.c,
798         gtkviewport.c,gtkwidget.c}: General property notification 
799         cleanup. (#69066)
800
801 2002-01-28  Anders Carlsson  <andersca@gnu.org>
802
803         * gtk/gtkaccelgroup.c (gtk_accel_groups_activate): & with the
804         default mod mask so accels work when numlock is on.
805
806 Sun Jan 27 23:23:23 2002  Kristian Rietveld  <kris@gtk.org>
807
808         * gtk/gtkrbtree.[ch]: add _gtk_rbtree_mark_invalid (my previous
809         commit already needed this ...)
810
811 Sun Jan 27 22:13:02 2002  Kristian Rietveld  <kris@gtk.org>
812
813         Fix for bug #69586
814
815         * gtk/gtktreeprivate.h: get rid of tab_offset, introduce
816         expander_size
817
818         * gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
819         expander_size caching (from style), fix CELL_HEIGHT macro,
820         use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
821         row height calculation, added style_set callback
822
823 2002-01-27  Anders Carlsson  <andersca@gnu.org>
824
825         * gtk/gtklabel.c (gtk_label_create_window): Set the cursor to
826         GDK_XTERM.
827
828         * gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.
829
830         * gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.
831
832         * gtk/gtktextview.c (set_invisible_cursor): New function.
833         (gtk_text_view_obscure_mouse_cursor): Likewise.
834         (gtk_text_view_key_press_event): Call obscure_cursor if text 
835         has been inserted.
836         (gtk_text_view_motion_event): Restore the mouse cursor.
837
838         * gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
839         (set_invisible_cursor): New function.
840         (gtk_entry_obscure_mouse_cursor): Likewise.
841         (gtk_entry_key_press): call obscure_cursor if text has been inserted.
842         (gtk_entry_motion_notify): Restore the mouse cursor.
843
844 2002-01-27  Sven Neumann  <sven@gimp.org>
845
846         * gtk/gtkstyle.c (sanitize_size): removed unused return value.
847
848 Sat Jan 26 19:27:23 2002  Owen Taylor  <otaylor@redhat.com>
849
850         * gtk/gtksocket.c (gtk_socket_grab_notify): Don't
851         send MODALITY_ON/OFF if socket->same_app (More fixes for #69735)
852
853 Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>
854
855         * gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
856         in the grab_widget == NULL case. (Bug reported by 
857         Padraig O'Briain, #69735)
858
859         * gtk/gtkplug.c (handle_modality_on): Realize the modality
860         window so gtk_widget_event() doesn't complain :-((((.
861
862 2002-01-25  Federico Mena Quintero  <federico@ximian.com>
863
864         Merge from gdk-pixbuf stable.
865
866         * gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
867         conversion --- swap the individual 16 bit values instead of taking
868         everying as a 32 bit value.
869         (rgb565lsb): Likewise.
870         (rgb555lsb): Likewise.
871         (rgb555msb): Likewise.
872
873 2002-01-25  Alex Larsson  <alexl@redhat.com>
874
875         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_drawable_impl_fb_class_init):
876         Implement copy_to_image instead of get_image
877         
878         * gdk/linux-fb/gdkimage-fb.c:
879         Implement _gdk_image_new_for_depth, _gdk_windowing_get_bits_for_depth and
880         _gdk_fb_copy_to_image.
881         Based in part on patch from Mathieu Lacage <mathieu_lacage@realmagic.fr>
882
883         * gdk/linux-fb/gdkmain-fb.c:
884         Make ENABLE_FB_MANAGER region larger.
885
886         * gdk/linux-fb/gdkprivate-fb.h:
887         Change _gdk_fb_get_image to _gdk_fb_copy_to_image.
888
889 2002-01-25  Sven Neumann  <sven@gimp.org>
890
891         * gtk/gtkwindow.c (gtk_window_get_size): changed the comment so
892         that gtk-doc doesn't get confused.
893
894 Fri Jan 25 14:03:36 2002  Tim Janik  <timj@gtk.org>
895
896         * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
897         that the passed in arrow is always _UP or _DOWN, this catches
898         false invocations which lead to drawing artefacts.
899         (start_spinning): likewise, i.e. sanity check the passed in arrow.
900         (gtk_spin_button_button_release): fix arrow redrawing.
901         (gtk_spin_button_button_press): must set click_child for
902         button3 even if we don't take spinning action right away.
903
904         * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
905         valid values for click_child.
906
907 Thu Jan 24 23:03:24 2002  Kristian Rietveld  <kris@gtk.org>
908
909         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
910         return current FALSE if x is smaller than the current visible area,
911         not than the requested area, don't correct y coordinate,
912         TREE_WINDOW_Y_TO_RBTREE_Y will do that. Fixes #67477.
913
914 Thu Jan 24 15:41:08 2002  Jonathan Blandford  <jrb@redhat.com>
915
916         * gtk/gtktreeview.c
917          (gtk_tree_view_motion_draw_column_motion_arrow): fix column
918          reordering fully.
919          (gtk_tree_view_size_allocate): fix evil bug.
920
921 Thu Jan 24 11:53:19 2002  Owen Taylor  <otaylor@redhat.com>
922
923         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't clear
924         the model until we clean up all the other objects
925         that might refer to the object.
926
927 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
928
929         * gtk/gtkaccessible.h: include gtk/gtkwidget.h
930
931 Wed Jan 23 20:28:59 2002  Owen Taylor  <otaylor@redhat.com>
932
933         * gtk/gtknotebook.c (gtk_notebook_draw_arrow): 
934         Use insensitive state for insensitive arrows, not
935         just an "etched state". (#67172, Adrian Custer)
936
937 2002-01-23  Manish Singh  <yosh@gimp.org>
938
939         * gtk/gtkentry.c (gtk_entry_set_text): use a variable that's actually
940         been declared.
941
942 2002-01-23  Damon Chaplin  <damon@ximian.com>
943
944         * configure.in (gtk_doc_min_version): set minimum gtk-doc version to
945         0.9, since we need to use the new --type-init-func argument for
946         gtkdoc-scangobj.
947
948 2002-01-23  Matthias Clasen  <matthiasc@poet.de>
949
950         * gtk/gtkentry.c, gtk/gtkwidget.c: Remove excessive
951         g_return_if_fail() calls. (#57615)
952
953         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries): Make
954         it work for paths with underline accelerators. (#69247)
955
956 Wed Jan 23 15:12:16 2002  Owen Taylor  <otaylor@redhat.com>
957
958         * gtk/gtkspinbutton.c (gtk_spin_button_state_changed): 
959         Stop spinning if widget becomes insensitive. (#56248)
960
961 Wed Jan 23 14:44:12 2002  Owen Taylor  <otaylor@redhat.com>
962
963         * gtk/gtkspinbutton.c (EPSILON): Decrease value since
964         we now use doubles.
965
966 Tue Jan 22 16:58:37 2002  Jonathan Blandford  <jrb@redhat.com>
967
968         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Fix sizing bug
969         I introduced accidentally, #69358
970
971 2002-01-22 Padraig O'Briain <padraig.obriain@sun.com>
972
973         * gtk/gtktreestore.c (gtk_tree_store_iter_children):
974         Update last change to prevent core dump
975
976 Mon Jan 21 01:21:54 2002  Kristian Rietveld  <kris@gtk.org>
977
978         * gtk/gtktreestore.c: add some more stamp checks (pointed out
979         by Anders Carlsson)
980
981         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
982         assume _row_changed will insert sort (because _row_changed doesn't
983         need to follow this signal), so apply insert sort here
984         (gtk_tree_model_sort_level_find_insert): header doesn't need to be
985         set here, so use a return instead of g_return_val_if_fail.
986
987 Mon Jan 21 18:28:17 2002  Jonathan Blandford  <jrb@redhat.com>
988
989         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update
990         top_row.  Remove extraneous print statements.
991
992 2002-01-21  Matthias Clasen  <matthiasc@poet.de>
993
994         * gtk/gtkitemfactory.c (gtk_item_factory_popup, 
995         gtk_item_factory_popup_with_data): Document allowed values
996         for ifactory.
997
998         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make 
999         it work for paths with underline accelerators.
1000
1001 Fri Jan 18 16:31:21 2002  Jonathan Blandford  <jrb@redhat.com>
1002
1003         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
1004         window.
1005
1006 Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
1007
1008         * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
1009         case where there is no default widget and the entry
1010         is the focus widget, since this also causes infinite
1011         recursion. (#69158)
1012
1013 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
1014
1015         * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
1016         rather than lazilygdk_get_program_class(), since we don't want
1017         -name to override it. (#69123, Ryan Lovett)
1018
1019 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
1020
1021         * gdk/gdk.c: Fix wrong types for command line arguments 
1022         (#69124, Ryan Lovett)
1023
1024         * gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
1025         parsing '--arg VALUE'.
1026
1027         * gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
1028
1029 2002-01-21  Havoc Pennington  <hp@pobox.com>
1030
1031         * gdk/gdkwindow.c (gdk_window_add_filter): mention that window 
1032         arg can be NULL
1033
1034 Sat Jan 19 20:49:41 2002  Kristian Rietveld  <kris@gtk.org>
1035
1036         * demos/gtk-demo/editable_cells.c: fix a load of open line ends
1037         (cell_edited): modified patch from German Poo Caaman~o
1038         to fix up old_text declaration and free the memory
1039         (do_editable_cells): unref the model after creating the treeview
1040
1041         * demos/gtk-demo/list_store.c: fix a load of open line ends,
1042         (add_columns): set the sort column id, so we can sort
1043
1044         * demos/gtk-demo/tree_store.c: fix a load of open line ends,
1045         (do_tree_store): unref the model after creating the treeview
1046
1047 2002-01-19  Havoc Pennington  <hp@pobox.com>
1048
1049         * gtk/gtkwindow.c: link to new X11 section in a lot of places when
1050         mentioning the window manager.
1051
1052         * gtk/gtkwidget.c (gtk_widget_hide_on_delete): don't mention
1053         window manager since we're portable.
1054
1055 Sat Jan 19 08:47:41 2002  Jeff Garzik  <jgarzik@mandrakesoft.com>
1056
1057         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
1058         Wrap case values in GPOINTER_TO_UINT().  Fixes build with gcc 3.x.
1059
1060         * gtk/gtkmain.c:  Include sys/types.h if G_OS_UNIX.
1061         Fixes build with gcc 3.x and -ansi.
1062
1063 Fri Jan 18 23:01:37 2002  Owen Taylor  <otaylor@redhat.com>
1064
1065         * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
1066         an engine declaration occurs in a reopened style, and
1067         g_free() of objects when errors occur.
1068
1069 2002-01-18  Matthias Clasen  <matthiasc@poet.de>
1070
1071         * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
1072         Clarify documentation. (#69026)
1073
1074         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
1075         missing initialization of adjustment. (#69025)
1076
1077 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
1078
1079         Simplify Makefiles. 
1080         <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
1081         * gdk/Makefile.am: Remove use of automake conditionals to pick
1082         library to build.
1083         * gtk/Makefile.am: Likewise.
1084         
1085         * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
1086         * gtk/Makefile.am (LDFLAGS): Likewise.
1087
1088 Thu Jan 17 20:13:14 2002  Owen Taylor  <otaylor@redhat.com>
1089
1090         * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
1091         missing allocation.x/y offsets. (#68962, Jacob
1092         Berkman)
1093
1094         * gtk/gtknotebook.c (gtk_notebook_size_allocate):
1095         Queue a redraw on the entire widget if we hide
1096         the last page or show the first. (Also #68962)
1097         
1098 2002-01-17  Havoc Pennington  <hp@redhat.com>
1099
1100         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
1101         GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
1102         starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
1103         as in the keynav spec, though it makes the interpretation of
1104         GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
1105         of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
1106         any sense anyhow.
1107
1108 Thu Jan 17 16:34:55 2002  Jonathan Blandford  <jrb@redhat.com>
1109
1110         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
1111         some reason, I was activating a row while just selecting it.
1112         Reported by andersca.
1113         (gtk_tree_view_size_request): add a
1114         validate_rows_handler to give us a rough width of the widget.
1115
1116         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
1117         Queue a resize here just in case.  It's needed in over half the
1118         cases, and I don't want to do a diff to figure out exactly when
1119         it's needed.
1120
1121 2002-01-17  Matthias Clasen  <matthiasc@poet.de>
1122
1123         * gtk/gtkinputdialog.c,
1124         gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
1125         Mark children as composite. (#66360)
1126
1127         * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
1128         composite children some more. (#66360)
1129
1130 2002-01-17  Havoc Pennington  <hp@redhat.com>
1131
1132         * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
1133         function (which I then decided not to use but I think it's needed
1134         to fix #68963
1135
1136         * gtk/gtktextview.c: add page_horizontally action signal and
1137         implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig, 
1138         hackily modified to avoid adding GTK_MOVEMENT_ API. Part of 
1139         #53934
1140
1141         * gtk/gtkmarshalers.list: add NONE:INT,BOOL
1142
1143 Thu Jan 17 17:02:38 2002  Owen Taylor  <otaylor@redhat.com>
1144
1145         * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
1146         gtk_selection_remove_all() here, not in destroy/
1147         finalize. (#66636, Sergey Vlasov)
1148
1149         * gtk/gtkselection.c (gtk_selection_request): Fix
1150         reentrancy problem with multiple conversions.
1151
1152         * gtk/gtkselection.c (gtk_selection_remove_all): 
1153         Don't remove incrs, we don't need the widget for
1154         maintain the incr.
1155
1156         * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
1157         the widget field from here, we don't need it.
1158
1159 Thu Jan 17 13:08:34 2002  Owen Taylor  <otaylor@redhat.com>
1160
1161         * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
1162         here, and save/restore the X error handler to allow
1163         people using GTK+ to set the X error handler to something
1164         custom without disturbing the operation of GDK.
1165
1166         * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push) 
1167         * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
1168         dummy implementations.
1169
1170         * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c 
1171         gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
1172         for all error trapping.
1173
1174         * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
1175
1176         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
1177         problem where we would add the results anyways,
1178         and then add it again if no error occurred, and problem
1179         where we could leave _gdk_error_warnings() unset.
1180
1181 Wed Jan 16 20:28:38 2002  Owen Taylor  <otaylor@redhat.com>
1182
1183         * gtk/gtkfilesel.c: Fix "deleting" filename by adding
1184         another boolean parameter to file_selection_populate() -
1185         whether to clear the entry. Also, never fill in the
1186         entry when the user clicks on something in the 
1187         directory list. (#6791, Reported by Jos Dehaes and many,
1188         many, many others.)
1189
1190 2002-01-16  Havoc Pennington  <hp@redhat.com>
1191
1192         * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
1193         cursor_y_pos with clamped delta rather than theoretical delta
1194         (#68788). Also, if we can't page up/down further then jump 
1195         to top/bottom of the document.
1196
1197 Wed Jan 16 19:33:41 2002  Owen Taylor  <otaylor@redhat.com>
1198
1199         * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
1200         the dialog on map. (#52877, inspired by request from
1201         Murray Cumming)
1202
1203 Wed Jan 16 19:23:04 2002  Owen Taylor  <otaylor@redhat.com>
1204
1205         * gtk/gtkbindings.c (gtk_binding_entry_activate): 
1206         Support "optional" bindings. If a binding signal
1207         has a boolean return value, and returns FALSE it
1208         is as if it didn't exist all.
1209
1210         * gtk/gtkbindings.c (binding_compose_params): Switch
1211         over to GValue.
1212
1213         * gtk/gtknotebook.[ch]: Make the select_page() and
1214         change_current_page() signals only take effect when
1215         the focus is on the tab area so that key presses
1216         in children pass up to the toplevel correctly.
1217
1218 Wed Jan 16 12:16:37 2002  Owen Taylor  <otaylor@redhat.com>
1219
1220         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix 
1221         calculation error in the (shouldn't happen) case where
1222         option_menu->height < child_requisition.height. (Patch
1223         from Jacob Berkman, #66969)
1224
1225 2002-01-15  Matthias Clasen  <matthiasc@poet.de>
1226
1227         * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
1228
1229         * gtk/gtkscale.h (gtk_scale_value_width): Remove useless 
1230         compatibility macro. (#67730) 
1231
1232 Wed Jan 16 10:54:38 2002  Owen Taylor  <otaylor@redhat.com>
1233
1234         * configure.in: Fix typo in --help output.
1235         (Arnaud Charlet).
1236
1237 Wed Jan 16 10:18:42 2002  Owen Taylor  <otaylor@redhat.com>
1238
1239         * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add 
1240         gtkstockpixbufs.h.
1241
1242         * configure.in: Make TIFF, JPEG, PNG loaders mandatory
1243         unless you configure with --without-libtiff, etc.
1244         (#54045, Brian Cameron)
1245
1246 2002-01-16  Padraig O'Briain <padraig.obriain@sun.com>
1247
1248         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
1249         Avoid unexpected warning message when navigating menu (#68517)
1250
1251 2002-01-15  Jody Goldberg <jody@gnome.org>
1252
1253         * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
1254         GtkLayout may have been scrolled _before_ it was realized.
1255
1256 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
1257
1258         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
1259         the timer on destroy, or when we are notified that we are
1260         shadowed by a modal dialog.
1261
1262         * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
1263         not needed any more.
1264
1265         * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
1266         weren't sent out for the default grab group.
1267
1268         * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
1269         were getting events because they were part of the previous grab.
1270
1271 Tue Jan 15 12:23:33 2002  Owen Taylor  <otaylor@redhat.com>
1272
1273         * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page): 
1274         focus the activated tab, not the page. (#53612)
1275
1276         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
1277         the last focus descendant of the page.
1278
1279         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
1280         was on the previous page, move it to the last focused widget /
1281         first element on the new page, if possible, or if not, to the 
1282         notebook itself. (#68224, reported by Jonathan Blandford)
1283
1284         * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
1285         tabs aren't visible. (#65462, Damon Chaplin, fixed based 
1286         on patch from Anders Carlsson)
1287
1288 2002-01-15            Vitaly Tishkov       <tvv@sparc.spb.su>
1289
1290         * gtk/gtkstyle.c
1291         a misprint in documentation for gtk_style_render_icon () is fixed
1292
1293 Mon Jan 14 23:21:47 2002  Tim Janik  <timj@gtk.org>
1294
1295         * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
1296         mapping child, so we don't loose events.
1297
1298 2002-01-15  Sven Neumann  <sven@gimp.org>
1299
1300         * gtk/gtkaccellabel.h
1301         * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
1302         names used in headers and code.
1303
1304 2002-01-14  jacob berkman  <jacob@ximian.com>
1305
1306         * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
1307
1308 Tue Jan 15 01:13:51 2002  Kristian Rietveld  <kris@gtk.org>
1309
1310         * gtk/gtktreemodelsort.c: fix a load of open line ends,
1311         (gtk_tree_model_sort_set_model): only free root level if it's
1312         !NULL
1313
1314 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
1315
1316         * gtk/gtkoldeditable.c, gtk/gtkrc.c, 
1317         gtk/gtkstyle.c: Documentation additions.
1318
1319         * gtk/gtkmenu.c (gtk_menu_set_accel_path),
1320         gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path), 
1321         gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
1322
1323         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
1324
1325         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
1326
1327 Mon Jan 14 17:14:13 2002  Owen Taylor  <otaylor@redhat.com>
1328
1329         * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
1330         mangle sequences of consecutive \n or \r.
1331
1332 Mon Jan 14 17:42:28 2002  Jonathan Blandford  <jrb@redhat.com>
1333
1334         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
1335         happen.
1336
1337         * gtk/gtktreeview.c (install_presize_handler): only install the
1338         handler if we're realized, #68056
1339
1340 Mon Jan 14 16:35:58 2002  Owen Taylor  <otaylor@redhat.com>
1341
1342         * gtk/gtkwindow.c (gtk_window_move_resize): Unset 
1343         initial_pos_set after the first configure request.
1344
1345 2002-01-13  Jody Goldberg <jody@gnome.org>
1346
1347         * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
1348           and will use a mem_chunk to do it.  Avoid an unnecessary copy, a
1349           leak, and confusion.
1350
1351 Sun Jan 13 23:23:22 2002  Owen Taylor  <otaylor@redhat.com>
1352
1353         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
1354         widget->requisition was being used instead of
1355         gtk_widget_get_child_requisition (), causing geometry widgets
1356         with usizes to misbehave.
1357
1358 2002-01-14  Sven Neumann  <sven@gimp.org>
1359
1360         * gtk/gtkrc.c: g_getenv() returns a const string.
1361
1362 2002-01-14  Hasbullah Bin Pit  <sebol@ikhlas.com>
1363
1364         * configure.in: Added ms at ALL_LINGUAS.
1365         * po/ms.po: Added Malay Translation.
1366
1367 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
1368
1369         * gtk/gtkitemfactory.c: Documentation.
1370
1371 2002-01-13  Sven Neumann  <sven@gimp.org>
1372
1373         * gdk/gdkwindow.c: documentation cleanups.
1374
1375 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
1376
1377         * gtk/gtktreemodelsort.c: various cleanups,
1378         (get_child_iter_from_elt): removed,
1379         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
1380         and especially faster,
1381         (gtk_tree_model_convert_iter_to_child_iter): use
1382         gtk_tree_model_sort_elt_get_path
1383
1384 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
1385
1386         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1387         revert Owen's change (using a strdupped string as object data), so
1388         the interactive search works again
1389
1390 2002-01-11  Havoc Pennington  <hp@pobox.com>
1391
1392         * gtk/gtklabel.c: put in more links to Pango markup format docs
1393         (gtk_label_set_justify): mention gtk_misc_set_alignment
1394
1395 2002-01-12  Tor Lillqvist  <tml@iki.fi>
1396
1397         Fixes contributed by Archaeopteryx Software: This is a first small
1398         part of their changes. Will commit more later.
1399         
1400         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
1401         call fails, don't use bogus values.
1402
1403          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
1404         memory leak: g_free() the AND and XOR bitmaps after use.
1405         (_gdk_cursor_destroy): If we are destroying the current Windows
1406         cursor, set the Windows cursor to none first.
1407
1408         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
1409         brush that was in the DC, like the win32-procution branch does. I
1410         guess this plugs a resource leak? With the HDC cache, the old
1411         brush might be something we created ourselves, and not a stock
1412         brush. And it doesn't do any harm to call DeleteObject on stock
1413         brushes.
1414
1415         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
1416         the window has a cursor which is the current Windows cursor,
1417         before destroying it set the current Windows cursor to none.
1418         (gdk_window_set_cursor): Also here, if destroying the current
1419         Windows cursor, set the current Windows cursor to none first.
1420         (gdk_window_get_pointer): Revamp logic.
1421         
1422 2002-01-10  jacob berkman  <jacob@ximian.com>
1423
1424         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
1425         through the list rather than infinitely loop
1426
1427 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
1428
1429         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
1430         reset_rc_styles_recurse(). (#68084)
1431
1432 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
1433         * gtk/gtkimage.c
1434         * gtk/gtkimcontext.c
1435         * gtk/gtktreemodel.c
1436         * gtk/gtktreemodelsort.c
1437         * gtk/gtkwindow.c
1438         fix docs        
1439
1440 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
1441
1442         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
1443         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
1444
1445 2002-01-10  Tor Lillqvist  <tml@iki.fi>
1446
1447         Apply the same fixes and improvements as to the
1448         gtk-1-3-win32-production branch: Bug fixes and cleanup of
1449         selection and DND functionality. Still doesn't work as well as the
1450         win32-production branch, though, but getting closer.
1451
1452         After this, need to add Archaeopteryx Software's OLE2 DND support.
1453
1454         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
1455         gdk_selection_send_notify, generate_selection_notify): Don't use
1456         SendMessage() to generate events for the same app, instead use
1457         gdk_event_put().
1458
1459         * gdk/win32/gdkprivate-win32.h
1460         * gdk/win32/gdkglobals-win32.c
1461         * gdk/win32/gdkmain-win32.c
1462         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
1463         initialisation and handling of gdk_selection_notify_msg,
1464         gdk_selection_request_msg and gdk_selection_clear_msg. 
1465
1466         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
1467         gdk_free_text_list, gdk_string_to_compound_text,
1468         gdk_free_compound_text): Implement trivially, witrh a text_list
1469         always having a single element, and a compound text always
1470         consisting of just a single (UTF-8!) string. Let's see how well
1471         this works.
1472
1473         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
1474         non-ASCII paste from the clipboard: Try getting the same formats
1475         from the Windows clipboard that gdk_property_change() puts there:
1476         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
1477
1478         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
1479         storing text on the clipboard, handle non-ASCII text
1480         correctly. The logic is as follows:
1481
1482         If we have only ASCII characters, use CF_TEXT.
1483
1484         Else, if we are on NT, use CF_UNICODETEXT.
1485
1486         Else (we are on Win9x), if all the characters are present in the
1487         code page of some installed locale, use CF_TEXT and also set
1488         CF_LOCALE to that locale.
1489
1490         Else (still on Win9x) store as RTF. We use a very simple RTF
1491         string, just the text, no fonts or other crap, with the non-ASCII
1492         characters as Unicode \uN keywords. Additionally, also store the
1493         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
1494         can also paste from the Clipboard what it has copied there. (Thus
1495         no need to implement any RTF parser.)
1496         
1497         (find_common_locale): New function, implements the search for a
1498         locale for case 3 above.
1499
1500         * gdk/win32/gdkglobals-win32.c: New global variables
1501         compound_text, text_uri_list, utf8_string, cf_rtf and
1502         cf_utf8_string.
1503
1504         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
1505         converts from a wchar_t string to UTF-8.
1506         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
1507         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
1508
1509         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
1510         _gdk_ucs2_to_utf8().
1511
1512         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
1513
1514         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
1515         gdk_drag_context_ref() was called unnecessarily in a couple of
1516         places, meaning drag contexts were never freed. The same memory
1517         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
1518
1519         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
1520         stored file list.
1521
1522         * gdk/win32/gdkselection-win32.c: Clarify the use of the
1523         sel_prop_table. Now it is used only for storing the GDK_SELECTION
1524         "properties".
1525
1526         The file names dropped with WM_DROPFILES -style DND is stored
1527         temporarily (between the drop and the target picking them up) in a
1528         separate place.
1529
1530         Have a separate hash table to map selection atoms to owner
1531         windows. This used to be quite mixed up.
1532
1533         (_gdk_dropfiles_store): New function, to store the dropped file
1534         list for the drop target to possibly fetch, and clear it
1535         afterwards, from gdk_drop_reply().
1536
1537         (gdk_selection_owner_get): Much simplified now.
1538
1539 2002-01-09  jacob berkman  <jacob@ximian.com>
1540
1541         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
1542         our bin window also (fixes #58957)
1543
1544 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
1545
1546         * gtk/gtktreeselection.c
1547         (_gtk_tree_selection_internal_select_node): Now we test we can
1548         unselect nodes before selecting new ones.
1549         (gtk_tree_selection_real_select_node): be careful comparing booleans.
1550
1551 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
1552
1553         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
1554         gtk_tree_model_rows_reordered and not an iter with user_data
1555         set to NULL (which is an invalid liststore iter, so
1556         iter_n_children failed, etc)
1557
1558 2002-01-09  Sven Neumann  <sven@gimp.org>
1559
1560         * tests/prop-editor.c: declared internal functions static.
1561         
1562 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
1563
1564         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
1565         Fix problem with menus without accel groups, such as the
1566         menus for option menus.
1567
1568         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
1569         drawing of handle on whether both children are visible,
1570         not the drawing of the other child!. (#68325, Diego Gonzalez)
1571
1572 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
1573
1574         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
1575         RENDER before trying to use it... XRenderFindFormat() prints
1576         warnings if called when extension isn't present.
1577
1578 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
1579
1580         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
1581         path upon parent changes.
1582
1583 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
1584
1585         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
1586         fix to force vadjustments at size_alocate time from Xavier Ordoquy
1587         <mcarkan@users.sourceforge.net>.
1588
1589 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
1590
1591         * gtk/gtklayout.c (gtk_layout_get_property): 
1592         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
1593         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
1594         * gtk/gtkwidget.c (gtk_widget_get_property): 
1595         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
1596         * gtk/gtkrange.c (gtk_range_get_property):
1597         * gtk/gtkviewport.c (gtk_viewport_get_property):
1598         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
1599         possible NULL pointer.
1600
1601 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
1602
1603         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
1604         * gtk/gtktreednd.h : ditto.
1605         * gtk/gtktreemodel.h : ditto.
1606         * gtk/gtktreesortable.h : ditto.
1607         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
1608
1609 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
1610
1611         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
1612         than XIDs in the docs.
1613
1614         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
1615
1616 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
1617
1618         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
1619         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
1620
1621 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
1622
1623         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
1624         Handle TOGGLE/RADIOBUTTON as well. (#68201,
1625         Damon Chaplin.)
1626
1627         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
1628         bug, just introduced.
1629
1630 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
1631
1632         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
1633         translations, once and for all.
1634
1635         * gtk/gtktextbuffer.c (paste_from_buffer): Free
1636         the ClipboardRequest structure. (#66198, HideToshi
1637         Tajima)
1638
1639 2002-01-08  jacob berkman  <jacob@ximian.com>
1640
1641         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
1642         the child rather than the layout. see bug #68263
1643
1644 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
1645
1646         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
1647         the handle if we aren't showing both children.
1648         (#68135, Diego Gonzalez)
1649
1650 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
1651
1652         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
1653         leak of result of gtk_container_get_children().
1654
1655 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
1656
1657         * gtk/gtktoolbar.c: Fix leaks of results of
1658         gtk_container_get_children(). (#68199, Damon Chaplin)
1659
1660 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
1661
1662         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
1663         Fix problem where child->requisition was accessed
1664         directly instead of calling get_child_requisition()
1665         (#68199, Damon Chaplin)
1666
1667 2001-01-08  James Henstridge  <james@daa.com.au>
1668
1669         * gtk/gtkstyle.c: add trailing */ on doc comment.
1670
1671 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
1672
1673         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
1674         problem where were the offset into the image was passed
1675         into convert_to_format() wrong.
1676
1677         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
1678         gdk_x11_drawable_update_picture_clip () before using
1679         the picture; allow update_picture_clip() to take a NULL gc
1680         to mean no clipping.
1681
1682 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
1683
1684         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
1685
1686         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
1687
1688         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
1689
1690         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
1691
1692         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
1693         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
1694         gtk_widget_push_composite_child), gtk/gtkdialog.c 
1695         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
1696         from messing up the indentation of inline examples.     
1697
1698         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
1699         instead of getenv().
1700
1701         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
1702         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
1703         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
1704
1705         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
1706         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
1707         Document.
1708
1709 2002-01-07  Anders Carlsson  <andersca@gnu.org>
1710
1711         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
1712         unused pixels and rowstride variables.
1713         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
1714
1715 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
1716
1717         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
1718         the pointer by x/y_offset into the new window when we found
1719         the drag destination.
1720
1721         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
1722         for simulation when the entry already contains the required
1723         accel key and mod.
1724
1725 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
1726  
1727         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
1728         G_DISABLE_CAST_CHECKS.
1729
1730         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
1731         gtk_accel_group_query, gtk_accel_group_find,
1732         gtk_accel_groups_from_object): Document.
1733
1734         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
1735
1736 2002-01-04  Hans Breuer  <hans@breuer.org>
1737
1738         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
1739         need to cast image->mem away from void* to avoid 
1740         'error C2036: 'void *' : unknown size'. Doing pointer 
1741         arithmetics on void pointers is a GCCism afaik.
1742
1743         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
1744         _gdk_draw_pixbuf ()
1745
1746         * gdk/makefile.msc gdk/win32/makefile.msc 
1747         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
1748
1749         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
1750         and take care of image->visual possibly NULL.
1751
1752         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
1753         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
1754         Again take care of image->visual possibly NULL.
1755
1756         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
1757
1758         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
1759         instead of private field access
1760
1761         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
1762         colormap setting to the gdk-X behaviour
1763
1764 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
1765
1766         * gtk/gtkwidget.c: Documentation additions.
1767
1768 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
1769
1770         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
1771
1772         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
1773
1774 2002-01-04  Havoc Pennington  <hp@pobox.com>
1775
1776         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
1777         
1778 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
1779
1780         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
1781         don't infinite loop if the widget and window heirarchies
1782         don't correspond.
1783
1784         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
1785         in heirarchy in ::drag_motion, ::drag_drop callbacks
1786         by referencing child widget lists. (Patch from Tim)
1787
1788         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
1789         with widgets where window.x != widget->allocation.x
1790
1791 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
1792
1793         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
1794         a little bit. (More for consistency than because it
1795         makes much of a difference.)
1796
1797 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
1798
1799         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
1800         (_gdk_x11_have_render): Private function to tell if we have RENDER
1801         extension.
1802
1803         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
1804         None if we don't have RENDER extension.
1805
1806         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
1807         use Xft unless we have render extension.
1808
1809         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1810         Handle missing render extension.
1811
1812         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
1813         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
1814         to the GdkDrawable vtable that extends get_image() to allow
1815         copying onto existing images.  Make the default implementation of
1816         get_image() use this so that backends don't have to implement
1817         both. Add private wrapper _gdk_drawable_copy_to_image().
1818
1819         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
1820         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
1821         copy_to_image() semantics, speed up by using ShmPixmaps and
1822         XCopyArea when possible, XFlush() after ungrabbing the server,
1823         generally redo the logic once again.
1824
1825         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
1826         _gdk_windowing_bits_per_depth(): Function to convert from depth to
1827         bits-per-pixel. (We assume only one bpp per depth - X requires
1828         this.)
1829
1830         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
1831         scratch image code into a generic _gdk_image_get_scratch() chunk
1832         of code that we can use other places we need scratch images.
1833
1834         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
1835         Add _gdk_image_new_for_depth() as the backend 
1836         to _gdk_image_new() to allowing creating images with
1837         a depth and no visual.
1838
1839         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
1840         parts of images not at 0,0 actually works.
1841
1842         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
1843         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
1844          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
1845           _gdk_draw_pixbuf() [ will be made public later ], to allow 
1846           backends to accelerate drawing pixbufs. 
1847          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
1848            to be the default implementation. 
1849          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
1850          - Optimize the default implementation by using 
1851            _gdk_image_copy_to_pixmap() and scratch shared images, and
1852            special casing the compositing.
1853
1854         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
1855         with alpha using the RENDER extension.
1856
1857         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
1858         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
1859
1860         * tests/testrgb.c: Add test for speed of alpha composition,
1861         reduce the number of iterations since alpha composition
1862         can be a bit slow.
1863
1864         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
1865         Private function to get a ShmPixmap for an image, if possible.
1866
1867 2002-01-04  Anders Carlsson  <andersca@gnu.org>
1868
1869         * tests/testtreesort.c: Add my cool list of integers.
1870
1871 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
1872
1873         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
1874         problem where retrieved atoms weren't properly returned.
1875
1876 2002-01-03  Anders Carlsson  <andersca@gnu.org>
1877
1878         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
1879         tab is pressed and the text view isn't editable, 
1880         move the focus instead.
1881
1882         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
1883         necessary.
1884
1885         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
1886
1887         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
1888
1889         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
1890         if it's NULL.
1891
1892         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
1893         _gtk_tree_view_queue_draw_node.
1894         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
1895
1896         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
1897         sort_column_id can be 0.
1898
1899         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
1900         Only redraw one the node being selected.
1901
1902         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
1903         
1904 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
1905
1906         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
1907         realized but visible && !mapped resize containers (which is
1908         possible with unset CHILD_VISIBLE now).
1909
1910 2002-01-02  jacob berkman  <jacob@ximian.com>
1911
1912         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
1913         libsomething_la_LDFLAGS, so fix the build again
1914
1915 2002-01-01  Havoc Pennington  <hp@pobox.com>
1916
1917         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
1918         exposes to no window children not in the buffer window.
1919         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
1920         - is this the right way to do it?
1921         (gtk_text_view_focus): add focus method, just chains up for now, 
1922         I'm not sure why the GtkContainer implementation doesn't work
1923
1924         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
1925         in the text line for the child anchor segment
1926
1927         * tests/testtext.c (do_add_focus_children): add another test
1928         example (to put focusable buttons into the widget)
1929
1930 2002-01-01  Havoc Pennington  <hp@pobox.com>
1931
1932         * docs/README.linux-fb: note that this file is obsolete
1933
1934         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
1935         files that they should not be edited and look in the reference 
1936         manual instead. Probably these files should just be replaced by 
1937         the note, and their main contents deleted.
1938
1939         * gtk/gtktextview.c: docs
1940
1941         * gtk/gtktextmark.c: docs
1942
1943         * gtk/gtktextchild.c: docs
1944
1945         * gtk/gtktextbuffer.c: docs stuff
1946
1947         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
1948         give people more leads in sorting out PRIMARY vs. CLIPBOARD
1949
1950 2002-01-01  Tor Lillqvist  <tml@iki.fi>
1951
1952         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
1953         ../gdk-pixbuf/gdk-pixbuf-csource.
1954
1955 2001-12-31  Tor Lillqvist  <tml@iki.fi>
1956
1957         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
1958         handling.
1959         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
1960
1961         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
1962         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
1963         one more place.
1964
1965         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
1966         -Wall.
1967
1968         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
1969
1970 2002-01-01  Havoc Pennington  <hp@pobox.com>
1971
1972         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
1973         fix
1974         
1975 2002-01-01  Havoc Pennington  <hp@pobox.com>
1976
1977         * gtk/gtktextview.c (changed_handler): Replace call to
1978         gtk_widget_size_request() that expected to actually compute the
1979         request with a direct use of widget_class->size_request, so we get
1980         our size request right; fixes remaining part of #63065 reported by
1981         Matthias Clasen
1982
1983 2001-12-31  Havoc Pennington  <hp@pobox.com>
1984
1985         * tests/testtext.c (do_insert_and_scroll): remove backward_char
1986         since we no longer have bogus newline
1987         (dialog_response_callback): remove another backward_char horkage, 
1988         reported by Matthias Clasen #63065
1989
1990 2001-12-31  Havoc Pennington  <hp@pobox.com>
1991
1992         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
1993         fix an incorrect assertion that the "valid" flag is always correct
1994         in a node and add explanatory comment. This keeps me from 
1995         reproducing #59101, but I'm remembering that 59101 was actually 
1996         about incorrect pixel totals, so I'm not sure 59101 is actually 
1997         fixed. May just have stopped happening due to some change in 
1998         how C-k works.
1999
2000 2001-12-31  Havoc Pennington  <hp@pobox.com>
2001
2002         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
2003         selection if shift is down, bug #50939
2004         (gtk_text_view_button_press_event): add double/triple click
2005         selection to the current selection if shift is down
2006
2007 2001-12-31  Havoc Pennington  <hp@pobox.com>
2008
2009         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
2010         to use ensure_byte_offsets not ensure_char_offsets, patch 
2011         from Padraig O'Briain bug #67356
2012         
2013 2001-12-30  Havoc Pennington  <hp@pobox.com>
2014
2015         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
2016         the right values, reported by Jeff Franks
2017
2018 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
2019
2020         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
2021
2022 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
2023
2024         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
2025         Minor documentation tweaks.
2026
2027 2001-12-28  Tor Lillqvist  <tml@iki.fi>
2028
2029         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
2030         (unicode_classify): Don't return -1 on encountering an
2031         unclassified character, but play it safe and return U_BASIC_LATIN.
2032
2033 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
2034
2035         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
2036         of misc->xpad/ypad consistent with GtkLabel. Do 
2037         directional flipping when interpreting misc->xalign/yalign.
2038         Fix off-by-one error for negative x,y. (#67472, reported
2039         by Mathieu Lacage)
2040
2041 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
2042
2043         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
2044         Remove optimization that was causing problems because
2045         we called gtk_widget_size_request() before we called
2046         gtk_widget_queue_resize() so RESIZE_NEEDED was not
2047         set. Optimization shouldn't mattter now that we
2048         are smart about needlessly size requesting or allocating
2049         widgets. (#67598, reported by Jacob Berkman)
2050
2051 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
2052
2053         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
2054         Call gdk_window_get_pointer() on menu->bin_window not
2055         menu->window, so we get the correct window for the
2056         menu item. (#65213, Guillermo S. Romero)
2057
2058 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
2059
2060         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
2061         the title by setting to NULL. Move docs inline. 
2062         Update the title if the tearoff window already
2063         exists. Code cleanup. (Fixes #65190, reported by
2064         Vitaly Tishkov.)
2065
2066 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
2067
2068         * gtk/gtksocket.c (gtk_socket_key_press_event): 
2069         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
2070         special handling of key presses unless we are doing 
2071         iter-app embedding. (Fixes #67590, Anders Carlsson)
2072
2073 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
2074
2075         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
2076         (gtk_tree_model_sort_sort_level),
2077         (gtk_tree_model_sort_insert_value): fix a few places where
2078         I was confused between modelsort iters and other iters. This was
2079         really going to happen someday ;)
2080
2081 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
2082
2083         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
2084         we are unprelighted before reordering
2085
2086         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
2087         need to break out of the for loop, not return (this fixed
2088         the 'selection freeze' bug).
2089
2090         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
2091         be pretty stable now, though it still needs some more code
2092         cleanups.
2093
2094 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
2095
2096         * docs/Changes-2.0.txt: Document the fact that
2097         gtk_paned_set_handle_size() has been removed.
2098
2099         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
2100         since it pointed to gtk_paned_set_handle_size(), which
2101         was removed. (#66760, Matt Wilson)
2102
2103 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
2104
2105         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
2106         gtk_drag_hightlight_expose _after_, so it works with
2107         widgets that paint there entire background. (#66735)
2108
2109 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
2110
2111         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
2112         allocation to widget->allocation. (Fixes #67290,
2113         Chris Phelps.)
2114
2115 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
2116
2117         (#67542, reported by Anders Carlsson)
2118         
2119         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
2120         rc_style->font_desc with defaul style instead of replacing
2121         it.
2122
2123         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
2124         font descriptions in RC styles by calling
2125         pango_font_description_merge(). 
2126
2127 2001-12-24  James Henstridge  <james@daa.com.au>
2128
2129         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
2130         valid with both SGML and XML.
2131
2132 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
2133
2134         * configure.in: 1.3.12, interface, binary age 0.
2135
2136         * configure.in: Require new versions of Glib, Pango, ATK.
2137
2138         * NEWS: Updated.
2139
2140         * configure.in: Make explicit what libtool we are executing.
2141         (Tomas Ogren)
2142
2143         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
2144
2145         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
2146         parameter names for docs.
2147
2148 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
2149
2150         * gtk/gtkwindow.c (gtk_window_realize) 
2151           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
2152
2153         * gtk/gtkentry.c (gtk_entry_key_release)
2154           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
2155         key release events to the input method.
2156
2157         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
2158         Handle release of Control/Shift to end hex sequence.
2159
2160         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
2161         Handle key releases as well as presses.
2162
2163 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
2164
2165         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
2166
2167         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
2168         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
2169         documentation about underscores and mnemonics. (#66380)
2170
2171         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
2172         cyclic reference in docs.
2173
2174         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
2175         of default value. (#65402)
2176
2177         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
2178         Markup fixes.
2179
2180 2001-12-20  Anders Carlsson  <andersca@gnu.org>
2181
2182         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
2183         map here.
2184
2185 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
2186
2187         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
2188         (reported by Jeff Franks.)
2189
2190 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
2191
2192         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
2193         prototype for direction_changed. (Reported by
2194         Jeff Franks.)
2195
2196 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
2197
2198         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
2199         Fix typo (list->data becomes list->next)
2200
2201 2001-12-06  Havoc Pennington  <hp@redhat.com>
2202
2203         Add Unicode control char menu, based on patch from Dov.
2204         Bug #63495
2205         
2206         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
2207         gtk_entry_enter_text
2208         (gtk_entry_enter_text): function to do "typing in text"
2209         (popup_targets_received): add the Unicode menu items
2210
2211         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
2212         on Input Methods item, and add the unicode menu items.
2213
2214         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
2215         used in GtkEntry and GtkTextView - may become public later.     
2216
2217 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
2218
2219         * gtk/gtkprogressbar.c: Fix a typo.
2220         * gtk/gtkpaned.c: Fix a typo.
2221         
2222 2001-12-15  Darin Adler  <darin@bentspoon.com>
2223
2224         Fix some warnings.
2225
2226         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
2227         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
2228         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
2229         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
2230         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
2231         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
2232         Restructure loop to get rid of uninitialized variable warning. Also
2233         gives a tiny efficiency gain.
2234
2235 2001-12-15  Murray Cumming  <murrayc@usa.net>
2236
2237         * Fixed first arg type of GtkScale's "format_value" signal's
2238         function pointer.
2239
2240 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
2241         docs/reference/gtk/tmpl/gtkcelleditable.sgml
2242                 gtkcelleditable -> GtkCellEditable
2243         docs/reference/gtk/tmpl/gtktreesortable.sgml
2244                 gtktreesortable -> GtkTreeSortable
2245
2246 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2247
2248         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
2249         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
2250         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
2251         resp.
2252
2253 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
2254
2255         * gtk/gtktreeview.c (validate_visible_area): free path
2256         at the end
2257
2258 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
2259
2260         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
2261
2262 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
2263
2264         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
2265         to find the clicked node in the tree when tree == NULL
2266
2267 2001-12-13  Anders Carlsson  <andersca@gnu.org>
2268
2269         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
2270         event->state with the default mod mask. 
2271
2272 2001-12-12  jacob berkman  <jacob@ximian.com>
2273
2274         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
2275
2276 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
2277
2278         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
2279         Reset the existing slave before removing it to give
2280         it a chance to commit and emit "preedit_changed" 
2281         in case there was still a preedit string.
2282
2283 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
2284         
2285         * gtk/gtktextlayout.c: Typo fixes
2286         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
2287
2288         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
2289         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
2290
2291         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
2292
2293 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
2294
2295         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
2296         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
2297
2298 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
2299
2300         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
2301         "prepainting" the menu before realizing other than
2302         via gtk_style_set_background() - this was broken when
2303         we added menu scroll support.
2304
2305         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
2306         window in the expose event -- fixes problem with border
2307         flashing during scrolling.
2308
2309 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
2310
2311         * gtk/gtksettings.c (gtk_settings_get_property): Support
2312         using names/nicks for the gdk_settings values for enum valued
2313         types. (#57678, reported by Anders Carlsson)
2314
2315 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
2316
2317         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
2318         with insert_page_menu.  Code duplication is bad.
2319
2320         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
2321         wrong fix yesterday.
2322
2323 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
2324
2325         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
2326         modifiers.
2327
2328 2001-12-12  James Henstridge  <james@daa.com.au>
2329
2330         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
2331         (menu_item)->accel_path first when looking up the accel path.
2332
2333 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
2334
2335         * tests/testgtk.c (layout_expose_handler): Only draw
2336         for events on the bin window.
2337
2338 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
2339
2340         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
2341         mnemonics work with notebooks.
2342
2343 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
2344
2345         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
2346         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
2347         Makes some flicker while scrolling go away.
2348
2349 2001-12-11  Michael Natterer  <mitch@gimp.org>
2350
2351         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
2352         adds alpha to the pixbuf; re-load the saved pixbuf and
2353         pixel-by-pixel compare it with the original one.
2354
2355 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
2356
2357         * ChangeLog: Fix wrong ChangeLog entry
2358         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
2359         right corner
2360
2361 2001-12-10  jacob berkman  <jacob@ximian.com>
2362
2363         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
2364         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
2365         (gdk_keyboard_grab): do not grab things if the nograb debug flag
2366         is set
2367
2368         * gdk/gdkinternals.h: 
2369         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
2370         keyboard / mouse
2371
2372 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
2373
2374         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
2375         didn't reset the timer.
2376
2377 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
2378
2379         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
2380
2381 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
2382
2383         * gtk/gtkviewport.c: Add docs.
2384
2385 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
2386
2387         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
2388         RBTree corruption bug--
2389
2390 2001-12-10  Anders Carlsson  <andersca@gnu.org>
2391
2392         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
2393         if edited_column is NULL, also grab focus before removing
2394         the cell_editable.
2395
2396 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
2397
2398         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
2399           denominator in the horizontal case just like we do in the vertical
2400           case (why I didn't notice that there were two cases the first time
2401           around is beyond me:).  Also fix indentation in the vertical case.
2402
2403 2001-12-09  Anders Carlsson  <andersca@gnu.org>
2404
2405         * gdk/x11/gdkevents-x11.c: Update xsettings name.
2406
2407         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
2408         gtk-dnd-drag-threshold GtkSetting.
2409
2410         * gtk/gtksettings.c (gtk_settings_class_init): Add 
2411         setting for dnd drag threshold.
2412
2413 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
2414
2415         * gtk/gtkcontainer.c: Add docs.
2416
2417 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
2418
2419         * gtk/gtkwidget.c: Doc markup fix. 
2420
2421         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
2422
2423         * gtk/gtktreestore.c: Typo fixes. (#66445)
2424
2425         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
2426
2427         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
2428         to gtk_clipboard_set_with_owner(). (#66424)
2429  
2430 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
2431
2432         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
2433         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
2434         Fabrice Bellet <fabrice@gnu.org>, #54127).
2435
2436 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
2437
2438         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
2439         of places, so that people with crashy trees can just run their
2440         program with GTK_DEBUG=TREE.
2441
2442 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
2443
2444         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
2445         per jrb's request
2446
2447 2001-12-08  Anders Carlsson  <andersca@gnu.org>
2448
2449         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
2450         since then the default GtkLayout expose handler won't be called.
2451
2452 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
2453
2454         * gtk/gtktreeview.c (validate_rows_handler): remove
2455         g_return_if_fail.
2456
2457         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
2458         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
2459         empty model.
2460
2461 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
2462
2463         * gtk/gtktreeview.c (validate_visible_area): get logic right,
2464         #66249
2465
2466         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
2467         removing a node ended up with a corrupt tree.  Really really nasty
2468         bug.
2469         (_gtk_rbtree_debug_spew): new debug helper function
2470         (_fixup_validation): new inline function to clean up code
2471         readability a lot. 
2472
2473 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
2474
2475         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
2476         Close comment.
2477
2478 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
2479
2480         * gtk/gtkstyle.h: Typo fixes.
2481
2482         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
2483
2484         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
2485
2486 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
2487
2488         * modules/input/gtkimcontextxim.c: Display the XIM
2489         status callbacks with a popup window. (Patch from
2490         HideToshi Tajima, #50628, somewhat modified.)
2491
2492 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
2493
2494         * gtk/Makefile.am: each source generation rule needs to use its own
2495         temporary file, to avoid clashes for parallel builds. fixed rules
2496         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
2497
2498 2001-12-07  Havoc Pennington  <hp@pobox.com>
2499
2500         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
2501         "cursors that are actually useful" in gdk_cursor_new() docs
2502
2503 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
2504
2505         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
2506         in computing the size of the second child.
2507
2508 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
2509
2510         * gtk/gtkrange.c: Make button 1 clicks on the trough
2511         do pages, button 3 steps. (Patch from Hans Breuer
2512         #63735)
2513
2514 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
2515
2516         * gtk/gtklabel.c: Fix docs. (#66383)
2517
2518         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
2519         (#66278, #66280)
2520         
2521         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
2522         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
2523
2524         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
2525         Don't emit a g_warning() about being deprecated. (#66208)       
2526
2527         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
2528
2529         * gtk/gtkcontainer.c: Doc fixes.
2530         
2531         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
2532
2533         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
2534
2535 2001-12-05  Sven Neumann  <sven@gimp.org>
2536
2537         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
2538
2539         * gtk/queryimmodules.c: g_dir_read_name() returns const.
2540
2541 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
2542
2543         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
2544         #66225
2545         
2546 2001-12-04  Manish Singh  <yosh@gimp.org>
2547
2548         * gtk/gtkmain.c
2549         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
2550         a gpointer.
2551
2552         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
2553         correction to docs.
2554
2555         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
2556
2557 2001-12-04  Havoc Pennington  <hp@redhat.com>
2558
2559         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
2560         g_assert_not_reached() that was bogus, since we demand-create the
2561         tag info. reported by Chris Phelps
2562
2563         Jump through assorted hoops to fix bug from Chris Phelps where 
2564         removing tags from the table resulted in btree trying to 
2565         access tag->table
2566         
2567         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
2568         ourselves to the tag table
2569
2570         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
2571         (_gtk_text_tag_table_remove_buffer): private cruft to 
2572         let us notify buffer of disappearing tags
2573
2574         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
2575         header, put it in tagprivate    
2576
2577         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
2578         tag_removed; it's emitted too late.
2579         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
2580         this
2581
2582         Padding for ABI-compat expansion
2583         
2584         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
2585         (struct _GtkTextAppearance): one pad in here too
2586
2587         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
2588
2589         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
2590         since action signals etc. seem pretty likely
2591
2592         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
2593
2594         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
2595
2596         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
2597
2598 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
2599
2600         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
2601
2602         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
2603
2604         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
2605
2606 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
2607
2608         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
2609         #62084.
2610
2611 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
2612
2613         * demos/gtk-demo/main.c: (create_tree): Minor fix.
2614
2615         * docs/tree-column-sizing.txt: Update
2616
2617         * gtk/gtkrbtree.[ch]: Massive work to support validation.
2618
2619         * gtk/gtktreemodel.c: Doc fixes.
2620
2621         * gtk/gtktreeview.c: Incremental reflow added.
2622         * gtk/gtktreeviewcolumn.c: ditto
2623         * gtk/gtktreeviewcolumn.h: ditto
2624
2625 2001-12-04  Havoc Pennington  <hp@redhat.com>
2626         
2627         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
2628         "invisible" property, #65999
2629
2630 2001-12-04  Matt Wilson  <msw@redhat.com>
2631
2632         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
2633
2634 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
2635
2636         * gtk/gtksettings.c (gtk_settings_set_property_value):
2637         Simplify, make more efficient and fix memory leak
2638         when turning quark into a string. (#66103, HideToshi
2639         Tajima)
2640
2641         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
2642         init() and unref priv->tooltips in destroy rather
2643         than calling gtk_object_destroy() which has no
2644         effect on memory management. (#66104, HideToshi
2645         Tajima)
2646
2647         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
2648         so we free the when the object is freed. (Fixes memory
2649         leak, #66096, HideToshi Tajima)
2650
2651         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
2652         a full GdkEvent structure to avoid reads of uninitialized/
2653         invalid memory in gdk_event_put() (#65877, patch
2654         from Hidetoshi Tajima)
2655
2656 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
2657
2658         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
2659         toggle-size-request doesn't take a requisition.
2660
2661         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
2662         reference to marshaler that no longer exists.
2663
2664 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
2665
2666         Patch from Bill Haneman (with many modifications) to make
2667         the focus color work on dark themes and to make the
2668         focus line width configurable. (#61079, #63074)
2669
2670         * gtk/gtkwidget.c: Add style properties, 
2671         ::focus-widget, ::focus-line-width, and ::focus-padding.
2672
2673         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
2674         state argument as well so we can use fg[STATE] to
2675         draw instead of always drawing with black. 
2676         Cange paint_focus() to respect GtkWidget::focus-width
2677         and GtkWidget::focus-line-pattern. Fix continuity
2678         problem where the default 1-1 stipple had a blob
2679         in one corner and a gap in the other. Change the
2680         interpretation of x/y/width/height to be the bounding
2681         box of the focus rect instead of the rectangle
2682         passed to gdk_draw_rectangle.
2683
2684         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
2685         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
2686         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
2687         and ::focus-line-padding.
2688
2689         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
2690         and remove duplicated code; fix drawing of focus rectangle
2691         when interior-focus = FALSE. (#63072, #63073)
2692
2693         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
2694         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
2695         Range and TreeViewColumn will need more extensive fixing.
2696
2697         * gtk/gtkcolorsel.c: Honor focus line attributes when
2698         drawing the focus on the color swatches. (#63071)
2699
2700         * gtk/gtkhsv.c: Honor focus line attributes when
2701         drawing the focus for the ring and triangle.
2702
2703         * docs/widget_geometry.txt: Start at documenting how 
2704         various widgets are drawn.
2705
2706         * gtk/gtkbutton.c (_gtk_button_paint): Export 
2707         _gtk_button_paint() librarywide, so we don't have 
2708         duplicate a bunch of code in gtktogglebutton.c.
2709
2710         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
2711
2712 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
2713
2714         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
2715         NONE:POINTER.
2716
2717 2001-12-03  Alex Larsson  <alexl@redhat.com>
2718
2719         * gtk/gtkaccellabel.c:
2720         * gtk/gtkarrow.c:
2721         * gtk/gtkcolorsel.c:
2722         * gtk/gtkcontainer.c:
2723         * gtk/gtklabel.c:
2724         * gtk/gtktextview.c:
2725         * gtk/gtktogglebutton.c:
2726         * gtk/gtktreeview.c:
2727         * gtk/gtkwindow.c:
2728         Return FALSE from expose handlers.
2729
2730 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
2731
2732         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
2733         we use pointers, we should free the previous pointer first (if
2734         it exists), before we set a new pointer. (#64726)
2735
2736         * gtk/gtktreeprivate.h: get rid of cursor_drag
2737
2738         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
2739         for cursor_drag
2740         (gtk_tree_view_bin_expose): don't directly return in the while
2741         loop
2742         (gtk_tree_view_class_init): indentend expanders by default
2743         (gtk_tree_view_header_focus): only give the button focus
2744         if it's clickable, visible and the column is reorderable
2745         (#65539)
2746
2747         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
2748         create and free cursor
2749
2750 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
2751
2752         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
2753         some bugs with size requisition. (From Bill Haneman)
2754
2755         * gtk/gtkcalendar.c: Draw headers and selection in 
2756         base/text[SELECTED] instead of fg/bg[SELECTED].
2757
2758         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
2759         code and formatting.
2760
2761 2001-12-03  Havoc Pennington  <hp@pobox.com>
2762
2763         * gtk/gtktextview.c (set_window_height): 
2764         (set_window_width): Hmm, setter functions normally assign the new
2765         value to the object field. Reported by Chris Phelps.
2766
2767 2001-11-30  jacob berkman  <jacob@ximian.com>
2768
2769         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
2770         signal id to 0 after we disconnect from it
2771
2772 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
2773
2774         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
2775         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
2776         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
2777         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
2778
2779         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
2780         GTK_DISABLE_DEPRECATED.
2781
2782         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
2783         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
2784
2785 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
2786
2787         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
2788         move/resize code, removing various bad, non-functional
2789         hacks. (Fixes #65048, reported by Damon Chaplin.)
2790
2791 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
2792
2793         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
2794         bad match error when target drawable is not the 
2795         same depth as the root window. (#65841)
2796
2797         * HACKING: Update.
2798
2799 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
2800
2801         * gdk/gdkwindow.c: Typo fix.
2802
2803 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
2804
2805         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
2806         empty menu items to behave like insensitive items (#59456)
2807
2808         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
2809         next item if the first item in the menu is a tear off item
2810         (#59456-2, suggestion by Matthias Clasen)
2811
2812         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
2813         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
2814         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
2815         (gtk_real_menu_shell_activate_current): add check, so empty
2816         menu items behave like insensitive items (#59456)
2817         
2818         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
2819         the checks more readable ...
2820         
2821         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
2822         (gtk_menu_shell_button_release): causes the menu to dropdown if the
2823         caption is clicked again (#64977)
2824
2825 2001-11-29  Havoc Pennington  <hp@redhat.com>
2826
2827         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
2828         assertion here that we were at the end iterator was not correct;
2829         change code to move us to the end iterator. bug #65731
2830
2831 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
2832
2833         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
2834         improper use of g_locale_to_utf8() to convert from
2835         latin-1, and do it the easy way by building the string
2836         correctly in the first place.
2837
2838 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
2839
2840         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
2841         Convert atoms to and from atoms for properties of type XA_ATOM.
2842         (#65555, patch from Hidetoshi Tajima)
2843
2844 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
2845
2846         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
2847         to avoid problems with Objective C.
2848
2849 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
2850         
2851         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
2852
2853         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
2854         Fix docs. (#65505)
2855
2856         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
2857
2858 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
2859
2860         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
2861         accounting of menu->tearoff_scrollbar width to here
2862         and make sure we have the correct requisition.
2863
2864         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
2865         by using gtk_window_move().
2866
2867         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
2868         the requisition to be updated by calling
2869         gtk_widget_size_request() (#65440)
2870
2871         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
2872         queue resize before calling gtk_menu_set_tearoff_state().
2873
2874 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
2875
2876         * demos/gtk-demo/editable_cells.c: fix typo
2877
2878         * demos/gtk-demo/list_store.c (add_columns): remove call to
2879         gtk_tree_view_column_set_clickable which didn't make sense
2880
2881 2001-11-28  Havoc Pennington  <hp@redhat.com>
2882
2883         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
2884         explaining the validation error in front of the G_BREAKPOINT
2885
2886         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
2887         process updates with include_children = FALSE instead of TRUE, so
2888         we redraw the range only, not the whole darn window.  Making
2889         GtkRange a NO_WINDOW widget had weirdly caused the text widget
2890         Trace/breakpoint trap bug to become much easier to trigger.
2891
2892 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
2893
2894         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
2895         to gdkcursors.h.
2896
2897 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
2898
2899         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
2900
2901         * gdk/gdkcursor.h: Directly include the contents
2902         of gdkcursors.h in the GdkCursorType enum.
2903
2904         * gdk/gdkcursors.h: Deleted.
2905
2906         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
2907         header boilerplate.
2908
2909         * gdk/Makefile.am: Remove the X-derived-headers rule.
2910
2911 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
2912
2913         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
2914         Notify on the ::active property _here_, not in
2915         gtk_check_menu_item_set_active.
2916
2917 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
2918
2919         * gtk/gtkcellrendererpixbuf.c
2920         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
2921         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
2922
2923 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
2924
2925         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
2926         comment about what is going on in this file.
2927
2928         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
2929         x/y problem.
2930
2931 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
2932
2933         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
2934         Calculate size based on the _child_ of the menu item,
2935         not the menuitem. (#65005, Damon Chaplin)
2936
2937         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
2938         some extra vertical padding to the label widget ... restores
2939         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
2940
2941 2001-11-26  Tor Lillqvist  <tml@iki.fi>
2942
2943         * demos/pixbuf-demo.c
2944         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
2945
2946         * demos/gtk-demo/main.c (read_line): No flockfile() or
2947         getc_unlocked() on Win32.
2948
2949 2001-11-25  Tor Lillqvist  <tml@iki.fi>
2950
2951         * configure.in
2952         * acconfig.h: As we now use GDir, no need to check for dirent.h.
2953
2954 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
2955
2956         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
2957         when finished (#65266)
2958
2959 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
2960
2961         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
2962         data after we set the property. (#65264)
2963
2964 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
2965
2966         * gtk/gtkbutton.c: add destroy method so label_text gets freed
2967         if it has been allocated (#65268)
2968
2969 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
2970
2971         * gdk/linux-fb/gdkdrawable-fb2.c
2972         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
2973
2974         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
2975
2976         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
2977         set_family
2978         
2979         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
2980
2981 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
2982
2983         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
2984         deactivate menu when menu_item isn't sensitive (#61389)
2985
2986 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
2987
2988         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
2989         we return (in case of a failure here)
2990
2991 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
2992
2993         * gtk/gtknotebook.c: Handle events in windows other
2994         than widget->event_window properly. (#65079, reported
2995         by Damon Chaplin)
2996
2997         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
2998
2999 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
3000
3001         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
3002         the image at the top. (#65020, request from Seth Nickell)
3003
3004 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
3005
3006         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
3007         arithmetic that was resulting in rows being drawn too low.
3008         (#65001, reported by Damon Chaplin)
3009
3010 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
3011
3012         * gtk/gtkrange.c (gtk_range_button_press): Offset 
3013         invalidated range correctly.
3014
3015         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
3016         of title window. (#65001, reported by Damon Chaplin)
3017
3018         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
3019         horrible hack with use of ::event_after.
3020
3021 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
3022
3023         * Version 1.3.11
3024
3025         * configure.in (ATK_REQUIRED_VERSION): Require
3026         GLib-1.3.11, Pango-0.22, ATK-0.7.
3027
3028         * tests/prop-editor.c (property_widget): Restore
3029         to working as well as it did before.
3030
3031         * gtk/gtklistitem.h: Mark deprecated since it is
3032         an integral part of GtkList.
3033
3034         * demos/gtk-demo/demo-common.h: New header file,
3035         for a common functions not important to the meat
3036         of the demos.
3037         
3038         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
3039         function to search for a file used by the demo.
3040
3041         * demos/*.c: Use demo_find_file.
3042
3043 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
3044
3045         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
3046         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
3047         fixes already mentioned in ChangeLog entry on 2001-11-14.
3048
3049         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
3050
3051 2001-11-23  Hans Breuer  <hans@breuer.org>
3052
3053         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
3054         reflect Pango API change
3055
3056         * gtk/gtk.def : updated externals
3057
3058         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
3059         g_return_val_if_fail() to avoid 'function must return a value'
3060
3061         * gtk/gtkrc.c : added spaces to fix small coding style issues
3062         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
3063         'static correctness'
3064
3065         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
3066         because they only can be build on win32 after applying my patch
3067
3068 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
3069
3070         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
3071         children, in order for the input pnly window to stay *above*
3072         children.
3073
3074 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
3075
3076         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
3077         type walks againts G_TYPE_FUNDAMENTAL_MAX.
3078         
3079         * tests/prop-editor.c: disable type hackery.
3080
3081 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
3082
3083         * gdk/gdkimage.c (gdk_image_get): Fix problem with
3084         lost parameter.
3085
3086 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
3087
3088         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
3089         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
3090         trailing commas in enum declarations.
3091
3092 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
3093
3094         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
3095         interface, binary age 0.
3096
3097         * NEWS: Updates
3098
3099         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
3100         fixes in docs.
3101
3102         * gtk/gtkmain.h: Remove unused and misnamespaced
3103         get_gtk_win32_directory() prototype.
3104
3105         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
3106         to match header.
3107
3108         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
3109         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
3110         to match docs.
3111
3112         * gdk/gdkevents.c (gdk_event_get_coords)
3113           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
3114           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
3115         Fix parameter names in docs.
3116         
3117         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
3118         (#64961, Akira Tagoh)
3119
3120 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
3121
3122         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
3123
3124         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
3125
3126         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
3127
3128         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
3129         back to gtk_accel_groups_from_object(), change @acceleratable
3130         parameter to gtk_accel_groups_activate() accordingly.
3131
3132         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
3133         left-over comment about quark return.
3134
3135         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
3136
3137         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
3138         (Patch from Matt Wilson)
3139
3140         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
3141         object is finalized.
3142
3143 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
3144
3145         * applied patch from owen to get rid of accel map notifiers.
3146         changed things to fix reentrancy and API as discussed on gtk-devel.
3147
3148         * gtk/gtkaccelgroup.[hc]:
3149         (gtk_accel_group_finalize): unregister this accel group from all
3150         accel map paths.
3151         (accel_closure_invalidate): handle invalidation of closures by
3152         disconnecting their accelerators.
3153         (quick_accel_add): move closure connection and changed notification
3154         into this function to reduce code duplication. don't emit change
3155         notification on closurers without accelerators.
3156         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
3157         for a GtkAccelGroupEntry.
3158         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
3159         (gtk_accel_group_connect_by_path): new function to add accelerators
3160         with an accel path.
3161         (gtk_accel_group_disconnect_closure): new function, disconnect a
3162         closure from of an accel group.
3163         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
3164         accel_mods pair and remove them.
3165         (_gtk_accel_group_reconnect): new function that basically does
3166         gtk_accel_group_disconnect_closure() and
3167         gtk_accel_group_connect_by_path() once an accel path changed.
3168         (gtk_accel_groups_disconnect_closure): remove this, there's
3169         gtk_accel_group_disconnect_closure().
3170         
3171         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
3172         nuke notifiers.
3173         (_gtk_accel_path_is_valid): make this non-static for
3174         gtkwidget.c and gtkaccelgroup.c assertions.
3175         (gtk_accel_map_add_notifer): removed this function.
3176         (gtk_accel_map_remove_notifer): same.
3177         (_gtk_accel_map_add_group):
3178         (_gtk_accel_map_remove_group): (un-)register accel groups, with
3179         accel paths for correct propagation.
3180         (gtk_accel_map_add_entry): return void.
3181         (gtk_accel_map_lookup): return gboolean instead of GQuark.
3182         
3183         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
3184         set accel_path on widgets.
3185         
3186         * gtk/gtkwidget.[hc]:
3187         (accel_path_changed): got rid of this, changes are handled by
3188         accel maps internally now.
3189         (_gtk_widget_set_accel_path): get things to work without notifiers.
3190         (gtk_widget_list_accel_closures): list accel closures of a widget.
3191         
3192         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
3193
3194 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
3195
3196         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
3197
3198 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
3199
3200         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
3201         replace gboolean free_last in the function parameters with
3202         gint depth. Changes to reflect new situation.
3203
3204         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3205         replace gboolean free_last, with gint depth, add gint current_depth.
3206         Changes to reflect new situation.
3207
3208         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
3209         to reflect new situation
3210
3211         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
3212
3213 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
3214
3215         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
3216         where notebook gap was double shifted by allocation.x/y
3217
3218         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
3219         to unmap children.
3220
3221 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
3222
3223         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
3224         allocation to be relative to paned->allocation, now
3225         that this is a NO_WINDOW widget.
3226         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
3227
3228         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
3229         needs to be a boxed property.
3230
3231 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
3232
3233         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
3234         Use the widget's state when drawing the indicator, as
3235         in GtkCheckButton. This gives us color changes for
3236         un-prelighted checkbuttons. (#63308, Matt Wilson)
3237
3238 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
3239
3240         (Fixes related to #64428, Michael Meeks)
3241
3242         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
3243         widget, so it gets mapped again properly when we
3244         add to a parent.
3245
3246         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
3247         plug->socket_window. 
3248
3249         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
3250         socket_window to NULL, not FALSE.
3251
3252         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
3253         socket->same_app to TRUE. (#64612)
3254
3255 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
3256
3257         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
3258         gtk_fixed_set/get_has_window() to remove criticism
3259         about GTK_WIDGET_SET_FLAGS() hacks.
3260
3261 2001-11-19  Michael Natterer  <mitch@gimp.org>
3262
3263         * gtk/gtknotebook.c: show notebook->event_window with
3264         gdk_window_show_unraised(), so it doesn't catch the events which
3265         should go to the tab widgets first.
3266
3267 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
3268
3269         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
3270         "resizable" property, to get rid of the
3271         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
3272         (gtk_tree_view_column_set_resizable): New function to set resizable.
3273         (gtk_tree_view_column_set_resizable): getter.
3274
3275         * tests/testtreecolumns.c (add_clicked): modify for above change.
3276
3277         * Makefile.am (install-data-hook): remove old .pc files before
3278         installing the new one.  We used to symlink this, and it will
3279         break old installs.
3280
3281 2001-11-19  Havoc Pennington  <hp@pobox.com>
3282
3283         * tests/testtext.c (fill_example_buffer): put in a test for
3284         negative indentation values
3285
3286 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
3287
3288         * gtk/gtklabel.c (gtk_label_init): Change default for
3289         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
3290         labels are most often wrapped labels, this gives better
3291         compatibility with GTK+-1.2, where justification was
3292         ignored for wrapped labesl and is a more sensible
3293         default in any case. (#64489)
3294
3295         * gtk/gtklabel.c (gtk_label_class_init): Fix default
3296         for wrap property to FALSE.
3297
3298 2001-11-19  jacob berkman  <jacob@ximian.com>
3299
3300         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
3301
3302 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
3303
3304         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
3305         RevertToParent, not RevertToNone. (#64613, 
3306         Matthias Clasen)
3307
3308 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
3309
3310         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
3311         and label_yalign need to be float properties to
3312         correspond to GTK+-1.2, to gtk_frame_set_label_align,
3313         and to the types of the xalign and yalign properties of GtkMisc.
3314         (#63484, Vitaly Tishkov)
3315
3316 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
3317
3318         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
3319         of plug_added vfunc. (#64408, Jeff Franks)
3320
3321 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
3322
3323         * configure.in (deps): Undef HAVE_STDLIB_H before
3324         checking for jpeg, because jconfig.h has this
3325         in it too (%#$@!). Fix from Matthias Clasen, #64500.
3326
3327 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
3328
3329         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
3330         memory leak when retrieving atom names. (Michael Meeks,
3331         #64508)
3332
3333 2001-11-18  Alex Larsson  <alexl@redhat.com>
3334
3335         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
3336         Update to new Pango API.
3337         
3338 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
3339
3340         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
3341         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
3342         GTK_OBJECT_DESTROYED() check macro.
3343
3344         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
3345         instances of GTK_OBJECT_DESTROYED() that weren't
3346         needed any more.
3347
3348         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
3349         for a connection to ::destroy.
3350
3351 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
3352
3353         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
3354         have been since the beginning, but as special hack,
3355         allow clearing the NO_WINDOW flag to get a window widget.
3356
3357 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
3358
3359         * gtk/gtktreestore.c: return TRUE when value changed, so
3360         row_changed is being emitted
3361
3362 2001-11-18  Hans Breuer  <hans@breuer.org>
3363
3364         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
3365         no label without op, even if it's a no-op.
3366
3367         * gtk/gtk.def :
3368         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
3369
3370         * config.h.win32.in : remove definition of HAVE_DIRENT_H
3371         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
3372         required anymore, replace it.
3373         * gtk/queryimmodules.c : DIR -> GDir replacement, also
3374         getcwd() -> g_get_current_dir()
3375
3376         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
3377         Even 'noisy laugh' scolling appears to work, though I still can't
3378         claim to have fully understood what it is supposed to do ...
3379
3380 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
3381
3382         * gtk/gtkenums.h: Include glib-object.h instead of
3383         gobject/gsignal.h
3384
3385         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
3386           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
3387         argument to the window_at_pointer() field of
3388         GdkPointerHooks. (Patch from Erwann Chenede)
3389
3390         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
3391         to 6 pointers.
3392
3393 2001-11-17  Matt Wilson  <msw@redhat.com>
3394
3395         * gtk/gtkenums.h: must include glib-object.h only
3396
3397 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
3398
3399         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
3400         key bindings in order of visibility - mnemonics, then 
3401         accelerators, then send key to the focus widget, then
3402         bindings on the GtkWindow.
3403
3404         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
3405         Removed the xoffset, yoffset fields of GtkLayout which were
3406         identically zero for compat with 1.2, but were no longer 
3407         compatible with all uses of these fields in 1.2.
3408
3409         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
3410         unused variable.
3411
3412 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
3413
3414         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
3415         We no longer need to create the signals here ... they
3416         come from the interface.
3417
3418         * gtk/maketypes.awk: Use GType, not GtkType in output.
3419
3420         * gtk/gtktypeutils.h: Mark virtually all of this
3421         file deprecated.
3422
3423         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
3424         the only use of this function is the GtkArg using
3425         GtkCallbackMarshal, since destroy notification is
3426         silly here.
3427
3428 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
3429
3430         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
3431         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
3432         only for compatibility with GTK+-1.2; and deprecate it; 
3433         put all marshalers we actually use into gtkmarshalers.list 
3434         and use the _gtk_marshal_ prefix for these marshalers.
3435
3436 2001-11-17  Murray Cumming  <murrayc@usa.net>
3437
3438         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
3439         The first parameters of the signals are now registered as
3440         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
3441         
3442 2001-11-17  Tor Lillqvist  <tml@iki.fi>
3443
3444         * gtk-zip.sh.in: Build separate runtime and developer
3445         packages.
3446
3447         * gtk/gtk.def: Reflect recent accelerator-related changes.
3448
3449 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
3450
3451         * gtk/gtkwindow.c (gtk_window_set_default): Move 
3452         notification of "has_default" to here, so it
3453         is safe to call gtk_window_set_default() instead
3454         of gtk_widget_grab_default().
3455
3456         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
3457         gtk_widget_grab_focus(), which then calls 
3458         _gtk_widget_internal_set_focus(). This makes 
3459         gtk_window_set_focus() a safe way of both setting
3460         and unsetting the focus widget.
3461
3462         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
3463         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
3464         to find the toplevel.
3465
3466         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
3467         from the "internal functions" section.
3468
3469 2001-11-16  jacob berkman  <jacob@ximian.com>
3470
3471         * tests/testgtk.c (create_radio_buttons): add some no-indicator
3472         radio buttons
3473
3474         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
3475         initially active, also initially be depressed
3476         (gtk_radio_button_clicked): also update our depressed state
3477
3478 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
3479
3480         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
3481         key press events not just to focus/window but also to
3482         intermediate widgets.
3483
3484         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
3485         to switch pages. (Needs some work on handling focus
3486         when switching pages.)
3487
3488 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
3489
3490         * gtk/gtknotebook.c: Fix child allocations to be relative to 
3491         widget position and some drawing bugs.
3492
3493         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
3494         with reading uninitialized variable.
3495
3496 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
3497
3498         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
3499         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
3500         NO_WINDOW widgets.
3501
3502         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
3503         cleanup.
3504
3505         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
3506         we are drawing in a window when drawing the paned handle.
3507
3508 2001-11-16  Sven Neumann  <sven@gimp.org>
3509
3510         * demos/gtk-demo/appwindow.c
3511         * demos/gtk-demo/menus.c: reduce compiler warnings
3512
3513 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
3514
3515         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
3516         unused callback to make things compile with 
3517         gtk_tree_view_path_at_pos_change().
3518
3519 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
3520
3521         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
3522
3523 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
3524
3525         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
3526  
3527 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
3528
3529         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
3530         to get a GdkWindow to compare event->window to.
3531
3532         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
3533         the signal for lateral motion too, #64361
3534
3535         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
3536         arg as it is useless, #64137
3537
3538 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
3539
3540         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
3541
3542 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
3543  
3544         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
3545         gdk_window_invalidate_maybe_recurse() for recursion.
3546         (Soeren Sandmann)
3547
3548         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
3549  
3550         * gtk/gtkcontainer.c (gtk_container_expose): Call
3551         gtk_container_forall() not _foreach() to propagate,
3552         since we need to propagate exposes to internal children
3553         as well.
3554
3555         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
3556         Remove the restriction of only being able to call these
3557         on window widgets, since we have lots of NO_WINDOW widgets
3558         with windows now; for add events, recurse over the children
3559         of widget->window to find one owned by the widget.
3560
3561         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
3562         window to catch events.
3563
3564         * gtk/gtktogglebutton.[ch]: Remove the code for switching
3565         between NO_WINDOW and WINDOW widgets based on the mode.
3566
3567         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
3568         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
3569
3570         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
3571
3572         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
3573         change for range.
3574
3575         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
3576  
3577         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
3578
3579 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
3580
3581         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
3582         "message_type" and "buttons" CONSTRUCT properties. (#64069)
3583
3584         * tests/testsocket.c: Expand tests to add a "local passive
3585         child" (Test case for #64428)
3586
3587 2001-11-14  jacob berkman  <jacob@ximian.com>
3588
3589         * gtk/gtkgamma.c (button_clicked_callback): create the label with
3590         a mnemonic
3591
3592 2001-11-15  Sven Neumann  <sven@gimp.org>
3593
3594         * tests/testgtk.c: make it compile without warnings.
3595
3596 2001-11-14  Alex Larsson  <alexl@redhat.com>
3597
3598         * gtk/gtklabel.c:
3599         Don't recalculate the layout on each gkt_label_ensure_layout () for
3600         wrapped labels.
3601
3602 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
3603
3604         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
3605         the currently selected column when we get the column, #64380
3606
3607         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
3608         to cancel CellRendererText editting, #63613
3609
3610         * gtk/gtkcellrenderertext.c: ditto
3611
3612         * gtk/gtkcellrenderertext.h: formatting changes
3613
3614 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
3615
3616         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
3617
3618         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
3619
3620         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
3621
3622         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
3623
3624         * gtk/gtklabel.c: Documentation fixes (#64452)
3625
3626 2001-11-14  Daniel Egger  <degger@fhm.edu>
3627
3628         * gdk-pixbuf/io-xpm.c: 
3629         (xpm_skip_whitespaces): Remove unused static function.
3630         (xpm_skip_string): Dito.        
3631         (xpm_extract_color): Declare const variable const to avoid warnings. 
3632
3633         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
3634         
3635         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
3636         
3637         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
3638         a long.
3639
3640 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
3641
3642         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
3643         out accidental commit of debugging timing code.
3644
3645 2001-11-14  Havoc Pennington  <hp@redhat.com>
3646
3647         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
3648         it doesn't move to a new line each time you press it
3649
3650         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
3651         return value, #62987
3652
3653 2001-11-14  Havoc Pennington  <hp@redhat.com>
3654
3655         * tests/testtextbuffer.c (main): bulk of the tests were commented
3656         out, oops.
3657
3658         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
3659         function work, should resolve #63426
3660         (gtk_text_iter_ends_line): return TRUE for the end iterator
3661
3662         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
3663         a couple things that might get cached in here.
3664
3665 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
3666
3667         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
3668         "model" construct property for language bindings.
3669
3670         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
3671         function to let you set the column types of a GtkTreeStore for
3672         language bindings.
3673
3674         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
3675
3676 2001-11-13  Havoc Pennington  <hp@redhat.com>
3677
3678         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
3679         including reference to bugzilla bug about how we should have 
3680         a better way of positioning children
3681
3682         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
3683
3684         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
3685         size to side rects if they don't exist, #63438
3686
3687 2001-11-13  Havoc Pennington  <hp@redhat.com>
3688
3689         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
3690         properly replace selection with Return or Tab
3691
3692         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
3693         that didn't locate the end of the line correctly, should fix #63800
3694
3695 2001-11-13  Havoc Pennington  <hp@redhat.com>
3696
3697         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
3698         to requisition, request non-anchored children
3699         (gtk_text_view_size_allocate): handle border width, allocate
3700         non-anchored children
3701         (text_view_child_new_window): set the child as object data
3702         (gtk_text_view_move_child): allow children at negative
3703         coordinates, no reason why not
3704         (gtk_text_view_forall): make it copy the list of children before
3705         walking it, to avoid reentrancy issues  
3706         (gtk_text_view_move_child): short-circuit if position is unchanged
3707         (changed_handler): only queue_resize if requisition has changed
3708         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
3709         a better job of invalidation ourselves
3710
3711         * tests/testtext.c: add tests for the fixed-position children
3712
3713 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
3714
3715         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
3716         with gdk threads macro.
3717
3718 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
3719
3720         * gtk/maketypes.awk: fix type utils generation on unix.
3721
3722         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
3723         registry.
3724
3725         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
3726         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
3727         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
3728         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
3729         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
3730         introduced ::accel_changed signal for change notification, and
3731         gtk_accel_group_connect/disconnect to connect closures to accel groups.
3732         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
3733         functions.
3734         deprecated gtk_accel_group_ref/unref.
3735
3736         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
3737         to accel group changed notification and basically operate on closures.
3738         removed gtk_accel_label_get_accel_object and
3739         gtk_accel_label_set_accel_object.
3740         introduced gtk_accel_label_set_accel_closure, and for convenience,
3741         gtk_accel_label_set_accel_widget.
3742
3743         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
3744         which mostly moved into gtkaccelmap.[hc].
3745         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
3746         and gtk_item_factory_print_func.
3747
3748         * gtk/gtkmain.c: call _gtk_accel_map_init().
3749
3750         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
3751         that associates an accelerator path with menu items, through which
3752         persistent accelerator settings on menu items are enabled.
3753
3754         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
3755         paths of menu item can be default constructed to allow installation
3756         of accelerators on menu items that don't come with an accelerator
3757         binding by default.
3758
3759         * gtk/gtksettings.c: fix STRING type rc settings by special casing
3760         them appropriately in the parser.
3761
3762         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
3763         gtk_signal_newv().
3764
3765         * gtk/gtkwidget.[hc]: accelerator API revamp.
3766         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
3767         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
3768         gtk_widget_(un)lock_accelerators.
3769         accelerators maintained through gtk_widget_add/remove_accelerator()
3770         are not runtime changable now, the correct sequence to setup a
3771         widget for runtime changable accelerators is now:
3772           gtk_accel_map_add_entry(accel_path, key, mods);
3773           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
3774
3775         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
3776         group changes (as well as mnemonic changes) through the new signal
3777         ::accels_changed.
3778
3779 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
3780
3781         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
3782         GString->string conversions.
3783
3784 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
3785
3786         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
3787         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
3788
3789 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
3790
3791         * gtk/gtktreeview.c: Documentation fixes. (#64377)
3792         
3793         * gtk/gtktreestore.c: Documentation fixes. (#64376)
3794
3795 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
3796
3797         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
3798         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
3799         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
3800         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
3801
3802 2001-11-10  Hans Breuer  <hans@breuer.org>
3803
3804         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
3805         we know what we are talking about when asked for MINMAXINFO.
3806         Also some cleaning for !HAVE_DIMM_H etc.
3807
3808 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
3809
3810         * gtk/gtktreeviewcolumn.c: Fix docs for 
3811         gtk_tree_view_column_set_sort_order. (#62647)
3812         
3813         * gtk/gtkcontainer.c: Fix docs for 
3814         gtk_container_set_border_width. (#64139)
3815
3816         * gtk/gtkcolorsel.c: Documentation fixes.
3817
3818 2001-11-10  Hans Breuer  <hans@breuer.org>
3819
3820         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
3821         don't have strcasecmp()
3822
3823         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
3824         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
3825         code duplication wrap it in its own function and use it in 
3826         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
3827
3828         * gdk/win32/gdkdrawable-win32.c : implement the finalize
3829         method like the X11 version does, allow to set_colormap NULL
3830         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
3831         set_colormap, also some adaption to X11 version :
3832         (gdk_window_hide) call _gdk_window_clear_update_area
3833         (gdk_window_reparent) call _gdk_window_init_position
3834
3835         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
3836         call gdk_window_resize() after all hints are set, because the
3837         window resizing process (WM_GETMINMAXINFO) takes all of them into 
3838         account
3839
3840         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
3841
3842         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
3843         sizeof (GdkVisualPrivate)
3844
3845         * gdk/gdk.def gtk/gtk.def : upated externals
3846
3847         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
3848           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
3849         from now on use make.msc from $(TOP)/glib/build/win32
3850
3851         * gtk/stock-icons/makefile.msc : add stock_missing_image
3852
3853 2001-11-08  Tor Lillqvist  <tml@iki.fi>
3854
3855         * README.win32: Add headers. Add section about ActiveIMM.
3856
3857         * configure.in: Add --with-ie55 flag to specify the location of
3858         the "IE55 libs and headers" package downloadable from Microsoft,
3859         which contains, among other things, the Active IMM header dimm.h
3860         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
3861         Require GLib 1.3.10.
3862         
3863         * config.h.win32.in: New version, produced by merging two
3864         configure-generated ones (for gcc and MSVC). Hopefully #defines
3865         the same flags that the previous, hand-written one, did.
3866
3867         * gdk/Makefile.am
3868         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
3869
3870         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
3871         stuff. Remove unused GdkIOClosure.
3872
3873         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
3874         available).
3875
3876         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
3877         for uuid.lib. (Does it really have to be this hard to use an
3878         existing library with libtool? Probably I am missing something.)
3879
3880 2001-11-08  Darin Adler  <darin@bentspoon.com>
3881
3882         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
3883         typo where it says LEFT instead of CENTER.
3884
3885 2001-11-07  Darin Adler  <darin@bentspoon.com>
3886
3887         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
3888         (gtk_dialog_set_default_response): Add g_return_if_fail.
3889
3890 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
3891
3892         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
3893         Add row_draggable() vfunc, and wrapper function.
3894
3895         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
3896         row_drop_possible take a GtkSelectionData, rather than
3897         model/row pair.
3898
3899         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
3900         new DND interfaces.
3901
3902         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
3903         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
3904         and rename them to enable_model_drag_source/dest.
3905
3906         * gtk/treeviewcolumn.c: Add DND of columns between rows.
3907         Still can't drop _to_ the left tree, but other places
3908         work.
3909
3910         * gtk/gtktreeview.c (unset_reorderable): Unset the
3911         reorderable property if unset/enable_model_drag_source/dest
3912         are called manually.
3913
3914         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
3915         Correct for change in depth count handling.
3916
3917         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
3918         Pass in a expose area to gtk_tree_view_column_cell_render()
3919
3920 2001-11-06  Havoc Pennington  <hp@redhat.com>
3921
3922         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
3923
3924 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
3925
3926         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
3927
3928 2001-11-05  Havoc Pennington  <hp@redhat.com>
3929
3930         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
3931         widgets in here
3932         (gtk_text_view_realize): set parent window of child widgets
3933         (gtk_text_view_size_request): use child req to decide whether
3934         to invalidate layout, not widget->requisition
3935
3936         * gtk/gtktextdisplay.c (render_layout_line): set
3937         shaped_width_pixels for NULL shape objects, so that we properly
3938         draw the "missing pixbuf/widget" thing
3939         (render_layout_line): don't draw the widget here
3940         (gtk_text_layout_draw): pass out a list of widgets that need exposing
3941
3942         * demos/gtk-demo/textview.c (insert_text): add demo of child
3943         widgets
3944
3945         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
3946
3947         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
3948
3949         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
3950         scroll offsets
3951         (gtk_text_view_value_changed): poke new X and Y into child allocations
3952
3953 2001-11-06  Tor Lillqvist  <tml@iki.fi>
3954
3955         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
3956         -specific directory on Windows, too (#63759).
3957
3958 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
3959
3960         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
3961         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
3962         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
3963         directly to Picture objects instead of using XftDraw.
3964         This fixes the problem where we weren't able to 
3965         properly destroy XftDraw objects before destroying
3966         the accompanying windows, and probably improves
3967         efficiency a bit too. (#50214)
3968
3969 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
3970
3971         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
3972         Clamp max window width/height to 32767, not 32768 since
3973         we have to be able to deal with a dx/y of -32768 without
3974         getting a width of 65536 when guffaw scrolling.
3975
3976         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
3977         for the guffaw scrolling case, fixing some problems with
3978         copy-area case as well. Fix BadValue bug with moving windows
3979         by large amounts.
3980
3981         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
3982         clip in window structue before calling gdk_window_invalidate_region
3983         since that trims new invalidations to the window's visible
3984         region.
3985
3986         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
3987         Really set the static window gravity on the children, not
3988         repeatedly on the window.
3989
3990         * gtk/testgtk.c: Add a torture test for big windows and 
3991         gdk_window_scroll().
3992
3993 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
3994
3995         * acconfig.h configure.in: sigsetjmp is macroized in some places,
3996         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
3997
3998 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
3999
4000         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
4001         in terms of pango_color_parse().
4002
4003         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
4004         gdk_color_parse() implementations.
4005
4006 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
4007
4008         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
4009         queue_resize_on_group with both the old and new mode, not
4010         just the new mode. (#60171, Nicolas Setton). Also, notify
4011         the "mode" property.
4012         
4013 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
4014
4015         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
4016         for use in "shallow invalidation" of a widget. (Windows belonging
4017         to the widget, but not to the widget's children)
4018
4019         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
4020         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
4021         up on ancestors up to the resize container on queue_resize. Size
4022         requests only actually take place if GTK_REQUEST_NEEDED, size
4023         allocations only take place if GTK_ALLOC_NEEDED or the size
4024         changed.
4025
4026         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
4027         container->resize_widgets and the RESIZE_NEEDED flag since the
4028         above flags are sufficient to figure out what needs to be
4029         resized/reallocated. Remove code manipulating
4030         container->resize_widget.
4031
4032         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
4033         allows widgets to turn off being automatically invalidated is when
4034         they are resized.
4035
4036         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
4037         a widget is resized or moved is "shallow" as described above -
4038         only the windows that need to be invalidated are invalidated.
4039
4040         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
4041         Make these widget's init functions call 
4042         gtk_widget_set_redraw_on_allocate(widget,FALSE).
4043
4044         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
4045         _gtk_container_queue_resize(), since we don't want
4046         redrawing. (Probably could be done for other 
4047         calls to gtk_widget_queue_resize() in gtkwindow.c,
4048         but this is the most important one.)
4049
4050         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
4051         gtk_widget_queue_draw() - size_allocate() handles
4052         that as appropriate.
4053
4054         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
4055         of queue_clear() to avoid invalidating children.
4056
4057 2001-11-04  jacob berkman  <jacob@ximian.com>
4058
4059         * gtk/gtkmain.c (find_module): don't free the module name until
4060         after we load the module
4061
4062 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
4063  
4064         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
4065         derivation instead of boxed derivation.
4066  
4067         * gtk/gtkmarshal.list: Remove some now unused marshallers.
4068  
4069 2001-11-04  Tor Lillqvist  <tml@iki.fi>
4070
4071         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
4072         include yesterday, without really thinking), as that defeats the
4073         working of correct_libdir_prefix() (it becomes a no-op.). Add
4074         comment mentioning that. Thanks to Hans Breuer for noticing.
4075         
4076 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
4077
4078         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
4079         signal argument (was GtkWidget*).
4080
4081         * gtk/gtkwindow.c (gtk_window_frame_event),
4082           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
4083         Fixed argument types as above, removed GTK_WINDOW casts and
4084         added some GTK_WIDGET casts instead.
4085
4086 2001-11-03  Hans Breuer  <hans@breuer.org>
4087
4088         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
4089         finalize to parent class to get removed from the toplevel_list.
4090         Should fix 'random' crashes of #63474.
4091
4092         * gtk/gtktreemodelsort.c : chain finalize() to parent class
4093
4094 2001-11-03  Tor Lillqvist  <tml@iki.fi>
4095
4096         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
4097         for .dll or .so as appropriate as module suffix.
4098
4099         * gtk-zip.sh.in: Use correct import library names.
4100
4101         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
4102
4103         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
4104         Windows to turn build-time paths from a gtk.immodules distributed
4105         as part of a binary package into runtime ones in the
4106         end-user-chosen installation directory.
4107         (gtk_im_module_init): Use it for module path and domain
4108         directory.
4109
4110 2001-11-02  Tor Lillqvist  <tml@iki.fi>
4111
4112         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
4113         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
4114         Windows.
4115
4116 2001-10-30  Tor Lillqvist  <tml@iki.fi>
4117
4118         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
4119         files. Configure on Win32 (running on Cygwin) thinks symlinks
4120         exist, but pkg-config is not necesarily a Cygwin program, and
4121         doesn't understand them.
4122
4123 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
4124
4125         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
4126         a bit.  I don't think it's completely correct yet, but it's
4127         getting there.
4128
4129 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
4130
4131         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
4132         random + 5 for width and height. If people want padding,
4133         they should add padding. (Note the +5 isn't padding
4134         that will always appear - it just appears in the case
4135         where the widget is allocated it's requisition.)
4136         (#51018, Janet Davis)
4137
4138 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
4139
4140         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
4141         the structure for future expansion.
4142
4143 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
4144
4145         Patch from HideToshi Tajima (#51922)
4146         
4147         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
4148
4149         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
4150         set_use_preedit().
4151         
4152         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
4153         to destroy the input context because we change the
4154         client window or use_preedit, make sure we empty
4155         the preedit string.
4156
4157 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
4158
4159         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
4160         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
4161         proposed ordering of buttons with [OK] in the lower
4162         right hand corner. Patch from Gregory Merchan,
4163         #56331.
4164
4165 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
4166
4167         * gtk/gtklabel.c (gtk_label_select_region_index): remove
4168         extraneous gtk_label_clear_layout (label)
4169
4170 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4171
4172         * tests/makefile.msc, gtk/makefile.msc.in: Removed
4173         -DGTK_DISABLE_COMPAT_H.
4174
4175         * docs/Changes-2.0.txt:
4176         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
4177
4178         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
4179
4180 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
4181
4182         * examples/**/Makefile.am: Convert to use pkg-config
4183         rather than gtk-config. (#53375, Skip Montanaro)
4184
4185 2001-11-02  Matt Wilson  <msw@redhat.com>
4186
4187         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
4188         broken unused, non-compiling, static function.
4189
4190 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
4191
4192         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
4193         Iterate through children of the action area, not of
4194         the vbox. (#58278, Sergey Kuzminov)
4195
4196 2001-11-01  Havoc Pennington  <hp@pobox.com>
4197
4198         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
4199         order to remove a workaround in Nautilus that forced
4200         GTK_ENABLE_BROKEN
4201
4202         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
4203
4204 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
4205
4206         * gtk/gtkrange.c: Patch from George Lebl to 
4207         fix division by zero for full scroll bars. (#62114)
4208
4209 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
4210
4211         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
4212         around gtk_widget_event() if we are going to
4213         set a flag afterwards. (#63464)
4214
4215 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
4216
4217         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
4218         Actually add the missing/broken image icon as the
4219         image for the "missing image" stock icon.
4220
4221 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
4222
4223         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
4224         Set a reasonable default height for the window.
4225
4226         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
4227         bug where subsequent '-' weren't converted to '_'.
4228         (#59550, Matthias Clasen)
4229
4230         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
4231         justify the Help menu - just include a comment on
4232         how to do it. (#63539,  Marius Andreiana)
4233
4234         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
4235         list GTK_ICON_SIZE_INVALID.
4236
4237         * demos/gtk-demo/stock_browser.c: Show the biggest available
4238         size, not a fixed size. (Often reported, including #63539, 
4239         Marius Andreiana)
4240
4241 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
4242
4243         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
4244         #59583
4245
4246         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
4247         warning.
4248
4249 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
4250
4251         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
4252         (Daniel Elstner).
4253
4254 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
4255
4256         * gtk/gtkimcontext.[ch]: Add:
4257           - A ::retrieve_surrounding signal that asks the widget for
4258             context around the insertion point.
4259           - A ::delete_surrounding signal that asks the widget to 
4260             delete context aroudn the insertion point.
4261           - gtk_im_context_set_context() for widgets to set context
4262             around the insertion point in response to ::retrieve_context.
4263           - gtk_im_context_get_context() for context to get context
4264             around the insertion point
4265
4266         * gtkmarshal.list: Add BOOL:INT,INT
4267
4268         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
4269         set_surrounding() methods, and the ::retrieve_surrounding /
4270         ::delete_surrounding signals.
4271
4272         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
4273         GtkIMContext::retrieve_surrounding / ::delete_surrounding
4274         signals.
4275
4276 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
4277
4278         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
4279         it's amazing how well things work sometimes, even when they're
4280         completely wrong.
4281
4282         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
4283         where you could try to collapse a node w/o it having children.
4284
4285         (gtk_tree_view_class_init): remove Shift L<->R as they already
4286         existed for expand/collapse.
4287
4288 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
4289
4290         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
4291         found by Matt Wilson.
4292
4293 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
4294
4295         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
4296         Control, and Shift|Control L<->R, #63475
4297
4298 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
4299
4300         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
4301         infinite loop noticed by yosh.
4302
4303 2001-11-01  Michael Meeks  <michael@ximian.com>
4304
4305         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
4306         GTK_REALIZED flag so we don't re-enter when we are
4307         destroyed from the plug side.
4308
4309 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
4310
4311         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
4312         Add a "menu" property and notify on it. (#62798,
4313         Padraig O'Briain)
4314
4315         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
4316         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
4317         Fix set_text to take a gchar, not a guchar, and to have 
4318         a len argument.
4319
4320 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
4321
4322         * gtk/gtkstock.c: fix typo to make it compile
4323
4324 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
4325
4326         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
4327         the widget is insensitive, draw the text insensitively, #63306
4328
4329 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
4330
4331         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
4332
4333 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
4334
4335         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
4336         gtk_selection_data_set_tree_row, #60218
4337         (gtk_tree_get_row_drag_data): rename
4338         gtk_selection_data_get_tree_row, #60218
4339
4340         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
4341         get this right, after the third try, #63122.
4342
4343 2001-10-31  jacob berkman  <jacob@ximian.com>
4344
4345         * gdk/gdkselection.h (GDK_TARGET_STRING): 
4346         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
4347         for Xatoms (and not using the XA_* macros)!
4348
4349 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
4350
4351         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
4352         gtk_window_get_focus() getter to determine the currently
4353         focused widget within the window. (#63145, request
4354         from Damian Ivereigh)
4355
4356 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
4357
4358         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
4359
4360         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
4361         GTK_SELECTION_NONE enum.
4362         (_gtk_tree_selection_internal_select_node): ditto
4363
4364         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
4365         constness.
4366
4367         * gtk/gtkcellrenderertoggle.c: more yummy constness.
4368
4369         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
4370         if mode == GTK_SELECTION_NONE
4371
4372 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
4373
4374         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
4375         "cursor_changed" signal, #62850.
4376
4377 2001-10-31  Matt Wilson  <msw@redhat.com>
4378
4379         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
4380         allocating the treedatalist, zero it to make sure the values are
4381         cleared from any garbage that was in this chunk.
4382
4383 2001-10-31  Murray Cumming  <murrayc@usa.net>
4384
4385         * gtk/cellrenderertext.h: "edited" default signal handler
4386         gchar* args are now const.
4387         gtk/cellrenderertoggle.h: "toggled" default signal handler
4388         gchar* arg is now const.
4389         Also changed other signal handlers for "edited" and "toggled" to
4390         have the same signature.
4391
4392 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
4393
4394         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
4395         rewrite.  Static models now totally work.  I'm not 100% sure about
4396         row_inserted and row_changed, but I'll get those later.
4397
4398 2001-10-30  Sven Neumann  <sven@gimp.org>
4399
4400         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
4401         output for configure --help.
4402
4403 2001-10-30  Havoc Pennington  <hp@pobox.com>
4404
4405         * gtk/gtktextview.c (changed_handler): Update the IM spot location
4406         here, if text was invalidated in the visible area, because the
4407         scroll offset doesn't normally change in that case, and the mark
4408         isn't set, just implicitly moved over as text is added/removed
4409         
4410 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
4411
4412         * gtk/gtkseparatormenuitem.c: Code cleanup.
4413         (gtk_separator_menu_item_class_init): Fix bugs in this code.
4414
4415 2001-10-29  jacob berkman  <jacob@ximian.com>
4416
4417         * gdk/Makefile.am (LDFLAGS): 
4418         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
4419         LDFLAGS, so put win32 flags in here
4420
4421 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
4422
4423         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
4424         I can't believe this took this long to fix.
4425
4426 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
4427
4428         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
4429         reordered signal.
4430
4431 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
4432
4433         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
4434         the focus to the fileop entry for create dir / rename
4435         file. (#62838)
4436
4437 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
4438
4439         * configure.in: Don't use AC_CHECK_FILE to check for a 
4440         file since it always spits warnings about cross compilation,
4441         use -f instead. It's not like we cross compile properly
4442         anyways.
4443
4444         * configure.in (gtktargetlib): Move call to AC_PROG_CC
4445         to suppress autoconf warning.
4446
4447         * acconfig.h: Add some missing #undefs from recent
4448         Win32 additions.
4449
4450 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
4451
4452         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
4453         when we didn't find it. (#62944, Eric Lemings)
4454
4455         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
4456         sign in assignment. (#63209, Arkadiusz Miskiewicz)
4457
4458 2001-10-29  Anders Carlsson  <andersca@gnu.org>
4459
4460         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
4461         the buttons size request before using it. Fixes #61696.
4462
4463 2001-10-29  Tor Lillqvist  <tml@iki.fi>
4464
4465         * README.win32: Updates.
4466
4467         * gtk-zip.sh.in: New file, used to build distribution package for
4468         Windows.
4469
4470         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
4471         applicable with GDKVAR.
4472
4473         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
4474         Wintab library.
4475
4476         * gdk/win32/gdkwin32.h
4477         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
4478         X11 headers better, and to enable gdkwin32.h to be installed and
4479         included from applications, but not the *-win32.h headers.
4480
4481         * gdk/win32/*.c: Corresponding small changes, simplifications of
4482         #includes.
4483         
4484         * gdk/win32/gdkregion-win32.c: Remove.
4485
4486         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
4487
4488         * gdk/win32/gdkfont-win32.c
4489         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
4490
4491         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
4492         GDK_NONE values into hash table.
4493
4494         * gtk/gtk.def: Update.
4495
4496         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
4497         gethostname().
4498
4499         * gtk/gtkmain.c 
4500         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
4501         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
4502         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
4503         g_win32_get_package_installation_subdirectory() with the actual
4504         DLL name saved above. Redefine above directory name macros to call
4505         these functions. Remove some ifdefs.
4506
4507         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
4508         variable for export on Win32) also to the _vars file.
4509
4510         Changes for autoconfiscated build on Win32, and addition of Win32
4511         backend to the related files:
4512         
4513         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
4514         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
4515         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
4516         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
4517         win32 target, using pangowin32. Don't use the
4518         -export-symbols-regex option on Win32, we use .def files to list
4519         exported symbols. Check <winsock.h> (for gethostname() in
4520         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
4521         prevent premature m4 expansion.
4522
4523         * acconfig.h: Add HAVE_WINTAB.
4524
4525         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
4526         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
4527         MS_LIB_AVAILABLE, build MS import library. Install the import
4528         libraries. If HAVE_WINTAB, link with the Wintab library.
4529
4530         * gdk/win32/Makefile.am: Actually enable building the win32
4531         objects here, not just list all files in EXTRA_DIST. Link in the
4532         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
4533         copy the Wintab library into the .libs directory. 
4534
4535         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
4536         name of the GDK DLL when fetching the icon. Use the HMODULE saved
4537         in gdk_dll_hinstance by DllMain.
4538
4539         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
4540         build/win32/lt-compile-resource script.
4541
4542         * gdk/win32/rc/gdk.rc.in
4543         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
4544
4545         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
4546         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
4547         file. Install import libraries.
4548
4549 2001-10-29  Anders Carlsson  <andersca@gnu.org>
4550
4551         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
4552
4553 2001-10-28  Hans Breuer  <hans@breuer.org>
4554
4555         * gdk/gdk.c gdk/gdkevents.c
4556           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
4557           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
4558           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
4559           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
4560           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
4561           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
4562           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
4563         static correct-ness, underscore prefixing of library internal 
4564         functions
4565         (applied the undisputed and the win32 part. Of the latter 
4566          I'm probably the one who will change it back again, if Owen
4567          decides that the Gdk*Impl types should not be private to Gdk)
4568
4569         * gdk/gdk.def : added the remaining exported functions
4570
4571 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
4572
4573         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
4574         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
4575         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
4576
4577 2001-10-28  jacob berkman  <jacob@ximian.com>
4578
4579         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
4580         gtk_settings_get_default() here as that requires an X connection
4581         (which breaks doc building with no X connection) and is not
4582         multihead safe
4583         (gtk_color_selection_init): delay palette loading until realize
4584         time
4585         (gtk_color_selection_realize): load the palette, and initialize
4586         the global palette if it hasn't been already
4587
4588         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
4589         visual/cmap fields of klass->info since they are gone
4590         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
4591         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
4592         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
4593
4594         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
4595         cmap fields
4596         (gtk_preview_get_visual):
4597         (gtk_preview_get_cmap): mark as deprecated
4598
4599         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
4600         changes
4601
4602 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
4603
4604         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
4605         structure to have GObject not GtkObject as
4606         parent_instance. (Jeff Franks.)
4607
4608 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
4609
4610         * gdk/x11/gdkinput.c: Typo fix.
4611
4612 2001-10-26  Havoc Pennington  <hp@pobox.com>
4613
4614         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
4615         update_im_spot_location here explicitly
4616         (gtk_text_view_reset_im_context): don't update the spot location
4617         here
4618
4619 2001-10-27  Anders Carlsson  <andersca@gnu.org>
4620
4621         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
4622         This fixes #62942.
4623
4624         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
4625         Clarify that we're returning a spin button in the _new function.
4626         This fixes #54097.
4627         
4628 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
4629
4630         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
4631         Unfortunately, people apparently erroneously connect
4632         to ::clicked for GtkToggleButton and expect
4633         they know what happened in the default signal handler
4634         instead of appropriately connecting to notification
4635         signal ::toggled. When the revolution comes, such
4636         people will be first against the wall.
4637
4638         We'll just have to go back to the old less-reliable
4639         set-it-back hacks for handling model-view check
4640         buttons and radio buttons. :-(. 
4641
4642 2001-10-27  Hans Breuer  <hans@breuer.org>
4643
4644         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
4645           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
4646           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
4647           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
4648           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
4649           gtk/gtktreestore.c gtk/gtkvbbox.c : 
4650         to simplify parsing for exported functions:
4651         - made implementation signature static, when the local 
4652           prototype already was
4653         - put the functions return value on it's own line
4654         - added as space between the function name and the 
4655           opening bracket
4656
4657         * gtk/gtk.def : added the remaining exported functions
4658
4659 2001-10-27  Anders Carlsson  <andersca@gnu.org>
4660
4661         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
4662         Add note about width having to be greater than 0. This fixes
4663         #55574. 
4664
4665         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
4666         Fix docs to say previous instead of next.
4667         (gtk_text_iter_backward_word_start): Likewise.
4668         This fixes bug #62980.
4669
4670         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
4671         that the valid width is in range 0-65535 pixels. Fixes bug 
4672         #56754.
4673
4674         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
4675         a dot in the documentation. Fixes bug #62632.
4676
4677         * gdk/x11/gdkmain-x11.c: Replace int and guint with
4678         long and gulong in some places to make the code 64-bit
4679         clean.
4680         (_gdk_windowing_init_check): Replace gint with gulong.
4681         This patch was made by George Lebl and fixes bug #62113.
4682
4683         * tests/testgtk.c (create_range_controls): Don't set a 
4684         fixed height on the hscale widget. This fixes "bug" 
4685         #55840.
4686         (create_window_states): Set up destroy signals so that
4687         all windows will be destroyed when one is. This fixes 
4688         bug #58133.
4689
4690 2001-10-26  Anders Carlsson  <andersca@gnu.org>
4691
4692         * gtk/gtktreeview.c: 
4693         (gtk_tree_view_class_init): Create new "indent_expander"
4694         style property.
4695
4696         (gtk_tree_view_get_arrow_xrange): Add a tree argument
4697         to the function since the xrange can change depending
4698         on where in the tree we are. 
4699         
4700         (coords_are_over_arrow): Update function call to
4701         gtk_tree_view_get_arrow_xrange.
4702         (gtk_tree_view_draw_arrow): Likewise.
4703         
4704         (gtk_tree_view_real_expand_collapse_cursor_row):
4705         Call real_{expand|collapse}_row, so that we'll have an
4706         animation.
4707
4708 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
4709
4710         * tests/Makefile.am: fixed a small typo
4711
4712 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
4713
4714         * demos/gtk-demo/list_store.c (create_model): Anders
4715         Carlsson suggested to use G_N_ELEMENTS here
4716
4717 2001-10-26  Sven Neumann  <sven@gimp.org>
4718
4719         * gtk/gtkbutton.[ch]
4720         * gtk/gtkdnd.c: fixed inline comments
4721         
4722         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
4723
4724 2001-10-26  Hans Breuer  <hans@breuer.org>
4725
4726         * gdk-pixbuf/gdk_pixbuf.def : 
4727         * gdk/gdk.def : 
4728         * gtk/gtk.def : updated externals
4729
4730         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
4731         gdk_window_lookup implementation. It already was in
4732         gdk/win32/gdkwindow-win32.c
4733
4734         * gdk/win32/gdkproperty-win32.c : made it compile again
4735         after GdkAtom API change
4736
4737         * gtk/gtk/makefile.msc.in : updated
4738
4739 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
4740
4741         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
4742         require GLib 1.3.10.
4743
4744         * NEWS: updates.
4745
4746 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
4747
4748         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
4749         invalid nodes.
4750          (_gtk_rbnode_rotate_right): Ditto.
4751          (_gtk_rbtree_node_mark_invalid): New function.
4752          (_gtk_rbtree_node_mark_valid): New function.
4753
4754         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
4755         GObject, not a GtkObject.
4756         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
4757         correct.
4758         (gtk_tree_model_sort_row_deleted): ditto.
4759         (gtk_tree_model_sort_{un,}ref_node): Fix.
4760
4761         * gtk/gtktreeview.c: Protean incremental reflow support (commented
4762         out)
4763
4764         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
4765         to const char *key.
4766
4767         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
4768         Important 1 line fix to fix a lot of refcounting woes.
4769
4770 2001-10-25  Matt Wilson  <msw@redhat.com>
4771
4772         * gtk/gtktextview.c (gtk_text_view_destroy): call
4773         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
4774         now invalidates) so that we remove our idle functions.
4775         (gtk_text_view_destroy_layout): remove the first_validate_idle as
4776         well.
4777
4778         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
4779         the 'indent' property is G_MININT to G_MAXINT.  Don't use
4780         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
4781         instead.
4782
4783 2001-10-24  Anders Carlsson  <andersca@gnu.org>
4784
4785         * gtk/gtktreeview.c: 
4786         (gtk_tree_view_real_expand_row): add an animate argument
4787         (gtk_tree_view_real_collapse_row): likewise
4788         
4789         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
4790         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
4791         (gtk_tree_view_collapse_row): update functions that call
4792         real_{expand|collapse}_row to set the animate argument 
4793         accordingly.
4794         
4795 2001-10-24  Alex Larsson  <alexl@redhat.com>
4796
4797         * gdk/linux-fb/gdkfont-fb.c:
4798         Update to new Pango APIs
4799
4800         * gdk/linux-fb/gdkproperty-fb.c:
4801         Update to new GdkAtom APIs
4802
4803         * gdk/linux-fb/gdkwindow-fb.c:
4804         Remove warnings
4805
4806 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
4807
4808         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
4809
4810 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
4811
4812         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
4813         s_path as a child path
4814
4815 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
4816
4817         * gtk/gtktreemodelsort.c: more changes in an attempt to get
4818         it right. It's not yet ready for general consumption.
4819
4820         * tests/treestoretest.c: add a button and entry for the new
4821         iter_change function
4822         (iter_change): new function, to test
4823         the row_changed signal implementation of the GtkTreeModelSort
4824
4825         * tests/testtreesort.c: cleanups, changes to test more features
4826         of the GtkTreeModelSort at once
4827
4828 2001-10-24  Havoc Pennington  <hp@redhat.com>
4829
4830         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
4831         remove hack to strip off the bogus newline, since we killed the
4832         bogus newline; fixes #61779
4833
4834 2001-10-24  Havoc Pennington  <hp@redhat.com>
4835
4836         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
4837         create layout if we didn't have one
4838         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
4839         as appropriate, avoids blanking the screen 
4840         (gtk_text_view_invalidate): new function to do invalidation,
4841         containing old guts of invalidated_handler
4842
4843 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
4844
4845         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
4846         dreadful tooltips.
4847
4848 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
4849
4850         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
4851         set window->parent (except or the root window itself); if 
4852         the window's parent is not a GdkWindow, or is a window of 
4853         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
4854
4855         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
4856         windows of type GDK_WINDOW_FOREIGN.
4857
4858 2001-10-24  Havoc Pennington  <hp@pobox.com>
4859
4860         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
4861         the front of a segment, use the "slow" technique for moving
4862         backward, so we don't mess up the any_segment field in the iter. 
4863         Fixes #57707
4864
4865         * tests/testtextbuffer.c: add code to detect #57707, to avoid
4866         regression
4867
4868 2001-10-23  Havoc Pennington  <hp@redhat.com>
4869
4870         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
4871         if selection contains some editable text, #60975
4872         (gtk_text_view_scroll_to_iter): remove warning about scrolling
4873         prior to map; it should actually be OK to do so in many cases, 
4874         it would be nice to warn about scrolling when many lines have
4875         height 0, but I don't know what to do about that. Perhaps 
4876         move part of flush_scroll into this function? comment added 
4877         to consider this.
4878
4879 2001-10-23  Havoc Pennington  <hp@redhat.com>
4880
4881         * gtk/gtktextview.c (changed_handler): Correctly keep the same
4882         text on the top of the screen, considering that the changed region
4883         may have overlapped the first paragraph. Should fix msw's "text
4884         widget scrolled to wrong place on map" bug, and probably some
4885         other scrolling cases as well.
4886         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
4887         instead of some random value
4888
4889         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
4890         grab_focus, so #59708 is really fixed
4891
4892 2001-10-24  Anders Carlsson  <andersca@gnu.org>
4893
4894         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
4895         (popup_targets_received): Call append_action_signal with stock items
4896         
4897         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
4898         (gtk_label_do_popup): Call append_action_signal with stock items
4899         
4900         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
4901         (popup_targets_received): Call append_action_signal with stock items
4902
4903 2001-10-23  Havoc Pennington  <hp@redhat.com>
4904
4905         * gtk/gtktextview.c (changed_handler): queue a resize here; will
4906         temporarily slow down the widget a lot, until we figure out how to
4907         optimize to avoid full redraw everytime we queue a resize.
4908
4909 2001-10-23  Havoc Pennington  <hp@redhat.com>
4910
4911         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
4912         0 and char_len == 0, bug #61729
4913
4914 2001-10-23  Havoc Pennington  <hp@redhat.com>
4915
4916         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
4917         return value, #61714 (Vitaly Tishkov)
4918         (gtk_text_iter_backward_sentence_starts): ditto
4919         (gtk_text_iter_backward_word_starts): ditto
4920         (gtk_text_iter_forward_word_ends): ditto
4921         (gtk_text_iter_forward_sentence_ends): ditto
4922         (gtk_text_iter_backward_cursor_positions): ditto
4923
4924 2001-10-23  Havoc Pennington  <hp@redhat.com>
4925
4926         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
4927         fix from Dov Grobgeld, #61858
4928
4929 2001-10-23  Havoc Pennington  <hp@redhat.com>
4930
4931         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
4932         Update IM spot location at appropriate times, #50626
4933         (Hidetoshi Tajima)
4934
4935 2001-10-23  Havoc Pennington  <hp@redhat.com>
4936
4937         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
4938         on grab focus, unless it's caused by button click, #59708
4939
4940 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
4941
4942         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
4943
4944         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
4945         G_CONST_RETURN. (Murray Cumming)        
4946
4947         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
4948         Make G_CONST_RETURN.
4949
4950         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
4951         results of g_get_home_dir().
4952
4953         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
4954         copy. Storing the return from gtk_entry_get_text() is evil.
4955
4956         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
4957         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
4958         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
4959         gtk/gtksignal.c: Add const.
4960
4961         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
4962
4963         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
4964         if we are setting them on private widgets.
4965
4966         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
4967         Duplicate entry->text before setting it as object data.
4968
4969 2001-10-22  Havoc Pennington  <hp@redhat.com>
4970
4971         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
4972         up a char from the end iterator, fixes #61859 ("can't put cursor
4973         at the end of the buffer")
4974
4975         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
4976         to work with delimiters other than newline.
4977
4978         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
4979         get_bytes_in_line
4980
4981         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
4982         last line, since the newline is no longer counted.
4983         (gtk_text_iter_get_bytes_in_line): ditto
4984
4985 2001-10-22  Havoc Pennington  <hp@redhat.com>
4986
4987         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
4988         #58290 would trigger if it reappeared, I think
4989
4990 2001-10-22  Havoc Pennington  <hp@redhat.com>
4991
4992         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
4993         add temporary code to dump btree contents on assertion failure
4994         described in #62656
4995         
4996         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
4997         assertions that we're getting the right end iter segment
4998
4999         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
5000         verify that we aren't on the end iterator after moving 
5001         forward one segment - fixes return value in an obscure case. 
5002         Also, some trivial code cleanup/rearranging.
5003         
5004 2001-10-22  Havoc Pennington  <hp@redhat.com>
5005
5006         * gtk/gtktextlayout.h: add a #error unless you define
5007         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
5008
5009         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
5010         
5011 2001-10-22  Havoc Pennington  <hp@redhat.com>
5012
5013         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
5014         #62365
5015
5016 2001-10-22  Havoc Pennington  <hp@redhat.com>
5017
5018         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
5019         #62436
5020
5021 2001-10-22  Havoc Pennington  <hp@redhat.com>
5022
5023         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
5024         #62366
5025
5026 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
5027
5028         * gtk/gtklabel.c: Add cursor-position, selection-bound 
5029         properties. (#62148, reported by Padraig O'Briain)
5030
5031         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
5032         to cursor_position. (1.3.x addition, text_position is an awful
5033         name.) Make cursor_position read-only to avoid sticky questions
5034         of interaction with selection_bound. (#62636, reported by
5035         Padraig O'Briain)
5036
5037 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
5038
5039         Fixing popup menus to have "Paste" sensitized correctly. Original
5040         patches from Damian Ivereigh, much mangled.
5041
5042         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
5043         gtk_selection_data_targets_include_text(). (#60854)
5044
5045         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
5046         the clipboard has text" function gtk_clipboard_wait_is_text_available.
5047         (#60854)
5048
5049         * gtk/gtkentry.c: Only enable the paste item if the clipboard
5050         contains text. (#60973)
5051
5052         * gtk/gtktextview.c: Only enable the paste item if the clipboard
5053         contains text. (#60975)
5054
5055 2001-10-22  Havoc Pennington  <hp@redhat.com>
5056
5057         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
5058         "height_lines" and "width_columns" properties, it doesn't make
5059         sense to set the size request on a text view really. #62103
5060
5061 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
5062
5063         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
5064         g_node_depth is broken, and that it's not worth being consistent
5065         with it.
5066
5067 2001-10-22  Havoc Pennington  <hp@redhat.com>
5068
5069         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
5070         docs, #61777
5071         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
5072         change the two boolean args to a flags field, so we can extend 
5073         to add case insensitive, regexp searches later. #61852
5074
5075 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
5076
5077         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
5078         reflect reality, #62810
5079
5080 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
5081
5082         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
5083
5084         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
5085         system.  Instead of having a window the size of the tree, we have
5086         a window the size of widget->allocation, and simply draw with the
5087         offset.
5088         (coords_are_over_arrow): ditto.  Move to window coordinates.
5089         (do_prelight): ditto
5090         (do_unprelight): ditto
5091
5092         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
5093         Minor fix from Kristian Rietveld to fix unsorted case.
5094
5095 2001-10-22  jacob berkman  <jacob@ximian.com>
5096
5097         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
5098         a PIXMAP cell (fixes crash when using PIXTEXT cells)
5099
5100 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
5101
5102         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
5103         (#58768, Vitaly Tishkov)
5104         
5105         * gtk/gtkobject.h: Deprecate with abandon. 
5106         (#61942, Vitaly Tishkov, Matthias Clasen)
5107
5108         * gtk/gtksignal.h: Deprecate everything.
5109
5110         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
5111         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
5112         (#61942, Matthias Clasen)
5113
5114         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
5115         Havoc Pennington)
5116
5117         * gtk/gtkitemfactory.h: Deprecate compat functions
5118         for GtkMenuFactory code. (#62071)
5119
5120         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
5121         gdk_draw_text,gdk_draw_text_wc. (#62071)
5122
5123 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
5124
5125         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
5126         g_thread_init(), we don't want to link to -lgthread if we don't
5127         have to.
5128
5129 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
5130
5131         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
5132         Add a function, gdk_threads_init() that must be explicitely 
5133         called to enable the GDK thread mutex.
5134
5135 2001-10-22  Jakub Steiner <jimmac@ximian.com>
5136
5137         * gtk/stock-icons/stock_stop.png: no body parts
5138         
5139 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
5140
5141         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
5142         problem with g_return_if_fail return value.
5143
5144         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
5145         virtual atom code from the gdk-multihead branch, removing the per-display
5146         part. Virtualizing atoms needs to be done now to prevent compat
5147         breakage in direct Xlib accessing code in the future. (#62208)
5148  
5149         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
5150         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
5151  
5152         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
5153         an opaque pointer type so the compiler catches attempts
5154         to mingle it with X atoms.
5155
5156         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
5157           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
5158           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
5159           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
5160           tests/testdnd.c,tests/testselection.c: 
5161         Fix up for above atom changes.
5162
5163         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
5164         now have the ability to add custom predefines.
5165
5166         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
5167         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
5168         to gtk_clipboard_get().
5169
5170         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
5171         for GdkAtom => pointer change.
5172
5173         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
5174         atoms, fix for GdkAtom => pointer change.
5175
5176 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
5177
5178         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
5179         new function spin_button_get_arrow_size() instead.
5180
5181         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
5182         arrow was hardcoded, it's now variable.
5183
5184         Fixes bug #50200
5185
5186 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
5187
5188         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
5189         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
5190         for those
5191
5192 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
5193
5194         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
5195         in favor of g_signal_*, gtk_object_* in favor of 
5196         g_object_*.
5197
5198 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
5199
5200         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
5201         from GObject now, we have to use the g_object_* functions, not
5202         gtk_object_*.
5203
5204 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
5205
5206         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
5207         nailed down now (this code is not yet ready for general consumption)
5208
5209 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
5210
5211         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
5212         for use_align
5213
5214 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
5215
5216         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
5217
5218 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
5219
5220         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
5221         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
5222         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
5223         GObject, not GtkObject. (#62621)
5224
5225 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
5226
5227         * tests/testsocket.c: Remove now useless include of unistd.h,
5228         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
5229         
5230 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
5231
5232         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
5233         Pango font API. #61933. (Untested, even for compilation.)
5234
5235 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
5236
5237         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
5238         export gtk_disable_setlocale(). (Caught by Sven Neumann)
5239
5240 2001-10-18  Havoc Pennington  <hp@redhat.com>
5241
5242         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
5243
5244 2001-10-18  Havoc Pennington  <hp@redhat.com>
5245
5246         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
5247         to GTK_RUN_LAST, #50239
5248
5249 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
5250
5251         * gtk/gtkimmodule.c (match_locale):
5252         Support "*" for all locales with least priority
5253         when to select default im module, #58201
5254
5255 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
5256
5257         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
5258         Fix docs. (#61976)
5259  
5260         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
5261
5262         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
5263
5264         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
5265         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
5266         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
5267         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
5268         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
5269         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
5270         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
5271
5272         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
5273
5274         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
5275         Don't restrict the width of the spinbutton entry field 
5276         to 10 digits. (#58681)
5277
5278 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
5279
5280         * tests/testtreeflow.c: new test program for the tree.
5281
5282 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
5283
5284         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
5285         reported by (Oleg Maiboroda), #62600
5286
5287 2001-10-18  Michael Meeks  <michael@ximian.com>
5288
5289         * gtk/gtkentry.c (gtk_entry_set_property),
5290         (gtk_entry_get_property): impl 'text'
5291         (gtk_entry_class_init): add the 'text' prop.
5292         (gtk_entry_insert_text): notify 'text' changed.
5293         (gtk_entry_delete_text): ditto.
5294
5295 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
5296
5297         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
5298         Documentation updates.
5299
5300 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
5301
5302         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
5303         in truncating length of text to MAX_SIZE. (Found by 
5304         Padraig O'Briain, #62055)
5305
5306 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
5307
5308         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
5309         MNEMONIC_ACTIVATE; signal was changed a long time
5310         ago.
5311
5312         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
5313         Fix wrong return statement. (Reported by HideToshi
5314         Tajima and others.)
5315
5316         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
5317         left over select_all vfunc.
5318
5319 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
5320
5321         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
5322         a utility function to translate coordinates relative to
5323         one widget's allocation to coordinates relative to another
5324         widget's allocation.
5325
5326         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
5327         that:
5328          - only accepts external focus if there is no active
5329            member of the group or the button is active.
5330          - makes arrow keys move the active button as well
5331            as the focus
5332          - make tab tab out directly.
5333         This makes a radio button group act as a single focus location.
5334         (#53577).
5335         
5336         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
5337         it was only a small optimization that didn't matter and made
5338         things more complicated.
5339
5340         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
5341         sorter for FOCUS_TAB as we did for the other focus directions,
5342         sort by center of widgets, not upper-left corner. (Shouldn't
5343         matter in general.)
5344
5345         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
5346         from the different types of focusing: encapsulate sorting the
5347         widgets for the focus direction into one routine
5348         (gtk_container_focus_sort()) and then share the work of moving the
5349         focus between the different focus directions.
5350
5351         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
5352         work correctly with focus chains containing non-immediate
5353         children. Sorting was being done using allocation coordinates for
5354         each widget in the focus chain, and if there were intermediate
5355         window-widgets, these allocations would not be in the same
5356         coordinate system.
5357
5358 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
5359
5360         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
5361         mnemonic_activate function to option menu.
5362
5363 2001-10-15  Murray Cumming <murrayc@usa.net>
5364
5365         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
5366           Corrected the type names used in some calls to g_signal_new().
5367         
5368 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
5369
5370         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
5371         specs, use g_pattern_spec_equal() instead of direct field accesses.
5372         upon compressing two equal paths of the same type, the resulting
5373         priority has to be the maximum.
5374         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
5375         GtkPathPriorityType enum and make it a macro.
5376
5377 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
5378
5379         * gtk/gtkwidget.c: Fix some doc comments.
5380
5381 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
5382
5383         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
5384         on empty models.
5385
5386 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
5387
5388         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
5389         Remove stale gdk backend includes.
5390  
5391 2001-10-10  Michael Meeks  <michael@ximian.com>
5392
5393         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
5394         and value_in_list properties.
5395         (gtk_combo_set_value_in_list): notify change.
5396         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
5397
5398 2001-10-11  James Henstridge  <james@daa.com.au>
5399
5400         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
5401         that gtk+ can be built with automake 1.5 while not breaking
5402         things for automake 1.4.
5403
5404 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
5405
5406         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
5407         (#60606)
5408
5409         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
5410         to disable calling setlocale (LC_ALL, "").
5411
5412         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
5413         docs that this function is not typically useful.
5414
5415         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
5416         Automatically initialize GDK for the current locale
5417         on gdk_init(). Don't reset locale to C when
5418         XSupportsLocale() fails.
5419
5420         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
5421         useless checks for UTF-8 locale breakage that mattered
5422         only for X.
5423
5424         * examples/calendar/calendar.c
5425         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
5426         gtk_set_locale().
5427
5428         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
5429         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
5430
5431 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
5432
5433         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
5434
5435         Fixes bug #61904
5436
5437 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
5438
5439         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
5440         new function, #61923
5441         (gtk_tree_selection_path_is_selected): Ditto
5442
5443 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
5444
5445         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
5446         not a GtkObject.  Thanks andersca.
5447
5448         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
5449
5450 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
5451
5452         * gtk/gtktreeviewcolumn.c
5453         (gtk_tree_view_model_sort_column_changed): fix broken code.
5454
5455 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
5456
5457         * gtk/gtkselection.c: s/succesfully/successfully/g
5458
5459 2001-10-08  Havoc Pennington  <hp@pobox.com>
5460
5461         * demos/gtk-demo/stock_browser.c: remove unused enum
5462
5463         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
5464         pass the current selection state of the node in to the user
5465         selection func
5466
5467 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
5468
5469         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
5470         non-existent function gdk_x11_cursor_get_xid 
5471         by gdk_x11_cursor_get_xcursor.
5472
5473 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
5474
5475         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
5476         warning.
5477
5478         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
5479         unref nodes, #okay61676
5480
5481         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
5482         to the property; no need to clear the other columns.  Also, we go
5483         to 'unsorted' if the model supports it.
5484
5485 2001-10-05  Sven Neumann  <sven@gimp.org>
5486
5487         * demos/testpixbuf-save.c
5488         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
5489         feature.
5490
5491 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
5492
5493         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
5494         destroy the search dialog
5495
5496         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
5497         added check to prevent creation of a search dialog if there's
5498         already one around
5499
5500         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
5501         it instead of "search-dialog" (when getting/setting the search dialog
5502         widget).
5503
5504 2001-10-05  Jakub Steiner <jimmac@ximian.com>
5505
5506         * gtk/stock-icons/stock_broken_image.png: broken images icon
5507
5508 2001-10-04  Havoc Pennington  <hp@pobox.com>
5509
5510         Fix #56586
5511         
5512         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
5513         accelerator setting here...
5514
5515         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
5516         because we try to use it when a menu bar hasn't necessarily been 
5517         initialized.
5518
5519 2001-10-03  Havoc Pennington  <hp@redhat.com>
5520
5521         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
5522         it previously verified incorrect behavior
5523
5524         Fixes for #61565
5525         
5526         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
5527         off the end
5528         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
5529         the end
5530         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
5531         the end
5532         (gtk_text_iter_forward_lines): if on the last line, move to end of
5533         it
5534
5535         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
5536         don't return a line off the end
5537
5538 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
5539
5540         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
5541         functions to do_insert_text and do_delete_text, add signals
5542         insert_text, delete_text and changed
5543
5544         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
5545         and changed. Updates to match new situation.
5546
5547         * gtk/gtkspinbutton.c: updates to match new situation
5548
5549         * gtk/gtkoldeditable.h: remove signals changed, insert_text
5550         and delete_text
5551
5552         * gtk/gtkoldeditable.c: updates to match new situation
5553
5554         * gtk/gtktext.c: updates to match new situation
5555
5556         Fixes bug #59803
5557
5558 2001-10-03  Havoc Pennington  <hp@redhat.com>
5559
5560         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
5561         position
5562
5563         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
5564         changes
5565
5566         * tests/testtextbuffer.c (logical_motion_tests): updates
5567
5568 2001-10-03  jacob berkman  <jacob@ximian.com>
5569
5570         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
5571         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
5572         * gtk/gtksettings.c (apply_queued_setting): 
5573         * gtk/gtkmain.c (gtk_init_check): 
5574         * gtk/gtkcontainer.c (gtk_container_child_get_property):
5575         s/retrive/retrieve/
5576
5577 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
5578
5579         * gtk/gtktreemodelsort.[ch]: preparation for surgery
5580         * tests/testtreesort.c: ditto
5581
5582 2001-10-02  Havoc Pennington  <hp@redhat.com>
5583
5584         Throughout: assorted docs
5585         
5586         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
5587         gdk_window_set_geometry_hints() should be used instead.
5588
5589         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
5590         document them
5591
5592         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
5593         seem to exist in any .c files
5594
5595         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
5596         g_return_if_fail (pixel < colormap->size).
5597
5598 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
5599
5600         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
5601         NULL for @target_list to mean, use
5602         gtk_drag_dest_get_target_list (widget).
5603
5604         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
5605         drop could hang when calling gtk_drag_finish with 
5606         success == FALSE and del == TRUE.
5607
5608         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
5609         drops without a matching target found would propagate
5610         to the parent widget rather than being rejected.
5611
5612         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
5613         Use text_view->dnd_mark instead of mark name to be
5614         consistent with the rest of the code.
5615
5616         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
5617         pendantically correct for a drop-only-in-some-places
5618         widget. (Check whether you can insert in drag_drop,
5619         not just in drag_motion ... matters in theory, and
5620         for Motif drag and drop in practice.)
5621
5622         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
5623         Damian Ivereigh to not allow drops on non-editable
5624         entries. (#61124)
5625
5626         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
5627         text to be moved from a non-editable entry.
5628         
5629 2001-10-03  James Henstridge  <james@daa.com.au>
5630
5631         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
5632         s/width/fixed_width/ in order to get things to compile.
5633
5634 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
5635
5636         * gtk/gtkcelleditable.c: docs
5637
5638         * gtk/gtktreemodel.h: more docs.
5639
5640 2001-10-02  Havoc Pennington  <hp@redhat.com>
5641
5642         * gdk/x11/gdkwindow-x11.c: docs
5643
5644         * tests/testtextbuffer.c (logical_motion_tests): add sentence
5645         boundary tests
5646
5647 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
5648
5649         * demos/gtk-demo/Makefile.am: add editable_cells.c,
5650         list_store.c and tree_store.c
5651
5652         * demos/gtk-demo/appwindow.c: remove tearoff item from
5653         File menu, put menubar and toolbar in handle boxes.
5654
5655         * demos/gtk-demo/genincude.pl: various changes to support trees
5656
5657         * demos/gtk-demo/main.c: various changes to support trees
5658
5659         * demos/gtk-demo/stock_browser.c: changed name of demo
5660         to Stock Item and Icon Browser, so geninclude.pl doesn't see
5661         it as child
5662
5663         * demos/gtk-demo/editable_cells.c: new file/demo
5664         * demos/gtk-demo/list_store.c: new file/demo
5665         * demos/gtk-demo/tree_store.c: new file/demo
5666
5667 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
5668
5669         * gtk/gtkrc.c gtk/gtksettings.c: 
5670         g_string_printfa => g_string_append_printf.
5671
5672 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
5673
5674         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
5675         and destroy handler.
5676
5677         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
5678
5679         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
5680         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
5681         Singh <yosh@gimp.org>.
5682
5683 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
5684
5685         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
5686         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
5687
5688         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
5689
5690 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
5691
5692         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
5693         scroll_to_cell delayed code to happen in size_allocate.
5694
5695         * gtk/gtkstyle.c (gtk_default_draw_expander): change
5696         prelight/normal arrow drawing.
5697
5698         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
5699
5700         * gtk/gtktreestore.c: refactor.
5701
5702 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
5703
5704         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
5705         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
5706         centers the child in relation to the to indicator height.
5707
5708 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
5709
5710         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
5711         correct
5712
5713 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
5714
5715         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
5716         property code using g_param_spec_int and changed from
5717         g_value_get_enum to g_value_get_int instead. Probably a better way
5718         to fix the problem :-)
5719
5720 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
5721
5722     * gtk/gtkcellrenderertext.c changed "weight" property type from 
5723       g_param_spec_int to g_param_spec_enum.
5724
5725 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
5726
5727         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
5728         fix: s/Wether/Whether/ in reorderable property description
5729
5730 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
5731
5732         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
5733         start editing when you select with a keyboard.
5734
5735         (gtk_tree_view_button_press_event): much more graceful now.
5736
5737         * gtk/gtkstyle.c: Draw togglebutton better.
5738
5739 2001-09-26  Havoc Pennington  <hp@redhat.com>
5740
5741         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
5742         of passing non-stock label in to gtk_dialog_new_with_buttons
5743
5744         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
5745         debugging updates
5746
5747         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
5748         are private
5749
5750         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
5751         exist, fall back to mnemonic label, not plain label, bug #61184
5752         
5753 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
5754
5755         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
5756         stupid and emitting the signal every time.
5757
5758         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
5759
5760 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
5761
5762        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
5763
5764        * contrib/gdk-pixbuf-xlib/Makefile.am: install
5765        gdk-pixbuf-xlib-2.0.pc.
5766
5767 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
5768
5769         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
5770         problem where menmonic wasn't removed properly when
5771         setting a label when there already is a label.
5772         Also, handle setting the tab label back to the same
5773         value. (#61160, #61161)
5774
5775         * gtk/gtkentry.c (paste_received): Patch from 
5776         Damian Ivereigh to replace selection if there is 
5777         one. (#61121)
5778
5779 2001-09-25  Darin Adler  <darin@bentspoon.com>
5780
5781         * tests/.cvsignore: Ignore new test program.
5782
5783 2001-09-25  Havoc Pennington  <hp@redhat.com>
5784
5785         * gtk/gtktextview.c: fix for #50317
5786         
5787 2001-09-25  Havoc Pennington  <hp@redhat.com>
5788
5789         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
5790         gtk_text_iter_can_insert
5791         
5792         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
5793
5794         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
5795          (gtk_text_iter_can_insert): new function to fix #60282, should
5796         also fix msw's "can paste into empty buffer" bug.
5797
5798         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
5799         "event object,"  #59091
5800
5801         * gtk/gtktextbtree.c: indentation fixes
5802
5803         * gtk/gtktextiter.c (find_by_log_attrs): fixes
5804
5805 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
5806
5807         * configure.in: Version 1.3.9, interface age 0, binary age 0.
5808
5809         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
5810
5811         * NEWS: Updates.
5812
5813 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
5814
5815         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
5816         function for drawing cursors between gtkentry/gtklabel/gtktextview.
5817         Should this be public? It has a bit of an odd interface, but
5818         custom editing widgets probably should be using it.
5819         Function will draw with wider width for taller cursors, and
5820         draws a little indicator arrow to indicate directoin for split 
5821         cursors.
5822
5823         * gtk/gtktextview.c: Add a "cursor_color" property.
5824
5825         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
5826         gtk_text_layout_draw().
5827
5828         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
5829         _gtk_draw_insertion_cursor().
5830
5831 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
5832
5833         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
5834         the behavior where you could turn family_set (etc) back on
5835         and get back the values you had before.
5836
5837         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
5838         g_string_ascii_up() rather than looping through the
5839         string ourself.
5840
5841 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
5842
5843         * gtk/gtktreeviewcolumn.c
5844         (gtk_tree_view_column_set_cell_renderer): Removed
5845         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
5846
5847         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
5848         Patch from Detlef Reichl
5849
5850 2001-09-25  Havoc Pennington  <hp@redhat.com>
5851
5852         * tests/testtextbuffer.c (line_separator_tests): Add tests for
5853         line separators, addresses bug #57428
5854
5855 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
5856
5857         * gtk/gtkentry.c: Make a GtkCellEditable
5858         (get_widget_window_size): Change to let it honor size_allocate
5859         when a CellEditable.
5860
5861         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
5862         editable changes.
5863         (gtk_tree_view_set_cursor): Now you can set the cursor
5864         horizontally, as well as start editing.
5865
5866         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
5867         code to look more like the other check buttons.
5868
5869         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
5870         Change the way we calculate cell size.
5871
5872         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
5873
5874         * demos/gtk-demo/sizegroup.c: Add mnemonics.
5875
5876         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
5877         Fix logic.
5878
5879         * gtk/gtkcellrenderertext.c: Change to be editable.
5880
5881         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
5882
5883         * test/testtreesort.c: Fix misspelling
5884
5885         * test/testreecolumns.c: Add mnemonics.
5886
5887         * test/testreeedit.c: New test program.
5888
5889 2001-09-25  Havoc Pennington  <hp@pobox.com>
5890
5891         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
5892         etc. docs about how these are not going to do what you want for 
5893         the X/win32 ports. Futile attempt to avoid a FAQ...
5894
5895 2001-09-24  James Henstridge  <james@daa.com.au>
5896
5897         * gtk/gtkmarshal.list (VOID): add marshal function types.
5898
5899         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
5900         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
5901         GTK_TYPE_POINTER.
5902         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
5903         with no-op copy/free functions.
5904
5905         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
5906         GtkCTreeNode get_type function.
5907
5908 2001-09-24  Havoc Pennington  <hp@redhat.com>
5909
5910         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
5911         gtktextlayout.c:
5912         Get rid of the newline-that-could-not-be-deleted; buffers may 
5913         now be zero-length. Much easier to fix than expected, once 
5914         I figured out the right way to do it. However, there are 
5915         various subtle bugs introduced by this that will have to get 
5916         sorted out. Please use bugzilla.
5917
5918 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
5919
5920         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
5921         response back from the window manager if our size hasn't changed 
5922         since we won't get a response back from the window manager;
5923         there was code in there to do this, but it was in the wrong
5924         place so if the hints change and the size didn't we'd expect
5925         a response.
5926
5927         Also, optimize the position-only-changed case by running
5928         the resize queue immediately, and clean up some comments
5929         for the changes.
5930
5931 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
5932
5933         * gtk/gtknotebook.h: Add a compat macro that got lost.
5934
5935         * gtk/gtktreestore.c: Doc fixes.
5936
5937         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
5938         leak for windows that receive events after being destroyed.
5939         (#60863, Joshua N. Pritikin)
5940
5941         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
5942         rather than gtk_container_queue_resize().
5943
5944         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
5945         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
5946         gtk_container_child_composite_name. (#60217.)
5947
5948 2001-09-22  Hans Breuer  <hans@breuer.org>
5949
5950         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
5951
5952 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
5953
5954         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
5955         weight value should be an int
5956
5957 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
5958
5959         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
5960         to gtk_menu_scroll_item_visible(). Only call
5961         gtk_menu_scroll_item_visible() if the menu widget has been
5962         realized. Fixes bug #55310.
5963
5964 2001-09-21  Havoc Pennington  <hp@redhat.com>
5965
5966         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
5967         key press to IM context if cursor isn't in an editable location;
5968         bug #58425, patch from Hidetoshi Tajima
5969
5970 2001-09-21  Havoc Pennington  <hp@redhat.com>
5971
5972         Bug #60862
5973         
5974         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
5975         (_gtk_text_btree_unref): fix up mark memory management
5976
5977         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
5978
5979 2001-09-20  Havoc Pennington  <hp@redhat.com>
5980
5981         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
5982         try to handle alignment here, because it's done by PangoLayout
5983         after we set the layout width. Fix from Dov.
5984
5985 2001-09-21  Hans Breuer  <hans@breuer.org>
5986
5987         * gdk/gdk.def :
5988         * gtk/gtk.def : updated externals
5989
5990         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
5991         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
5992         Also handle that Win32 pathes cann't be hard-coded      
5993
5994         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
5995         module, themes etc directory calculations
5996
5997         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
5998         >16 bit right. The size limit within Win9x appears _not_ to be 32767
5999         but slightly smaller ...
6000
6001         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
6002         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
6003
6004         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
6005
6006         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
6007         handling. I'm not sure if it is better now, but at least not worse
6008
6009         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
6010
6011         * gdk/win32/gdkwin32.h : reflect recent API restrictions
6012
6013 2001-09-21  Matt Wilson  <msw@redhat.com>
6014
6015         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
6016         radio_menu_item->group to NULL after removing it from the list, as
6017         it is no longer in the group. (#60869)
6018
6019         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
6020
6021 2001-09-20  Havoc Pennington  <hp@pobox.com>
6022
6023         * configure.in (PANGO_REQUIRED_VERSION)
6024         (ATK_REQUIRED_VERSION): add variables and checks for specific 
6025         versions of dependencies. Previously we didn't verify the 
6026         Pango or ATk versions.
6027
6028 2001-09-09  Havoc Pennington  <hp@pobox.com>
6029
6030         * gtk/gtktextiter.c: fool with indentation
6031         (gtk_text_iter_in_range): add g_return_if_fail
6032
6033 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
6034
6035         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
6036         ref count on new tag to be 1.  Update doc.  (#60836)
6037
6038 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
6039
6040         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
6041         call to gdk_image_new_bitmap(). (#59094, reported by
6042         by Sven Neumann)
6043
6044 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
6045
6046         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
6047         day, as well as the current month and year.
6048         (#59047, reported by Vitaly Tishkov)
6049
6050 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
6051
6052         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
6053         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
6054         
6055 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
6056
6057         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
6058
6059         (build_option_menu): add func argument, connect ::changed
6060         signal to option menu instead of connecting the ::activate
6061         signal to the menu items,
6062
6063         (toplevel): get rid of RADIOMENUTOGGLED macro,
6064
6065         (list_toggle_sel_mode), (clist_toggle_sel_mode),
6066         (ctree_toggle_line_style), (ctree_toggle_expander_style),
6067         (ctree_toggle_justify), (ctree_toggle_sel_mode),
6068         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
6069         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
6070
6071         (notebook_type_changed): merged standard_notebook(),
6072         notabs_notebook(), scrollable_notebook() and borderless_notebook()
6073         into notebook_type_changed()
6074
6075         (create_list), (create_ctree), (create_notebook),
6076         (create_progress_bar): changed OptionMenuItem arrays into
6077         gchar * arrays. Removed "Extended" item where used.
6078
6079         Fixes bug #59885
6080
6081 2001-09-20  Sven Neumann  <sven@gimp.org>
6082
6083         * configure.in
6084         * gdk/Makefile.am
6085         * gtk/Makefile.am
6086         * gtk/gtkselection.c
6087         * gtk/gtktreeview.c
6088         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
6089
6090 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
6091
6092         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
6093         a missing pango_layout_iter_free ().
6094
6095 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
6096
6097         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
6098         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
6099
6100         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
6101         the function definition so we don't accidentally rely on
6102         the compat #define from gtk_radio_menu_item_group.
6103         (#60782, Jeff Franks)
6104
6105 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
6106
6107         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
6108         incorrect values for top, right and bottom due to cut-and-paste
6109         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
6110
6111 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
6112
6113         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
6114         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
6115         window, not just on the client leader. (#58463)
6116
6117 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
6118
6119         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
6120
6121         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
6122         non-public _gtk_menu_item_set_placement.
6123
6124         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
6125
6126 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
6127
6128         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
6129           gdk/linux-fb/gdkcolor-fb.c:
6130         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
6131         (#59723)
6132
6133 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
6134
6135         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
6136         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
6137         #59723)
6138
6139 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
6140
6141         Patch from Frank Belew #59037 for Solaris compilation.
6142
6143         * gtk/maketypes.awk: Change syntax slightly for a call
6144         to sub(), apparently making awk on Solaris happier.
6145
6146         * gtk/gtktreeview.c: Remove C++ comments.
6147
6148 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
6149
6150         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
6151         to handle '99% of the time. (#60473, reported by Christian Rose)
6152
6153         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
6154         which no longer exists. (#60379, reported by Vitaly Tishkov)
6155
6156 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
6157
6158         * Released 1.3.8.
6159
6160         * gdk/Makefile.am: kill EXTRA_DIST clearing.
6161         
6162 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
6163
6164         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
6165         as its broken in automake 1.4, add explicit object rule to
6166         generate this.
6167         
6168         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
6169         get rid of uneccessary stamps, group stuff more logically, and build
6170         sources due to object rules. fix srcdir!=builddir.
6171
6172 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
6173
6174         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
6175         incorrect parameter to compute_double_length
6176         (#58680, patch from Matthias Clasen)
6177
6178         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
6179
6180         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
6181
6182         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
6183         for GDK_RELEASE_MASK to avoid warnings with Forte.
6184
6185         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
6186         break; statements.
6187
6188 2001-09-18  Alex Larsson  <alexl@redhat.com>
6189
6190         * gtk/gtkcheckbutton.c:
6191         * gtk/gtkradiobutton.c:
6192         Don't draw with GTK_STATE_ACTIVE.
6193
6194         * gtk/gtkclist.c:
6195         * gtk/gtkctree.c:
6196         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
6197
6198         * gtk/gtktextdisplay.c:
6199         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6200         unfocused with base_gc [GTK_STATE_ACTIVE].
6201         
6202         * gtk/gtkentry.c:
6203         Add select all menu-item.
6204         Default cursor color is red.
6205         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6206         unfocused with base_gc [GTK_STATE_ACTIVE].
6207
6208         * gtk/gtklabel.[ch]:
6209         Add keynav + menu to selectable lables.
6210         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6211         unfocused with base_gc [GTK_STATE_ACTIVE].
6212
6213         * gtk/gtkfilesel.c:
6214         Add drag and drop support.
6215
6216         * gtk/gtkstyle.c:
6217         (This was checked in earlier)
6218         New default values for text/base SELECTED and ACTIVE
6219         
6220 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
6221
6222         * configure.in: up version to 1.3.8, interface age 0,
6223         binary age 0, depend on glib 1.3.8.
6224
6225         * NEWS: 1.3.8 updates.
6226
6227 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
6228
6229         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
6230         the editing code
6231
6232         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
6233         reason to call it beyond emiting the two signals.
6234
6235         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
6236         to GtkEntry.
6237
6238 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
6239
6240         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
6241           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
6242         PangoFontDescription.
6243
6244         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
6245         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
6246         structure.
6247   
6248         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
6249
6250         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
6251         direct access to style->font. Deprecate gtk_style_ref/unref.
6252   
6253         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
6254         Remove gtk_style_ref/unref with g_object_ref/unref.
6255   
6256         * gtk/gtkcalendar.c: Remove leftover macros accessing
6257         style->font.
6258   
6259         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
6260         variable.
6261   
6262         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
6263         style->font.
6264
6265 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
6266
6267         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
6268         "can_activate" properties in favor of
6269         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
6270         and GTK_CELL_RENDERER_MODE_EDITABLE
6271
6272 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
6273
6274         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
6275         editable widgets.  This function is private, and should only be
6276         used by GtkTreeView.
6277
6278 2001-09-18  Matt Wilson  <msw@redhat.com>
6279
6280         * docs/Makefile.am (EXTRA_DIST): don't use += before =
6281
6282         * docs/faq/Makefile.am (EXTRA_DIST): likewise
6283
6284         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
6285         
6286         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
6287         (EXTRA_HEADERS): likewise
6288
6289         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
6290         (EXTRA_HEADERS): likewise
6291         (EXTRA_DIST): likewise
6292         (CLEANFILES): likewise
6293
6294         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
6295
6296         * tests/Makefile.am (EXTRA_DIST): likewise
6297         
6298         * Makefile.am (install-data-local): changed to use
6299         install-data-hook, which runs after install-pkgconfigDATA, so that
6300         the pkgconfigdir will have been created and populated first.
6301
6302 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
6303
6304         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
6305         be the last big GtkTreeView API change.
6306
6307         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
6308         replace with "activate" and "start_editing".  Also, added a
6309         "can_activate" and "can_edit" property.
6310
6311         * gtk/gtktreeviewcolumn.c: modify to use above.
6312
6313 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
6314
6315         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
6316
6317 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
6318
6319         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
6320         icon instead of one with ugly white background.
6321
6322 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
6323
6324         * demos/gtk-demo/stock_browser.c (id_to_macro): make
6325         the uppercasing work. (#59550)
6326
6327 2001-09-14  Jakub Steiner <jimmac@ximian.com>
6328
6329         * gtk/stock-icons/dialog_error.png:
6330         * gtk/stock-icons/dialog_question.png: more road signs
6331
6332 2001-09-13  Jakub Steiner <jimmac@ximian.com>
6333
6334         * gtk/stock-icons/dialog_question.png:
6335         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
6336           like a road sign.
6337
6338 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
6339
6340         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
6341         signals to make them more clear.  Also, change ::range_changed to
6342         ::row_changed.
6343         * gtk/gtktreemodel.c: Adjust to interface change
6344         * gtk/gtktreemodel.h: ditto
6345         * gtk/gtktreemodelsort.c: ditto
6346         * gtk/gtktreestore.c: ditto
6347         * gtk/gtkliststore.c: ditto
6348         * gtk/gtktreeview.c: ditto
6349         * tests/testtreecolumns.c: ditto
6350         * gtk/gtkmarshal.list: Actually remove a marshaller!
6351
6352 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
6353
6354         * gtk/gtktextview.c
6355         Add support for Ctrl+Up/Down arrow to move cursor to beginning
6356         of previous/next paragraph. If within a paragraph cursor moves to
6357         beginning of that paragraph.
6358
6359 2001-09-12  Jakub Steiner <jimmac@ximian.com>
6360
6361         * gtk/stock-icons/dialog_question.png: replacing the shaky
6362           question mark with a sans-serif one.
6363         * gtk/stock-icons/stock_top.png, stock_bottom.png,
6364      stock_first.png, stock_last.png: using the new style arrows
6365         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
6366      colors.
6367         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
6368      color.
6369         * gtk/stock-icons/stock_zoom*: anti-aliased
6370         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
6371      '-' with a '_', removed the wrong files
6372
6373 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
6374  
6375         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
6376  
6377         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
6378         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
6379         than in gtk-2.0/major.minor.micro/<type>/. This
6380         works better for a search path for modules.
6381  
6382         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
6383         gtk_binary_version variable holding major.minor.(micro-binary_age).
6384  
6385         * modules/input/Makefile.am (moduledir): Fix installation
6386         directory to match change in lookup location.
6387  
6388         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
6389         suffixes. Needs to be handled in g_module_build_path().
6390
6391         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
6392         appropriate.
6393  
6394 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
6395
6396         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
6397         causing RC properties not to work.
6398
6399 2001-09-11  Jakub Steiner <jimmac@ximian.com>
6400
6401         * gtk/stock-icons/dialog-error.png: less drastic
6402         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
6403           "STOP" is international enough.
6404         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
6405         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
6406
6407 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
6408
6409         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
6410         (add|remove)_selection_clipboard symmetric. (bug #59836)
6411
6412         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
6413         Avoid SEGV for empty tree. (bug #60243)
6414
6415 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
6416
6417         * tests/testgtk.c (create_idle_test): slight fix for
6418         g_object_set() not usable for nesting anymore.
6419
6420         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
6421         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
6422         properties, supply ::shadow_type properties instead as most
6423         other widgets do.
6424
6425 2001-09-10  Alex Larsson  <alexl@redhat.com>
6426
6427         * demos/gtk-demo/stock_browser.c:
6428         * gdk/gdkcolor.c:
6429         * gdk/gdkfont.c:
6430         * gdk/gdkcursor.c:
6431         * gdk/gdkevents.c:
6432         * gdk/gdkrectangle.c:
6433         * gtk/gtktypeutils.c:
6434         Update to use the new g_boxed_type_register_static API.
6435
6436 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
6437
6438         * gtk/gtktreestore.c:
6439         Fix looping in gtk_tree_store_init() waiting for zero random int.
6440
6441 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
6442
6443         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
6444         behaviour which havoc broke. they have to default to 1.0 for
6445         expand behaviour.
6446
6447         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
6448
6449 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
6450
6451         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
6452         Amend previous change to avoid runtime error in g_param_spec_ref()
6453
6454 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
6455
6456         * gtk/gtkrc.c (insert_rc_property): Fix blank line
6457         in the wrong place.
6458
6459 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
6460
6461         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
6462         do a lookup immediately after creating style->property_cache,
6463         since bsearch crashes on zero length for Solaris.
6464         (Found by Padraig O'Briain.)
6465
6466 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
6467
6468         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
6469         Really return NULL if not set.
6470         (gtk_widget_init): Remove unused varaible.
6471         
6472 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
6473
6474         * configure.in:
6475         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
6476         in cvs.
6477
6478 2001-09-08  Havoc Pennington  <hp@pobox.com>
6479
6480         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
6481         people might want to use
6482
6483 2001-09-08  Havoc Pennington  <hp@pobox.com>
6484
6485         * gtk/gtkalignment.c (gtk_alignment_class_init): default
6486         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
6487
6488         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
6489
6490         * gtk/gtktextiter.c: fix docs
6491         (gtk_text_iter_spew): get rid of this
6492
6493         * gtk/gtklayout.c: docs
6494
6495         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
6496         to center image and label together, instead of having image on
6497         left and label centered, patch/suggestion from Jacob
6498
6499         * gtk/gtkdialog.c: docs
6500
6501 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
6502
6503         * gtk/gtkliststore.c: Write documentation
6504         * gtk/gtktreestore.c: Write documentation
6505
6506 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
6507
6508         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
6509         with GArray and bsearch(), to remove dependency on a still
6510         evolving interface that we want to keep private to glib/gobject. 
6511
6512 2001-09-08  Havoc Pennington  <hp@pobox.com>
6513
6514         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
6515         docs fixes
6516
6517         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
6518
6519         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
6520
6521         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
6522
6523         * gtk/gtkscrolledwindow.h: docs fixes
6524
6525         * gtk/gtkimage.c (gtk_image_new): docs fixes
6526
6527 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
6528
6529         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
6530         false alarm  constness warning with a cast.
6531
6532         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
6533         for the inside-gdk case.
6534
6535 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
6536
6537         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
6538         remove g_print.
6539
6540         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
6541         change models, #59899
6542
6543 2001-09-07  Havoc Pennington  <hp@pobox.com>
6544
6545         * gtk/gtkmain.c: move some docs inline
6546
6547 2001-09-07  Havoc Pennington  <hp@pobox.com>
6548
6549         * gtk/gtk.h: tsk tsk, jrb broke the build
6550
6551 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
6552
6553         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
6554         Removed 'fill' attribute.  It was silly b/c that was a property of
6555         the cell renderer, anyway.
6556         (gtk_tree_view_column_render): Actually render the packed
6557         renderers.
6558         * doc/tree-column-sizing.txt: initial devel documentation.
6559         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
6560         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
6561
6562         * tests/testtreefocus.c: fix up to reflect above changes.
6563         * tests/testtreeview.c: ditto
6564         * demos/gtk-demo/stock_browser.c: ditto
6565
6566 2001-09-07  Alex Larsson  <alexl@redhat.com>
6567
6568         * gdk/linux-fb/gdkcolor-fb.c:
6569         Removed unused function.
6570         
6571         * gdk/linux-fb/gdkdrawable-fb2.c
6572         * gdk/linux-fb/gdkfont-fb.c:
6573         Use PangoLanguage functions.
6574
6575         * gdk/linux-fb/gdkinput.c:
6576         * gdk/linux-fb/gdkselection-fb.c:
6577         Fix const warnings.
6578         
6579         * gdk/linux-fb/gdkwindow-fb.c:
6580         Fix warning. Implement gdk_window_set_icon_list() and
6581         gdk_window_get_frame_extents(). (No icon support yet though.)
6582
6583         * gtk/gtkwindow.c (gtk_window_get_position):
6584         If window->frame is set get the extents of it instead.
6585         
6586 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
6587
6588         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
6589         Make the default default colormap the GdkRGB colormap,
6590         not the system colormap.
6591
6592         * gtk/gtkinvisible.c (gtk_invisible_init) 
6593           gtk/gtkwindow.c (gtk_window_init): Set the current
6594         colormap, as returned by _gtk_widget_peek_colormap()
6595         on the widget.
6596
6597         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
6598         to GTK+. Make it return %NULL instead of the default
6599         colormap if no colormap has explicitely been pushed.
6600
6601         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
6602         colormaps on ancestral widgets before defaulting the
6603         the system default colormap.
6604
6605         * docs/Changes-2.0.txt: explain colormap changes.
6606
6607 2001-09-07  Havoc Pennington  <hp@redhat.com>
6608
6609         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
6610         #57424
6611
6612 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
6613
6614         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
6615         make gdk_set_use_xshm a noop. Remove --no-xshm command line
6616         option. If we aren't autodetecting properly, we need
6617         to fix the problem, or at least make it an environment
6618         variable setting, to avoid problems with propagating
6619         to embedded children, plugins, etc.
6620
6621         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
6622
6623         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
6624         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
6625         New function to render a pixmap and mask for a particular colormap.
6626
6627         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
6628         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
6629         of internal implementation of the same.
6630
6631 2001-09-07  Havoc Pennington  <hp@redhat.com>
6632
6633         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
6634         debug code that seems to have caused a breakpoint in valid cases
6635         
6636         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
6637         pointer on the first view when adding the second view, fixes
6638         crash when closing gtk-demo text test with active selection
6639
6640         * gtk/gtktextbuffer.c
6641         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
6642         clipboards in the list of clipboards - probably fixes #59836
6643
6644 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
6645
6646       Make gdkx.h the only installed header from gdk/x11.
6647       All structures in gdk/x11 are opaque.
6648
6649         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
6650         Don't install gdk{drawable,pixmap,window}-x11.h.
6651
6652         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
6653         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
6654         GdkVisualClass into C files.
6655
6656         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
6657
6658         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
6659         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
6660         Add public functions to replace previously exported direct
6661         structure access.
6662         gdk_x11_colormap_get_{xdisplay,xcolormap} 
6663         gdk_x11_cursor_get_{xdisplay,xcursor},
6664         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
6665         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
6666         gdk_x11_gc_get_{xdisplay,ximage}
6667         
6668         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
6669         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
6670
6671       Fix a number of variables and functions that were exported
6672       "accidentally" from GDK.
6673
6674         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
6675         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
6676         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
6677         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
6678         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
6679         gdk_event_queue_find_first, gdk_event_queue_remove_link,
6680         gdk_event_queue_append, gdk_event_button_generate,
6681         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
6682
6683         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
6684            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
6685         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
6686         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
6687         gdk_use_xshm, gdk_input_ignore_core.
6688
6689         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
6690         #defines to namespace functions into the private _gdk_ 
6691         namespace.
6692
6693         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
6694         to replace gdk_parent_root exported variable. Adjust and
6695         deprecate GDK_ROOT_PARENT().
6696
6697         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
6698         GDK_ROOT_PARENT usage, remove includes of port-specific
6699         headers.
6700
6701         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
6702         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
6703         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
6704
6705         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
6706         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
6707         gdk_wm_delete_window functions, gdk_wm_take_focus, 
6708         use gdk_atom_intern() instead.
6709
6710         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
6711           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
6712           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
6713           gtk/gtkselection.c 
6714         Unexport gdk_selection_property, just use 
6715         gdk_atom_intern ("GDK_SELECTION").
6716
6717         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
6718         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
6719         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
6720         GdkVisualprivate, gdk_x11_gc_flush.
6721
6722       Make a number of public exports of variables into functions
6723       to increase encapsulation.
6724
6725         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
6726         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
6727         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
6728
6729         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
6730         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
6731         gdk_error_warnings.
6732
6733         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
6734           docs/Changes-2.0.txt: 
6735         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
6736         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
6737         Add gdk_x11_get_default_xdisplay().
6738
6739         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
6740         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
6741         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
6742         Don't export gdk_progclass, move --class command line
6743         option and handling to common portion of GDK.
6744
6745       Miscellaneous fixes:
6746
6747         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
6748         g_return_val_if_fail that should have been g_return_if_fail.
6749
6750         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
6751         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
6752
6753         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
6754         X11 dependency.
6755
6756         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
6757         Remove unused gdk_key_repeat_disable/restore.
6758
6759         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
6760         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
6761         Remove unused gdk_null_window_warnings variable.
6762
6763         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
6764         it can be retrieved from the repository; it is too far
6765         from functional to be worth having people check out;
6766         it would be easier to start from scratch, I suspect.
6767
6768         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
6769
6770         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
6771         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
6772         Fix some accidentally global variables and unused global variables.
6773
6774         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
6775         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
6776         Fix some accidentally global variables and unused global variables.
6777
6778       Add some space for future expansion to multihead.
6779
6780         * gdk/gdkdrawable.h: Add four reserved function pointers
6781         for future expansion of GdkDrawableClass.
6782
6783         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
6784         where we can put a GdkScreen * later.
6785
6786 2001-09-07  Havoc Pennington  <hp@redhat.com>
6787
6788         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
6789         adjustments after validating destination yrange; fixes #53918
6790         (This may cause other issues, but I hope it won't)
6791         
6792 2001-09-05  Havoc Pennington  <hp@redhat.com>
6793
6794         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
6795         line into start line, update the character counts in parent nodes; 
6796         caused a bug when end and start line had different parent nodes.
6797
6798 2001-08-30  Havoc Pennington  <hp@redhat.com>
6799         
6800         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
6801         assertion that tag is in a table
6802
6803 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
6804
6805         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
6806         g_strcasecmp on NULL strings. (#59058)
6807
6808 2001-09-06  Alex Larsson  <alexl@redhat.com>
6809
6810         * gtk/gtkbin.c:
6811         * gtk/gtkfontsel.c:
6812         * gtk/gtkspinbutton.c:
6813         * gtk/gtktipsquery.c:
6814         Use GtkType/GType instead of uint.
6815
6816 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
6817
6818         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
6819         sort column.
6820
6821         * gtk/gtktreestore.c (gtk_list_store_init): ditto
6822
6823         * gtk/gtktreesortable.c: add docs.
6824
6825 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
6826
6827         * Version 1.3.7
6828
6829         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
6830         docs for gtk-config
6831
6832         * modules/input/Makefile.am (install-data-local): Don't
6833         run gtk-query-immodules if DESTDIR is set.
6834
6835         * NEWS: Various additions.
6836
6837 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
6838
6839         * NEWS: updates for 1.3.7 release.
6840
6841 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
6842
6843         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
6844         handle default sort feature
6845
6846         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
6847         new function to handle default sort.
6848         (gtk_tree_sortable_has_default_sort_func): check if default sort
6849         is set.
6850
6851         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
6852         handle default sort feature
6853
6854 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
6855
6856         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
6857         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
6858         #59731
6859
6860 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
6861
6862         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
6863         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
6864         time, #59727
6865
6866         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
6867         correctly.
6868
6869 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
6870
6871         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
6872         so that we don't eternally update the keymap after we
6873         get a change notification.
6874
6875         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
6876         incorrect cast.
6877
6878 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
6879
6880         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
6881         it working. It mostly works now, although there're still a few issues
6882         to be worked out.
6883
6884         * tests/testtreesort.c (main): changes to have a better test
6885         application for the GtkTreeModelSort.
6886
6887 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
6888
6889         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
6890         fix for bug #59222.
6891
6892         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
6893         gpointer search_data argument to function definition and
6894         prototype, to match GtkTreeViewSearchEqualFunc typedef.
6895
6896 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
6897
6898         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
6899         per jrb's request.
6900
6901 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
6902
6903         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
6904
6905         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
6906
6907 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
6908
6909         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
6910         Instead of always mirroring the selection to a single PRIMARY
6911         selection, allow it to be mirrored to any number of clipboards.
6912
6913         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
6914         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
6915
6916         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
6917         GtkClipboard argument, and for paste_clipboard, the
6918         @override_location argument from @paste_primary.
6919
6920         * gtk/gtktextview.c: Adapt to above change.
6921         
6922 2001-08-30  Havoc Pennington  <hp@redhat.com>
6923
6924         * gtk/gtktextview.c (invalidated_handler): put validate idle at
6925         resize - 2 just for flexibility
6926
6927 2001-08-30  Havoc Pennington  <hp@redhat.com>
6928
6929         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
6930         object from the empty-child-anchor case by drawing a little box.
6931         
6932         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
6933         if the child anchor has no anchored widgets - fixes #59328.
6934
6935         Also, remove bizarre deletion of preedit string that seems to have
6936         gotten in here somehow.
6937
6938 2001-08-30  Havoc Pennington  <hp@redhat.com>
6939
6940         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
6941         to #58420 from Hidetoshi Tajima and Matthias Clasen
6942
6943 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
6944
6945         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
6946         change color when the GtkTreeView loses focus.
6947
6948         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
6949         ditto.
6950         
6951         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
6952
6953 2001-08-28  Havoc Pennington  <hp@pobox.com>
6954
6955         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
6956
6957 2001-08-28  Havoc Pennington  <hp@pobox.com>
6958
6959         * demos/gtk-demo/main.c (setup_default_icon): add default icon
6960
6961         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
6962         warning fix
6963         (gtk_radio_button_new_with_label): warning fix
6964
6965         * gtk/gtkdnd.c: used some random GtkImage private structs, 
6966         update to reflect GtkImage changes
6967
6968         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
6969         whether the hint is supported, just always set the icon. A task
6970         list might want to use it even if the WM doesn't, and the WM may
6971         change over time. Also, XDeleteProperty() if list == NULL.
6972
6973         * gtk/gtkwindow.c (gtk_window_set_icon_list)
6974         (gtk_window_get_icon_list)
6975         (gtk_window_set_icon)
6976         (gtk_window_get_icon)
6977         (gtk_window_set_default_icon_list)
6978         (gtk_window_get_default_icon_list):
6979         new functions
6980
6981         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
6982
6983         * gtk/gtkimage.c: Implement property support, bug #59408
6984
6985         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
6986         on reparent-without-removing-first a bit more helpful.
6987         Let's just destroy this FAQ.
6988
6989 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
6990
6991         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
6992         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
6993
6994 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
6995
6996         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
6997         of use_text_format to the end of the function. (#56447)
6998
6999 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
7000
7001         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
7002         only in response to an area_prepared signal.
7003
7004 2001-08-28  Alex Larsson  <alexl@redhat.com>
7005
7006         * gtk/gtkwidget.c (gtk_widget_class_init):
7007         Make unrealize GTK_RUN_LAST.
7008
7009 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
7010
7011         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
7012         with_label and with_mnemonic should create radio buttons, not
7013         check buttons
7014
7015 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
7016
7017         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
7018         * tests/treestoretest.c (make_window): ditto
7019         * demos/gtk-demo/main.c (create_tree): ditto
7020         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
7021
7022 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
7023
7024         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
7025         GTK selection types rather than GtkTreeSelectionMode.
7026
7027         * docs/Changes-2.0: Add comment about selection change.
7028
7029 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
7030
7031         * gtk/gtkenums.h (GtkSelectionMode): deprecate
7032         GTK_SELECTION_EXTENDED.
7033
7034         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
7035         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
7036
7037         * gtk/gtkctree.c: ditto
7038
7039         * gtk/gtklist.c: ditto
7040
7041         * gtk/gtktree.c: ditto
7042
7043 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
7044
7045         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
7046         of typos in compat macros. (#59624, Skip Montaro)
7047
7048 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
7049
7050         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
7051         macro.
7052
7053          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
7054  
7055         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
7056         interface to be a standard setter from gtk_menu_item_right_justify.
7057         (gtk_menu_item_get_right_justified): a getter to go with the setter
7058
7059         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
7060         gtk_menu_item_right_justify.
7061
7062         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
7063         gtk_menu_item_set_right_justified.
7064  
7065 2001-08-27  Jens Finke <jens@gnome.org>
7066
7067         * gtk+.spec.in: Updated to match gpp requirements, reworked the
7068         files section to make it work with 1.3.x releases.
7069
7070 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
7071
7072         * gtk/gtkbutton.[ch]:
7073         Add properties for labels, mnemonics and stock items.
7074         Added C accessor functions for the properties.
7075         Removed deprecated button->child.
7076
7077         * gtk/gtkradiobutton.c:
7078         * gtk/gtktogglebutton.c:
7079         Update to use the functions in GtkButton.
7080
7081         * gtk/gtkcheckbutton.c:
7082         Update to use the functions in GtkButton.
7083         Changed size allocation of child. Now only gets as much
7084         space as it requests.
7085
7086         * gtk/gtkclist.c:
7087         Don't use GtkButton->child
7088
7089         * gtk/gtklabel.c:
7090         Fixed typo in docs
7091         
7092 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
7093
7094         * tests/testgtk.c:
7095         * tests/Makefile.am:
7096         Ressurect the properties test.
7097         I don't care if it is inferior, I just want to test my property code.
7098
7099 2001-08-25  Chema Celorio  <chema@celorio.com>
7100
7101         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
7102         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
7103         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
7104
7105 2001-08-24  Havoc Pennington  <hp@pobox.com>
7106
7107         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
7108         these are already in gtkmenu.h, and the copies
7109         here were broken.
7110
7111         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
7112
7113         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
7114         special-case bitmaps to allow no colormap
7115         (bitmap1): implement no-colormap bitmap-getting
7116         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
7117         alpha
7118         (rgb8): indentation
7119         (rgb1a, rgb1): change the way we read the data out of the image, 
7120         old way didn't seem to work quite right.
7121
7122         I'm pretty sure a lot of the rgbconvert code is still broken.
7123         
7124         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
7125         above position constraint (I really intended to do this before,
7126         don't know what's up with that)
7127         (gtk_XParseGeometry): shut up gcc
7128
7129         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
7130         and "0" should have been. remove the attempted 4-bytes-at-once
7131         optimization, it was totally broken.
7132
7133 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
7134
7135         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
7136         on push to buttons (based on patch from Soeren Sandmann, #54720)
7137
7138           - Add child_displacement_x/y style properties to control how far the
7139             child moves when the button is depressed.
7140
7141           - Add non-exported function _gtk_button_set_depressed to clean
7142             up the handling of the in/out shadow and separate it frmo
7143             widget->state.
7144
7145           - Lots of code cleanup and simplification of state handling
7146             for GtkButton/GtkToggleButton.
7147  
7148         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
7149         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
7150
7151 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
7152
7153         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
7154         and make gtk_image_new() take no arguments. The compiler will
7155         catch it, and it is vastly more useful than having
7156         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
7157
7158         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
7159         to add tearoff-title property (#51319, Lee Mallabone)
7160
7161 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
7162
7163         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
7164         gtk_menu_item_configure(). (#58925)
7165
7166 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
7167
7168         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
7169         "use_align" to give people the option to just make a cell visible.
7170
7171         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
7172         we were scrolling past the end of the tree.
7173
7174         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
7175         rename gtk_tree_view_column_pack_start_cell_renderer to
7176         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
7177
7178 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
7179
7180         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
7181         a stray g_object_ref() left over from gtk_object_ref/sink.
7182         (Pointed out by Josh Pritikin.)
7183
7184 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
7185
7186         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
7187         to gtk_container_get_children. Added deprecated compatibility
7188         macro. (Suggested by Vitaly Tishkov, #59051)
7189
7190         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
7191         calls.
7192
7193 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
7194
7195         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
7196         gtk_menu_bar_append/prepend/insert, forgot to do this
7197         when we deprecated gtk_menu_append/prepend/insert.
7198
7199         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
7200         compat macros.
7201
7202         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
7203         renamed by compat macro.
7204
7205         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
7206         gtk_font_selection_dialog_get_font(). (Suggested by
7207         Vitaly Tishkov, #59383)
7208
7209 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
7210
7211         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
7212         Rename from gtk_text_tag_table_size(). (#59366)
7213
7214 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
7215
7216         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
7217         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
7218         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
7219         (#59173).
7220
7221 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
7222
7223         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
7224         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
7225         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
7226
7227 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
7228
7229         [ Patch from Sebastian Wilhelmi, 52790 ]
7230
7231         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
7232
7233         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
7234         Move compatibility macros from g[dt]kcompat.h to within 
7235         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
7236
7237         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
7238
7239         * demos/Makefile.am demos/gtk-demo/Makefile.am 
7240           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
7241           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
7242
7243         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
7244                  testpixbuf.c}: Fix usages of deprecated functions.
7245
7246 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
7247
7248         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
7249         when changing models.
7250
7251 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
7252
7253         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
7254         We check the current event for modifiers rather than try to trap
7255         all presses.
7256
7257 2001-08-22  Anders Carlsson  <andersca@gnu.org>
7258
7259         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
7260         It's LIST_STORE, not LISTSTORE.
7261
7262 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
7263
7264         * gtk/gtk.h: Remove commented out gtkpacker reference.
7265
7266 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7267
7268         * configure.in (all_loaders): Add tga loader, 
7269         patch by Nicola Girardi. (#56067)
7270
7271 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
7272
7273         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
7274         a little.  More needs to be done tomorrow.
7275
7276 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
7277
7278         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
7279
7280 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
7281
7282         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
7283         reported by Kristian Rietveld <kristian@planet.nl> to handle row
7284         == NULL.
7285         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
7286         <kristian@planet.nl> to change destroy order.
7287
7288 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
7289
7290         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
7291         correct marshaller.
7292
7293 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
7294
7295         * gtk/gtkliststore.c: Fix up warnings, #58928.
7296
7297         * gtk/gtktreeselection.h: Change signal prototype, #58647
7298
7299         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
7300         #59221.
7301
7302         * gtk/gtkstyle.c: Actually prelight arrow, #50981
7303         
7304 2001-08-18  Hans Breuer  <hans@breuer.org>
7305
7306         * gdk/gdk.def : updated externals
7307
7308         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
7309         is required to get (at least) visible in entry fields. Some selections
7310         are really handled now - even on win32 - but copying via middle
7311         mouse button into a different app needs to wait ... 
7312
7313         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
7314         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
7315
7316         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
7317         handling. I'm not sure if it is better now, but at least not worse
7318
7319         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
7320         with SetWindowPos () which allows more fine-tuning backing-store wise
7321
7322         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
7323         Also changed move/resize to be more like the X version.
7324
7325         * gtk/gtk.def : updated externals
7326
7327 2001-08-19  Sven Neumann  <sven@gimp.org>
7328
7329         * gtk/gtktooltips.c
7330         * tests/testtreesort.c
7331         * tests/treestoretest.c: inserted some casts to get rid of compiler
7332         warnings.
7333
7334 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
7335
7336         * gtk/gtktreeviewcolumn.c
7337         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
7338
7339         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
7340         (_gtk_tree_view_find_node): If *node is NULL,
7341         *tree should be NULL too.
7342
7343         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
7344         column/renderers.
7345         * tests/testtreecolumns.c: ditto
7346         * tests/testtreefocus.c: ditto
7347         * tests/testtreesort.c: ditto
7348         * tests/testtreeview.c: ditto
7349         * tests/treestoretest.c: ditto
7350
7351 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
7352
7353         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
7354         signals; is_expander/is_expanded.
7355
7356         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
7357         pixbufs.
7358
7359         * gtk/gtktreeview.c: set above properties.
7360
7361 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
7362
7363         * gtk/gtkwidget.h: Really remove set_default_style().
7364
7365         * docs/Changes-2.0.txt: added a note about
7366         gtk_widget_push/pop/set_default_style.
7367
7368 2001-08-18  Havoc Pennington  <hp@pobox.com>
7369
7370         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
7371         hints_changed in addition to the other cases.
7372         (gtk_window_move_resize): include last position from configure
7373         notify in debug spew
7374
7375 2001-08-18  James Henstridge  <james@daa.com.au>
7376
7377         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
7378         second argument to the weak ref notify, cleaning up some uglyness.
7379         (gtk_accel_group_attach): remove and add the weak notifier when
7380         changing the accel groups slist.
7381         (gtk_accel_group_detach): same here.
7382
7383 2001-08-17  Darin Adler  <darin@bentspoon.com>
7384
7385         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
7386         missing parameters to utf8 functions to make it compile.
7387
7388 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
7389
7390         * gtk/gtktreeprivate.h:
7391         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
7392         (gtk_tree_view_init), (gtk_tree_view_set_property),
7393         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
7394         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
7395         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
7396         (gtk_tree_view_set_destroy_count_func),
7397         (gtk_tree_view_set_enable_search),
7398         (gtk_tree_view_get_enable_search),
7399         (gtk_tree_view_get_search_column),
7400         (gtk_tree_view_set_search_column),
7401         (gtk_tree_view_get_search_equal_func),
7402         (gtk_tree_view_set_search_equal_func),
7403         (gtk_tree_view_search_dialog_destroy),
7404         (gtk_tree_view_search_position_func),
7405         (gtk_tree_view_interactive_search),
7406         (gtk_tree_view_search_delete_event),
7407         (gtk_tree_view_search_button_press_event),
7408         (gtk_tree_view_search_key_press_event),
7409         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
7410         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
7411         * gtk/gtktreeview.h:
7412         Add heavily modified patch from Kristian Rietveld to handle
7413         interactive searching.
7414
7415 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
7416
7417         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
7418         string parameter.
7419
7420         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
7421         GtkMenuShell::selection_done, now that we have it, instead of 
7422         ::deactivate so we're not tearing the menu apart and notify
7423         the user prematurely.
7424
7425 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
7426
7427         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
7428         window, clear window->need_default_position to avoid infinite loops.
7429         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
7430
7431 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
7432
7433         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
7434         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
7435         (gtk_tree_view_set_property): don't cast possible NULL objects.
7436         (gtk_tree_view_destroy): reset the model to NULL.
7437
7438         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
7439         parent_class handler.
7440
7441 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7442
7443         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
7444
7445 2001-08-17  Anders Carlsson  <andersca@gnu.org>
7446
7447         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
7448         point numbers so that the result will be floating point.
7449
7450 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7451
7452         * tests/testgtk.c (create_handle_box): 
7453         (create_toolbar): Replace gtk_window_set_policy calls by
7454         gtk_window_set_resizable.
7455
7456 2001-08-16  Jakub Steiner <jimmac@ximian.com>
7457
7458         * gtk/stock-icons/dialog_info.png: new style bulb
7459         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
7460         * gtk/stock-icons/dialog_warning.png: need a hand?
7461         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
7462           the aa border gets chopped off ok
7463         * gtk/stock-icons/stock_colorselector.png: using the new hand
7464         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
7465           this one is for, but the old icon was butt ugly.
7466         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
7467         * gtk/stock-icons/stock*_insert_object.png: "
7468         * gtk/stock-icons/stock_index.png: using new hand icon
7469         * gtk/stock-icons/stock*_new.png: the document template being used 
7470           elsewhere too
7471         * gtk/stock-icons/stock*_print*.png: new print and print preview 
7472           icons (panel/menu)  
7473         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
7474           icons based on Tuomas' floppy image.
7475         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
7476         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
7477         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
7478         * gtk/stock-icons/stock*_undelete.png: "
7479         * gtk/stock-icons/stock_preferences.png: I have a version with a 
7480           document base if the sliders are no good.
7481         * gtk/stock-icons/stock_properties.png: properties 
7482         
7483
7484         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
7485           (tigert@ximian.com) clipboard icons
7486         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
7487         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
7488         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
7489           little bigger IMHO
7490
7491 2001-08-16  Sven Neumann  <sven@gimp.org>
7492
7493         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
7494
7495 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
7496
7497         * gtk/gtkcellrenderertext.c:
7498         Avoid warning when specifying NULL for "attributes" property
7499
7500 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7501
7502         * docs/debugging.txt: Add a warning about --enable-debug=no,
7503         some editorial changes.
7504
7505 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7506
7507         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
7508         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
7509         debugging info, remove unused debug flags. (#58330)
7510
7511 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
7512
7513         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
7514         (gtk_tree_selection_select_all): Remove strict checking for rows.
7515
7516 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7517         
7518         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
7519         Don't remove the tooltip window when the tip text changes. (#15891)
7520
7521 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
7522
7523         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
7524         $(srcdir).
7525
7526 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
7527
7528         * Makefile.am (EXTRA_DIST): Fix problem with trying to
7529         dist files from intl/, which is no longer there.
7530
7531 2001-08-11  Hans Breuer  <hans@breuer.org>
7532
7533         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
7534           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
7535           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
7536           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
7537           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
7538           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
7539
7540         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
7541           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
7542         GDK_TYPE_EVENT signals
7543
7544         * gtk/gtkalignment.c : removed 'direct allocation bug',
7545         which Tim discovered while reading the patch
7546
7547 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
7548
7549         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
7550         compat macros for push/pop/set_visual that were supposed
7551         to be added a long time ago, but got dropped. 
7552
7553 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
7554
7555         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
7556         property notifies.
7557
7558 2001-08-07  Havoc Pennington  <hp@pobox.com>
7559
7560         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
7561
7562         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
7563         some fixage is needed here, but nothing simple. Owen understands
7564         it. ;-)
7565
7566         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
7567         sizing and positioning.  Also, fix bug in compute_geometry_hints
7568         (width/height confusion for setting min size). 
7569         (gtk_window_move): new function
7570         (gtk_window_resize): new function
7571         (gtk_window_get_size): new function
7572         (gtk_window_get_position): new function
7573         (gtk_window_parse_geometry): new function
7574         
7575         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
7576         (gtk_widget_get_size_request): new function
7577         (gtk_widget_get_usize): delete, that was a short-lived function
7578         ;-)
7579         (gtk_widget_set_usize): deprecate
7580         (gtk_widget_set_uposition): deprecate, make it a trivial 
7581         gtk_window_move() wrapper
7582         (gtk_widget_class_init): remove x/y/width/height properties,
7583         add width_request height_request
7584         
7585         * demos/*: update to avoid deprecated functions
7586         
7587         * gtk/gtklayout.c: add x/y child properties
7588
7589         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
7590         uses of "gint16"
7591
7592         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
7593         sizing test
7594
7595         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
7596         configure events on toplevel windows are always in root window
7597         coordinates, following ICCCM spec that all synthetic events 
7598         are in root window coords already, while real events are 
7599         in parent window coords. Previously the code assumed that 
7600         coords of 0,0 were parent window coords, which was 
7601         really broken.
7602   
7603         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
7604         warning
7605  
7606         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
7607         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
7608         hints in gtk_window_parse_geometry()
7609  
7610         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
7611         new USER_POS USER_SIZE hints    
7612
7613 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7614
7615         * tests/prop-editor.c (properties_from_type): Use 
7616         g_object_class_list_properties to get the param specs 
7617         for a given type. (#58609)
7618
7619 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7620
7621         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
7622         free the text_aa parts. (#57549)
7623
7624 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7625
7626         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
7627         not the foreground color. (#57621)
7628
7629 2001-08-09  Alexander Larsson <alexl@redhat.com>
7630
7631         * gdk/win32/gdkfont-win32.c:
7632         Update to the new pango win32 api.
7633
7634 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
7635
7636         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
7637         COMPOUND_TEXT instead of TEXT
7638         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
7639         interpret the return value of g_string_to_compound_text()
7640         (#55152)
7641
7642 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7643
7644         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
7645         fail if iter is NULL. (#58347)
7646
7647 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7648
7649         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
7650         some off-by-one issues, fixing selection of line-ends. (#50323)
7651
7652 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7653
7654         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
7655         functions in order to make mouse operation work again in the
7656         color wheel. (#58604)
7657
7658 2001-08-07  James Henstridge  <james@daa.com.au>
7659
7660         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
7661         the accelerator when the accel object is changed.  Fixes bug
7662         #58628.
7663
7664 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
7665
7666         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
7667         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
7668         (gnome bugzilla #58202)
7669
7670 2001-08-06  Havoc Pennington  <hp@pobox.com>
7671  
7672         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
7673         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
7674         it was expecting a GdkWindow, not a GdkWindowImplX11.
7675  
7676         Also, we were getting the window rect in screen coords 
7677         and the screen rect in window coords then intersecting 
7678         them; instead, get window rect in window coords.
7679  
7680         Finally, there were codepaths that resulted in a stuck server grab
7681         (when the window was fully onscreen, or on gdk_image_new()
7682         failure); make the server ungrab thing a bit more
7683         robust/consistent.
7684
7685 2001-08-06  Sven Neumann  <sven@gimp.org>
7686
7687         * gdk/gdkpango.c (gdk_pango_context_destroy): 
7688         check if info->colormap != NULL before unref'ing it. It might have
7689         been set to NULL using gdk_pango_context_set_colormap().
7690
7691 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
7692
7693         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
7694         Fix conversion from float to int so that we don't get
7695         skew in the int => float => int roundtrip. 
7696         (#58120, reported by Vitaly Tishkov). Also fix problem
7697         where if no alpha was set, the returned alpha
7698         from (say) set_current_alpha() was returned as 1, not 65535.
7699
7700 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
7701
7702         * gtk/gtklist.c (gtk_list_clear_items): Fix
7703         problem with selecting a new focus child.
7704
7705         * gtk/gtklist.c (gtk_list_clear_items): Clear 
7706         list->undo/list_focus_child after unparenting
7707         child, since unparenting the child can result
7708         in list->last_focus_child being set. (#58024)
7709
7710         * Makefile.am (SUBDIRS): Add target specific pc
7711         files to DISTCLEANFILES.
7712
7713         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
7714         (58327, Matthias Clasen)
7715
7716 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
7717
7718         * tests/testgtk.c: Patch from Hans (with various modifications),
7719         to add the ability to use testgtk as a rough-and-ready
7720         benchmark. Try, 'testgtk --bench all:5' (if you want decent
7721         numbers, run without a window manager)
7722
7723 2001-08-04 Alexander Larsson <alexl@redhat.com>
7724
7725         * gdk/win32/gdkinput.c:
7726         Add #ifdef HAVE_WINTAB around wintab.h include.
7727
7728         * gtk/gtk.def:
7729         Removed marshals that have been moved to glib.
7730         Commented out plug and socket. They didn't compile for me 
7731         on win32.
7732
7733 2001-08-04  Hans Breuer  <hans@breuer.org>
7734
7735         * gtk/stocks-icons/makefile.msc : new file
7736         * gtk/makefile.msc.in : use it
7737
7738         * gtk/gtkstyle.c : not all platforms do provide M_PI and
7739         friends, but luckily there is G_PI
7740
7741         * gtk/gtk.def : updated
7742
7743         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
7744         windows WS_POPUP, but only those without a parent. This fixes the 
7745         mis-alignment between the selectable (temp, input only) window and 
7746         the window text of GtkLabel.
7747
7748         (gdk_window_show) : respect private->state when actually showing
7749         the window.
7750
7751         (gdk_window_set_transient_for) : Implementation from Wolfgang 
7752         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
7753         error handling. Should fix #50586.
7754
7755         * gdk/win32/gdkevents-win32.c : beautify log output
7756
7757 2001-08-04  Michael Natterer  <mitch@gimp.org>
7758
7759         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
7760         Need to show the image after adding it to the GtkImageMenuItem.
7761         This used to work without in testgtk because of the
7762         gtk_widget_show_all() at the end of the function.
7763         (Closes #54978).
7764
7765 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
7766
7767         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
7768         (gtk_notebook_set_child_property): fix finding of child's page,
7769         since we have to validly deal with labels and menus here as well.
7770         (gtk_notebook_get_child_property): fix warning.
7771         (gtk_notebook_class_init): property tab_pack is of type
7772         GTK_TYPE_PACK_TYPE (enum) not boolean.
7773         (gtk_notebook_find_child): don't always warn, we might be looking
7774         for a label or menu child.
7775         (gtk_notebook_map): fix mapping of panel.
7776
7777         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
7778         widget's mapped state, regardless of the value being set equals
7779         old settings, since things like REALIZED(parent) or MAPPED(parent)
7780         may have changed since the old value was set. make it an error to
7781         invoke this function on a toplevel widget.
7782
7783 2001-07-31  Darin Adler  <darin@bentspoon.com>
7784
7785         * gdk/gdkprivate.h:
7786         * gdk/x11/gdkx.h:
7787         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
7788
7789         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
7790         GTK_OBJECT.
7791
7792 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
7793
7794         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
7795         scoping error pointed out by matthiasc@poet.de.
7796
7797 2001-07-31  Sven Neumann  <sven@gimp.org>
7798
7799         * demos/gtk-demo/appwindow.c
7800         * demos/gtk-demo/item_factory.c
7801         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
7802
7803 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
7804
7805         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
7806         argument order for g_signal_has_handler_pending.
7807
7808 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
7809
7810         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
7811         instead of long deprecated g_scanner_stat_mode().
7812
7813 2001-07-29  Hans Breuer  <hans@breuer.org>
7814
7815         * gdk/makefile.msc : build in the backend dir after
7816         auto-generating files
7817
7818         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
7819         with code from win32-production-branch.
7820
7821         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
7822         before calling DestroyWindow, which indirectly calls 
7823         gdk_window_destroy_notify ()
7824
7825         (performance patch merged from win32-production-branch)
7826         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
7827         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
7828         R2_COPYPEN rop). It is claimed to be much faster.
7829
7830 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
7831
7832         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
7833         add an "attributes" property to the text renderer for ATK.
7834
7835 2001-07-26  Alex Larsson  <alexl@redhat.com>
7836
7837         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
7838         Initialize image->bits_per_pixel from the drawable, not from
7839         the root window.
7840
7841         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
7842         Fix cast. argument is an IMPL already.
7843
7844 2001-07-15  James Henstridge  <james@daa.com.au>
7845
7846         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
7847         (gtk_window_remove_accel_group): same here.
7848         (gtk_window_key_press_event): same here.
7849
7850         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
7851         (gtk_widget_remove_accelerator): same here.
7852         (gtk_widget_remove_accelerators): same here.
7853
7854         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
7855
7856         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
7857         instead of GtkObject.
7858
7859         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
7860         now takes GObjects.
7861
7862         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
7863         pass a GObject to gtk_accel_group_entries_from_object.
7864         (gtk_item_factory_create_item): s/accel_widget/accel_object/
7865
7866         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
7867
7868         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
7869
7870         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
7871         GObjects can have accelerators set now.  Add compatibility
7872         defines.
7873
7874         * gtk/gtkmarshal.list: add missing marshallers.
7875
7876         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
7877         accelerators on plain GObjects.  gtk_accel_group_object_destroy
7878         has been converted into a weak reference, and
7879         gtk_accel_group_delete_entries is now a destroy notify for that
7880         piece of data.
7881
7882 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
7883
7884         * gdk/gdkdraw.c: Added a check on the colormap depth to
7885         gdk_drawable_set_colormap()
7886         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
7887         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
7888         for pixmaps without visuals (more specifically, bitmaps)
7889         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
7890         doesn't set a colormap with the wrong depth
7891
7892
7893 2001-07-22  Anders Carlsson  <andersca@gnome.org>
7894
7895         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
7896         expander_height and expander_width properties with a single
7897         property, expander_size.
7898         (gtk_tree_view_init): Set the tab_offset to expander_size
7899         plus some padding.
7900         (gtk_tree_view_unrealize): Remove the expand/collapse
7901         timeout if it exists.
7902         (coords_are_over_arrow): Fix a small bug.
7903         (gtk_tree_view_motion_draw_column_motion_arrow): Use
7904         expander_size.
7905         (gtk_tree_view_draw_focus): Use "treeview" instead of
7906         "add-mode" as detail when drawing the focus.
7907         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
7908         instead of "add-mode" as detail when drawing the focus.
7909         (gtk_tree_view_deleted): If we have a node currently being
7910         expanded or collapsed, remove the timeout and set the node 
7911         to NULL.
7912         (gtk_tree_view_queue_draw_arrow): New function that just
7913         redraws the arrow of a node.
7914         (gtk_tree_view_draw_arrow): Use expander_size instead of
7915         expander_width/expander_height, also pass a different
7916         expander_style to gtk_paint_expander depending on the 
7917         state of the node being drawn.
7918         (expand_collapse_timeout): New function for expanding 
7919         or collapsing a node depending on the previous state.
7920         (gtk_tree_view_real_expand_row): Add timeout and set 
7921         correct state for node being expanded.
7922         (gtk_tree_view_real_collapse_row): Add timeout and set
7923         correct state for node being collapsed.
7924
7925         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
7926         information about the node currently being expanded or
7927         collapsed, and also a timeout id.
7928
7929         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
7930         with expander_style for draw_expander.
7931
7932         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
7933         expander_style.
7934         (create_expander_affine): New function for creating an 
7935         expander affine.
7936         (apply_affine_on_point): New function for applying an 
7937         affine to a point.
7938         (gtk_default_draw_expander): Modified to take expander_style
7939         instead of is_open, and to draw the rectangle rotated differently
7940         depending on the expander style.
7941         (gtk_paint_expander): Replace is_open with expander_style.
7942
7943         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
7944
7945         * gtk/gtkenums.h: Add expander style enum.
7946
7947 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
7948
7949         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
7950         value from gtk_tree_model_get_iter, the model might be empty.
7951
7952 2001-07-20  Hans Breuer  <hans@breuer.org>
7953
7954         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
7955         gdk/gdkinput.c like the other backends
7956
7957         * gdk/win32/gdkinput-win32.h :
7958         * gdk/win32/gdkinput.c :
7959         * gdk/win32/gdkvisual-win32.c :
7960         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
7961         GdkVisual GObjectification. UNTESTED for pen-devices because
7962         I simply have none.
7963
7964         * gdk/gdk.def :
7965         * gtk/gtk.def : updated externals
7966
7967         * gtk/gtkiconfactory.c :
7968         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
7969         before passing &error to functions to avoid strange crashes
7970         
7971         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
7972
7973         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
7974
7975         * gtk/makefile.msc.in : updated
7976
7977 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
7978
7979         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
7980         Add property support. (#51858)
7981
7982 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
7983
7984         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
7985         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
7986         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
7987
7988 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
7989
7990         * gtk/gtkcolorsel.c: Add propery support (roughly
7991         based on patch from Lee Mallabone, #51014)
7992
7993         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
7994         deprecated, since we already g_warning() on it.
7995
7996 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
7997
7998         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
7999         typo that sometimes caused selection not to work properly.
8000
8001         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
8002         entry when tabbing in. (#57743)
8003         
8004         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
8005         user drags up above or down below the entry, move
8006         to the end or the beginning of the entry. (Suggestion
8007         from Jay Cox, #50940)
8008
8009         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
8010         a current selection, then when moving by chars or
8011         words, move to the end of the selection rather than
8012         from entry->current_pos. (Suggestion from Jay Cox,
8013         #50942)
8014         
8015 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
8016
8017         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
8018         set window->decorated. (Patch from Hidetoshi Tajima,
8019         #55846)
8020
8021 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
8022
8023         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
8024         the widget/child realization/mapping invariants.
8025
8026         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
8027         gtk_widget_[get/set]_child_visible() to control
8028         whether visible children of a mapped window are
8029         mapped.
8030
8031         * docs/widget_system.txt: Updated for changes in
8032         container contract, and addition of GTK_CHILD_VISIBLE.
8033
8034         * gtk/gtkcontainer.c: Add generic map()/unmap()
8035         functions that work for almost all containers.
8036
8037         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
8038         gtk_widget_set_child_visible() where necessary.
8039
8040         * gtk/*.c: Remove excess map(), unmap(), and 
8041         realization/mapping invariant enforcing code
8042         from many containers.
8043
8044 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
8045
8046         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
8047         Get the foreground color from 'text', nor 'fg'. (#57568)
8048
8049 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
8050
8051         * gtk/*.c: Patch from Matthias Clasen to remove remove
8052         all instances of g_return_if_fail (foo != NULL); that are
8053         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
8054         since the second check catches the NULL anyways.
8055
8056 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
8057
8058         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
8059         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
8060         GDK_THREADS_ENTER()/LEAVE() pairs.
8061
8062         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
8063         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
8064         pairs. (Problem found by M. Meeks)
8065
8066 2001-07-18  Darin Adler  <darin@bentspoon.com>
8067
8068         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
8069         that we don't get a g_warning message every time we register a new
8070         icon size.
8071
8072         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
8073         using pixel variable of the correct type.
8074         
8075 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
8076
8077         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
8078         so that using X functions on a GdkWindow is possible, if
8079         a little hairy.
8080
8081         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
8082         and ts_origin of a GC, so that external parties can offset/restore
8083         a GC, when using gdk_window_get_internal_paint_info().
8084
8085 2001-07-17  Darin Adler  <darin@bentspoon.com>
8086
8087         * .cvsignore: Ignore the sgml directory made by gtkdoc.
8088         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
8089         instead of the deprecated gtk_window_set_policy.
8090         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
8091         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
8092         function to get rid of warning and some code too.
8093         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
8094         missing const.
8095         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
8096         unused local.
8097         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
8098         const.
8099         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
8100         (gdk_utf8_to_compound_text): Add missing const.
8101         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
8102         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
8103         cast and get rid of an unnecessary one.
8104         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
8105         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
8106         local.
8107         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
8108         Remove unused local.
8109         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
8110         missing const.
8111         * tests/testsocket.c: (add_child): Add cast so the printf format
8112         doesn't make us implicitly depend on what integer type
8113         gtk_socket_get_id returns.
8114         * tests/testtextbuffer.c: Add missing const.
8115         * tests/testtreefocus.c: (main): Remove unused local.
8116         * tests/treestoretest.c: (iter_remove): Remove unused local.
8117         (uppercase_value): Remove unused function.
8118         (make_window): Add statement to quiet the compiler's uninitialized
8119         variable warning.
8120
8121 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
8122
8123         * gtk/gtkrange.c:
8124         (second_timeout): 
8125         (initial_timeout): 
8126         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
8127         (gtk_range_calc_layout): compute the new layout based on an
8128         adjustment->value being passed in as argument.
8129         (gtk_range_button_press): for button2 slider warps, first recalc
8130         the layout, then adjust the value. also, use update_slider_position()
8131         for adjusting the value, so we keep pixel quantisation at which we
8132         usually operate (upon motion or button releases). the reason for this
8133         is that, we can't change the adjustment upon button2 presses to a non
8134         quantised value and upon button2 release re-quantise the value since
8135         that'd alter the value even if we didn't get any motion events (causing
8136         unexpected scroll area warps upon release and/or slider pixel-jitter).
8137         (gtk_range_motion_notify): update the slider position from queried
8138         coordinates, not event coordinates.
8139
8140 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
8141
8142         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
8143         the default gc values are: width=0, CapBut, JoinMiter.
8144
8145 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
8146
8147         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
8148         into account the xpad and ypad when calculating the width and the
8149         height of the pixbuf cel.
8150
8151 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
8152
8153         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
8154         Rename to gtk_radio_menu_item_get_group(), add deprecated
8155         alias. (#57044)
8156
8157         * gtk/gtkfilesel.c: Indentation fix.
8158
8159 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
8160
8161         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
8162         Hasselmann to fix warnings in compat macros. 
8163         (#56773)
8164
8165         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
8166         stupid wrong cast added in last patch.
8167
8168 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
8169
8170         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
8171         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
8172
8173 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
8174
8175         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
8176         missing cast.
8177
8178         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
8179         NULL/FALSE return value confusion.
8180
8181         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
8182         problem when scrollbar completely fills range. (Patch
8183         from  Matthias Clasen, #57047)
8184
8185 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
8186
8187         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
8188         clean up when handling events for move-resize emulation.
8189         (Problem traced down by Matthias Clasen, #57271)
8190
8191 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
8192
8193         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
8194           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
8195           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
8196           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
8197           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
8198           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
8199           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
8200         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
8201
8202 2001-07-09  Peter Williams  <peterw@ximian.com>
8203
8204         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
8205         for when srcdir != builddir
8206
8207 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
8208
8209         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
8210         gtk_tree_model_get_iter_root.
8211
8212         * gtk/gtkliststore.c: Add a bunch of g_return statements.
8213         (gtk_list_store_iter_n_children): Fix up.
8214
8215         * gtk/gtktreestore.c: Add a bunch of g_return statements.
8216
8217 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
8218
8219         * gtk/gtkwidget.c (gtk_widget_class_init):
8220         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
8221         restore some workingness.
8222
8223         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
8224         handle of window type for input-only windows.
8225
8226 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
8227
8228         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
8229         Patch from Gregory Merchan to add 
8230         gtk_button_box_set_secondary(), which separates
8231         the child into a separate group from the normal
8232         buttons. (#56331)
8233
8234         * gtk/gtkdialog.c: Make help buttons secondary by
8235         default.
8236
8237         * gtk/gtkbbox.c: Added a child property "secondary".
8238
8239         * gtk/testgtk.c: Turn on the help button for the 
8240         color selector to check that it properly appears
8241         as secondary.
8242
8243 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
8244  
8245         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
8246         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
8247         Add gdk_set_pointer_hooks() to allow pointer-querying to
8248         be hooked by an event record/playback system like GERD.
8249         (#56914)
8250         
8251 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
8252
8253         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
8254         in the right value of initial_emission to
8255         gtk_widget_set_style_internal (#57091)
8256
8257 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
8258
8259         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
8260         Make compile.
8261
8262         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
8263         with calling gtk_widget_set_style_internal() with
8264         the old style, not the new style. (#56989)
8265
8266 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
8267
8268         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
8269           gtk/gtkwidget.c:
8270         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
8271         not GTK_WIDGET_GET_ANCESTOR ... see 
8272         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
8273         Indicate the best practice in the docs for gtk_widget_get_toplevel().
8274
8275         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
8276         so GtkPlug can give the correct signals when transforming
8277         from a child to a toplevel.
8278         
8279         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
8280         reparentation correctly.
8281
8282         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
8283         Propagate the previous_toplevel argument down properly.
8284
8285         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
8286         of wrong atr list.
8287
8288         * gtk/gtkplug.[ch]: Add an "embedded" signal.
8289
8290         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
8291         signals.
8292
8293         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
8294         functions gtk_plug_get_id(), gtk_socket_get_id(),
8295         to avoid the user having to worry about realization,
8296         and gdkx.h.
8297
8298         * tests/testsocket.c: Extend to try out the new signals
8299         and gtk_plug/socket_get_id().
8300
8301         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
8302         setting of underline attributes.
8303
8304         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
8305         DestroyNotify events from SubstructureNotifyMask
8306
8307         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
8308         Switch GDK_WINDOW_TYPE (window) as needed.
8309
8310         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
8311         allow creation of toplevel windows as children of
8312         foreign windows.
8313
8314         * gtk/gtkplug.c: Remove hacks involving changing private
8315         fields of GdkWindow.
8316
8317         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
8318         exactly the same signals and notification
8319         be emitted for local embedding as for inter-process
8320         embedding.
8321
8322 2001-07-04  James Henstridge  <james@daa.com.au>
8323
8324         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
8325
8326 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
8327
8328         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
8329         XEMBED embedding add a _XEMBED_INFO property to the
8330         client with version number and a "mapped" flags.
8331         Use the mapped flag instead of the racy MapRequestEvent
8332
8333         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
8334         code to reliably set things (when the child is a passive
8335         embedder participating in the XEMBED protocol) intead
8336         of just being a hack for embedding non-participating
8337         programs. Fix various bugs and race conditions.
8338         
8339         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
8340         work by simply making the GtkSocket the gtk parent
8341         of the GtkPlug. Set a flag in this case and make
8342         the GtkPlug work like a normal container by overriding
8343         methods such as check_resize and "chaining past" GtkWindow
8344         to GtkBin.
8345
8346         * gtk/gtkentry.c (gtk_entry_real_activate)
8347           gtk/gtkmain.c (gtk_propagate_event): 
8348         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
8349         
8350         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
8351         gtk_widget_get_ancestor):
8352         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
8353         might not give the expected result and recommend
8354         an alternative.
8355
8356         * tests/testsocket.c tests/testsocket_child.c
8357         tests/testsocket_common.c tests/Makefile.am: Extended
8358         to test different type of adding plugs to sockets
8359         (local,active,passive), and to test mapping/unmapping
8360         the plug.
8361
8362         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
8363         mark the window as destroyed until after we
8364         called _gdk_windowing_window_destroy().
8365         (_gdk_windowing_window_destroy() may use GDK functions
8366         on the window.)
8367
8368         * gdk/x11/gdkinput.c: Remove the check for finalization - 
8369         devices can be finalized under some circumnstances.
8370  
8371         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
8372         small problem with GDK_TYPE_DEVICE.
8373  
8374 2001-07-02  Havoc Pennington  <hp@pobox.com>
8375
8376         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
8377         use constants not atoms.
8378
8379 2001-07-02  James Henstridge  <james@daa.com.au>
8380
8381         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
8382         PANGO_TYPE_TAB_ARRAY.
8383
8384         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
8385         for PANGO_TYPE_TAB_ARRAY.
8386
8387         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
8388         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
8389
8390         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
8391         the file.  Remove Pango types from defs -- they are now defined in
8392         libpango.
8393
8394 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
8395
8396         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
8397
8398         * gtk/gtkobject.c (gtk_object_destroy): invoke
8399         g_object_run_dispose().
8400
8401         * gtk/gtkwindow.c: 
8402         * gtk/gtkwidget.c: 
8403         * gtk/gtkobject.c:
8404         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
8405         method.
8406
8407 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
8408
8409         * gtk/gtktypeutils.c (gtk_type_class): Remove
8410         change check for GTK_TYPE_OBJECT derivation to
8411         G_TYPE_OBJECTS - it's Tim-approved to use this 
8412         for arbitary objects.
8413
8414         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
8415         prefix gtk_container_dequeue_resize_handler().
8416
8417         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
8418         to the hierarachy_changed signal, since you otherwise
8419         have to always keep that around.
8420
8421         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
8422         for extra argument to hierarchy_changed.
8423
8424 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
8425
8426         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
8427         for style to mean "revert to default style"
8428
8429         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
8430           gtk_widget_restore_default_style): Make this functions
8431         deprecated aliases for gtk_widget_set_style (widget, NULL).
8432
8433         * gtk/gtkwidget.[ch]: Remove:
8434            gtk_widget_set_default_style ()
8435            gtk_widget_push_style ()
8436            gtk_widget_pop_style ()
8437         These functions interact are overriden by RC files, and
8438         thus virtually useless, and complicated.
8439
8440 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
8441
8442         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
8443         most of the previous global variables in gtkrc.c. This is
8444         in preparation for multi-head, since each screen can
8445         have different GtkSettings and RC information.
8446
8447         * gtk/gtkrc.[ch]: 
8448
8449         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
8450         GtkSettings parameter to GtkRcStyle::parse.
8451
8452         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
8453         Add two new settings gtk-theme-name, gtk-key-theme-name,
8454         for RC files that are loaded by name after reading
8455         the default RC files.
8456         
8457         * gtk/gtkrc.c: Allow priorities for styles, as wll as
8458         bindings.
8459
8460         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
8461         and use it by default for RC files loaded via 
8462         gtk-theme-name, gtk-key-theme-name.
8463
8464         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
8465         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
8466         tests/testgtkrc: Require pathnames to be absolute.
8467
8468         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
8469         the source when parsing, since the operation of looking up a
8470         pixmap from an RC file depends on the parsing context.
8471
8472         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
8473         reset RC styles on all widgets when files are reparsed.
8474
8475         * tests/testgtk.c (create_rc_file) 
8476           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
8477         Simplify, now that gtk_rc_reparse_all() resets styles on
8478         all widgets itself.
8479
8480         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
8481         return value.
8482
8483         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
8484         GtkSettings argument.
8485
8486         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
8487         gtk_settings_get_global().
8488
8489         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
8490         to get the appropriate GtkSettings for a widget. (For now,
8491         just gets the default GtkSetttings.) 
8492
8493         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
8494           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
8495         changes.
8496
8497         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
8498         getting a style for a path without actually having a widget.
8499         (Allows using a style for a subpart of a widget, for
8500         example.)
8501
8502         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
8503         the RC files to be reloaded for just one GtkSettings
8504         (not sure how useful this really is.)
8505
8506         * gtk/gtkrc.h: Deprecate
8507         gtk_rc_add_widget_name/widget_class/class_style
8508
8509 2001-06-30  Alex Larsson  <alexl@redhat.com>
8510
8511         * gdk/linux-fb/gdkinput-none.c:
8512         * gdk/linux-fb/gdkinput.c:
8513         * gdk/linux-fb/gdkinputprivate.h:
8514         Convert GdkDevice to a GObject.
8515
8516         * linux-fb/gdkprivate-fb.h:
8517         * linux-fb/gdkvisual-fb.c:
8518         Convert GdkVisual to a GObject.
8519
8520 2001-06-29  Alex Larsson  <alexl@redhat.com>
8521
8522         * gdk/gdkvisual.h:
8523         * gdk/gdkcolor.c:
8524         * gdk/x11/gdkx.h:
8525         * gdk/x11/gdkvisual-x11.c:
8526         Convert GdkVisual to a GObject.
8527
8528         * gdk/gdkinput.h:
8529         * gdk/gdkevents.c:
8530         * gdk/x11/gdkinputprivate.h:
8531         * gdk/x11/gdkinput-gxi.c:
8532         * gdk/x11/gdkinput-none.c:
8533         * gdk/x11/gdkinput-x11.c:
8534         * gdk/x11/gdkinput-xfree.c:
8535         * gdk/x11/gdkinput.c:
8536         Convert GdkDevice to a GObject.
8537
8538 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
8539
8540         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
8541         to just plain new, fixing the number of columns, and column types
8542         at creation time.
8543
8544         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
8545
8546         * gtk/gtkcellrenderertext.c
8547         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
8548         height to a specific font.
8549
8550         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
8551
8552         * tests/*c: change to work with new store models.
8553
8554 2001-06-29  Havoc Pennington  <hp@redhat.com>
8555
8556        * Throughout: fixes to compile with G_DISABLE_COMPAT
8557         (s/g_signal_connectc/g_signal_connect/,
8558         s/g_signal_newc/g_signal_new/,
8559         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
8560
8561 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
8562
8563         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8564         add path argument to selection callbacks.
8565
8566 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
8567
8568         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
8569         walk through a model in a depth first manner, with the option to
8570         break out.
8571
8572 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
8573
8574         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
8575         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
8576         column and follow it when draged, rather than a location in the
8577         view. "expander_column" property and drawing functions changed
8578         accordingly.  Fixes bug #55942.
8579
8580         (gtk_tree_view_{set,get}_expander_column): Now works with a
8581         GtkTreeViewColumn* instead of int.
8582
8583 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
8584
8585         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
8586
8587 2001-06-28  Havoc Pennington  <hp@pobox.com>
8588
8589         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
8590         image data to the screen, using a server grab to avoid race
8591         conditions.
8592
8593         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
8594         check for NULL return from gtk_image_new_from_stock(), it never
8595         returns NULL.
8596         (gtk_item_factory_create_item): fix bug where we parsed the stock
8597         ID as an inline pixbuf
8598
8599         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
8600
8601         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
8602         support (should be using binding set here)
8603
8604         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
8605         support (should be using binding set here)
8606
8607         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
8608         support
8609
8610         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
8611
8612         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
8613
8614         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
8615
8616         * gtk/gtkimcontextsimple.c
8617         (gtk_im_context_simple_filter_keypress): keypad
8618
8619         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
8620
8621         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
8622
8623         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
8624
8625         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
8626         should be binding-setted)
8627
8628         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
8629
8630         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
8631
8632         * gtk/gtkcalendar.c: numeric keypad fixes
8633
8634         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
8635         support
8636
8637         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
8638         screwup
8639
8640         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
8641         clip the render area to the drawable's clip region in advance,
8642         so we don't get data from the server that we don't need.
8643
8644         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
8645         check return value of gdk_pixbuf_get_from_drawable(), fall back 
8646         to bilevel alpha if we can't get the pixbuf to composite against.
8647
8648         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
8649
8650         * gdk/gdkimage.c (gdk_image_get_colormap): add
8651         gdk_image_set_colormap, gdk_image_get_colormap
8652
8653         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
8654         take a region of the image, instead of converting the entire
8655         image.
8656
8657         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
8658         keybinding signal. Add default bindings for it. Add default
8659         handler for show_help that shows the tooltip for the widget.
8660
8661         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
8662         "close" keybinding signal, remove key press handler.
8663
8664         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
8665         it's not our usual practice to leave a deprecated function around
8666         with a runtime warning, plus we don't want it to appear in docs,
8667         plus if we make them yellow no one will want to change them
8668         anyhow.
8669
8670 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
8671
8672         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
8673         GTK_WIDGET_REALIZE() for resize queueing.
8674
8675         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
8676         GTK_WIDGET_REALIZE() for post event delivery destruction upon
8677         GDK_DESTROY.
8678         
8679         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
8680         sompensate for former (pre-2.0) connect_after() facility.
8681         (gtk_widget_send_expose): 
8682         (gtk_widget_event): assert the widget is realized, since event delivery
8683         to non-realized widgets is essentially a bug. event handlers should
8684         be able to unconditionally rely on widget->window (unless they
8685         emit events on their own which can trigger widget destruction).
8686         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
8687         logic. event delivery happens as follows:
8688         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
8689         b) if !was_handled in (a) and the widget is still realized, emit event-
8690            specific signal (RUN_LAST handler). returns was_handled.
8691         c) emission of GtkWidget::event-after for notification if the widget is
8692            still realized (regardless of was_handled from previous stages, no
8693            class handler). no return value.
8694         d) was_handled gets passed on to caller, to determine further
8695            propagation. if the widget got unrealized meanwhile, was_handled
8696            is returned as TRUE.
8697
8698         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
8699         gdk_event_get_coords().
8700
8701 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
8702
8703         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
8704         age 0, binary age 0. depend on glib 1.3.7.
8705
8706         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
8707
8708         * gtk/gtkmenubar.c: same here.
8709         
8710         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
8711
8712         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
8713
8714         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
8715         
8716         * gtk/gtkmenubar.c (add_to_window): likewise.
8717         
8718         * gtk/gtktextbtree.c: and here...
8719         
8720         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
8721         
8722         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
8723         
8724         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
8725         
8726         * gtk/gtktreeviewcolumn.c:
8727         (_gtk_tree_view_column_set_tree_view): yet again.
8728
8729         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
8730         signal connections without g_signal_connect_data().
8731         
8732         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
8733         demo of the matter.
8734         
8735         * demos/testpixbuf.c (main): running out of equality phrases for the
8736         ChangeLog, but had to adapt connections here as well.
8737         
8738         * demos/testanimation.c (progressive_timeout): and for the fun of it,
8739         tackled this the same way.
8740         
8741         * tests/testtext.c (create_view): ok, it's becoming a pain at this
8742         point, but had enough enery for one more fix.
8743
8744         * tests/testtreecolumns.c (main): stand up man, do your work!
8745
8746         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
8747         fix, either that's been all of it or CVS gtk is broken yet again.
8748         
8749 2001-06-29  James Henstridge  <james@daa.com.au>
8750
8751         The following changes correspond to bug #56812
8752
8753         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
8754         code for GdkDevice.
8755
8756         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
8757         GdkCursor.
8758
8759 2001-06-19  Havoc Pennington  <hp@pobox.com>
8760
8761         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
8762         for mapping a window without fooling with stacking order, but
8763         updating the "withdrawn" flag
8764
8765         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
8766         filtering as soon as possible, moving move resize and wmspec_check
8767         handling after the event filter.  Make default filter apply to all
8768         events, not just those with no GdkWindow wrapped around the X
8769         window. Fix a FIXME about how the window could be a pixmap using 
8770         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
8771
8772         Also, be robust against events not on a known GdkWindow.
8773
8774         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
8775         gdk_x11_ungrab_server): export reference-counted server grabs, so
8776         other people can grab server over a GDK function that also does
8777         so.
8778
8779 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
8780
8781         * gtk/gtktreeviewcolumn.c
8782         (gtk_tree_view_column_pack_start_cell_renderer): New function to
8783         reflect that you can (hypothetically) pack cell renderers into a
8784         column.
8785         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
8786         (gtk_tree_view_column_cell_is_visible): Move more functionality to
8787         the column.
8788         (gtk_tree_view_column_cell_can_focus): Move more functionality to
8789         the column.
8790
8791         * gtk/gtktreeview.c: Move to use new column-packing code.
8792         (gtk_tree_view_real_expand_row): remove totally braindead code.
8793         (gtk_tree_view_real_collapse_row): ditto.
8794
8795 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
8796
8797         * gtk/gtktreeviewcolumn.c: Fix a typo.
8798         
8799 2001-06-26  Joel Becker  <jlbec@evilplan.org>
8800
8801         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
8802           at the end of the file
8803
8804 2001-06-26  Havoc Pennington  <hp@redhat.com>
8805
8806         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
8807
8808 2001-06-26  Havoc Pennington  <hp@redhat.com>
8809
8810         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
8811         property
8812
8813 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
8814
8815         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
8816         stupid missing statement
8817
8818         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
8819         private function for ATK.  It notifies you of how many _visible_
8820         children are deleted when a node is deleted.  Should be used by
8821         atk only.
8822
8823 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
8824
8825         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
8826         Use new pango_context_get_metrics() to fix problems
8827         with font lists in descriptions. (#56184, reported by
8828         Jonas Borgström)
8829
8830 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
8831
8832         * gtk/gtkiconfactory.c:
8833         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
8834         item factory so inlined pixbufs actually work.
8835
8836 2001-06-25  Havoc Pennington  <hp@redhat.com>
8837
8838         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
8839         s/RESIZEABLE/RESIZABLE/
8840
8841         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
8842
8843 2001-06-25  Alexander Larsson  <alexl@redhat.com>
8844
8845         * configure.in:
8846         Added --enable-fbmanager. This is some experimental code
8847         that lets several GtkFB apps coordinate their access to the
8848         framebuffer.
8849         
8850         * acconfig.h:
8851         Added ENABLE_FB_MANAGER.
8852
8853         * gdk/linux-fb/Makefile.am:
8854         Added gdkfbmanager and gdkfbswitch.
8855
8856         * gdk/linux-fb/gdkkeyboard-fb.c:
8857         * gdk/linux-fb/gdkmouse-fb.c:
8858         * gdk/linux-fb/gdkprivate-fb.h:
8859         Split device init and open so that
8860         they can be opened and closed while switched
8861         away.
8862
8863         * gdk/linux-fb/gdkmain-fb.c:
8864         Add the basic manager communication.
8865
8866         * gdk/linux-fb/gdkrender-fb.c:
8867         Don't update to the shadow fb if we're
8868         blocked by the fb manager.
8869
8870 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
8871
8872         * docs/Changes-2.0.txt: Add note about child property
8873         changes.
8874
8875 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
8876
8877         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
8878         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
8879
8880         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
8881         with un'reffing wrong list reported by Jeff Franks.
8882
8883         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
8884
8885         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
8886         for the default icon. Remove inline XPM.
8887
8888         * gtk/gtkstock.h gtk/gtkiconfactory.c:
8889         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
8890         is used for GTK_STOCK_DND, but it is a bit too small.)
8891
8892         * gtk/stock-icons/stock_dnd_multiple.png
8893         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
8894
8895         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
8896         TRUE when starting a drag. In other cases, we are
8897         just observing. (#52995)
8898
8899         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
8900         function to set the icon for a drag from a GdkPixbuf
8901         or stock ID.
8902
8903         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
8904         Likewise, for drag sources.
8905
8906         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
8907         (Now should be done using the stock system.)
8908
8909 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
8910
8911         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
8912         Removed - didn't work and not particularly useful anyways
8913         if it did. 
8914
8915 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
8916
8917         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
8918         introduced last night that was making things decidedly not work.
8919
8920         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
8921         so that we have getter/setter pairing everywhere it makes
8922         sense. (#55767)
8923
8924         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
8925         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
8926         deprecated compat macro. (#55516)
8927
8928         * gtk/gtklabel.[ch]: Add functions
8929         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
8930         gtk_label_set_label(), which mirror the property API for GtkLabel.
8931         Make gtk_label_get_attributes() only reflect the attributes
8932         set by gtk_label_set_attributes.
8933
8934         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
8935         from gtk_notebook_set_page().
8936
8937 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
8938
8939         * configure.in: Fix tests for XShm.h.
8940
8941         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
8942         gdk_image_new() by use of goto, properly use g_object_unref().
8943
8944 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
8945
8946         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
8947         calls, as GdkImage is an object. these should be g_obejct_unref()
8948         instead but that won't work because of the g_error() statement
8949         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
8950         to spot these places.
8951
8952 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
8953
8954         * modules/input/gtkimcontextxim.c: Fixup some problems with 
8955         text length handling in error cases.
8956
8957         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
8958         a bit to make test actually warn on attempt to allocation
8959         a negative size. (#56101, Matthias Clasen)
8960
8961 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
8962
8963         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
8964         noticed by Brian Cameron.
8965         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
8966         Cameron.
8967
8968 2001-06-22  Hans Breuer  <hans@breuer.org>
8969
8970         * gdk/gdk.def : updated externals
8971
8972         * gdk/win32/gdkdrawable-win32.c : corrected some casts
8973         in GDK_NOTEs
8974
8975         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
8976         to translate coordinates to the internal > 16 bit system
8977         Try to handle WM_WINDOWPOSCHANGED to get better performance for
8978         when moving/resizing
8979
8980         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
8981         and gdk_keymap_get_direction (). The latter is untested for
8982         the RTL case
8983
8984         * gtk/gtk.def : updated externals
8985
8986         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
8987         from pango_language_from_string (), not an already freed pointer
8988
8989         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
8990         binary (-kb) to be useable on windoze
8991  
8992 2001-06-21  Alexander Larsson  <alexl@redhat.com>
8993
8994         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
8995         Update to new PangoLanguage changes.
8996         
8997         * gtk/gtkwindow-decorate.c:
8998         * gtk/gtkwindow.[ch]:
8999         Added setting argument to gtk_window_set_has_frame ()
9000         
9001 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
9002
9003         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
9004         the case without XKB properly.
9005
9006         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
9007         unused gtk_rc_auto_parse variable.
9008
9009         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
9010         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
9011         longer needed with GdkPixbuf.
9012
9013         * gtk/gtkrc.c (_gtk_rc_init): Make private.
9014
9015 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
9016
9017         * gtk/gtkentry.h: Mark deprecated functions with
9018         GTK_DISABLE_DEPRECATED.
9019
9020 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
9021
9022         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
9023
9024         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
9025
9026         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
9027           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
9028           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
9029           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
9030           to recent changes in Pango.
9031
9032         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
9033           to test whether the basic engine honors them.
9034
9035 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
9036
9037         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
9038         gtk_container_child_get_property().
9039
9040 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
9041
9042         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
9043         (gtk_tree_view_move_cursor_page_up_down): implement.
9044
9045 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
9046
9047         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
9048         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
9049         don't use automatic fixed size buffer for printf-ing floats, doubles
9050         can expand to really _huge_ strings, use g_strdup_printf() instead.
9051
9052 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
9053
9054         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
9055         construct property in 1.2 and still needs to be.
9056
9057         * gtk/gtkwidget.c: "composite_child" is not a settable property.
9058
9059 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
9060
9061         * gtk/gtkliststore.c (gtk_list_store_clear): 
9062         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
9063         clear a model.
9064
9065 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
9066
9067         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
9068
9069         * gtk/Makefile.am:
9070         * gtk/gtk.h: disabled GtkPacker compilation.
9071
9072         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
9073
9074         * gtk/gtknotebook.c:
9075         * gtk/gtktable.c:
9076         * gtk/gtkbox.c: ported this over to child properties.
9077
9078         * gtk/gtksettings.c: fetch class properties via
9079         g_object_class_list_properties().
9080
9081         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
9082         child arg interface. use gobjectnotifyqueue.c for child property
9083         notification.
9084
9085         * gtk/gtkwidget.[hc]: provide necessary means for container child
9086         properties, i.e. ::child_notify signal,
9087         gtk_widget_freeze_child_notify(),
9088         gtk_widget_child_notify(),
9089         gtk_widget_thaw_child_notify().
9090
9091         * tests/testgtk.c: removed inferior property handling code, for
9092         property editing, a generic module should be used, and GLE
9093         coincidentally fullfills that purpose.
9094
9095         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
9096         needs to be adapted to g_object_class_list_properties() before this
9097         builds again.
9098
9099 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
9100
9101         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
9102         test if a node is expanded.
9103
9104 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
9105
9106         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
9107         where collapsing a selected row would result in the cursor/anchor
9108         getting screwed up.
9109
9110 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
9111
9112         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
9113         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
9114         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
9115         Now I can really reorder/sort all Store widgets.  treesorttest
9116         seems to just work now.
9117         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
9118         testtreesort worked through a big coincidence all this time.
9119         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
9120         code.
9121         * tests/testtreecolumns.c: Big 'ol warning at the top letting
9122         people know that this code should never ever ever be copied.
9123
9124 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
9125
9126         * gtk/gtkwindow.h: Fixed a small typo, it should be
9127         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
9128         on line 134.
9129
9130 2001-06-14  Havoc Pennington  <hp@redhat.com>
9131
9132         Docs fixups, and:
9133         
9134         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
9135         GTK_DISABLE_DEPRECATED
9136
9137 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
9138
9139         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
9140         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
9141         finish it off tonight, though it basically works now when it's a
9142         list.  Also, I have a sinking feeling neither GtkTreeStore or
9143         GtkListStore actually resort when adding a new item.  I'll look
9144         into it.
9145
9146 2001-06-14  Havoc Pennington  <hp@redhat.com>
9147
9148         * demos/gtk-demo/main.c (load_file): fix bug identified by
9149         warnings I just added to gtktextbuffer
9150
9151 2001-06-14  Havoc Pennington  <hp@redhat.com>
9152
9153         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
9154
9155         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
9156
9157         * gtk/gtktextbtree.c: don't leak node data all over the place.
9158
9159         * demos/gtk-demo/main.c (main): create fontify tags for the right
9160         buffer
9161
9162         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
9163         to mention tags in the same table can't have the same name,
9164         suggested by Skip Montanaro
9165
9166 2001-06-11  Havoc Pennington  <hp@redhat.com>
9167
9168         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
9169         for trying to add two tags with same name to the tag table
9170
9171         * demos/gtk-demo/main.c (main): fix colors ;-)
9172
9173 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
9174
9175         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
9176         that allows grouping together multiple windows so that grabs
9177         within that set of windows only affect those windows.
9178
9179         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
9180         signal for notification when a widget becomes shadowed
9181         by a grab or is no longer shadowed by a grab.
9182
9183         * gtk/gtkwidget.c (gtk_widget_propagate_state)
9184           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
9185         insenstive widgets to maintain a grab.
9186
9187 2001-06-14  Alexander Larsson  <alexl@redhat.com>
9188
9189         * docs/README.linux-fb:
9190         Add some example config files that can be used with the URW fonts.
9191         
9192         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
9193         Set up the color ramps for DirectColor mode.
9194
9195 2001-06-11  Havoc Pennington  <hp@redhat.com>
9196
9197         * Release 1.3.6
9198          
9199 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9200
9201         * gdk/linux-fb/gdkwindow-fb.c:
9202         Unify shaped window code and make it repaint the area that used
9203         to be part of the shape, but isn't anymore.
9204
9205 2001-06-11  Havoc Pennington  <hp@redhat.com>
9206
9207         * NEWS: Updates
9208
9209         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
9210
9211         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
9212         
9213 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9214
9215         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
9216         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
9217         passes zero instead, so do we.
9218         
9219 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9220
9221         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
9222         Deep copy dash_list too.
9223         (_gdk_fb_gc_new): Set default cap_style before
9224         setting values.
9225
9226 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
9227
9228         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
9229         gdk_keymap_get_direction): New functions.
9230
9231 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
9232
9233         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
9234         gtk_tree_model_get_flags by adding a second flag for atk.
9235
9236         * gtk/gtktreemodel.c: make cursor behavior interact better with
9237         mouse presses.
9238
9239 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
9240
9241         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
9242         expand_row/collapse_row to be 2 signals each -- test_expand_row
9243         and row_expanded as well as test_collapse_row and row_collapsed.
9244
9245 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
9246
9247         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
9248         signal name to be changed instead of selection_changed.
9249
9250 2001-06-08  Havoc Pennington  <hp@redhat.com>
9251
9252         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
9253         "scroll_offset" property for notification when the layout offsets
9254         may have changed
9255         (gtk_entry_adjust_scroll): add notify for scroll_offset
9256         (gtk_entry_layout_index_to_text_index): function to compensate for
9257         preedit string when doing coordinate stuff on the entry's layout
9258         (gtk_entry_text_index_to_layout_index): inverse function
9259         (gtk_entry_get_layout_offsets): hook to get current position of
9260         the layout      
9261         (gtk_entry_get_layout): hook to get the layout itself.
9262
9263         * gtk/gtklabel.c (gtk_label_get_layout): new function
9264
9265 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
9266
9267         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
9268         keybinding.
9269         (gtk_tree_view_focus): Fix merge conflict.
9270
9271 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
9272
9273         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
9274         clean up cursor handling.
9275
9276 2001-06-08  Havoc Pennington  <hp@redhat.com>
9277
9278         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
9279         function
9280
9281         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
9282         this function
9283
9284 2001-06-08  Alex Larsson  <alexl@redhat.com>
9285
9286         * gtk/gtkcompat.h.in:
9287         Added compat macros for all old GTK_TYPE_GDK_xxx types.
9288         Fixes bug #52892
9289
9290 2001-06-08  Havoc Pennington  <hp@redhat.com>
9291         
9292         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
9293         parent still
9294
9295 2001-06-08  Havoc Pennington  <hp@redhat.com>
9296
9297         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
9298         don't call g_list funcs on GSList
9299
9300         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
9301         gtk_container_focus(), since some widgets have focusable locations
9302         which are not other widgets. These widgets should not have to be 
9303         containers just to manage the focus. For example, GtkHSV is
9304         currently a container for no good reason. Also, this cleans
9305         up the "if (is_container && is_sensitive && is_drawable)
9306         container_focus ()" mess in widget implementations.
9307
9308         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
9309         function, and have it just call gtk_widget_child_focus().
9310
9311         * gtk/gtkhsv.c: derive from widget not container
9312         
9313         Throughout: fix to reflect GtkContainer::focus change
9314         
9315 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
9316
9317         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
9318         range.  Fix bug #55921
9319
9320         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
9321         (#55920).
9322
9323 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
9324
9325         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
9326         and gdk_keymap_get_current_direction().
9327
9328         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
9329           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
9330         the current locked group, use it to set the keymap
9331         direction.
9332
9333         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
9334         to determine whether we draw a split cursor or use
9335         a jumping cursor based on the current direction.
9336
9337         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
9338         Obey the split cursor setting. 
9339
9340 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
9341
9342         * gtk/gtkimmulticontext.c (activate_cb): Only activate
9343         when toggling on, not when toggling off... (#55906)
9344
9345 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
9346
9347         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
9348         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
9349         in docs. (#55812, Vitaly Tishkov)
9350
9351 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
9352
9353         * demos/gtk-demo/main.c (create_tree): Changed signal name from
9354         selection_changed to changed in signal connection to GtkTreeSelection,
9355         also used g_signal_connectc since GtkTreeSelection is now a GObject.
9356
9357 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
9358
9359         * gtk/gtktreeselection.c: Now it's a GObject instead of a
9360         GtkObject.  The GtkTreeSelection::selection_changed signal is now
9361         the GtkTreeSelection::changed signal.
9362
9363         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
9364         object.
9365
9366         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
9367         object.
9368
9369 2001-06-07  Havoc Pennington  <hp@redhat.com>
9370
9371         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
9372
9373 2001-06-07  Havoc Pennington  <hp@redhat.com>
9374         
9375         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
9376         (not tested yet because with absolute path to srcdir I can't build
9377         atk, but it was broken anyway so this may help) 
9378
9379 2001-06-07  Havoc Pennington  <hp@redhat.com>
9380
9381         * configure.in: output m4macros/Makefile
9382         
9383 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
9384
9385         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
9386         buttons.  Fixes #55460 reported by matthiasc@poet.de.
9387
9388 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
9389
9390         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
9391         expansion/collapsing so it only happens in one place.
9392         (gtk_tree_view_real_expand_row): ditto.
9393
9394 2001-06-07  Havoc Pennington  <hp@redhat.com>
9395
9396         * tests/Makefile.am: add missing -I flag
9397
9398         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
9399
9400         * configure.in: use pkg-config to see if GModule is
9401         supported; fix to properly turn on included loaders 
9402         when GModule isn't supported; don't use AC_CHECK_LIB 
9403         when libs are not installed yet
9404
9405         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
9406
9407         * Makefile.am (SUBDIRS): add m4macros subdir
9408
9409         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
9410         dependencies also.
9411
9412 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
9413
9414         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
9415         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
9416
9417 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
9418
9419         * gtk/gtktreeview.c
9420         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
9421         bindings to expand and collapse rows.
9422         (gtk_tree_view_real_select_cursor_parent): New key binding.
9423         (gtk_tree_view_real_toggle_cursor_row): New key binding.
9424
9425         * gtk/gtkmarshal.list: new
9426         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
9427
9428 2001-06-06  Havoc Pennington  <hp@redhat.com>
9429
9430         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
9431
9432         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
9433         Down to move visually rather than logically, since it confuses 
9434         people. Add -/+ and Ctrl--/+ bindings for logical movement.
9435
9436 2001-06-06  Alex Larsson  <alexl@redhat.com>
9437
9438         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
9439         Fix up error messages.
9440
9441 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
9442
9443         * gtk/gtktooltips.h: Include gtkwidget.h 
9444         (#55798, Karl Nelson)
9445
9446         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
9447         a valid latin-1 character. (Marc Lehmann, #35467)
9448
9449         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
9450         (Marc Lehmann, #35467)
9451         
9452 2001-06-05  Alex Larsson  <alexl@redhat.com>
9453
9454         * demos/gtk-demo/appwindow.c (do_appwindow):
9455         Don't swap the order of the args to gtk_widget_destroyed.
9456
9457         * tests/testgtk.c (destroy_properties):
9458         Don't crash when the properties window is destroyed.
9459
9460         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
9461         Use with_mnemonics to handle the case of stock items with
9462         underscores in them.
9463
9464 2001-06-05  Havoc Pennington  <hp@redhat.com>
9465
9466         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
9467         gtk_text_iter_reorder
9468
9469 2001-06-05  Havoc Pennington  <hp@redhat.com>
9470
9471         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
9472
9473 2001-06-05  Havoc Pennington  <hp@redhat.com>
9474
9475         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
9476         to the range that was set
9477
9478         * gtk/gtkrange.c: add value_changed signal, primarily 
9479         intended for use with GtkScale
9480         (gtk_range_set_increments): new function
9481         (gtk_range_set_range): new function with weird name
9482         (gtk_range_set_value): new function
9483         (gtk_range_get_value): new function
9484
9485         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
9486         from gtk_spin_button_get_value_as_float(). Compat #define
9487         added for get_value_as_float.
9488
9489         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
9490
9491         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
9492
9493 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
9494
9495         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
9496
9497 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
9498
9499         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
9500
9501         * tests/testgtk.c (create_tooltips): Remove usage of
9502         gtk_widget_set().
9503
9504 2001-06-05  Havoc Pennington  <hp@redhat.com>
9505
9506         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
9507
9508         Applying patch from Jeff Franks, with function docs added.
9509         
9510         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
9511         remove call to set_mnemonic_widget, change docs a bit.  
9512
9513         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
9514         new function
9515
9516         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
9517         new function
9518
9519         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
9520
9521         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
9522         function
9523         (gtk_radio_button_new_with_mnemonic_from_widget): new function
9524
9525         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
9526         new function
9527
9528         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
9529         function        
9530
9531         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
9532         auto-selection of mnemonic widget.
9533
9534 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
9535
9536         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
9537         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
9538         (gtk_tree_view_column_set_min_width): ditto.
9539
9540 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
9541
9542         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
9543         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
9544
9545 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
9546
9547         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
9548         gtk_clist_thaw().
9549
9550 2001-06-04  Havoc Pennington  <hp@pobox.com>
9551
9552         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
9553 r       eleases for buttons 6, 7
9554
9555 2001-06-04  Havoc Pennington  <hp@redhat.com>
9556
9557         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
9558         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
9559         #55562
9560
9561 2001-06-04  Havoc Pennington  <hp@redhat.com>
9562
9563         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
9564         where text_view->layout == NULL by assuming its size is 0, 
9565         i.e. same as if we haven't done any reflow. Reported by 
9566         Hidetoshi Tajima #55448 
9567
9568 2001-06-04  Havoc Pennington  <hp@redhat.com>
9569
9570         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
9571         and 7 for scroll left/right, from Thomas Broyer
9572
9573 2001-05-10  Havoc Pennington  <hp@redhat.com>
9574
9575         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
9576         we need to parse the xsetting as if it were an RC file string.
9577
9578         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
9579         value of palette from settings, not from static variable
9580
9581         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
9582         xsettings translation table
9583
9584         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
9585         hardcoding the toolbar style conflicts with new customizable 
9586         toolbar style philosophy
9587         (gtk_toolbar_class_init): add settings for default toolbar style;
9588         these are used unless the app specifically forces a toolbar style
9589
9590         * gtk/gtksettings.c (settings_install_property_parser): only
9591         return at the start if we warn and parser == NULL
9592
9593         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
9594         palette changed handler so we don't notify dead color selections
9595
9596         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
9597         xthickness/ythickness of 0 or 1 properly 
9598         (gtk_default_draw_resize_grip): clear the background behind the
9599         resize grips, and align to bottom right if we square the 
9600         area to be drawn.
9601
9602         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
9603         statusbar label to 1, so it doesn't make toplevels resize oddly
9604         (gtk_statusbar_size_request): add grip size to request
9605         (gtk_statusbar_size_allocate): hack so the hbox still works with 
9606         the grip size in the request
9607
9608         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
9609         bug where showing all on a toplevel makes the toolbar 
9610         button text appear despite the toolbar mode
9611
9612         * gtk/gtkmenubar.c: add internal padding style property
9613
9614         * gtk/gtktoolbar.c: Add internal padding style property; add
9615         shadow type style property
9616
9617         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
9618         state; and put Container::border_width outside the frame
9619
9620         * gtk/gtktextview.c: don't draw focus rectangle if we're in
9621         interior focus mode, we just use blinking cursor
9622
9623 2001-06-04  Havoc Pennington  <hp@redhat.com>
9624
9625         * configure.in: Make gdk-pixbuf have same version number as GTK
9626
9627 2001-06-04  Havoc Pennington  <hp@redhat.com>
9628
9629         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
9630         digits greater than 6. If there actually are limits (which there
9631         likely aren't), should clamp to them not warn.
9632         (gtk_spin_button_new_with_range): don't take log of 0
9633         (gtk_spin_button_size_request): use digits to compute size
9634         request, rather than step increment.
9635
9636         * tests/testgtk.c (create_spins): test larger values of digits
9637         
9638         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
9639         font on map not expose, so we don't get weirdness during scrolling
9640
9641 2001-06-04  Havoc Pennington  <hp@redhat.com>
9642
9643         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
9644         Sam Solon, bug #54577, update value even if not drawable.
9645
9646 2001-06-04  Havoc Pennington  <hp@redhat.com>
9647
9648         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
9649         SCROLL_LEFT, reported by Thomas Broyer.
9650
9651 2001-06-04  Havoc Pennington  <hp@redhat.com>
9652
9653         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
9654         Process updates immediately, to prevent funny lag effect
9655         when scrolling, at some mild potential efficiency cost.
9656
9657 2001-06-04  Havoc Pennington  <hp@redhat.com>
9658
9659         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
9660         slider on the click.
9661
9662 2001-06-03  Havoc Pennington  <hp@pobox.com>
9663
9664         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
9665         hscale/vscale details, so we can use it for scrollbar as well.
9666
9667         * tests/testgtk.c (reformat_value): honor digits from GtkScale
9668
9669         * gtk/gtkenums.h (GtkTroughType): Remove this enum
9670         (GtkScrollType): add START and END from GtkTroughType
9671
9672         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
9673         its x/y arguments
9674
9675         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
9676         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
9677         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
9678         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
9679         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
9680
9681         Notable changes in the process:
9682          
9683         - stepper_size style property is the height for vertical 
9684           ranges, width for horizontal; the other dimension matches
9685           the trough size
9686         - add ability to do NeXT-style steppers (and several other styles
9687           that don't make any sense)
9688         - added min_slider_length, fixed_slider_length properties to
9689           GtkScrollbar
9690         - cleaned some private (or at least useless) functions out of
9691           gtkscale.h    
9692         - moved bindings to GtkScale from subclasses, even arrow keys,
9693           since blind users don't know scale orientation.
9694         - change move_slider action signal to use new GtkScrollType,
9695           remove GtkTroughType argument
9696         - digits rounds the values a range will input to the given 
9697           number of decimals, but will not try to force adjustment 
9698           values set by other controllers. That is, we no longer
9699           modify adjustment->value inside a value_changed handler.
9700         - added getters for GtkScale setters
9701         - middle-click begins a slider drag
9702         
9703 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
9704
9705         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
9706         getting the focus code to work.
9707         (gtk_tree_view_class_init): Add a bunch of keybindings.
9708
9709         * gtk/gtktreeviewcolumn.c
9710         (gtk_tree_view_column_set_cell_data_func):
9711         s/GtkCellDataFunc/GtkTreeCellDataFunc.
9712         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
9713         of "properties_changed" to help justify the death of the latter
9714         signal. (-:
9715
9716         * tests/testtreefocus.c (main): Let some columns be focussable to
9717         test focus better.
9718
9719 2001-06-01  Havoc Pennington  <hp@redhat.com>
9720
9721         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
9722         
9723         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
9724         overwrite in overwrite mode if we already deleted the selection
9725         and replaced it with new text.  
9726
9727         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
9728         selection to an empty range, clear the clipboard if we owned it.
9729         (gtk_label_set_selectable): give up selection if we become
9730         unselectable.
9731         (gtk_label_state_changed): override state changed to unselect text
9732         when insensitive
9733         (get_text_callback): add paranoia check that indexes aren't
9734         outside of label->text
9735         (gtk_label_select_region): make -1 for start_offset mean "end of
9736         label," for consistency with GtkEditable
9737
9738         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
9739         GTK_DIALOG_NO_SEPARATOR flag
9740
9741 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
9742
9743         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
9744         notifications on non-existant "enable_arrow_keys".
9745         (#53753, Skip Montanaro)
9746
9747 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
9748
9749         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
9750         GDK_TYPE_RECTANGLE.
9751
9752         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
9753         of allocation argument be GDK_TYPE_RECTANGLE.
9754
9755 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
9756
9757         * gtk/gtkoptionmenu.c: Account for the fact that the border
9758         width is _outside_ the window. (Fixes #54585, bug found
9759         by Bastien Nocera.)
9760
9761 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
9762
9763         * gtk/gtksettings.c (gtk_settings_get_property): Validate
9764         value from GDK settings against parameter spec.
9765
9766         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
9767         to temporary values and use g_value_transform(), since
9768         thinking that GValue was going to be easy or efficient
9769         to use was, of course, a mistake.
9770
9771         * gtk/gtksettings.c: Add cursor blink setting.
9772         
9773         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
9774
9775         * gtk/gtkentry.c: Add cursor blinking.
9776
9777         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
9778         cursor blink global settings.
9779
9780         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
9781         for :text_position in places where it is missing.
9782
9783 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
9784
9785         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
9786
9787 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
9788
9789         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
9790         not pkg-config. (#51032)
9791
9792         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
9793         (fixes #51952, James Henstridge)
9794         
9795 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
9796
9797         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
9798         Rename to the more correct gtk-go-up.
9799
9800         * gtk/stock-icons/stock_menu_sort_ascending.png:
9801         Added new file.
9802         
9803         * gtk/stock-icons/stock_menu_sort_descending.png:
9804         Changed to show descending instead of ascending.
9805
9806         * gtk/gtkiconfactory.c:
9807         Added menu size icon to sort ascending.
9808
9809         * gtk/stock-icons/Makefile.am:
9810         Added stock_menu_sort_ascending.png.
9811         
9812         * gtk/gtkseparatormenuitem.c:
9813         Use correct typenames.
9814
9815 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
9816
9817         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
9818         gulong as in GSignal.
9819
9820 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
9821
9822         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
9823         instances of GtkCellRenderer in code (all but dnd icon code).
9824         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
9825         there, and I can do multiple Cells per column.
9826
9827         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
9828
9829         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
9830         when model was unreffed prior to removing the row reference.
9831
9832 2001-05-25  Havoc Pennington  <hp@redhat.com>
9833
9834         * gtk/gtkiconfactory.c: fix so that default icons are created if 
9835         you call gtk_stock_list_ids()
9836
9837         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
9838         in list
9839
9840 2001-05-25  Havoc Pennington  <hp@redhat.com>
9841
9842         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
9843         set can render without falling back to missing image icon
9844
9845         * gtk/gtktextview.c (gtk_text_view_size_request): request full
9846         size of text, instead of random values
9847
9848         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
9849         size of tree view, instead of random values
9850
9851         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
9852         image in an appropriate size
9853
9854         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
9855         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
9856
9857         Throughout: fix GTK_STOCK_BUTTON_ instances
9858         
9859         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
9860         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
9861         Add a bunch of new stock items/icons
9862
9863         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
9864         new function, convenience for inserting columns with a data func
9865
9866         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
9867         (_gtk_icon_factory_list_ids): use list of all factories to
9868         generate a list of all known IDs
9869
9870         * gtk/gtkstock.c (gtk_stock_list_ids): replace
9871         gtk_stock_list_items() with a function that returns all IDs known
9872         including those for GtkIconFactory.
9873
9874 2001-05-25  Hans Breuer  <hans@breuer.org>
9875
9876         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
9877         work -> check boxes and radio buttons are drawn now, even on win9x.
9878         Improved line settings a bit, still no clue how to get really dotted
9879         lines on win9x, on NT it's PS_ALTERNATE.
9880
9881         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
9882         GDK_HINT_MIN_SIZE as well
9883
9884         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
9885
9886         * gtk/gtk.def : updated
9887
9888         * gtk/gtktreeprivate.h : change column_drop_func to be a function
9889         pointer not a function pointer pointer
9890
9891         * tests/testdnd.c : include <stdlib.h> for putenv prototype
9892
9893         * tests/testsocket.c : made it compile on win32 again
9894
9895         * tests/makefile.msc : one more test-app uses prop-editor.obj
9896
9897 2001-05-22  Havoc Pennington  <hp@pobox.com>
9898
9899         * gtk/gtkbin.c (gtk_bin_get_child): New function
9900
9901 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
9902
9903         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
9904         to ignore when doing compose processing.
9905
9906 2001-05-22  Joe Shaw  <joe@ximian.com>
9907
9908         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
9909         Simplify as suggested by Havoc. Just get the last iter and work
9910         backward to the tag instead of getting a line and working back from
9911         there. Fixes passing in an invalid offset to
9912         iter_init_from_byte_offset().
9913
9914 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
9915
9916         * gtk/gtktreeview*.h: 
9917         * gtk/gtkcell*.h:
9918         * gtk/gtk*store.h:
9919         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
9920         macros to all objects.
9921
9922 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
9923
9924         * gtk/gtkcellrenderertext.c
9925         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
9926         with very large (TM) amounts of text.  May be moved to
9927         GtkCellRenderer in the future, though I'm not sure it wants to be
9928         this accessible.
9929
9930         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
9931         More sanity brought to this class.  I like it.
9932
9933         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
9934         case.  Kids, don't try this at home.
9935
9936         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
9937         convenience function.
9938
9939         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
9940
9941 2001-05-21  Alexander Larsson  <alexl@redhat.com>
9942
9943         * gtk/gtkfontsel.c:
9944         Added properties. Based on patch by Lee Mallabone.
9945
9946         * gtk/gtkruler.c:
9947         * gtk/gtkhruler.c:
9948         * gtk/gtkvruler.c:
9949         * gtk/gtktext.c:
9950         * gtk/gtktextview.c:
9951         Converted GtkArg to GParam. Based on patches by John Margaglione.
9952
9953         * tests/Makefile.am:
9954         * tests/testtext.c:
9955         Add a property editor to testtext.
9956         
9957 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
9958
9959         * gtk/gtk{h,v,}paned.c: Only show the separator if 
9960
9961         * configure.in: Fixed reversed conditional causing all image
9962         libraries to be linked in.
9963
9964 2001-05-21  Joe Shaw  <joe@ximian.com>
9965
9966         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
9967         that top_y needs to be >= 0.
9968
9969 2001-05-11  Havoc Pennington  <hp@pobox.com>
9970         
9971         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
9972         losing connection to the X server.
9973
9974 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
9975
9976         * configure.in: Start checks for X from pangox/pangoxft
9977         CFLAGS to avoid duplicate libraries.
9978
9979         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
9980
9981         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
9982         to include gobject.
9983         
9984 2001-05-18  Alexander Larsson  <alexl@redhat.com>
9985
9986         * gtk/gtkspinbutton.c:
9987         Convert GtkArgs to GParams. Based on patch by John Margaglione.
9988         Also do size request reasonable for MAXDOUBLE. Previously it printed
9989         the limits to a buffer and overran it. Instead do it using log10() and
9990         limit the width to 10 digits.
9991         
9992         * gtk/gtkwidget.c (gtk_widget_get_property):
9993         Correctly handle setting the parent property to NULL.
9994
9995 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
9996
9997         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
9998         style attributes even if the widget isn't realized.
9999
10000         * demos/gtk-demo/main.c: Use a slightly smaller font.
10001
10002 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
10003
10004         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
10005         This is something that only a widget writer would ever want
10006         to change.
10007
10008         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
10009         gtk_signal_emit_by_name().
10010
10011         * gtk/gtkviewport.c: Fix some warnings.
10012
10013         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
10014         allowing the requisitions of multiple widgets to be grouped
10015         together.
10016
10017         * tests/testgtk.c: Add GtkSizeGroup test
10018
10019         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
10020
10021         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
10022         warnings.
10023
10024         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
10025
10026 2001-04-28  Martin Baulig  <baulig@suse.de>
10027
10028         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
10029         to gtk_image_menu_item_set_icon() and made it work if there's already
10030         an image.
10031         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
10032         (gtk_image_menu_item_new_with_label): New function.
10033
10034 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
10035
10036         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
10037         highlighting code!!!!  The result is okay so long as you don't try
10038         to stress it.  It also highlights a bug in the TextView so it's in
10039         an unproportional font right now until it's fixed.
10040
10041         *demos/gtk-demo/*.c: Clean up code a bit to make it
10042         ugly-parser(TM) friendly. (-:
10043
10044 2001-05-17  Joe Shaw  <joe@ximian.com>
10045
10046         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
10047         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
10048         if it is only partially onscreen.
10049
10050 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
10051
10052         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
10053         not by characters.
10054
10055         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
10056         are not zero or one; that is, when graphemes of multiple characters
10057         are involved.
10058
10059         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
10060         FIXME.
10061
10062 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
10063         
10064         * gtk/gtkbbox.c:
10065         Add properties, based on patch by Lee Mallabone.
10066
10067         * gtk/gtknotebook.c:
10068         * gtk/gtktoolbar.c:
10069         Convert from GtkArg to GParam, based on patch by John Margaglione.
10070         
10071         * gtk/gtkhscale.c:
10072         * gtk/gtkvscale.c:
10073         * gtk/gtkhscrollbar.c:
10074         * gtk/gtkvscrollbar.c:
10075         * gtk/gtkrange.c:
10076         Move adjustment property to GtkRange.
10077
10078         * gtk/gtklabel.c:
10079         Setup mnemonics on property changes
10080
10081         * gtk/gtkwidget.c (gtk_widget_get_property):
10082         GdkExtensionMode is an enum, not a flag. Set it with
10083         g_value_set_enum ().
10084
10085         * tests/prop-editor.c:
10086         Better propery editor.
10087
10088         * tests/testgtk.c:
10089         Add new property test. Pass zero to the property editor to
10090         get properties from all derived types.
10091         
10092 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
10093
10094         * autogen.sh (have_automake): Require libtool-1.4,
10095         automake-1.4p1.
10096
10097         * acinclude.m4: Remove libtool macros.
10098
10099         * gdk-pixbuf/Makefile.am: Add dependencies to loade
10100         modules.
10101
10102         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
10103         for libgdk.
10104
10105         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
10106         libgdk.la for libgtk.
10107
10108         * modules/input/Makefile.am: Make modules have full
10109         dependencies.
10110
10111 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
10112
10113         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
10114         #54699 where paths weren't being checked for correctness.
10115
10116 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
10117
10118         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
10119         in any order you wan, whether or not the column is added to the
10120         tree, or the tree is realized.  Yay!
10121
10122         * gtk/gtktreeviewcolumn.c
10123         (gtk_tree_view_column_setup_sort_column_id_callback): handle
10124         sorting columns a lot saner
10125
10126         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
10127         new function to actually set wether or not a column is
10128         reorderable.
10129
10130         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
10131         if we have 'em.
10132
10133         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
10134         Fix nasty bug where we were showing the button just before
10135         realizing it.  As a result, the parent window was
10136         tree_view->window instead of tree_view->priv->header_window.
10137
10138         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
10139         to let you easily reorder a list or tree.
10140
10141 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
10142
10143         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
10144         from args to properties.
10145
10146 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
10147
10148         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
10149         from args to properties. (#51957)
10150
10151         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
10152         calls to after ->set_property call.
10153
10154 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
10155
10156         * tests/prop-editor.c: Block against redundant changes.
10157
10158         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
10159         properties.
10160
10161 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
10162
10163         * gdk/gdkpixmap.h: Remove creative formatting.
10164
10165 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
10166
10167         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
10168         property API. (#51669)
10169
10170         * gtk/gtkscale.c: Patch from John Margaglione converting to
10171         property API. (#51891)
10172
10173         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
10174         to property API. (#50985)
10175
10176 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
10177
10178         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
10179         buffering state across expose event, so we still call end_paint().
10180
10181 2001-05-11  Alexander Larsson  <alexl@redhat.com>
10182
10183         * gtk/gtkhsv.c (paint_triangle):
10184         Expose the ring in the triangle at the correct place when
10185         exposing just a part of the triangle.
10186
10187         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
10188         Return FALSE, or window focusing will not work.
10189
10190 2001-05-11  Havoc Pennington  <hp@pobox.com>
10191
10192         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
10193         #54144
10194
10195         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
10196         bug #54330
10197
10198 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
10199
10200         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
10201         propagate exposes to NULL child.
10202
10203         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
10204         against not having one of the scrollbars.
10205
10206         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
10207         we don't keep a mnemonic window if we have no mnemonic installed.
10208
10209 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
10210
10211         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
10212         it has the _important_ side effect of initializing a class.
10213
10214 2001-05-10  Alexander Larsson  <alexl@redhat.com>
10215
10216         * gdk/linux-fb/gdkprivate-fb.h:
10217         Make sure you can compile out the implementation/wrapper assert
10218         macros.
10219
10220         * gdk/linux-fb/gdkdrawable-fb2.c:
10221         Check implementation/wrappers, initialize type for pixmap dummys.
10222
10223         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
10224         Hide the cursor if reading from the screen.
10225
10226         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
10227         Fix sign bug in tiling code.
10228
10229         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
10230         Handle background pixmaps.
10231
10232 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
10233
10234         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
10235         function to let user control where columns are dragged.
10236
10237         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
10238         Escape is pressed.
10239
10240 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
10241
10242         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
10243         "columns_changed" signal.
10244         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
10245         motion code to draw arrows to the side if indicator is outside the
10246         widget.
10247         (gtk_tree_view_map_expanded_rows): Implement.
10248
10249 2001-05-07  Alexander Larsson  <alexl@redhat.com>
10250
10251         * demos/testpixbuf-save.c: 
10252         * demos/testpixbuf-drawable.c:
10253         Include gdkfb.h on linux-fb.
10254
10255 2001-05-07  Alexander Larsson  <alexl@redhat.com>
10256
10257         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
10258         New function for getting toplevel window at position.
10259         (gdk_drag_find_window): Use get_toplevel_window () instead
10260         of gdk_window_get_pointer(). (gdk_drag_status): Use
10261         correct context for getting window.
10262
10263         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
10264         g_strdup the atom name.
10265
10266         * gdk/linux-fb/gdkwindow-fb.c:
10267         Costmetic fix.
10268
10269         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
10270         Add code for changing cursor on linux-fb backend (same as
10271         win32).
10272
10273 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
10274
10275         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
10276         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
10277         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
10278         report was not for the development branch of GTK+, but it applies
10279         anyways).
10280
10281 2001-05-04  Havoc Pennington  <hp@redhat.com>
10282
10283         * configure.in: fix some shell typos
10284
10285         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
10286
10287         * gtk/gtkimage.c: handle animations
10288
10289         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
10290         border_width * 2, not just border_width
10291
10292         * gtk/gtkscale.c: add "format_value" signal to allow people
10293         to override the way values are drawn.
10294         (gtk_scale_get_value_size): fix width/height mistake,
10295         and compute size from actual displayed text, not 
10296         from made-up text.
10297
10298         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
10299         signal registration
10300
10301         * tests/testtext.c: Add "Remove all tags" menu item for testing
10302
10303         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
10304
10305         * demos/gtk-demo/main.c (main): add hack so we can find modules
10306         without installing gtk
10307
10308         * demos/gtk-demo/textview.c (insert_text): demo font scaling
10309
10310         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
10311         factor)
10312         (gtk_cell_renderer_text_set_property): remove some bogus
10313         g_object_notify
10314
10315         * gtk/gtktexttag.c: add "scale" property which is a font scaling
10316         factor
10317
10318         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
10319         to layout
10320
10321         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
10322         gtk_text_iter_is_first
10323
10324 2001-01-06  Hans Breuer  <hans@breuer.org>
10325
10326         * gdk/gdk.def : updated exports
10327
10328         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
10329         gdk won't compile anymore
10330  
10331         * gdk/win32/gdkevents-win32.c : initialize ret_val when
10332         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
10333         Improved gdk_flush () to not only do pending drawing operations
10334         but also process all currently pending events. This should make
10335         the behaviour more similar to the X11 version.  
10336
10337         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
10338         option needs to be set even if there is no GDK_GC_BACKGROUND.
10339         (gdk_win32_hdc_get) : use predraw_set_background () independent
10340         of value_mask. This allows to draw dashed lines leaving the original
10341         background intact.
10342
10343         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
10344         after processing, because we can't reuse it as the X11 version does.
10345
10346         * gtk/gtk.def : updated exports
10347
10348         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
10349         would like to get rid of this file again, and use straight
10350         makefile.msc again, as the other Gtk+ subdirs do)
10351
10352         * test/makefile.msc (new file) : build the test apps here
10353
10354 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
10355
10356         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
10357         strike-through setting
10358         (gdk_draw_layout_line_with_colors): Render strike-through
10359
10360 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
10361
10362         * Release 1.3.5
10363
10364         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
10365
10366         * NEWS: Updated
10367
10368         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
10369         Makefile breakage.
10370
10371 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
10372
10373         * demos/gtk-demo/images.c (progressive_timeout): Fix
10374         typo in filename.
10375
10376         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
10377         out FIXME warning; just too annoying.
10378
10379 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
10380
10381         * gdk/linux-fb/gdkcolor-fb.c:
10382         Better error messages.
10383
10384         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
10385         Initialize abs_x and abs_y.
10386         
10387         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
10388         Correct handling of stipple offset.
10389
10390         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
10391         Treat directcolor framebuffers as truecolor.
10392         
10393 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
10394
10395         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
10396         dependency on Atk for accessibility support.
10397
10398         * configure.in **/Makefile.am: Major reworking of substituted
10399         variables for CFLAGS/LIBS to make a lot more sane and 
10400         keep the the compile/link lines a bit shorter.
10401
10402         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
10403
10404 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
10405
10406         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
10407         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
10408         use _gtk_boolean_handled_accumulator.
10409
10410 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
10411
10412         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
10413         to fix things so clicking inside selection leaves cursor
10414         at point where clicked. (#50324)
10415
10416         * gtk/gtksettings.c (gtk_settings_class_init): Restore
10417         sane value for default double click time.
10418
10419         * tests/testtext.c (test_init): Really path to input modules.
10420
10421 2001-05-03  Sven Neumann  <sven@convergence.de>
10422
10423         * demos/testpixbuf-save.c: include target-specific headers as
10424         done in testpixbuf-drawable.c
10425
10426 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
10427
10428         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
10429         new_text_length appropriately when we run into the 
10430         size limit for the entry. (#53445, reported by Jeff Franks)
10431
10432         * tests/testgtk.c (create_entry): Remove most of the
10433         property toggle buttons. Replace with a "Props" button
10434         that brings up a property editor.
10435
10436         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
10437         Split the property editor code out for reuse, improve.
10438
10439 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
10440
10441         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
10442         trap errors around calls to XSetInputFocus since we have
10443         no way of knowing reliably whether we are viewable or
10444         not. (#53947)
10445
10446 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
10447
10448         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
10449         fix bug in dropping columns.  Moving columns now basically works
10450         modula some fine tuning.
10451
10452 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
10453
10454         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
10455         autoscroll support.  It mostly works, but could use some fine
10456         tuning.
10457         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
10458         Actually move the column.
10459
10460 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
10461
10462         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
10463           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
10464           New default theme! A slighly improved version of the 2.0 Raleigh
10465           theme, with Windows-esque focus/drawing default. 
10466           (GtkWidget::interior_focus defaults to TRUE.)
10467
10468         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
10469
10470 2001-04-30  Havoc Pennington  <hp@pobox.com>
10471
10472         * tests/testtext.c (line_numbers_expose): fix to work with
10473         gtk_paint_layout change
10474
10475 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
10476
10477         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
10478           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
10479           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
10480           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
10481
10482         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
10483           with GtkWidget::interior_focus = TRUE better.
10484
10485         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
10486         ::default_outside_border for more flexibility.
10487
10488         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
10489         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
10490         change that had to be made with g_object_get.
10491
10492 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
10493
10494         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
10495         (gtk_tree_view_move_column_after): Clean up interface. 
10496
10497 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
10498
10499         * gtk/gtkpacker.h:
10500         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
10501          to gtkenum.h.
10502
10503         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
10504         handled in switch).
10505
10506         * gtk/Makefile.am:
10507         (gtk.defs): generate enum portions with  glib-mkenums.
10508         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
10509         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
10510         
10511         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
10512         addition.
10513
10514         * docs/Changes-2.0.txt: keep a note on signal handlers now
10515         not getting emitted during the emission they were connected within.
10516
10517 2001-04-28  Havoc Pennington  <hp@pobox.com>
10518
10519         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
10520
10521 2001-04-24  Havoc Pennington  <hp@redhat.com>
10522
10523         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
10524         (gtk_text_layout_move_iter_to_next_line): fix these two for
10525         invisible text, lots of other stuff still hosed.
10526
10527         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
10528         new function, replaces the get/set palette stuff. This function 
10529         is intended for use by libgnomeui which should set the hook to a
10530         thing which sets the palette in GConf, and we need the
10531         GConf-to-xsettings proxy which will result in the change being
10532         propagated back to the GTK app.
10533
10534         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
10535         about unusable signals that it may be because the signal has 
10536         parameters.
10537
10538         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
10539         style, otherwise gtkrc.c won't know to create a new GtkStyle for
10540         it.
10541         (gtk_widget_modify_color_component): call
10542         gtk_widget_modify_style() so the rc style will get copied.
10543         (gtk_widget_modify_font): ditto
10544
10545         * gtk/gtkrc.c: make a couple variables static
10546
10547         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
10548         help button by default, since it does nothing
10549
10550         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
10551         around with UI
10552
10553         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
10554         so we can have tooltips
10555
10556         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
10557         can have tooltips
10558
10559         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
10560         GDK_ENABLE_BROKEN, because its memory behavior is completely
10561         hosed.
10562
10563         * gtk/gtknotebook.c: remove key press handler, replace with
10564         binding set, add numeric keypad support
10565
10566         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
10567
10568         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
10569
10570         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
10571         addition to plain Delete
10572
10573         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
10574         GDK_KP_Enter in addition to GDK_Return
10575
10576         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
10577         activate on entry instead of key press
10578         (gtk_font_selection_on_clist_key_press): get
10579         rid of this signal handler, not needed with new font sel.
10580
10581         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
10582         no-longer-needed emit_stop_by_name(), just return TRUE
10583
10584         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
10585         cruft, this widget is no longer focusable.
10586
10587         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
10588         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
10589         move_slider action signal, add binding set for vscale/hscale, in
10590         the process support numeric keypad
10591
10592         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
10593         make GDK_Return and GDK_KP_Enter activate the entry via 
10594         binding set, instead of hardcoded.
10595
10596 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
10597
10598         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
10599         code.  Some documentation added.
10600
10601 2001-04-27  Havoc Pennington  <hp@redhat.com>
10602
10603         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
10604
10605         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
10606
10607         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
10608         line/para separators
10609         (gtk_entry_create_layout): set single paragraph mode on the layout
10610
10611         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
10612         spacing between the image and label; instead, inside a button box 
10613         the button will get extra space that will go there, but if people 
10614         configure button box for 0 chubbiness, then there's no spacing.
10615
10616         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
10617         and min/max size style properties, so people can tune their
10618         chubbiness.
10619
10620         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
10621         functions
10622
10623         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
10624         space_style, and button_relief into style properties, remove
10625         functions for setting them
10626         
10627         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
10628         it back down
10629
10630         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
10631         types from gtk_widget_style_get
10632
10633         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
10634         with a style property.
10635
10636         * gdk/x11/gdkevents-x11.c: namespace the settings
10637
10638         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
10639
10640         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
10641         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
10642         be used. Also, translate doc strings for settings. Also, namespace
10643         the double-click-time property. Also, remove bell properties crap.
10644
10645 2001-04-27  Sven Neumann  <sven@gimp.org>
10646
10647         * Makefile.am: before creating links, check if pkg-config files
10648         exist for the default target. Otherwise link to the pkg-config files
10649         that got installed with this build.
10650
10651 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
10652
10653         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
10654         dragging code.  Revealed some (potential) GdkWindow bugs.
10655
10656         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
10657         _gdk_window_init_position to the end of reparent to fix the case
10658         of reparenting when new_x != old_x and new_y != old_y.
10659
10660 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
10661
10662         * gtk/gtkentry.c (strstr_len): Fix optimization that
10663         was correct for the use here, but completely incorrect
10664         in general.
10665
10666 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
10667
10668         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
10669         until patch adding gtk_window_set_size() is recommitted. 
10670
10671         * **Makefile.am configure.in gdk/x11/gdkim-11.c
10672           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
10673           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
10674           (#10784)
10675
10676 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
10677
10678         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
10679         window == NULL in a number of cases.
10680
10681         * tests/testdnd.c: Set module path for gdk-pixbuf.
10682
10683 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
10684
10685         * gtk/Makefile.am xembed.h: File containing #defines
10686         for XEMBED protocol.
10687
10688         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
10689
10690         - Change protocol from old plug/socket specific protocol
10691           to XEMBED draft
10692         - Various fixes to work with GTK+-2.0
10693
10694         Still quite a bit of work to do here to handle initiation
10695         from the socket side (as specified by XEMBED), to handle
10696         the more advanced features of XEMBED, and to figure out
10697         a good way to handle same-app embedding with less overhead
10698         than using full XEMBED.
10699
10700 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
10701
10702         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
10703         track of whether the toplevel has the focus; only send
10704         focus-in events to the focus widget when the window
10705         actually has the focus.
10706
10707 2001-04-25  Havoc Pennington  <hp@pobox.com>
10708
10709         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
10710         were still in the header
10711
10712 2001-04-24  Alexander Larsson  <alexl@redhat.com>
10713
10714         * gtk/gtkclist.[ch]:
10715         * gtk/gtkctree.c:
10716         When there is a row highlighted for D'n'D it must alse
10717         be painted hightlighted on exposes. Otherwise exposes from
10718         the icon being dragged will mess up the hightlight.
10719
10720         * gtk/gtkfontsel.c:
10721         Don't recenter selected font when exposing the font family
10722         clist. This means you can now actually scroll the font family
10723         list.
10724
10725         * gtk/gtknotebook.c:
10726         Fix focus movement on scrolling tabs that are placed on the left
10727         and right.
10728
10729 2001-04-21  Havoc Pennington  <hp@pobox.com>
10730
10731         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
10732         empty/invisible lines.
10733
10734         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
10735         (gtk_text_iter_set_visible_line_index): new functions to set
10736         indexes excluding invisible text
10737
10738         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
10739         index
10740
10741         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
10742         (gtk_text_iter_get_visible_line_offset): new functions to 
10743         get indexes excluding invisible text
10744
10745         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
10746         bunch of extra padding that served no purpose
10747
10748         * gtk/gtkdialog.c: Make all the spacings configurable via style
10749         properties, for chubbiness configuration in themes
10750
10751         * tests/testtext.c: fix path to the immodules.
10752         
10753 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
10754
10755         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
10756         got munched by #endif.
10757
10758         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
10759
10760         * gtk/gtktreeview.c: Refactored code to clean up a number of
10761         events.
10762
10763         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
10764         values to make consistent with other functions.  Spotted by Jeff
10765         Franks <jcf@tpg.com.au>.
10766
10767         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
10768         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
10769
10770 2001-04-23  Sven Neumann  <sven@gimp.org>
10771
10772         * gtk/Makefile.am
10773         * gtk/gtkplug.c
10774         * gtk/gtksocket.c: on request of Owen, reverted my last change 
10775         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
10776
10777 2001-04-23  Sven Neumann  <sven@gimp.org>
10778
10779         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
10780         compile for non-X11 targets again
10781
10782 2001-04-20  Alexander Larsson  <alexl@redhat.com>
10783
10784         * gtk/gtkcolorsel.[ch]:
10785         API Change. Take GdkColor arguments instead of gdouble *.
10786         Leave the old gtk_color_selection_set_color for compatibility,
10787         but marked deprecated.
10788         Do correct rounding when converting RGB <-> HSV.
10789         
10790         * gtk/gtkcolorseldialog.c:
10791         * tests/testgtk.c:
10792         Use new GtkColorSelection API.
10793
10794         * gtk/gtkhsv.c:
10795         Fix problem selecting colors in triangle when Hue is 330.
10796         Fix some black dots around the HSB triangle.
10797         
10798         * gtk/gtkfilesel.c:
10799         return FALSE from the focus_in_event handler to fix focus problems.
10800
10801 2001-04-18  Havoc Pennington  <hp@redhat.com>
10802
10803         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
10804         set, so keybindings are configurable    
10805         (gtk_window_activate_default): Change to activate the focus widget
10806         instead if there's a focus widget, to be consistent with the
10807         behavior that previously existed in key_press_event
10808
10809 2001-04-18  Havoc Pennington  <hp@redhat.com>
10810
10811         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
10812
10813 2001-04-18  Havoc Pennington  <hp@redhat.com>
10814
10815         Close bug #50615:
10816         
10817         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
10818         the layout
10819
10820         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
10821
10822         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
10823
10824         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
10825         
10826         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
10827         to blue for base, in addition to bg
10828         
10829 2001-04-18  Havoc Pennington  <hp@redhat.com>
10830
10831         * tests/testgtk.c (create_image): allow shrinking the image window
10832         to test that we clip to allocation.
10833
10834         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
10835         #9845
10836
10837         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
10838
10839 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
10840
10841         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
10842         mode on shm segments to 0600. We'll see who complains.
10843
10844         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
10845         _gdk_windowing_window_destroy() AFTER recursing through
10846         children.
10847
10848         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
10849         testsocket_child on X.
10850
10851         * tests/testsocket[_child].c: Fix uses of
10852         gtk_window_get_default_accel_group().
10853
10854         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
10855
10856         * gdk/gdkimage.c: (gdk_image_get):
10857         Deal with the possibility that XGetImage() might return NULL.
10858         Allocate the GdkImagePrivate structure only after XGetImage()
10859         succeeds in order not to dereference a NULL ximage pointer.  This
10860         prevents a core dump when XGetImage() fails - which is unlikely,
10861         but can happen due to race conditions accessing the geometries of
10862         drawables.  An x error will still be triggered, but the gdk image
10863         wrapper at least wont seg fault.
10864         
10865 2001-04-18  Havoc Pennington  <hp@redhat.com>
10866
10867         * gtk/gtkimage.c: fix to properly queue resizes when the image is
10868         set
10869
10870         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
10871         if the insertion point isn't editable
10872
10873         * demos/gtk-demo/images.c: Added a GtkImage demo
10874
10875         * demos/gtk-demo/drawingarea.c: drawing area demo
10876         
10877         * demos/gtk-demo/menus.c (create_menu): cleanups
10878
10879 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
10880
10881         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
10882           gdk/x11/gdkevents-x11.c: Introduce an extra child
10883         of toplevel windows that serves to hold the focus to
10884         avoid events being delivered to embedded windows.
10885
10886         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
10887         some extra variables to clean up code and reduce the
10888         number of casts.
10889
10890         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
10891         guint for 1 bit bit fields, not gboolean.
10892
10893 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
10894
10895         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
10896         not TRUE. (Fixes #52925)
10897
10898 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
10899
10900         * Released 1.3.4
10901
10902         * NEWS: Updated
10903
10904         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
10905         use GTK_TYPE_ENUM.
10906
10907 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
10908
10909         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
10910
10911         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
10912         names to compatibility #defines so docs work.
10913
10914         * gtk/gtkenums.h: Remove GtkMenuFactoryType
10915
10916         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
10917
10918         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
10919
10920         * tests/testgtkrc: No magenta cursors, please.
10921
10922         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
10923
10924         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
10925         
10926 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
10927
10928         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
10929         grabs, since they are no longer necessary.
10930
10931         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
10932         by signal_connect() and call gtk_button_pressed() rather
10933         than signal_connect_after().
10934
10935         * tests/testgtk.c: Restore radio menu items to combos 
10936         since they'll look OK with Raleigh, and it is easier
10937         than finishing the process of removing them that was
10938         started earlier.
10939
10940 2001-04-16  Hans Breuer  <hans@breuer.org>
10941
10942         * gdk/gdk.def :
10943         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
10944
10945         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
10946         we are interested in the functions return value not the function address
10947         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
10948
10949         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
10950
10951 2001-04-14  Hans Breuer  <hans@breuer.org>
10952
10953         * gdk/gdk.def :
10954         * gdk/makefile.msc : updated
10955
10956         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
10957         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
10958         (the testgtk::text backgound pixmap is drawn again)
10959         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
10960         Win32 Pango change
10961         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
10962
10963         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
10964         Not sure if the returned settings have the right unit, because I couldn't
10965         find any docs for the X version ...
10966
10967         * gtk/gtk.def :
10968         * gtk/makefile.msc.in : updated
10969
10970 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
10971
10972         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
10973         wording problems. (Compared to version from Johannes Stezenbach to
10974         check correctness.)
10975
10976 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
10977
10978         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
10979         this to compile.
10980
10981 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
10982
10983         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
10984         not pixbufpos.
10985
10986         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
10987
10988         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
10989         are unsigned insts, therefore use g_value_set_uint.
10990         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
10991
10992 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
10993
10994         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
10995
10996         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
10997         GTK_TYPE_STRING.
10998
10999         * gtk/gtktreeview.c: New functions to allow initial column
11000         dragging work.
11001
11002         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
11003
11004         * tests/testtreefocus.c: give dave some love.
11005
11006         * tests/testtreesort.c: Modify test to check really long samples.
11007
11008 2001-04-11  Alexander Larsson  <alexl@redhat.com>
11009
11010         * gtk-2.0.m4: Pass pkg-config options
11011         before the other args so it works even if
11012         POSIXLY_CORRECT is set.
11013
11014 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
11015
11016         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
11017         0, interface 0).
11018
11019 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
11020
11021         * gtk/gtkcalendar.c (gtk_calendar_button_press):
11022         check for action_func != NULL
11023
11024 2001-04-04  Sven Neumann  <sven@gimp.org>
11025
11026         * tests/testgtk.c (test_init): corrected path to gtk.immodules
11027
11028 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
11029
11030         * Released Gtk+-1.3.3.
11031
11032 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
11033
11034         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
11035
11036 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
11037
11038         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
11039         files to/from source dir. (if we don't stay in builddir, we
11040         can't reach make-inline-pixbuf.
11041
11042         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
11043         deps.
11044
11045         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
11046         ages 0).
11047
11048 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
11049
11050         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
11051         moved to the GtkTreeSortable interface.
11052
11053         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
11054         Make more efficient (fixes #50262).
11055
11056 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
11057
11058         * NEWS: Updated.
11059
11060         * configure.in: Remove support for uninstalled glib.
11061
11062         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
11063         so as not to stop emission.
11064
11065         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
11066         is no longer supported.
11067
11068         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
11069         into tests, change build order to build modules before
11070         gtk/.
11071
11072         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
11073         to here.
11074
11075 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
11076
11077         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
11078         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
11079         GPatternSpec. this is actually unlikely to cause breakage in
11080         third-party apps since except for gle, pretty much ever caller
11081         passes NULL here.
11082
11083         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
11084
11085         * *.c: use g_pattern_*() API.
11086
11087         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
11088
11089         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
11090         directions aren't passed in.
11091
11092         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
11093         functionality to be usable from gtkstyle.c as well, give precedence
11094         for conversion to user-supplied parsers.
11095         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
11096
11097         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
11098         _gtk_settings_parse_convert() for rcporperty value conversion.
11099
11100 2001-04-03  Alexander Larsson  <alexl@redhat.com>
11101
11102         * gdk/linux-fb/gdkevents-fb.c:
11103         Add empty gdk_setting_get().
11104
11105 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
11106
11107         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
11108         variable names.
11109         
11110         * gtk/makeenums.pl: touch this so enum files get remade.
11111
11112 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
11113
11114         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
11115         work again when not sorted.
11116
11117         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
11118         and "expand_row" signal, closing bug 52578.
11119
11120         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
11121         support.
11122
11123         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
11124         support.
11125
11126 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
11127
11128         * gdk/gdkevents.h: Add GdkEventSetting event for notification
11129         of changes to system settings, gdk_setting_get() to retrieve
11130         a single system setting.
11131
11132         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
11133         to the draft XSETTINGS mechanism.
11134
11135         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
11136         XSETTINGS.
11137
11138         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
11139         of GDK settings changes to the GtkSettings object.
11140
11141         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
11142         double-click-timeout property to GDK.
11143
11144         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
11145         Define GDK boxed types here.
11146
11147         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
11148         gdk/gdkenumtypes.[ch] for enum definitions.
11149
11150         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
11151         * gtk/gtk-boxed.defs: Comment out GDK types
11152         * gtk/gtktypeutils.h: Remove GDK types
11153         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
11154
11155 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
11156
11157         * Applied patch from Ron Steinke to add signal accumulators
11158         so that signals with the convention 'TRUE return means
11159         handled' stop emission on a TRUE return.
11160
11161         * gtk/gtkmain.[ch]: Add private accumulator 
11162         _gtk_boolean_handled_accumulator, used throughout GTK+.
11163         
11164         * gtk/gtkspinbutton.c: Add accumulator for ::output.
11165
11166         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
11167         
11168         * gtk/gtkwidget.c: Add accumulators for event signals,
11169         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
11170         for ::mnemonic-activate.
11171
11172         * gtk/gtkwindow.c: Add accumulator for ::frame_event
11173
11174 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
11175
11176         * gtk/gtkwidget.c: Add missing include.
11177
11178 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
11179
11180         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
11181         marshaller.
11182
11183         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
11184         "changed" signal to "range_changed".
11185
11186         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
11187         removing a tree from one model would remove all trees from that
11188         model.
11189         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
11190         changed signal instead.
11191
11192 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
11193
11194         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
11195         chaining up to parent impl, since we have a INPUT_ONLY
11196         window.
11197
11198         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
11199         foreground color for the cursor.
11200
11201 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
11202
11203         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
11204         param spec when caching property values, since we unref it
11205         later when we free the style.
11206
11207         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
11208         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
11209
11210 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
11211
11212         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
11213         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
11214         stupidity.
11215
11216 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
11217
11218         [ First pass at adding style properties. Still needs some definite
11219         fine-tuning. ]
11220
11221         * gtk/gtkbutton.c: Add ::default_spacing style property.
11222          
11223         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
11224         ::indicator_spacing style properties.
11225
11226         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
11227         style properties.
11228
11229         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
11230         rather than a normal property.
11231
11232         * gtk/gtkwidget.c: Add an ::interior_focus style property to
11233         draw focus inside buttons, in the Windows/Java Metal/etc. style.
11234
11235         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
11236         Honor ::interior_focus.
11237         
11238         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
11239         TRUE.
11240
11241         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
11242         Add ::slider_width, ::trough_border, ::stepper_size,
11243         ::stepper_spacing style properties.
11244
11245         * gtk/gtkscale.[ch] Add ::slider-length style property.
11246
11247 2001-04-02 Alexander Larsson   <alexl@redhat.com>
11248
11249         * gdk/linux-fb/gdkwindow-fb.c:
11250         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
11251         warnings that were spewed on startup.
11252
11253         * gtk/gtkwindow-decorate.c:
11254         gtk_window_reposition -> _gtk_window_reposition
11255
11256 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
11257
11258         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
11259         Add boxed type for GtkRequistion. Use it for ::size-request.
11260
11261         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
11262         Add a new GtkBorder structure useful for geometry properties
11263         for widgets. Add corresponding GTK_TYPE_BORDER.
11264         
11265         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
11266         Support automatic parser selection like
11267         gtk_settings_install_property_parser().
11268
11269         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
11270         functionality for use by gtk_widget_class_install_style_property.
11271         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
11272
11273 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
11274
11275         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
11276         g_param_spec_unichar(). 
11277
11278 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
11279
11280         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
11281         _NET window managers.
11282
11283         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
11284
11285 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
11286
11287         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
11288         bad needs to be nuked, not just deprecated.
11289
11290         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
11291         gtk_widget_popup().
11292
11293         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
11294         
11295         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
11296         widget.
11297         
11298         * docs/Changes-2.0.txt: updates.
11299         
11300 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
11301
11302         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
11303         for (i = 0; i < 100; i ++)
11304           g_print ("I will confirm it compile before committing\n");
11305
11306 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
11307
11308         * gtk/gtktreestore.c: Initial work on implementing the
11309         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
11310
11311 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
11312
11313         * gtk/gtkwidget.c: fixed a bunch of notifications, added
11314         reference counts around emissions where the widget is used afterwards.
11315         added freeze/thaws around multiple properties being notified.
11316         (_gtk_widget_get_aux_info): cleanups.
11317         
11318         * gtk/gtksettings.c (gtk_settings_install_property): provide
11319         default parsing functions for gdkcolor, enums and flags.
11320
11321         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
11322         applied by owen.
11323         backed out gtk_window_get_location(), gtk_window_set_location(),
11324         gtk_window_get_size() and gtk_window_set_size(), these
11325         have to be sorted out wrg x/y/width/height/default_with/default_height
11326         properties.
11327         kept a flag in GtkWindowGeometryInfo to handle user
11328         resetting default sizes.
11329         cleaned up ZVT comments.
11330         bunch of assorted bug fixes, notification fixes.
11331         (_gtk_window_reposition): make this a really internal function.
11332         
11333         * gtk/testgtk.c: fixups.
11334         
11335 2001-03-31  Hans Breuer  <hans@breuer.org>
11336
11337         * config.h.win32.in : disable USE_MMX for msvc build cause
11338         the assembler doesn't fit and is out of my scope. Disable
11339         USE_GMODULE for msvc build as wel. The right way to share
11340         binaries on win32 would be to use libtiff.dll etc. To reduce
11341         installation hassles IMO it's better to include all fileformats
11342         builtin to gdk-pixbuf
11343
11344         * gdk-pixbuf/makefile.msc : new file
11345
11346         * gdk/gdk.def : updated
11347
11348         * gdk/win32/gdkevents-win32.c : don't erase the background if
11349         .no_bg is set. It improves the scrolling (e.g. of testgtk main
11350         buttons
11351         * gdk/win32/gdkgeometry-win32.c : added comment about the above
11352
11353         * gdk/win32/gdkwindow-win32.c : added three new functions like
11354         the X version. Only one is implemented, because the other two
11355         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
11356         be default behaviour on win32 anyway ...
11357
11358         * gtk/gtk.def : updated
11359
11360         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
11361         from where it was built and add an additional rule to automagically
11362         build gtkmarshal.[hc]
11363
11364         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
11365         before array access for the current entry isn't finished
11366
11367         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
11368         use g_return_val_if_fail
11369
11370         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
11371         for the static array, but let the compiler calculate it. It
11372         makes me wonder if gcc isn't capable to catch bugs like this ...
11373
11374 2001-03-31  James Henstridge  <james@daa.com.au>
11375
11376         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
11377         constant "-1" in the aux info structure.
11378
11379 2001-03-30  Alexander Larsson  <alexl@redhat.com>
11380
11381         * gtk/gtkbutton.c (gtk_button_get_property):
11382         * gtk/gtklabel.c:
11383         Remove leaks.
11384         
11385         * gtk/gtkcontainer.c:
11386         * gtk/gtkhscale.c:
11387         * gtk/gtkhscrollbar.c:
11388         * gtk/gtklayout.c:
11389         * gtk/gtkmisc.c:
11390         * gtk/gtkprogress.c:
11391         * gtk/gtkprogressbar.c:
11392         * gtk/gtkrange.c:
11393         * gtk/gtktable.c:
11394         * gtk/gtkviewport.c:
11395         * gtk/gtkvscale.c:
11396         * gtk/gtkvscrollbar.c:
11397         * gtk/gtkwidget.c:
11398         Property patches, based on patches from John Margaglione and Lee Mallabone.
11399
11400 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
11401
11402         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
11403         adjustment. Cleaned redundant preconditions (spin != NULL). Added
11404         inline API function docs.
11405         (gtk_spin_button_new_with_range): New convenience constructor.
11406         (gtk_spin_button_set_increments): New adjustment helper.
11407         (gtk_spin_button_set_range): New adjustment helper.
11408
11409         * gtk/testgtk.c : added test of the new convenince constructor and
11410         value_changed signals.
11411
11412 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
11413
11414         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
11415         listen to the reorder signal.
11416
11417 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
11418
11419         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
11420         to get the aux info structure fo the widget.
11421
11422         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
11423         above function.
11424
11425         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
11426
11427         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
11428         to get the size of the window manager frame, basically the same
11429         code that gdk_window_get_root_origin() had
11430         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
11431
11432         * gtk/gtkwindow.c (gtk_window_set_default_size): use
11433         gdk_window_resize() if the window is realized and resizeable
11434
11435         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
11436         typo so that setting gravity works
11437
11438         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
11439         allocation if auto_shrink is on, even if the default size
11440         has not changed.
11441
11442         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
11443         g_return_if_fail
11444
11445 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
11446
11447         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
11448         reordering/sorting work.  Now pretty much works.
11449
11450         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
11451         reorder mostly work.  Still need to get the parity correct.
11452
11453         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
11454         signal, so I can listen for the sort_column_changed signal so I
11455         can change my "sort_indicator" property.  Cool.
11456
11457 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
11458
11459         [ Patch from Havoc Pennington, hp@redhat.com ]
11460
11461         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
11462         Add functions gdk_window_begin_resize_drag/begin_move_drag
11463         to start resizing or moving a toplevel window. This
11464         is done either using the _NET_WM_MOVERESIZE protocol,
11465         or, if that isn't present, by emulation.
11466
11467         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
11468         to export the above to GTK+-land.
11469
11470         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
11471         
11472         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
11473         Move this function into gdkwindow, since we need it
11474         when implementing fallback resizing.
11475
11476         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
11477         Fix typo when setting gravity.
11478
11479         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
11480         Add an optional (but on by default) resize grip for resizing 
11481         the parent window.
11482
11483 01-03-29  Alexander Larsson  <alexl@redhat.com>
11484
11485         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
11486         Don't return TRUE from the event handler, that blocks all
11487         event signals on the tooltip widget. Now you can press buttons
11488         in toolbars again.
11489
11490 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
11491
11492         * gtk/testtext.c (create_buffer): Add missing NULL on
11493         valist.
11494
11495         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
11496         c-n-p problem with INCONSISTENT property.
11497
11498         [ Patch from Havoc Pennington  <hp@redhat.com> ]
11499
11500         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
11501         hook.
11502
11503         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
11504         signal as a hook for extending the default popup menu
11505
11506         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
11507         use radio menu items for the input method menuitems
11508
11509         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
11510         inserted unicode from Ctrl-Shift-hex input method
11511
11512         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
11513         validatation here, already done at GtkTextBuffer level.
11514
11515         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
11516         popup_menu run action signal and Shift+F10 and Menu keybindings.
11517
11518         * gtk/gtkentry.c: implement a default handler for popup_menu
11519
11520         * gtk/gtktextview.c: implement a default handler for popup_menu
11521
11522         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
11523         from a key event
11524         
11525         * gtk/gtklabel.c: remove "trailer" cruft
11526
11527 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
11528
11529         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
11530         handle reordering of trees.  Seems to mostly work w/ the exception
11531         of the parity flag.
11532
11533         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
11534         signal.
11535
11536 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
11537
11538         * gtk/gtkwidget.h: c++ fixes.
11539
11540 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
11541
11542         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
11543         memory.
11544
11545 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
11546
11547         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
11548         Nils Barth fixing event return values. (#51041)
11549
11550         * gtk/gtkwidget.c: Fix some return values for default
11551         functions.
11552
11553         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
11554         return values for trough_keys functions.
11555
11556         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
11557         value for add_accelerator (shoudl have been a void
11558         return.)
11559
11560         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
11561         Fix return type of EVENT.
11562
11563         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
11564         signal return a boolean.
11565
11566 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
11567
11568         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
11569         reordered signal.
11570
11571         * tests/testtreesort.c (main): fix spelling.
11572
11573 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
11574
11575         * gtk/gtkliststore.c: More work on implementing sortable
11576         interface.
11577
11578 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
11579
11580         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
11581         reference the widgets in the resulting list. (#11821)
11582         This makes this consistent with gtk_container_children.
11583
11584         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
11585         uses of gtk_window_list_toplevels.
11586
11587 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
11588
11589         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
11590         a virtual function to set whether the IM context should use 
11591         the preedit string. (#51922)
11592         
11593 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
11594
11595         * gdk/gdkpango.h: Remove stale FIXME comment.
11596
11597 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
11598
11599         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
11600         Fixed bug that returned NULL if a filename was selected.
11601
11602 2001-03-24  Havoc Pennington  <hp@pobox.com>
11603
11604         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
11605         to contain the word "theme"
11606
11607 2001-03-24  Havoc Pennington  <hp@pobox.com>
11608
11609         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
11610         slower but finer-grained
11611         (gtk_hsv_focus): get initial focus on the ring or triangle 
11612         according to tab direction
11613
11614         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
11615
11616 2001-03-23  Havoc Pennington  <hp@pobox.com>
11617
11618         * gtk/gtkhsv.c: make this somewhat key-navigable
11619
11620         * gtk/gtkfontsel.c: mnemonics
11621
11622         * gtk/gtkgamma.c: mnemonics
11623
11624         * gtk/gtkcolorsel.c: add mnemonics to labels
11625
11626 2001-03-22  Havoc Pennington  <hp@pobox.com>
11627
11628         Applied big patch from Seth Lytle to fix event handler return
11629         values, slightly modified.
11630
11631         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
11632         handled.
11633         (gtk_calendar_key_press): return TRUE for GDK_space triggers
11634         select_day
11635
11636         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
11637         (gtk_clist_button_release): return TRUE if handled
11638
11639         * gtk/gtkcolorsel.c (mouse_release):
11640         (palette_activate): 
11641         (palette_press): 
11642         (palette_new): 
11643         (mouse_press): 
11644         (get_screen_color): 
11645         fixed return type (void to gboolean), return TRUE,
11646         added GTK_SIGNAL_FUNC cast
11647
11648         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
11649         (void to gboolean), and return TRUE
11650         (gtk_combo_button_release): changed return value to TRUE after
11651         gtk_grab_add on combo->popwin
11652
11653         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
11654         collapse or expand
11655
11656         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
11657         button/motion
11658
11659         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
11660         press/release and motion that trigger act
11661
11662         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
11663
11664         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
11665         for GDK_Return
11666         
11667         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
11668         (gtk_list_button_release): return TRUE if selection
11669
11670         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
11671         press
11672
11673         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
11674         (gtk_menu_shell_button_release): chain parent_menu_shell retval
11675
11676         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
11677         nothing triggered
11678         (gtk_notebook_button_release): return TRUE if we do anything
11679
11680         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
11681         (gtk_spin_button_button_release): return TRUE or chained retval
11682
11683         * gtk/gtktext.c (gtk_text_button_press): 
11684         (gtk_text_button_release): return TRUE
11685         (gtk_text_key_press): remove redundant retval code
11686         
11687         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
11688         and sensitive
11689         (gtk_tree_item_subtree_button_click): changed type to gint, and return
11690         TRUE if sensitive
11691
11692         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
11693         return TRUE
11694
11695 2001-03-23  Havoc Pennington  <hp@redhat.com>
11696
11697         * gtk/testgtk.c: fix warnings
11698
11699         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
11700
11701         * gtk/gtktextview.c: fix warnings
11702
11703         * gtk/gtktext.c (find_cursor_at_line): fix warning
11704
11705         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
11706
11707         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
11708         of this function
11709
11710         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
11711         fix warning
11712
11713         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
11714
11715         * gtk/gtkfontsel.c: fix warning
11716
11717         * gtk/gtkcolorsel.c: fix warnings
11718
11719 2001-03-23  Havoc Pennington  <hp@redhat.com>
11720
11721         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
11722
11723         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
11724
11725         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
11726         and deprecated gtk_check_menu_item_set_show_toggle().
11727         
11728         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
11729
11730         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
11731
11732         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
11733
11734 2001-03-23  Havoc Pennington  <hp@redhat.com>
11735
11736         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
11737         some docs
11738
11739 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
11740
11741         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
11742         this.
11743
11744         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
11745         set_cell to set_value
11746
11747         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
11748         set_cell to set_value
11749
11750 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
11751
11752         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
11753         fix braino.
11754         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
11755         support.
11756
11757         * gtk/gtktreeview.c: Addition of initial sortable support.
11758
11759         * gtk/gtktreestore.c: Addition of initial sortable support.
11760
11761         * gtk/gtkliststore.c: Addition of initial sortable support.
11762
11763         * gtk/gtkmarshal.list: yet another marshaller.
11764
11765         * gtk/gtktreedatallist.[ch]: shared code between the store models
11766         for handling sorting headers.
11767
11768 2001-03-22  Havoc Pennington  <hp@redhat.com>
11769
11770         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
11771         (gtk_container_unset_focus_chain): Add ability to override the 
11772         focus chain for a container explicitly
11773
11774 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
11775
11776         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
11777         added PROP_MNEMONIC_WIDGET.
11778
11779         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
11780         (gtk_window_remove_mnemonic): 
11781         (gtk_window_add_mnemonic): fixed assertions.
11782         (gtk_window_activate_mnemonic): constrain modifier checks to those
11783         permitted by gtk_accelerator_get_default_mod_mask().
11784         got rid of gtk_window_get_default_accel_group().
11785
11786         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
11787         activatable widgets either by focussing or a warning.
11788         added a signal accumulator to ::activate_mnemonic which stops the
11789         emission once a handler returned TRUE.
11790
11791 2001-03-22  Havoc Pennington  <hp@pobox.com>
11792
11793         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
11794         the stock item label
11795
11796         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
11797
11798         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
11799
11800         * demos/gtk-demo/*.c: Add mnemonics all over the place
11801
11802         * gtk/gtklabel.h: mark parse_uline deprecated
11803
11804 2001-03-21  Alexander Larsson  <alexl@redhat.com>
11805
11806         * gtk/gtkitemfactory.[ch]:
11807         Add support for stock and normal imagemenuitems.
11808         
11809         * gtk/testgtk.c:
11810         Add some tests for mnemonics, stock toolbars, stock
11811         and image menuitems in itemfactory and gdk_window_scroll.
11812
11813 2001-03-21  Alexander Larsson  <alexl@redhat.com>
11814
11815         * gtk/gtkbutton.[ch]:
11816         * gtk/gtkdialog.c:
11817         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
11818         removed accel_group argument. Renamed gtk_button_new_accel() to
11819         gtk_button_new_with_mnemonic() and removed accel_group argument.
11820
11821         * gtk/gtkcheckbutton.[ch]:
11822         New function gtk_check_button_new_with_mnemonic().
11823
11824         * gtk/gtkentry.c:
11825         Override activate_mnemonic and just grab focus.
11826
11827         * gtk/gtkitemfactory.c:
11828         Don't add menu uline accel group, instead use mnemonics support.
11829
11830         * gtk/gtklabel.[ch]:
11831         New support for mnemonics.
11832
11833         * gtk/gtkmarshal.list:
11834         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
11835
11836         * gtk/gtkmenu.[c]:
11837         * gtkmenushell.c:
11838         Use mnemonics instead of accel groups for uline
11839         support in menu items.
11840         Removed gtk_menu_get_uline_accel_group() and
11841         gtk_menu_ensure_uline_accel_group().
11842
11843         * gtk/gtkmenuitem.c:
11844         Override activate_mnemonic to handle switching between
11845         menu items if there are collisions.
11846         
11847         * gtk/gtknotebook.c:
11848         Connect to activate_mnemonic on the tab_label, so that
11849         activating it switches to that notebook page.
11850
11851         * gtk/gtkwidget.[ch]:
11852         Add activate_mnemonic signal. New function
11853         gtk_widget_activate_mnemonic() to emit it.
11854         Default implementation does activate/grab_focus.
11855
11856         * gtk/gtkwindow.[ch]:
11857         Add support for mnemonics in windows.
11858         New functions:
11859         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
11860         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
11861
11862         * gtk/testgtk.c:
11863         Update to function name changes.
11864         
11865 2001-03-21  Alexander Larsson  <alexl@redhat.com>
11866
11867         * gtk/gtkimagemenuitem.[c]:
11868         Add gtk_image_menu_item_new_from_stock()
11869
11870 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
11871
11872         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
11873         Fix buglet in meeting.
11874
11875 2001-03-19  Havoc Pennington  <hp@redhat.com>
11876
11877         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
11878         add a bunch of accessor functions. This is because we have
11879         reasonable expectations of extending what fields it contains in
11880         the future.
11881
11882         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
11883         changes
11884
11885         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
11886         GtkIconSource   
11887
11888 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
11889
11890         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
11891         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
11892
11893         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
11894           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
11895           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
11896           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
11897         Change float to double everywhere with the exception of 0<->1.0 alignment
11898         and GtkCurve.
11899
11900 2001-03-19  Tor Lillqvist  <tml@iki.fi>
11901
11902         * gdk/win32/gdkdrawable-win32.c
11903         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
11904         output.
11905
11906         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
11907         gdkwin32.h.
11908
11909 2001-03-18  Tor Lillqvist  <tml@iki.fi>
11910
11911         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
11912         print_event_state, print_event): Use preprocessor macro to make
11913         code more compact. Print also GDK_WINDOW_STATE events.
11914         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
11915         
11916         * gtk/gtk.def
11917         * gtk/makefile.mingw.in: Update.
11918
11919         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
11920         to catch also Cygwin.
11921
11922 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
11923
11924         * gtk/gtkspinbutton.[hc]: added rc-style argument
11925         GtkSpinButton::shadow_type.
11926         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
11927         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
11928         rc-style settings.
11929
11930         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
11931
11932         * gtk/gtkwidget.c: quark cleanups.
11933
11934         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
11935         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
11936         to create_rc_style() (we don't do cloning in standard OO sense).
11937         added per rc style properties.
11938         
11939         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
11940         property values and for caching those. some cleanups.
11941         
11942         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
11943         
11944         * gtk/gtksettings.[hc]: new file for global rc-file properties
11945         (at least currently, should get extended to support X properties
11946         and other communication mechanisms).
11947         
11948         * gtk/gtkwidget.[hc]: added style property support:
11949         (gtk_widget_class_install_style_property_parser): install style
11950         property pspec with parser function for rc-file values other
11951         than LONG, DOUBLE or STRING.
11952         (gtk_widget_class_install_style_property): same as above without
11953         parser (parsers are going to be needed quite infrequently).
11954         (gtk_widget_style_get_property): retrive style property value.
11955         (gtk_widget_style_get_valist): same as above with varargs support,
11956         has NOCOPY semantics.
11957         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
11958
11959 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
11960
11961         * demos/gtk-demo/main.c (row_activated_cb): modified to use
11962         "row_activated" signal.
11963
11964         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
11965         stupidity.  Lets actually pass in the row with this signal...
11966
11967 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
11968
11969         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
11970
11971         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
11972
11973         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
11974         everything into the ::destroy function, and freed a lot more.
11975
11976 2001-03-16  Havoc Pennington  <hp@redhat.com>
11977
11978         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
11979         instead of gint16, to avoid overflow issues, since sizes > 16-bit
11980         are now allowed.
11981
11982 2001-03-16  Havoc Pennington  <hp@redhat.com>
11983
11984         * Applied patch from Nils Barth (bug # 51041) to 
11985         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
11986         in various places.
11987
11988 2001-03-15  Havoc Pennington  <hp@redhat.com>
11989         
11990         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
11991         for properties to set on the tag.
11992
11993         * gtk/testtext.c: fixups to reflect create_tag change
11994         
11995         * gtk/gtktexttag.c (gtk_text_tag_set_property):
11996         background/foreground stipple are objects, not boxed.
11997
11998         * demos/gtk-demo/textview.c: intellihancing
11999
12000 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
12001
12002         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
12003         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
12004
12005 2001-03-16  Alexander Larsson  <alexl@redhat.com>
12006
12007         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
12008         Fix sign error with queued region translations.
12009
12010 2001-03-15  HideToshi Tajima  <tajima@happy>
12011
12012         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
12013         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
12014         * gtk/gtkentry.c (update_im_cursor_location): 
12015         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
12016         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
12017         set_cursor_pos to set_cursor_location in GtkInputContext class
12018
12019 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
12020
12021         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
12022         the location of the cell relative to its area.
12023         * gtk/gtkcell*: modified for above change
12024         * gtk/gtktreeview.c: modified for above change.
12025
12026 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
12027
12028         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
12029          (gtk_tree_view_finalize): actually unref the model.  Thanks to
12030         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
12031
12032 2001-03-14  Havoc Pennington  <hp@redhat.com>
12033
12034         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
12035         
12036         * gtk/gtk.h: remove gtkdata.h
12037
12038         * gtk/Makefile.am: remove gtkdata
12039         
12040         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
12041         not "disconnect" on the adjustments.
12042         
12043         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
12044         GtkData
12045
12046         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
12047         not GtkData
12048
12049         * configure.in: handle case where X render exists, but Pango lacks
12050         Xft support.
12051
12052 2001-03-15 Alexander Larsson  <alexl@redhat.com>
12053
12054         * gtk/gtktoolbar.[ch]:
12055         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
12056         to add stock items to toolbars.
12057
12058         * gtk/Makefile.am:
12059         Remove ../gdk/gdkim.h from gdk_headers.
12060
12061 2001-03-15  Sven Neumann  <sven@gimp.org>
12062
12063         * gdk/gdkim.h: removed
12064         
12065         * gdk/gdkprivate.h
12066         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
12067
12068 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
12069
12070         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
12071         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
12072         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
12073         set_cursor_pos() virtual method
12074
12075         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
12076         (gtk_im_context_xim_set_cursor_pos): add implementation for
12077         set_cursor_pos() method
12078
12079         * gtk/gtkentry.c (recompute_idle_func): set current cursor
12080         position to input methods
12081
12082 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
12083
12084         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
12085         code a lot.
12086
12087         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
12088         g_mem_chunk.
12089         (_gtk_tree_data_list_alloc): use g_mem_chunk.
12090         (_gtk_tree_data_list_node_to_value): Fix to switch on
12091         G_TYPE_FUNDAMENTAL.
12092         (_gtk_tree_data_list_value_to_node): Fix to switch on
12093         G_TYPE_FUNDAMENTAL.
12094         (_gtk_tree_data_list_node_copy): Fix to switch on
12095         G_TYPE_FUNDAMENTAL.
12096
12097 2001-03-12  Havoc Pennington  <hp@redhat.com>
12098
12099         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
12100         to convert to new property API. Also, change default_width and
12101         default_height get_property to return 0 as the flag value for
12102         "unset"; -1 is not a valid value for these fields.
12103
12104 2001-03-12  Havoc Pennington  <hp@redhat.com>
12105
12106         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
12107         enum with registration for icon sizes, instead of strings.
12108
12109         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
12110         gtkwidget.c: Fix to reflect GtkIconSize
12111         
12112 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12113
12114         Make GtkFB compile and link.
12115         
12116         * gdk/linux-fb/gdkdrawable-fb2.c:
12117         window->mapped to GDK_WINDOW_IS_MAPPED(). 
12118         
12119         * gdk/linux-fb/gdkwindow-fb.c:
12120         window->mapped to GDK_WINDOW_IS_MAPPED(). 
12121         Added gdk_window_shape_combine_region.
12122         Added assorted placeholders for unimplemented new GdkWindow API calls.
12123
12124 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12125
12126         * gtk/gtkfilesel.c:
12127         Add more test when converting filenames from/to utf-8.
12128         Don't allow entering text in the filename entry which isn't allowed in
12129         a filename. Just beep instead.
12130
12131 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12132
12133         * gtk/gtkclist.c:
12134         Scroll using gdk_window_scroll(). Don't wait for exposes.
12135         Move the column headers in an order that makes them flash less.
12136
12137 2001-03-10  Hans Breuer  <hans@breuer.org>
12138
12139         * gdk/gdk.def : updated
12140
12141         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
12142         to offseting the clip_mask at the right place
12143
12144         * gdk/win32/gdkwindow-win32.c : don't create background brushes
12145         for all the gdkClasses, especially not for the input_only case.
12146         Otherwise flickering wont be avoidable, because we don't get
12147         WM_ERASEBKGND message for these windows.
12148
12149         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
12150         and fixed massive redraw problems apparently triggered by Alexanders 
12151         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
12152         but it seems to work quite well :-)
12153
12154         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
12155         prototype
12156
12157 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
12158
12159         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
12160         (gtk_list_store_set_cell): Fix a stupid typo.
12161
12162 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
12163
12164         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
12165         select_all not work if you're in SINGLE mode (it doesn't make that
12166         much sense, anyway.)
12167
12168         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
12169         handle types more sanely.
12170         (_gtk_tree_data_list_value_to_node): handle types more sanely.
12171         (_gtk_tree_data_list_node_copy): handle types more sanely.
12172
12173         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
12174         GValue better. Converts the type as well.
12175
12176         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
12177         GValue better. Converts the type as well.
12178
12179 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
12180
12181         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
12182         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
12183         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
12184         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
12185
12186         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
12187         gdk_im/gdk_ic.
12188
12189 2001-03-09  Hans Breuer  <hans@breuer.org>
12190
12191         * gdk/gdk.def : updated
12192
12193         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
12194         for their palette
12195
12196         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
12197         removing
12198
12199         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
12200         removing and implemented Havoc's GdkWindow state functions; 
12201         stick/unstick only as no-op, cause I don't know how to emulate 
12202         on win32 ...
12203
12204         * gtk/gtk.def : updated
12205
12206         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
12207
12208         * gtk/gtktypeutils.c : #include <string.h>
12209
12210         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
12211
12212 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
12213
12214         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
12215         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
12216         not a boxed.
12217
12218 2001-03-09  Alexander Larsson  <alexl@redhat.com>
12219
12220         * docs/Changes-2.0.txt:
12221         Document expose event->region change and that gtk_widget_event
12222         doesn't allow passing expose events.
12223
12224         * gdk/gdkevents.h:
12225         Add region to expose event.
12226         
12227         * gdk/gdkevents.c:
12228         Handle event->region in gdk_event_copy() and gdk_event_free().
12229
12230         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
12231         Generate expose_event->region when creating expose events.
12232
12233         * gdk/x11/gdkevents-x11.c:
12234         Generate expose events with regions when translating X events.
12235
12236         * gtk/gtkcontainer.[ch]:
12237         Default expose handler that propagates expose events to NO_WINDOW
12238         children. New function gtk_container_propagate_expose()
12239
12240         * gtk/gtkwidget.[ch]:
12241         Moved gtk_widget_event implementation to gtk_widget_event_internal.
12242         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
12243         expose events. New function gtk_widget_send_expose() to send expose
12244         events. New function gtk_widget_region_intersect() to calculate
12245         window/region intersections.
12246         
12247         * gtk/gtkmain.c (gtk_main_do_event):
12248         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
12249         Use gtk_widget_send_expose() to send expose events.
12250         
12251         * gtk/gtkbin.c:
12252         * gtk/gtkbox.c:
12253         * gtk/gtkfixed.c:
12254         * gtk/gtkimagemenuitem.c:
12255         * gtk/gtklist.c:
12256         * gtk/gtkpacker.c:
12257         * gtk/gtktable.c:
12258         * gtk/gtktree.c:
12259         Remove expose handler, using the default container implementation
12260         instead.
12261         
12262         * gtk/gtkbutton.c:
12263         * gtk/gtkcheckbutton.c:
12264         * gtk/gtkeventbox.c:
12265         * gtk/gtkfixed.c:
12266         * gtk/gtkhandlebox.c:
12267         * gtk/gtklayout.c:
12268         * gtk/gtklistitem.c:
12269         * gtk/gtkmenu.c:
12270         * gtk/gtkmenubar.c:
12271         * gtk/gtkmenuitem.c:
12272         * gtk/gtknotebook.c:
12273         * gtk/gtkoptionmenu.c:
12274         * gtk/gtkpaned.c:
12275         * gtk/gtkscrolledwindow.c:
12276         * gtk/gtktogglebutton.c:
12277         * gtk/gtktoolbar.c:
12278         * gtk/gtktreeitem.c:
12279         * gtk/gtkviewport.c:
12280         Chain expose handler to parent class handler. Use
12281         gtk_container_propagate_expose() to propagate exposes.
12282
12283         * gtk/gtkclist.c (check_exposures):
12284         * gtk/gtktext.c (process_exposes):
12285         Use gtk_widget_send_expose instead of gtk_widget_event.
12286
12287 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
12288
12289         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
12290
12291 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
12292
12293         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
12294         unref the nodes.   Fixes bug #50058.
12295
12296         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
12297         "::ref_iter" to "::ref_node".
12298         (gtk_tree_model_unref_node): change "::unref_iter" to
12299         "::unref_node". Fixes bug #50064.
12300
12301 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
12302
12303         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
12304         support for invisible cells.
12305          (gtk_tree_view_bin_expose): ditto
12306
12307 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
12308
12309         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
12310         on gobjects.
12311
12312         * tests/testtreefocus.c (main): New test file.
12313
12314         * tests/testtreeview.c: update to latest glib changes.
12315
12316         * tests/testtreecolumns.c: update to latest glib changes.
12317
12318 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
12319
12320         * gtk/testgtk.c: re-enabled event watcher emission hooks.
12321
12322 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
12323
12324         * *.c: added accumulator data argument to g_signal_newc()
12325         functions.
12326
12327         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
12328         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
12329         * gtk/treestoretest.c (make_window):
12330         s/g_signal_connect/g_signal_connectc/.
12331
12332         * gtk/gtktextbuffer.c: completed signal arg fixups,
12333         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
12334
12335 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
12336
12337         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
12338         G_CONST_RETURN.
12339
12340         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
12341         ::hierarchy-changed signal when a widget changes
12342         from anchored to unanchored or vice versa.
12343         (anchored means 
12344          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
12345         Use a private flag to keep track of this efficiently.
12346
12347 2001-03-07  Havoc Pennington  <hp@redhat.com>
12348
12349         * gtk/testgtk.c (create_spins): uglify so that size request gets
12350         tested.
12351
12352         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
12353         request on values for upper/lower, completes #6152
12354
12355 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
12356
12357         * Makefile.am: Remove gtk-config-2.0 again.
12358         (Grrrr, pkg-config. And stops make loops.)
12359
12360 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
12361
12362         * gtk/gtksignal.[hc]: removed old emission hook API.
12363         
12364         * docs/Changes-2.0.txt: fixed sections.
12365         
12366         * gtk/gtktextbuffer.c: signal arg fixups.
12367
12368 2001-03-07  Havoc Pennington  <hp@redhat.com>
12369
12370         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
12371
12372         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
12373         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
12374         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
12375         validation and the redraw which is higher priority than the
12376         validation.
12377
12378 2001-03-07  Havoc Pennington  <hp@redhat.com>
12379
12380         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
12381         (gtk_entry_set_property): remove trailer
12382
12383         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
12384         (gtk_entry_get_width_chars): new functions, to set size request to 
12385         a given number of characters
12386
12387         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
12388
12389         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
12390         (gtk_dialog_get_has_separator): new function
12391         (run_delete_handler): fix to not emit "response" signal
12392         because we already did in the delete event handler installed
12393         at dialog creation time.
12394         
12395         * gtk/gtkdialog.h: add a has_separator property,
12396         add GTK_DIALOG_NO_SEPARATOR flag
12397
12398 2001-03-07  Havoc Pennington  <hp@redhat.com>
12399
12400         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
12401         off decorations for a window.
12402
12403         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
12404         changes
12405
12406         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
12407         to get location of PangoLayout inside the label, closes #51198
12408
12409         * gtk/testgtk.c (create_bbox): fix up button box usage
12410
12411         * gtk/testcalendar.c (create_calendar): fix up button box usage
12412
12413         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
12414
12415         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
12416
12417         * gtk/gtkhbbox.h: deprecations
12418
12419         * gtk/gtkvbbox.h: deprecations
12420
12421         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
12422         emulate deprecated gtk_button_box_get_spacing
12423
12424         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
12425         the "set global default" functions
12426         (struct _GtkButtonBox): remove "spacing" field, use the one from 
12427         GtkBox base class
12428
12429         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
12430
12431         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
12432         render the icon, return the missing image icon.
12433
12434         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
12435         image icon if the load fails.   
12436
12437         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
12438         when no image is found; should be the Netscape "missing image"
12439         icon eventually but for now is a random image
12440
12441         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
12442         role for the session manager
12443
12444         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
12445
12446         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
12447         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
12448
12449         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
12450
12451 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
12452
12453         * gtk/*.c: marshaller fixes.
12454         
12455         * gtk/gtkmarshal.list: extreme cleanup.
12456
12457         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
12458         param spec for now.
12459
12460         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
12461         where appliable.
12462
12463         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
12464         special cased autogenerated boxed types from gtktypebuiltins_ids.c
12465         which are not reference counted:
12466         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
12467         PangoFontDescription, GtkTreeIter and GtkTreePath.
12468
12469 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
12470
12471         * gtk/gtktreeselection.h: 
12472         * gtk/gtktreemodel.c:
12473         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
12474         file should be included directly, and gobject/gmarshal.h
12475         as well as gtk/gtkmarshal.h even can't be included directly.
12476
12477         * Makefile.am: grr, install gtk-config-2.0.
12478
12479         * gtk/testgtk.c:
12480         * gtk/simple.c:
12481         * gtk/gtkmenu.c:
12482         * gtk/gtkitemfactory.c: use g_object_connect() instead of
12483         passing "*signal*::*" args to gtk_widget_set().
12484         
12485         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
12486         
12487         * gtk/*.c: removed trailer arg from property setters and getters.
12488         macro fixups.
12489
12490 2001-03-07  Alexander Larsson  <alexl@redhat.com>
12491
12492         * gtk/gtklabel.c (set_markup): Removed warning
12493
12494 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
12495
12496         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
12497         field to allow you to hide cell renderers.
12498
12499         * gtk/gtkcellrenderer.c: Add support for invisible cells.
12500
12501         * gtk/gtktreeview.c: Add support for invisible cells.
12502
12503 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
12504
12505         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
12506         Add "clicked" signal back to columns.
12507
12508         * ChangeLog: remove conflict markers.
12509
12510 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
12511
12512         * gtk/gtkbutton.c: Add animation of activation by, on 
12513         activate, pressing the button, and adding a timeout that 
12514         releases the button after 250ms or on key release and
12515         emits ::clicked. (#51501)
12516
12517         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
12518         action area, we connect to ::clicked instead of ::activate
12519         so the dialog stays up through the animation.
12520
12521 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
12522
12523         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
12524         check the ignore_enter flag for the menu shell that
12525         the item is actually a child of, not for attached
12526         submenus. (#51536)
12527
12528 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
12529
12530         * gtk/gtkmain.c (gtk_propagate_event): Only do special
12531         special key-press grab handling for widgets within
12532         GtkWindows. Otherwise, fall through to normal case.
12533
12534         This prevents key events being sent twice to GtkInvisible
12535         widgets, which can cause all sorts of mischief.
12536
12537 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
12538
12539         * gtk/gtkmain.c (gtk_propagate_event): When a grab
12540         widget is in effect, give the grab widget a first
12541         crack at KEY_PRESS/RELEASE events. (#424)
12542
12543 2001-03-06  James Henstridge  <james@daa.com.au>
12544
12545         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
12546         offset for the window_state_event to point at window_state_event
12547         rather than no_expose_event.
12548
12549 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
12550
12551         * gtk/gtkimmodule.h: fix busted /* comment */
12552
12553 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
12554
12555         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
12556         object properties.
12557
12558 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
12559
12560         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
12561         add object properties.
12562
12563         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
12564         to add object properties.
12565
12566         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
12567         object properties.
12568
12569         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
12570         add object properties.
12571
12572         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
12573         object properties.
12574
12575 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
12576
12577         * gtk/gtktreemodel.c: renamed "child_toggled" to
12578         "has_child_toggled".
12579
12580         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
12581         handle new signal name.
12582
12583         * gtk/gtktreestore.c: Updated to handle new signal name.
12584         * gtk/gtklisttore.c: Updated to handle new signal name.
12585         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
12586
12587 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12588
12589         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
12590         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
12591
12592 2001-03-05  Michael Natterer  <mitch@gimp.org>
12593
12594         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
12595         pixbuf-engine coincidentially also failed to make one of it's
12596         parent_class pointers static, causing overwriting of GtkLabel's
12597         parent_class pointer in pixbuf_style_class_init().
12598         (Will commit the fix to the pixbuf-engine too).
12599
12600 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12601
12602         * gdk/gdkwindow.h:
12603         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
12604         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
12605         gdk_window_set_icon_list for net wmspec functionality.
12606
12607         * gdk/x11/gdkwindow-x11.c:
12608         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
12609         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
12610         gdk_window_set_icon_list.
12611         Added gdk_wmspec_change_state helper function and used it in the code.
12612         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
12613
12614         * gtk/gtkdialog.c (gtk_dialog_init):
12615         Set GDK_WINDOW_TYPE_HINT_DIALOG.
12616
12617         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
12618         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
12619
12620         * gtk/gtkwindow.c:
12621         new function gtk_window_set_type_hint.
12622         On realize, set type hint and modal hint.
12623
12624         * gtk/gtkwindow.h:
12625         Added type_hint field and gtk_window_set_type_hint.
12626
12627 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12628
12629         * gtk/gtklabel.[ch]:
12630         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
12631         New function gtk_label_get_accel_keyval () to get the underline accelerator
12632         of the label. Setting the label pattern overrides other attributes.
12633
12634 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
12635
12636         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
12637         Added missing initializers to gtk_rc_style_init().
12638
12639 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
12640
12641         * gtk/gtktextview.c: fixed bug #51097 about setting 
12642         gtk_text_view_set_border_window_size() if the widget is 
12643         already realized.
12644
12645 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
12646
12647         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
12648
12649         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
12650         comment. Won't do to have duplicated doc comments between
12651         the platform subdirs.
12652
12653 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
12654
12655         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
12656           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
12657
12658         Detectable auto-repeat - make a repeating key generate
12659         press/press/press/release instead of press/release pairs.
12660
12661         If we have Xkb and XkbSetDectableAutoRepeat supports
12662         that, we do it that way. Otherwise, when we get
12663         a release event, we check ahead with XPending to see
12664         if the next key is a KeyPress with the same keycode
12665         and timestamp. (Not 100% reliable, but pretty close.)
12666           
12667 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
12668         
12669         * gtk/gtkmain.c (gtk_propagate_event): Only do special
12670         special key-press grab handling for widgets within
12671         GtkWindows. Otherwise, fall through to normal case.
12672  
12673         This prevents key events being sent twice to GtkInvisible
12674         widgets, which can cause all sorts of mischief.
12675  
12676 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
12677  
12678         * gtk/gtkmain.c (gtk_propagate_event): When a grab
12679         widget is in effect, give the grab widget a first
12680         crack at KEY_PRESS/RELEASE events. (#424)
12681  
12682 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
12683
12684         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
12685         to extend the selection. (Roughly based on patch
12686         from Jay Cox, #50939)
12687
12688         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
12689         to properly handle previous GDK_BUTTON_PRESS. 
12690         (Patch from Jay Cox, #50938)
12691
12692         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
12693         '\0' back along with the deleted text. (#51148)
12694
12695 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
12696
12697         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
12698         the group when extracting it from the X keyboard event.
12699
12700         * modules/input/Makefile.am modules/input/imipa.c: 
12701         Simple module for entering IPA. (Do we need a 
12702         gtk-stupid-input-tricks CVS module?)
12703
12704 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
12705
12706         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
12707         const.
12708
12709         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
12710
12711         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
12712         is no focus widget for the dialog currently, grab the focus as well
12713         as the default.
12714
12715         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
12716         the action area's children to iterate through, not the
12717         dialog's children.
12718
12719 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
12720
12721         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
12722         Add plug-socket tests. (Won't work worth a darn until I commit
12723         the rest of the plug-socket changes, but no reason these
12724         can't go into CVS now.)
12725
12726 2001-03-02  Havoc Pennington  <hp@redhat.com>
12727
12728         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
12729         _gdk_region_get_xrectangles()
12730
12731         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
12732
12733         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
12734
12735         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
12736         function, contributed by Ron Steinke    
12737
12738         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
12739         gdk_net_wm_supports
12740
12741         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
12742         New function, contributed by Ron Steinke
12743
12744         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
12745         used to line up the text in the entry when using the entry for
12746         editable sheet cell hacks
12747
12748         * gtk/testgtk.c (create_entry): test the activate_default setting
12749         on GtkEntry
12750
12751         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
12752         cause the entry to activate the default button for a dialog when 
12753         activated
12754         (gtk_entry_get_activates_default): new function
12755
12756 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
12757
12758         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
12759         Hwang to move call to sync_selection() up a few lines
12760         to before the row list is modified, to fix crash when
12761         removing rows in the undo_selection list.
12762
12763         (Test case provided by Daniel Elstner:
12764
12765         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
12766
12767 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
12768
12769         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
12770         of tree->root_tree in parent_set rather than _map(), 
12771         fixing #50892 in a bit better manner.
12772
12773 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
12774
12775         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
12776
12777 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
12778
12779         * gtk/gtkstyle.c : Remove duplicate fwd decl for
12780         gtk_default_draw_shadow.
12781
12782 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
12783
12784         * gdk/gdkimage.c (gdk_image_new): Remove excess 
12785         warning, make warnings more verbose, treat a error
12786         in shmat as permanent, and don't try again.
12787         (#51163, Ed Randall.)
12788
12789 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
12790
12791         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
12792         delay for the first click before starting to scroll.
12793         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
12794
12795         * gtk/gtktext.c: GtkText should have I-beam cursor. 
12796         (based on gtk-enf-990513-1.patch, Eric Fisher.)
12797
12798 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
12799
12800         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
12801         cleanup to remove some references to unused
12802         ->xoffset, ->yoffset.
12803
12804 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
12805
12806         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
12807         mask. (#51039, fix from Martin Maierhofer)
12808
12809 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
12810
12811         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
12812         for unshifted + and shifted = for non-us keyboards.
12813         Make <Control>+ and <Control>- work as well as 
12814         <Control>KP_Plus, <Control>KP_Minus for recursive
12815         open/close.  (#2682, René Seindal)
12816
12817 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
12818
12819         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
12820         the active menu item before deactivating the menu,
12821         so gtk_menu_popdown doesn't change the history. (#50964)
12822         
12823 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
12824
12825         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
12826         draw lines with text_gc rather than black_gc.
12827         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
12828
12829 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
12830
12831         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
12832         Move handling of buttons fully in gtktreeviewcolumn.  This code is
12833         less interrelated then it was, but it still requires the
12834         GtkTreeView to map it.
12835
12836         * test/testtreecolumn.c: Now I can add a column to one view,
12837         remove it, add it to the another view, remove it, then re-add it
12838         to the first.  Nifty.
12839
12840 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
12841
12842         * docs/tutorial/gtk-tut.sgml: Minor corrections
12843
12844 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
12845
12846         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
12847         GtkRowReference.
12848
12849 2001-02-28  Havoc Pennington  <hp@redhat.com>
12850
12851         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
12852         draw_default
12853         (gtk_widget_draw_focus): remove this function; we could instead
12854         make it just gtk_widget_draw(), but in most cases I think the
12855         result would be broken user code, so think it's better to have
12856         that code not compile and get fixed
12857         (gtk_widget_draw_default): ditto
12858
12859         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
12860         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
12861         
12862         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
12863         widgets lose/get the default, instead of calling draw_default
12864         
12865         * docs/Changes-2.0.txt: note about all this
12866
12867         Then fixed every widget in GTK, I won't list all the filenames.
12868
12869 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
12870
12871         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
12872         _gtk_tree_row_reference_deleted.
12873         (inserted_callback): Proxy out to
12874         _gtk_tree_row_reference_inserted.
12875         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
12876         get around signal emission ordering problem.
12877
12878         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12879         fix to work with SINGLE 
12880         (_gtk_tree_selection_internal_select_node): Major sanitization on
12881         selections.  SINGLE now seems to work.
12882
12883         * tests/Makefile.am: add testtreecolumn.c:
12884
12885         * tests/testtreecolumn.c: New test.  Mostly points out selection
12886         bugs currently, but will test columns later.
12887
12888         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
12889         selection bug.  I hate touching this code -- it's scary.
12890
12891 2001-02-26  Havoc Pennington  <hp@redhat.com>
12892
12893         * gtk/testgtk.c: test the window state stuff
12894
12895         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
12896         window come to the user's attention as if it were just created
12897         (gtk_window_iconify): new function
12898         (gtk_window_deiconify): new function
12899         (gtk_window_stick): new function
12900         (gtk_window_unstick): new function
12901         (gtk_window_maximize): new function
12902         (gtk_window_unmaximize): new function
12903
12904         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
12905
12906         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
12907
12908         * gdk/x11/gdkevents-x11.c: create window state events when
12909         appropriate
12910         (gdk_wmspec_supported): new function
12911
12912         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
12913         iconification before showing the window
12914         (gdk_window_deiconify): new function
12915         (gdk_window_stick): new function
12916         (gdk_window_unstick): new function
12917         (gdk_window_maximize): new function
12918         (gdk_window_unmaximize): new function
12919
12920         * gdk/gdkwindow.c: store the window state in the window; 
12921         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
12922         window->mapped.
12923         (gdk_window_get_state): return the current window state
12924
12925         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
12926         (gdk_event_get_state): handle GDK_WINDOW_STATE
12927         (gdk_synthesize_window_state): function to create the window state
12928         events
12929
12930         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
12931         event, for changes to "window state" such as maximized, sticky, 
12932         etc.
12933         
12934         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
12935         focuses a window
12936
12937         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
12938         finds out if we support a given WM spec hint
12939
12940 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
12941
12942         * docs/faq/gtk-faq.sgml: New question re memory leaks.
12943
12944 2001-02-25  Hans Breuer  <hans@breuer.org>
12945
12946         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
12947         cause we want to loose those prototypes only in the latter case
12948
12949         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
12950         GdkPixmapImplWin32 because it itsn't derived from it. Use the
12951         impl member variable instead
12952
12953         * gtk/gtk.def : updated
12954
12955         * gtk/gtklist.c : 
12956         * gtk/gtkmenus.c : include <string.h> for memset ()
12957
12958         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
12959         for everthing built here, but for gtk-x.x.dll only. This solves
12960         problem of indifferent gtk type definitions
12961
12962 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
12963
12964         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
12965
12966 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
12967
12968         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
12969         column that is exposed.
12970
12971         (_gtk_tree_view_update_size): Changed name from set_size, and
12972         changed function to do more work, and not force people calling it
12973         to figure out the size.  Simplifies a lot of code elsewhere.
12974
12975 2001-02-23  Alexander Larsson  <alexl@redhat.com>
12976
12977         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
12978         return solid masks for xpms that have no transparent color.
12979         This makes the ..._create_from_xpm... API backwards
12980         compatible.
12981
12982 2001-02-23  Tor Lillqvist  <tml@iki.fi>
12983
12984         * README.win32: Update. Mention the gtk-1-3-win32-production
12985         branch.
12986
12987         * gdk/win32/bdfcursor.c: New file. A program that generates
12988         xcursors.h. Thanks to Stefan Ondrejicka.
12989
12990         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
12991         compact format.
12992
12993         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
12994
12995         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
12996         function, uses xcursors.h.
12997         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
12998         cursor from inline data instead of using LoadCursor() to generate
12999         it from a resource.
13000
13001         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
13002         event, must check the Windows message for mouse button state, as
13003         the GDK event state might not have been built if it is
13004         undelivered. Remove one goto.
13005
13006         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
13007         SetCursor() if the current cursor as returned by GetCursor() is
13008         the window's previous cursor. The ChildWindowFromPoint() test
13009         apparently didn't work correctly.
13010
13011         * gdk/win32/rc/*.cur: Remove.
13012
13013         * gdk/win32/rc/gdk.rc.in: Remove cursors.
13014
13015         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
13016
13017         * gtk/makefile.{mingw,msc}.in: Updates.
13018
13019 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
13020
13021         * gtk/gtktreemodel.h: add functions for signal emission.
13022
13023         * gtk/gtktreestore.c: move to use above functions instead of
13024         g_signal_emit.
13025
13026         * gtk/gtkliststore.c: ditto
13027
13028 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
13029
13030         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
13031         GObject instead of GtkObject.
13032
13033         * gtk/gtkliststore.c: ditto.
13034
13035         * gtk/gtktreemodelsort.c: ditto.
13036
13037         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
13038         GtkTreeModelIface, instead of in each model.
13039
13040 2001-02-21  Havoc Pennington  <hp@redhat.com>
13041
13042         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
13043         unbreak this function
13044
13045         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
13046         properties
13047
13048         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
13049         properties
13050
13051         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
13052         properties
13053
13054         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
13055         mean unset the max length
13056
13057 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
13058
13059         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
13060         Changed name to be set_cell_data_func to make it clear what
13061         the functino does.  Close bug #51069.
13062
13063 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
13064
13065         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
13066         have memory actually freed.  Keeps box running longer.
13067
13068 2001-02-21  Alexander Larsson  <alexl@redhat.com>
13069         
13070         * gtk/gtkseparatormenuitem.[ch]:
13071         Added new menu separator item. The drawing and size handling
13072         is still done in GtkMenuItem, but the API is a bit more sane.
13073         
13074         * gtk/Makefile.am:
13075         Add gtkseparatormenuitem.[ch].
13076
13077         * gtk/gtk.h:
13078         Add gtkseparatormenuitem.h.
13079         
13080         * gtk/gtkentry.c:
13081         * gtk/gtkmenufactory.c:
13082         * gtk/gtktextview.c:
13083         Use the new API for menu separators.
13084         
13085         * demos/gtk-demo/menus.c (create_menu):
13086         Add some GtkSeparatorMenuItem demo code.
13087
13088 2001-02-20  Havoc Pennington  <hp@redhat.com>
13089
13090         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
13091         Lee Mallabone
13092
13093         * gtk/gtkarrow.c: Convert to new property API, patch from 
13094         Lee Mallabone
13095
13096 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
13097
13098         * tests/testtreeview.c (toggled_callback): fix to reflect change
13099         in GtkTreeModelStore.
13100
13101 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
13102
13103         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
13104         function to create an icon set from a pixbuf.
13105
13106 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13107
13108         * gtk/gtkcellrenderertext.[ch]:
13109         Add a "markup" property.
13110
13111         * gtk/treestoretest.c:
13112         Use the markup property, remove some leftover stuff from
13113         GtkTreeModelMapping.
13114
13115 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13116
13117         * gtk/gtklabel.c (gtk_label_set_selectable):
13118         Queue a redraw if the selectable setting was changed.
13119
13120 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13121
13122         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
13123         Actually copy the whole gc, not just the public parts.
13124         
13125         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
13126         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
13127         labels.
13128
13129 2001-02-19  Havoc Pennington  <hp@pobox.com>
13130
13131         * gdk/gdkwindow.c: docs
13132
13133         * gdk/gdkrgb.c: docs
13134
13135         * gdk/gdkregion-generic.c: docs
13136
13137         * gdk/gdkgc.c (gdk_gc_set_values): docs
13138
13139         * gdk/gdkdraw.c: docs
13140
13141         * gdk/gdkdrawable.h: deprecate drawable get/set data
13142
13143 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
13144
13145         * demos/gtk-demo/dialog.c: Add simple new demo.
13146
13147 2001-02-19  Havoc Pennington  <hp@redhat.com>
13148
13149         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
13150         insert_child_anchor signal, bug #50245
13151
13152         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
13153         from create_child_anchor, so the anchor is passed in
13154
13155         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
13156         (_gtk_widget_segment_new): have the child anchor object passed in, 
13157         instead of creating it.
13158
13159         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
13160         to gtk_text_buffer_get_modified
13161
13162 2001-02-19  Havoc Pennington  <hp@redhat.com>
13163
13164         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
13165         changed GLib without fixing GTK
13166
13167         * gtk/gtkrange.h: Rename all the stupid implementation detail 
13168         functions to have an underscore in front. Most of them should 
13169         probably just go away, but for starters don't export them.
13170         Bug #50482
13171
13172 2001-02-19  Havoc Pennington  <hp@redhat.com>
13173
13174         * gdk/gdkcolor.h: test was backward, so deprecated functions were
13175         excluded by default
13176
13177         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
13178         clean up the old code a bit
13179
13180         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
13181         inconsistent state
13182
13183         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
13184         draw inconsistent state
13185
13186         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
13187         (create_menu): add inconsistent test
13188
13189         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
13190         new function
13191         (gtk_check_menu_item_get_inconsistent): new function
13192         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
13193         state (using etched in for now)
13194
13195         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
13196         draw inconsistent state
13197
13198         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
13199         function, used when the user has selected a range of stuff in
13200         different states
13201         (gtk_toggle_button_get_inconsistent): accessor for that
13202         (gtk_toggle_button_paint): draw inconsistent state (etched in?
13203         don't know what else to do)
13204
13205 2001-02-19  Hans Breuer <hans@breuer.org>
13206
13207         * gtk/gtk.def : updated exported symbols
13208
13209         * gtk/makefile.msc.in : updated
13210
13211         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
13212         a colormap, when invoked from testgtk::entry. I'm not sure where
13213         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
13214         avoids immediate crashing ...
13215
13216         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
13217         any objections ?
13218
13219         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
13220         0 parameter. At least msvc doesn't like macros with var args. 
13221         I simply removed the extra 0, was it a feature or a typo ?
13222
13223         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
13224         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
13225         because the value assignment to the internal struct wasn't working.
13226         I'm not absolutely sure. The problem could have been resolved by
13227         changing the "func" declartion in the struct, but was the pointer
13228         to the function pointer intended ?
13229
13230         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
13231
13232         * gdk/gdk.def : updated exported symbols
13233
13234         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
13235         only use SetDIBitsToDevice if there is a palette at the drawable
13236         and the image is GDK_VISUAL_PSEUDO_COLOR
13237
13238         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
13239
13240         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
13241
13242         * gdk/*/makefile.msc : updated
13243
13244 2001-02-19  Havoc Pennington  <hp@redhat.com>
13245
13246         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
13247         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
13248
13249         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
13250         (gdk_key_repeat_restore): nuke
13251
13252         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
13253         (gdk_init_check): no atexit func
13254
13255         * gdk/gdkrgb.h: mark some stuff deprecated
13256
13257         * gdk/gdkcolor.h: mark some stuff deprecated
13258         
13259         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
13260
13261         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
13262
13263 2001-02-16  Havoc Pennington  <hp@redhat.com>
13264
13265         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
13266         scroll steps.
13267
13268         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
13269         steps, and add Ctrl-arrow shortcuts for paging visually as with
13270         HScale, since Page Up and Page Down move logically.
13271
13272         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
13273         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
13274         
13275         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
13276         steps
13277         (gtk_range_scroll): handle the visual steps
13278
13279         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
13280         scroll steps
13281
13282         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
13283         steps, not the logical ones.
13284
13285         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
13286         (scroll_vertical): handle up/down steps
13287
13288 2001-02-19 Alexander Larsson  <alexl@redhat.com>
13289
13290         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
13291         Copy data and free data with free().
13292
13293         * gdk-pixbuf/gdk-pixbuf.c:
13294         * gdk-pixbuf/io-jpeg.c:
13295         * gdk-pixbuf/io-png.c:
13296         Use g_try_malloc/g_free instead malloc/free.
13297         
13298         * gdk-pixbuf/test-gdk-pixbuf.c:
13299         Must... initialize... gobject...
13300         
13301         * gdk-pixbuf/pixops/timescale.c:
13302         * gtk/gtkcalendar.c:
13303         Use g_malloc instead of malloc.
13304         
13305 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
13306
13307         * gtk/testgtkrc:
13308         Comment out property assignments, these don't work yet.
13309
13310 2001-02-17  Havoc Pennington  <hp@pobox.com>
13311
13312         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
13313         bit.
13314
13315 2001-02-17  Havoc Pennington  <hp@pobox.com>
13316
13317         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
13318         shadowed variables that had broken size request in some cases,
13319         leading to bogus tooltips (#50996)
13320
13321 2001-02-06  Jon K Hellan  <hellan@acm.org>
13322
13323         Implement fast browsing of tooltips, bug #50619
13324         
13325         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
13326         and last_popdown
13327         
13328         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
13329         use_sticky_delay and last_popdown.
13330         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
13331         time of popdown.
13332         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
13333         is NULL.
13334         (gtk_tooltips_recently_shown): New static function.  Return true
13335         if < sticky_delay has elapsed since last popdown.
13336         (gtk_tooltips_event_handler): Display window after sticky_delay
13337         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
13338         since last popdown.
13339         
13340 2001-02-17  Havoc Pennington  <hp@pobox.com>
13341
13342         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
13343         instead of (). #6394
13344
13345         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
13346         G_CONST_RETURN, make it return by reference, #50473
13347         
13348 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
13349
13350         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
13351         generated ENTER_NOTIFY event with 0, otherwise not explicitely
13352         setup fields contain garbage (e.g. subwindow, breaking
13353         gdk_drawable_ref() upon event copy).
13354         (gtk_menu_stop_navigating_submenu_cb): same here.
13355
13356         * gtk/gtklist.c (gtk_list_vertical_timeout): 
13357         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
13358         * gtk/gtkclist.c (vertical_timeout): 
13359         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
13360         default-zero-intialization for unions to memset(,0,), as unions are
13361         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
13362         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
13363
13364         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
13365         g_closure_sink() warning.
13366
13367         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
13368         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
13369         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
13370         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
13371         
13372 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
13373
13374         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
13375         gtk_*_store_get, and moved to GtkTreeModel.
13376
13377         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
13378
13379         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
13380
13381         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
13382
13383         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
13384         set the func.
13385
13386         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13387         freeze/thaw notify between setting all the properties for a cell.
13388
13389         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
13390
13391 2001-02-15  Havoc Pennington  <hp@redhat.com>
13392
13393         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
13394         the X coordinates so they're with respect to the line, rather than 
13395         with respect to the layout.
13396
13397         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
13398         Mallabone
13399
13400         * gtk/testgtk.c (create_range_controls): add vscale tests, 
13401         and inverted test
13402
13403         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
13404         #50806
13405
13406         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
13407
13408         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
13409         gtk_text_iter_is_end
13410
13411         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
13412         rename gtk_text_buffer_get_end_iter
13413
13414         * gtk/testgtk.c (create_labels): Add test for selectable
13415
13416         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
13417         the selection stuff. This code is kind of broken since it doesn't 
13418         use the theme engine.
13419
13420         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
13421         fix infinite loop and y offset problem
13422         (gdk_draw_layout_line_with_colors): fix foreground color handling
13423
13424         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
13425         that makes the label selectable.
13426         
13427         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
13428         layout when the style is set, since fonts etc. could have changed.      
13429
13430 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
13431
13432         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
13433
13434         * gtk/gtktreemodelsimple.[ch]: removed.
13435
13436 2001-02-16  Alexander Larsson  <alexl@redhat.com>
13437
13438         * gtk/gtktreemodelmapping.[ch]:
13439         New files. Implement GtkTreeModelMapping.
13440         
13441         * gtk/Makefile.am:
13442         Add gtktreemodelmapping.[ch].
13443         
13444         * gtk/gtk.h:
13445         Add gtktreemodelmapping.h
13446
13447         * gtk/treestoretest.c:
13448         Test the GtkTreeModelMapping
13449
13450 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
13451
13452         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
13453         have a demo, we might as well pass in real values.  Thanks to
13454         clahey for pointing this out.
13455
13456 2001-02-14  Havoc Pennington  <hp@pobox.com>
13457
13458         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
13459         "static" to a private function
13460         (gtk_image_menu_item_class_init): remove destroy handler,
13461         add "image" object property
13462
13463 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
13464
13465         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
13466         Add a shortcut if the window and the current clip_region doesn't
13467         overlap. This is needed when there are a lot of windows in a
13468         window. The layout test in testgtk is a good test.
13469
13470         * gdk/linux-fb/gdkwindow-fb.c:
13471         Whitespace fix.
13472
13473 2001-02-13  Sven Neumann  <sven@convergence.de>
13474
13475         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
13476
13477 2001-02-13  Alexander Larsson  <alexl@redhat.com>
13478
13479         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
13480         Don't reference last_cursor if it is null. Fixes crash when rotating
13481         the screen before having moved the mouse.
13482
13483         * gdk/linux-fb/gdkcc-fb.c: Zapp!
13484
13485         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
13486
13487         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
13488         when using 90 or 270 degrees rotation.
13489
13490 2001-02-12  Havoc Pennington  <hp@pobox.com>
13491
13492         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
13493         it always set the foreground, even if we were only using
13494         a stipple.
13495         (gdk_draw_layout_line_with_colors): new function, allow
13496         override colors
13497         (gdk_draw_layout_with_colors): new function, allow override
13498         colors
13499         (gdk_pango_layout_line_get_clip_region): function to get the clip
13500         region for a logical text range
13501         (gdk_pango_layout_get_clip_region): get the clip region for a
13502         logical text range
13503
13504         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
13505         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
13506         the right number of arguments.
13507
13508         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
13509         enhance the function to check that node data corresponds to a 
13510         view still belonging to the tree.
13511
13512         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
13513         GtkTreePath
13514         (gtk_tree_view_inserted): ditto
13515         (gtk_tree_view_child_toggled): ditto
13516
13517         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
13518         simplify this code.
13519
13520         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
13521         a PangoAttrList
13522
13523         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
13524
13525         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
13526
13527         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
13528         size in the size request 
13529         (gtk_menu_bar_size_allocate): consider toggle size here
13530
13531         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
13532         that displays a widget in the toggle slot
13533
13534         * gtk/testgtk.c: test GtkImageMenuItem
13535
13536         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
13537         
13538         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
13539         request and allocation
13540
13541         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
13542
13543         * gtk/gtkcheckmenuitem.c
13544         (gtk_check_menu_item_toggle_size_request): ditto
13545         
13546 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
13547
13548         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
13549         reference.
13550
13551         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
13552         and refuse to initialize GTK+ if they fail.
13553
13554 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
13555
13556         * configure.in: Add check for gtk-doc version.
13557
13558 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
13559
13560         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
13561         where the xpad/ypad was only being used on one side!
13562
13563 2001-02-11  Tor Lillqvist  <tml@iki.fi>
13564
13565         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
13566         function, copied from X11 version.
13567
13568         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
13569         DestroyCursor failures. The reason for the problem (despite the
13570         inconsistent messages from GetLastError()) was that
13571         DestroyCursor() cannot be called while a cursor is set in a
13572         window. Set the new cursor first and then destroy the old one.
13573         Thanks to jpe@archaeopteryx.com.
13574
13575         * gdk/win32/gdkcc-win32.c: Remove.
13576
13577         * gdk/win32/Makefile.am: Remove from here, too.
13578         
13579         * gdk/gdk.def
13580         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
13581
13582         * gtk/gtk.def
13583         * gtk/makefile.mingw.in: Updates.
13584
13585 2001-02-08  Havoc Pennington  <hp@redhat.com>
13586
13587         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
13588         add a widget to a bin that already has a child.
13589
13590         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
13591
13592         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
13593         
13594         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
13595
13596         * gdk/gdk.h: remove gdkcc.h
13597
13598         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
13599
13600         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
13601         GdkPixbuf, since the previous implementation was GdkColorContext
13602         dependent.
13603
13604         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
13605         
13606 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
13607
13608         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
13609         a sane value!
13610
13611 2001-02-08  Havoc Pennington  <hp@redhat.com>
13612
13613         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
13614         lighten them.
13615
13616 2001-02-08  Havoc Pennington  <hp@redhat.com>
13617
13618         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
13619         validation idle
13620
13621         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
13622         cell renderer
13623
13624         * demos/pixbuf-demo.c (timeout): remove deprecated
13625         gtk_widget_draw
13626
13627         * demos/testpixbuf-save.c (main): remove deprecated
13628         gtk_drawing_area_size
13629
13630         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
13631         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
13632         at the start of the allocation.
13633         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
13634         unsetup or NULL model.
13635
13636         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
13637         even/odd/sorted cells in the tree view.
13638
13639         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
13640         bugfixes
13641
13642         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
13643         backgrounds with draw_flat_box using different detail for even/odd
13644         rows.
13645
13646         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
13647         row, so we can draw the alternating colors thing
13648
13649         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
13650         property from a synonym property, notify for the synonym.
13651         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
13652         (gtk_text_tag_get_property): Always return the font, even if
13653         all its fields aren't set
13654
13655         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
13656         store the attr list; it leaves us with no way to change attributes
13657         in _render according to the render flags, and no way to implement
13658         get_property. Instead store all the specific text attributes. 
13659         Separate whether an attribute is enabled from its value. Sync all
13660         properties with GtkTextTag, make them all consistent, etc.
13661
13662         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
13663         renderers can highlight the sort row/column     
13664
13665         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
13666         accessor functions to get values; this has the side effect of
13667         showing up which accessor functions were missing. Added those.
13668
13669         * gtk/gtktreeviewcolumn.h: Replace set_justification with
13670         set_alignment, to be consistent with GtkLabel, GtkMisc
13671
13672         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
13673         arrow.
13674
13675         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
13676
13677         * gtk/gtktreesortable.h: updates in here
13678
13679 2001-02-07  Sven Neumann  <sven@convergence.de>
13680
13681         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
13682         pango dimensions after painting the background. We used to draw
13683         gigantic flat boxes here.
13684
13685 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
13686
13687         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
13688         error introduced with earlier commit) (pointed out by
13689         Ollie Lho)
13690
13691 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
13692
13693         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
13694         which are no longer necessary.
13695
13696 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
13697
13698         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
13699
13700 2001-02-04  Tor Lillqvist  <tml@iki.fi>
13701
13702         * gdk/gdk.def
13703         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
13704         Provide dummy implementations.
13705
13706 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
13707
13708         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
13709
13710         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
13711         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
13712         deprecated this function.
13713
13714         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
13715         argument.
13716
13717 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
13718
13719         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
13720
13721 2001-02-03  Havoc Pennington  <hp@pobox.com>
13722
13723         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
13724         Mikael Hermansson with patch from Mikael (if there was a toggle
13725         start one after the first character in the range, this function
13726         was broken). Bug #50380
13727
13728 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
13729
13730         * configure.in: Remove confusing comment about X11.
13731
13732 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
13733
13734         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
13735         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
13736         
13737 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
13738
13739         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
13740         it breaks things on BSD. If you want to compile GTK+ with
13741         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
13742         when configuring, since GTK+ simply can't be "pure ANSI" 
13743         in the header files it uses. (#8170, Greg Hudson)
13744
13745 2001-02-02  Havoc Pennington  <hp@redhat.com>
13746
13747         * gtk/gtkwindow.c: docs
13748
13749         * gtk/gtkwidget.c: docs
13750         (gtk_widget_set_colormap): add a reference to the colormap
13751         (gtk_widget_get_default_colormap): add a reference to the colormap
13752
13753         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
13754
13755         * gtk/gtktextiter.c: docs
13756
13757         * gtk/gtkmain.c (gtk_propagate_event): docs
13758
13759         * gtk/gtkpaned.c (gtk_paned_get_position): docs
13760         (gtk_paned_set_position): docs
13761
13762         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
13763         sort interface, no implementation yet.
13764
13765         * demos/testpixbuf.c (new_testrgb_window): replace
13766         gtk_drawing_area_size() with gtk_widget_set_usize()
13767
13768         * demos/testpixbuf-drawable.c (main): ditto
13769         
13770         * gtk/testgtk.c: remove use of GtkStatusbarMsg
13771
13772         * gtk/gtktextbuffer.c: docs
13773
13774         * gtk/gtkstock.c: docs
13775
13776         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
13777
13778         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
13779
13780         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
13781         
13782         * gtk/gtkimage.c: add some docs in here
13783         (gtk_image_size_request): change name of
13784         gtk_widget_render_stock_icon
13785         (gtk_image_get_icon_set): don't dup returned string
13786         (gtk_image_get_icon_set): don't dup returned string
13787
13788         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
13789         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
13790         and gtkiconfactory.h functions
13791
13792         * gtk/gtkiconfactory.c: add some docs in here
13793
13794         * gtk/gtkmain.c (gtk_get_default_language): document
13795         (gtk_get_current_event): document
13796         (gtk_get_current_event_state): document
13797         (gtk_get_event_widget): document
13798
13799         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
13800
13801         * gtk/gtkcontainer.c: Add some documentation
13802         (gtk_container_add): give a more explanatory warning on adding an
13803         already-parented widget, this is kind of a FAQ and also a common
13804         typo that's easier to debug with a nice warning 
13805
13806         * gtk/gtkcellrenderertoggle.c
13807         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
13808         adding this, it's useless
13809         (gtk_cell_renderer_toggle_set_active): remove
13810         (gtk_cell_renderer_toggle_get_radio): add
13811
13812         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
13813         the NULL cell renderer, that doesn't make any sense to me. 
13814
13815         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
13816         demo code should never use deprecated features.
13817
13818         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
13819         code should never use deprecated features.
13820
13821         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
13822         gtk_widget_queue_clear_area deprecated
13823
13824         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
13825         deprecated
13826
13827         * gtk/gtklabel.h: mark gtk_label_get() deprecated
13828
13829         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
13830         a GdkImage deprecated, replaced by new consistently-named
13831         functions       
13832
13833         * gtk/gtkmain.h: Mark gtk_exit() deprecated
13834
13835         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
13836
13837         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
13838         deprecated
13839
13840         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
13841         so it won't appear in docs and confuse people.
13842
13843         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
13844
13845         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
13846         macros deprecated. (can't mark the type itself deprecated, since
13847         GtkProgressBar is not deprecated and we need the type decl to use
13848         GtkProgressBar)
13849
13850         * gtk/gtkpixmap.h: Mark deprecated
13851
13852         * gtk/gtkoldeditable.h: Mark deprecated
13853
13854         * gtk/gtklist.h: Mark deprecated
13855
13856         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
13857         for anything anymore.
13858
13859         * gtk/gtkctree.h: Mark deprecated
13860
13861         * gtk/gtkclist.h: Mark deprecated
13862
13863         * gtk/gtkpreview.h: Mark deprecated
13864
13865         * gtk/gtkpacker.h: Mark deprecated
13866
13867         * gtk/gtktipsquery.h: Mark deprecated
13868
13869         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
13870
13871         * gtk/gtkvruler.h: Add comment that it will move out of GTK
13872
13873         * gtk/gtkhruler.h: Add comment that it will move out of GTK
13874
13875         * gtk/gtkruler.h: Add comment that it will move out of GTK
13876
13877         * gtk/gtkgamma.h: Add comment that it will move out of GTK
13878
13879         * gtk/gtkcurve.h: Add comment that it will move out of GTK
13880
13881 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
13882
13883         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
13884         gdk_colormap_sync private since it was never exported
13885         in a header file.
13886
13887         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
13888         colormap->colors[] for StaticGray, StaticColor colormaps.
13889
13890         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
13891         was being used as if it was image->bits_per_pixel.
13892
13893         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
13894         for the image in the GdkImage structure since it isn't
13895         reconstructable, and we need it to handle packed types
13896
13897         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
13898         the assumption that on Win32 image->bits_per_pixel == image->depth,
13899         always.
13900
13901         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
13902
13903         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
13904         warning message if no converter can be found. 
13905
13906 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
13907
13908         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
13909         chars to isupper() / tolower(). (#567)
13910
13911         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
13912         to clear up 64-bit warnings. (#567)
13913
13914 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
13915
13916         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
13917         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
13918
13919         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
13920         since some people set $(libdir) separately. (#1290, David Kaelbling)
13921
13922 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
13923
13924         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
13925         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
13926         MAXPATHLEN, but the code here depends on a fixed value.)
13927         (#4524)
13928
13929 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
13930
13931         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
13932         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
13933
13934 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
13935
13936         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
13937         viewable there is no way that moving the node will cause the 
13938         focus row to become not viewable, so omit check on the visibility
13939         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
13940
13941 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
13942
13943         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
13944         selection before inserting new text.
13945
13946 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
13947
13948         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
13949         Make the sensitivity of the reparented child track that of
13950         the original parent menu item. (#34218, David Hodson)
13951
13952         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
13953         the case where the current item is destroyed properly.
13954
13955         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
13956         some edge cases with child-less menuitems.
13957         
13958 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
13959
13960         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
13961         key pop down window. (#12074, Jon K Hellan)
13962
13963 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
13964
13965         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
13966         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
13967         The solution here isn't perfect - you get an extraneous
13968         emission of "toggle", which could conceivably confuse an app,
13969         but better than the current situation. LXR search seems to
13970         indicate that no apps in GNOME CVS connect to "toggle".
13971
13972 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
13973
13974         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
13975         gtk_public_h_sources to directly here to avoid warning when
13976         building srcdir != builddir. (#9656)
13977
13978 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
13979
13980         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
13981         handlers in gtkrange.c return the proper values (TRUE == handled)
13982         (#10316).
13983
13984         This is just the tip of the iceberg, but gtkrange.c is the
13985         most common place where the propagation is problematical,
13986         and also a place where it is almost certainly safe to change
13987         this in the stable branch.
13988
13989         (You don't want right click popups on a range control or anything...)
13990
13991 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
13992
13993         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
13994         area on focus out, even if a background pixmap isn't set.
13995         (#13941)
13996         
13997 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
13998
13999         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
14000         to deal with setting the shape properly when scrolling arrows are
14001         turned on, but not visible because there is sufficient space.
14002         (#13432)
14003
14004 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
14005
14006         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
14007         items with submenus, destroy the item along with the submenu.
14008         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
14009         properly.
14010
14011         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
14012         later.
14013
14014 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
14015
14016         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
14017         the focus widget sometimes wasn't drawn with the default if there
14018         was no default widget.
14019
14020         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
14021         unreference pixmaps. 
14022
14023         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
14024         for some extra safety.
14025
14026 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
14027
14028         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
14029         the text of a cell to the old pointer value better, by
14030         copying the new text before freeing the old text. Some code
14031         cleanup. (#8079, Karl Nelson)
14032
14033 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
14034
14035         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
14036         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
14037
14038 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
14039
14040         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
14041         item from a menu, check to see if it matches 
14042         menu->old_active_menu_item, and if so, unref and clear
14043         old_active_menu_item (Patch from Pavel Cisler)
14044
14045         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
14046         menu_shell->active_menu_item, if it is the child being
14047         removed. (Patch based on that of Gene Ragan, #50337)
14048
14049 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
14050
14051         * gdk/linux-fb/gdkselection-fb.c: 
14052         * gdk/linux-fb/gdkcolor-fb.c: 
14053         * gdk/linux-fb/gdkdrawable-fb2.c: 
14054         * gdk/linux-fb/gdkfont-fb.c: 
14055         * gdk/linux-fb/gdkim-fb.c: 
14056         * gdk/linux-fb/gdkinput.c: 
14057         * gdk/linux-fb/gdkkeyboard-fb.c: 
14058         * gdk/linux-fb/gdkmain-fb.c: 
14059         * gdk/linux-fb/gdkrender-fb.c: 
14060         A bunch of whitespace cleanup.
14061         
14062 2001-01-30  Havoc Pennington  <hp@pobox.com>
14063
14064         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
14065         #ifdef GTK_ENABLE_BROKEN.
14066
14067         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
14068         GTK_ENABLE_BROKEN just before including the broken headers.
14069         
14070         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
14071         deprecated types registered.
14072
14073         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
14074         we have to test the broken stuff.
14075
14076         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
14077         
14078 2001-01-30  Havoc Pennington  <hp@redhat.com>
14079
14080         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
14081         here where prev pointer was set to the wrong thing
14082
14083         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
14084         (gtk_tree_path_is_descendant): new function
14085
14086         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
14087         cached length
14088         (gtk_list_store_get_iter): don't modify iter if we can't get the
14089         path.
14090
14091         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
14092         
14093         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
14094         GtkTreeDragDest
14095
14096         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
14097         was causing segfault
14098
14099         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
14100         pointer to NULL
14101
14102         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
14103
14104         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
14105         on returning FALSE
14106         (gtk_list_store_iter_children): ditto
14107         (gtk_list_store_iter_nth_child): ditto
14108         (gtk_list_store_iter_nth_child): ditto
14109         (gtk_list_store_iter_parent): ditto
14110
14111         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
14112         on iter->user_data != NULL instead of silently accepting it.
14113         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
14114         we are returning TRUE.
14115         (gtk_tree_store_iter_children): ditto
14116         (gtk_tree_store_iter_nth_child): ditto
14117         (gtk_tree_store_iter_parent): ditto
14118         (gtk_tree_store_insert): remove handling of parent->user_data ==
14119         NULL, replace with parent == NULL       
14120
14121         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
14122         and a comment explaining things
14123
14124         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
14125         interface support to GtkTreeStore.
14126
14127         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
14128         FALSE if no prev, fix
14129
14130         * gtk/gtktreeview.c (set_source_row): use a row reference
14131         (set_dest_row): use a row reference
14132
14133 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
14134
14135         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
14136         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
14137         (gtk_tree_selection_select_iter): The same as above.
14138
14139 2001-01-26  Havoc Pennington  <hp@redhat.com>
14140
14141         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
14142         which holds a handle to a specific row (particular set of values
14143         in the model, i.e. pointer-identity row).
14144
14145         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
14146         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
14147         Still need to use it for the src/dest row saved on the drag context.
14148
14149 2001-01-26  Havoc Pennington  <hp@redhat.com>
14150
14151         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
14152
14153         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
14154         not offset by TREE_VIEW_HEADER_HEIGHT
14155         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
14156         TREE_VIEW_HEADER_HEIGHT
14157
14158         * configure.in (included_loaders): for me, --with-included-loaders
14159         generates the error "the specified loader yes does not exist",
14160         i.e. the arg defaults to "yes", so change test for value ""
14161         to test for value "yes", and include all loaders in that case.
14162
14163         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
14164
14165         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
14166         handle TREE_VIEW_VERTICAL_SEPARATOR
14167         (gtk_tree_view_bin_expose): fix to consider the row offset as
14168         pointing halfway into vertical separator.       
14169         (gtk_tree_view_draw_node_focus_rect): ditto
14170
14171         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
14172         --gtk-debug=updates, which causes gdk_window_set_debug_updates
14173         (TRUE) to be called.
14174
14175         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
14176         debug mode where the invalid region is colored in on invalidate,
14177         so you can see the flicker and know whether your redraw code is 
14178         doing a good job.
14179
14180         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
14181         tree window coordinates (clip rect is in tree window coords)
14182
14183         * gtk/Makefile.am: add gtktreednd.[hc]
14184
14185         * gtk/gtkliststore.c: implement gtktreednd interfaces.
14186
14187         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
14188         drag-and-drop data operations on a model (so we can set up tree
14189         drag-and-drop automatically)
14190
14191         * gtk/testgtk.c: Add a window to change sensitivity in the
14192         GtkLabel test; add a way to change the entry frame in GtkEntry
14193         test
14194
14195         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
14196         (gtk_entry_get_has_frame): new functions to remove the frame
14197         around an entry
14198         (gtk_entry_size_request): shrink requisition if no frame
14199         (gtk_entry_draw_focus): don't draw frame if no frame
14200
14201         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
14202         checks inside a cell renderer
14203         (gtk_default_draw_option): ditto for options
14204
14205         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
14206         children from the alignment, not the button
14207         (gtk_tree_view_column_init): ref/sink the column, to emulate
14208         GObject refcounting.
14209
14210         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
14211         
14212         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
14213         Use theme functions to draw the toggles 
14214
14215         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
14216
14217         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
14218         GdkPangoAttrEmbossed to use in rendering insensitive text
14219
14220         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
14221
14222         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
14223         using new GDK features
14224         
14225 2001-01-24  Alexander Larsson  <alexl@redhat.com>
14226
14227         * gtk/gtkimage.c:
14228         Splitted gtk_image_clear into gtk_image_clear() and
14229         gtk_image_reset(). Call gtk_image_clear() in ::destroy
14230         to avoid leaks.
14231
14232         * gtk/gtklabel.c (set_markup):
14233         Don't leak text.
14234
14235         * gtk/gtktextlayout.c:
14236         Always free display->shaped_objects.
14237
14238         * gtk/testgtk.c (create_clist):
14239         Don't leak custom style.
14240
14241 2001-01-23  Alexander Larsson  <alexl@redhat.com>
14242
14243         * gtk/gtkcolorsel.c (grab_color_at_mouse):
14244         Don't leak image. Simplify using gdk_colormap_query_color().
14245         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
14246
14247         * linux-fb/gdkcolor-fb.c:
14248         Implemented gdk_colormap_query_color.
14249
14250 2001-01-23  Alexander Larsson  <alexl@redhat.com>
14251
14252         * linux-fb/gdkcursor-fb.c:
14253         Don't leak built-in cursors.
14254
14255         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
14256         Don't leak tmp_points.
14257
14258         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
14259         Don't modify desc. Don't leak font if the PangoFont
14260         isn't found.
14261         
14262         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
14263         Free dash_list.
14264
14265         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
14266         Don't leak string.
14267         
14268 2001-01-20  Havoc Pennington  <hp@pobox.com>
14269
14270         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
14271         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
14272         me, matches Pango
14273
14274 2001-01-22  Havoc Pennington  <hp@redhat.com>
14275
14276         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
14277
14278         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
14279
14280         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
14281         Remove, move back to gdk-pixbuf
14282
14283         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
14284         to all the word functions
14285
14286         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
14287         before doing anything on NULL layout or if we don't have the focus
14288
14289         * gtk/testtext.c (fill_example_buffer): "justification"
14290
14291         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
14292         to be called "justification" not "justify"
14293
14294         * demos/gtk-demo/textview.c (create_tags): "justification"
14295         
14296         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
14297
14298 2001-01-22  Alexander Larsson  <alexl@redhat.com>
14299
14300         * gdk/gdkwindow.c (gdk_window_invalidate_region):
14301         Don't leak visible_region. Use visible_region instead of region.
14302         
14303         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
14304         Don't do extra gdk_drawable_ref(). This is not X.
14305         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
14306         gdk_fb_focused_window is ref:ed.
14307         (gdk_fb_window_send_crossing_events): Watch out for destroyed
14308         windows.
14309
14310 2001-01-22  Alexander Larsson  <alexl@redhat.com>
14311
14312         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
14313         Don't leak the PangoFontDescriptor.
14314
14315 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
14316
14317         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
14318         when not realized.
14319         (gtk_tree_view_scroll_to_cell): Make work when not realized.
14320         (gtk_tree_view_realize): add scroll_to support
14321         (gtk_tree_view_finalize): add a finalize method.  Populate.
14322         (gtk_tree_view_insert_column): ref and sink the column.
14323         (gtk_tree_view_append_column): ref and sink the column.
14324         (gtk_tree_view_queue_draw_node): New function to handle redrawing
14325         individual nodes.  Should make the code much more efficient, if
14326         actually used.
14327
14328 2001-01-19  Havoc Pennington  <hp@redhat.com>
14329
14330         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
14331         byte_offset variable was being used to mean both "offset into
14332         layout" and "offset into buffer line" which was no longer true
14333         with addition of preedit string; fix
14334
14335 2001-01-19  Havoc Pennington  <hp@redhat.com>
14336
14337         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
14338
14339         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
14340         function
14341
14342         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
14343         implement
14344
14345         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
14346         scroll_to_cell, matches TextView scroll functions better
14347         (gtk_tree_view_tree_to_widget_coords): new function
14348         (gtk_tree_view_widget_to_tree_coords): new function
14349         (gtk_tree_view_get_visible_rect): new function
14350         (gtk_tree_view_get_path_at_pos): accept negative coordinates
14351         (gtk_tree_view_draw_node_focus_rect): new function moved from
14352         draw_focus, also, use width of bin_window as width of the focus
14353         rect
14354         (gtk_tree_view_expand_row): fix bug where it didn't recognize
14355         already-expanded rows
14356         (gtk_tree_view_get_cell_rect): new function
14357         (gtk_tree_view_get_path_at_pos): return the click position
14358         relative to the passed-in cell
14359         (gtk_tree_view_set_expander_column): new function
14360
14361         * configure.in: remove gtk-config-2.0 chmod
14362
14363         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
14364         and properly handle drags with targets we don't understand
14365         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
14366         scrolling anyway
14367         (gtk_text_view_drag_drop): stop scrolling here though, and set the
14368         mark invisible
14369
14370         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
14371         function
14372         (gtk_drag_dest_get_target_list): new function
14373         (gtk_drag_dest_set_target_list): new function
14374         
14375         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
14376
14377         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
14378         related to drag-and-drop
14379
14380 2001-01-19  Alexander Larsson  <alexl@redhat.com>
14381
14382         * gdk/linux-fb/gdkprivate-fb.h:
14383         Define EMULATE_GDKFONT.
14384         Add extra pango_font stuff to GfkFontPrivate.
14385         
14386         * gdk/linux-fb/gdkdrawable-fb2.c:
14387         * gdk/linux-fb/gdkfont-fb.c:
14388         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
14389         emulation using PangoFont.
14390
14391 2001-01-17  Havoc Pennington  <hp@pobox.com>
14392
14393         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
14394         all the non-deprecated set_foo functions. Added missing object
14395         properties, and added g_object_notify() to setters. 
14396         Wrote docs.
14397         
14398 2001-01-18  Tor Lillqvist  <tml@iki.fi>
14399
14400         * gtk/gtkmain.c
14401         * gtk/gtkrc.c: (Win32) Use the new
14402         g_win32_get_package_installation_(sub)directory() functions.
14403
14404         * config.h.win32.in: New file.
14405         
14406         * config.h.win32: Removed.
14407
14408         * configure.in: Output config.h.win32.
14409
14410         * Makefile.am: Add it to EXTRA_DIST.
14411
14412         * gtk/gtk.def: Update.
14413
14414 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
14415
14416         * gtk/gtklabel.c (gtk_label_size_request): Set the
14417         attributes onto the PangoLayout even if they are newly
14418         created from label->pattern.
14419
14420 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
14421
14422         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
14423
14424         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
14425         structures in functions. Fixes bug where gtk_dataset_*
14426         was accidentally still being used in one place, causing
14427         every dest side event to be treated independently.
14428
14429         * gtk/gtkdnd.c: Remove last vestages of handling
14430         ::draw (fixes warning)
14431         
14432         * gtk/gtkentry.[ch]: Add drag and drop support.
14433
14434         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
14435         new function gtk_check_drag_threshhold() for checking
14436         to check if (dx,dy) has exceeded the threshhold for starting
14437         a drag and use it everywhere.
14438
14439 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
14440
14441         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
14442         add -I{includedir}/gtk-2.0.
14443
14444         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
14445         gdk/gdk-pixbuf.h: Doc fixups.
14446         
14447         * gtk/gtkobject.h: Remove trailing , from enum
14448
14449 2001-01-17 Alexander Larsson <alexl@redhat.com> 
14450
14451         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
14452         Doh! Mixed up x and y.
14453
14454         * gdk/linux-fb/gdkglobals-fb.c:
14455         Removed gdk_fb_pointer_grab_window_events,
14456         added _gdk_fb_pointer_grab_owner_events and
14457         _gdk_fb_keyboard_grab_owner_events.
14458
14459         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
14460         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
14461         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
14462         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
14463         Send crossing events after ungrab finished.
14464         (gdk_keyboard_grab): Set ..._owner_events
14465         (type_masks): Move out of function.
14466         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
14467         gdk_fb_keyboard_event_window): New functions, return the
14468         window an event should be targeted at. Handles grabs and
14469         event propagation. Can return NULL.
14470         (gdk_event_make): Remove event_mask checking. Now always
14471         returns an event.
14472                 
14473         * gdk/linux-fb/gdkkeyboard-fb.c:
14474         * gdk/linux-fb/gdkproperty-fb.c:
14475         * gdk/linux-fb/gdkselection-fb.c:
14476         Use new event_window/gdk_event_make() behaviour.
14477         
14478         * gdk/linux-fb/gdkmouse-fb.c:
14479         Use new event_window/gdk_event_make() behaviour.
14480         Only send motion events if in the same window.
14481         If grabbed, use cursor from window if sibling of grabbed
14482         window, and cursor from grabbed window otherwise.
14483
14484         * gdk/linux-fb/gdkprivate-fb.h:
14485         Update gdk_fb_window_send_crossing_events, gdk_event_make
14486         and grab varaible declarations. Add gdk_fb_*_event_window().
14487
14488         * gdk/linux-fb/gdkwindow-fb.c:
14489         Use new event_window/gdk_event_make() behaviour.
14490         Keep correct track of focus window.
14491         (gdk_window_set_events): Set all specific button motion masks
14492         if GDK_BUTTON_MOTION_MASK set.
14493
14494         * gtk/gtkdnd.c (gtk_drag_update):
14495         Free info->last_event if gdk_drag_motion returned FALSE.
14496
14497 2001-01-16  Tor Lillqvist  <tml@iki.fi>
14498
14499         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
14500         Eliminate redraws when input-only windows are shown or
14501         hidden. Thanks to jpe@archaeopteryx.com.
14502
14503 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
14504
14505         * docs/faq/gtk-faq.sgml: FAQ update:
14506           - Update to bugzilla
14507           - Add GTK+ and security/SUID/SGID
14508           - Add DnD question
14509
14510 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
14511
14512         * gdk/linux-fb/gdkdnd-fb.c:
14513         Some cleanups.
14514         
14515 2001-01-15  Havoc Pennington  <hp@pobox.com>
14516
14517         * tests/testtreeview.c: add test stuff for CellRendererToggle
14518
14519         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
14520         accessor
14521
14522         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
14523         only toggle on button press (would do release like GtkButton, but
14524         we'd need implicit grab code for treeview cells)
14525
14526 2001-01-16  Tor Lillqvist  <tml@iki.fi>
14527
14528         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
14529
14530         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
14531         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
14532
14533         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
14534         to g_{locale,filename}_{to,from}_utf8 to match current API.
14535
14536         * gtk/makefile.msc.in (gtk_OBJECTS)
14537         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
14538
14539         * gtk/gtk.def: Update.
14540
14541 2001-01-15  Tor Lillqvist  <tml@iki.fi>
14542
14543         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
14544         implementaion that more closely mimics the events that an X server
14545         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
14546         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
14547         with nested preview widgets, for instance, more responsive when
14548         you move the mouse quickly into them.
14549         (find_window_for_pointer_event): Make it actually compile.
14550         (gdk_event_translate): Set send_event to the value of
14551         InSendMessage (). This doesn't really mean the same as X11's
14552         send_event flag, but is close enough, says jpe@archaeopteryx.com
14553
14554 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14555
14556         * gdk/linux-fb/gdkdnd-fb.c:
14557         Implemented drag and drop.
14558         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
14559         when it tries to free and then copy the same event (info->last_event).
14560         I am not sure about why this happens, but will continue looking.
14561
14562 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14563
14564         * gdk/linux-fb/gdkwindow-fb.c:
14565         Use gdk_window_invalidate_rect instead of
14566         gdk_window_invalidate_rect_clear to minimise flashing.
14567         When hiding windows you need to clear the root window though.
14568
14569 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14570
14571         * gdk/linux-fb/gdkdrawable-fb2.c:
14572         For optization, add an full_shapes argument to gdk_fb_clip_region.
14573         If this is false, only the cliprects of the shapes are used.
14574
14575         * gdk/linux-fb/gdkprivate-fb.h:
14576         Export gdk_fb_window_peek_shape.
14577         Add full_shapes to gdk_fb_clip_region.
14578
14579         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
14580         When moving a window, don't clear everything under the it, just the
14581         root window. Makes stuff faster and flash less.
14582         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
14583         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
14584         offset of the shape.
14585         
14586
14587 2001-01-12  Havoc Pennington  <hp@redhat.com>
14588
14589         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
14590         current invalid region, fixes redraw bug while scrolling the 
14591         text widget
14592
14593         * gtk/gtktextview.c, gtk/gtktextview.h:
14594         Rearrange the scrolling/validation/etc. code in a major way, 
14595         so it seems to make sense to me. Probably isn't genuinely that
14596         much better, but...
14597
14598         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
14599         notifies
14600
14601         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
14602
14603 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
14604
14605         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
14606         Hide mouse pointer while rotation. Show it afterwards.
14607
14608 2001-01-12  Alexander Larsson  <alexl@redhat.com>
14609
14610         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
14611         windows in consideration when generating clip region.
14612
14613         * gdk/linux-fb/gdkfb.h:
14614         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
14615
14616         * gdk/linux-fb/gdkprivate-fb.h:
14617         Add shape to GdkWindowFBDatat.
14618         exported gdk_fb_window_get_abs_shape().
14619         removed gdk_fb_draw_lines declaration.
14620
14621         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
14622         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
14623         send focus changes when there is a grabbed window.
14624         (gdk_window_get_pointer): Handle shaped windows.
14625         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
14626         (gdk_fb_window_peek_shape): Returns the shape for a window,
14627         handles GDK_FB_USE_CHILD_SHAPE.
14628         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
14629         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
14630         (gdk_window_shape_combine_mask): Implement.
14631
14632         * gtk/gtkwindow-decorate.c:
14633         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
14634         setting the shape of a window makes the window transparent.
14635
14636 2001-01-11  Havoc Pennington  <hp@redhat.com>
14637
14638         * gtk/gtktreemodelsimple.h: Oops, broke some macros
14639
14640 2001-01-10  Havoc Pennington  <hp@redhat.com>
14641
14642         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
14643         add this function, bug 40251
14644
14645         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
14646         of type macro   
14647
14648 2001-01-11  Alexander Larsson  <alexl@redhat.com>
14649
14650         * acconfig.h:
14651         Added ENABLE_SHADOW_FB
14652
14653         * configure.in:
14654         Added --disable-shadowfb
14655
14656         * gdk/linux-fb/gdkcursor-fb.c:
14657         Update shadowfb when updating cursor
14658
14659         * gdk/linux-fb/gdkdrawable-fb2.c:
14660         Added wrappers for shadowfb that calls  the normal drawable
14661         methods, but calls gdk_shadow_fb_update(bounding box) when
14662         GdkWindows are drawed to.
14663         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
14664         which also returns the bounding box.
14665
14666         * gdk/linux-fb/gdkfb.h:
14667         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
14668
14669         * gdk/linux-fb/gdkgeometry-fb.c:
14670         Update shadowfb when scrolling window.
14671
14672         * gdk/linux-fb/gdkglobals-fb.c:
14673         Add _gdk_fb_screen_angle.
14674         
14675         * gdk/linux-fb/gdkkeyboard-fb.c:
14676         Test code for screen rotation. Shift-F2 in the xlate driver
14677         rotates the screen.
14678
14679         * gdk/linux-fb/gdkmain-fb.c:
14680         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
14681
14682         * gdk/linux-fb/gdkmouse-fb.c:
14683         Use fb_width/height instead of modeinfo.xres/yres.
14684
14685         * gdk/linux-fb/gdkprivate-fb.h:
14686         Added fb_men, fb_width, fb_height & fb_stride. When using
14687         shadow fb these can differ from the framebuffer stuff.
14688         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
14689         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
14690         _gdk_fb_screen_angle. Removed CM, RP.
14691
14692         * gdk/linux-fb/gdkrender-fb.c:
14693         Added code for shadowfb handling and screen rotation using
14694         shadowfb.
14695
14696         * gdk/linux-fb/gdkwindow-fb.c:
14697         Use fb_mem, fb_stride, fb_width, fb_height.
14698         Added recompute_rowstride to reset the rowstride of all windows.
14699         Added gdk_fb_recompute_all() which recomputes rootwindow size,
14700         window abs positions and window rowstrides. Usefull when the
14701         rotation has changed.
14702
14703 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
14704
14705         * docs/faq/gtk-faq.sgml: update to make web site updating easier
14706
14707 2001-01-10  Havoc Pennington  <hp@redhat.com>
14708
14709         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
14710         where sibling == iter
14711         (gtk_tree_store_insert_after): handle sibling == iter
14712         (gtk_tree_store_prepend): remove stamp checks
14713         (gtk_tree_store_insert_before): ditto
14714         (gtk_tree_store_append): ditto
14715         (gtk_tree_store_get_path): ditto
14716         (gtk_tree_store_get_value): ditto
14717         (gtk_tree_store_iter_has_child): ditto
14718         (gtk_tree_store_iter_n_children): ditto
14719         (gtk_tree_store_iter_nth_child): ditto
14720         (gtk_tree_store_insert_after): ditto
14721         (gtk_tree_store_is_ancestor): ditto
14722         (gtk_tree_store_iter_depth): ditto
14723         (gtk_tree_store_insert_before): assert that sibling's parent is
14724         the same as the passed-in parent
14725         (gtk_tree_store_insert_after): assert that sibling's parent is
14726         the same as the passed-in parent
14727
14728         
14729         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
14730         function to get the first iterator in a model
14731         
14732         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
14733         conventionally the "root" in this sense is just NULL afaict.
14734
14735         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
14736         where sibling == iter
14737         (gtk_list_store_insert_after): handle case where sibling == iter
14738
14739         * tests/testtreeview.c (run_automated_tests): fairly lame basic
14740         automated tests for ListStore, TreeStore
14741
14742         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
14743         (gtk_list_store_insert): update tail pointer, and fix it to work
14744         (gtk_list_store_insert_before): update tail pointer, and fix it to work
14745         (gtk_list_store_append): use tail to be faster
14746         (gtk_list_store_prepend): fix it, update tail pointer
14747         (gtk_list_store_insert_after): fix it, update tail pointer
14748
14749         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
14750         the list
14751
14752 2001-01-09  Havoc Pennington  <hp@redhat.com>
14753
14754         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
14755         is NULL due to a pending resize
14756
14757         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
14758         column width to values less than 1
14759
14760         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
14761         width to be between min/max width, and still set the width 
14762         even if autosize is turned on, so the tree view can use this 
14763         function in order to autosize.
14764         (gtk_tree_view_column_init): set initial width to 1 not 0
14765
14766         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
14767         setter function to modify column width, so we get notification
14768         (gtk_tree_view_insert_iter_height): ditto
14769         (gtk_tree_view_calc_size): ditto
14770         (gtk_tree_view_check_dirty): ditto
14771
14772         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
14773         properties to change all the interesting attributes of the tree
14774         view column.
14775         (gtk_tree_view_column_set_header_clickable): rename set_clickable
14776         (gtk_tree_view_column_get_clickable): add
14777         (gtk_tree_view_column_set_cell_renderer): don't unset the current
14778         attributes; assume a cell renderer with equivalent object
14779         properties has been swapped in. Do g_object_notify().
14780         (gtk_tree_view_column_set_visible): g_object_notify
14781         (gtk_tree_view_column_get_sizing): rename from get_col_type
14782         (gtk_tree_view_column_set_sizing): g_object_notify
14783         (gtk_tree_view_column_set_width): add g_object_notify
14784         (gtk_tree_view_column_set_min_width): ditto
14785         (gtk_tree_view_column_set_max_width): ditto
14786         (gtk_tree_view_column_set_title): ditto
14787         (gtk_tree_view_column_set_clickable): ditto
14788         (gtk_tree_view_column_set_widget): ditto
14789         (gtk_tree_view_column_set_justification): ditto
14790
14791 2001-01-09  Havoc Pennington  <hp@redhat.com>
14792
14793         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
14794         there are no rows in the model
14795
14796         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
14797         NULL, then return the start of the list
14798
14799         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
14800         if we can't get any rows from an empty model 
14801
14802         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
14803         extraneous * after function pointer typedef usage
14804
14805         * Makefile.am: don't specify full path to cp and rm
14806
14807         * gtk/gtkcellrenderertextpixbuf.c
14808         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
14809         NULL before dereferencing, fixes a segfault that happened from
14810         time to time
14811
14812         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
14813         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
14814         and reindent the function
14815         (gtk_cell_renderer_pixbuf_get_size): indentation
14816
14817         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
14818         we quit it
14819         (gtk_dialog_add_buttons_valist): add g_return_if_fail
14820         (gtk_dialog_set_default_response): New function, to set default
14821         button
14822         (gtk_dialog_set_response_sensitive): New function, to set 
14823         sensitivity of buttons
14824
14825         * gtk/gtkcellrendererpixbuf.c
14826         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
14827         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
14828
14829         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
14830         handle any G_TYPE_OBJECT subclass, not just the base class, and 
14831         also boxed types.
14832         (_gtk_tree_data_list_value_to_node): ditto
14833
14834         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
14835         --gtk-debug=tree
14836
14837         * gtk/gtkmain.c: add GTK_DEBUG_TREE
14838
14839         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
14840
14841 2001-01-09  Tor Lillqvist  <tml@iki.fi>
14842
14843         * gdk/win32/gdkevents-win32.c: Implement better mouse
14844         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
14845         (find_window_for_pointer_event): New function.
14846         (gdk_event_translate): Use it when handling mouse events.
14847
14848 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
14849
14850         * configure.in:
14851         Added --with-included-loaders option
14852
14853         * gdk-pixbuf/Makefile.am:
14854         * gdk-pixbuf/gdk-pixbuf-io.c:
14855         Add support for including selected gdk-pixbuf loaders only.
14856
14857         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
14858         gtk_window_set_has_frame):
14859         Added inline documentation.
14860
14861         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
14862         * docs/reference/gdk/tmpl/windows.sgml:
14863         Added inline documentation.
14864
14865 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
14866
14867         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
14868         realizing buttons that have already been realized.
14869
14870 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
14871
14872         * tests/testtreeview.c (main): Show menu items before adding to
14873         option menu.
14874
14875         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
14876         around if we kill them.
14877
14878         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
14879         Return if we pass in a NULL model.
14880
14881 2001-01-08  Havoc Pennington  <hp@redhat.com>
14882
14883         * tests/testtreeview.c: hack on this some
14884
14885         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
14886         gtk_tree_store_set_valist, v is for arrays, valist for varargs
14887         list
14888         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
14889
14890         * gtk/gtkliststore.h: Add varargs set() and get() convenience
14891         functions
14892
14893 2001-01-08  Alexander Larsson  <alexl@redhat.com>
14894
14895         * gtk/gtkwindow-decorate.[hc]:
14896         * gtk/Makefile.am:
14897         New files. Contains an implementation of a minimal WM for
14898         linux-fb.
14899
14900         * gtk/gtkwindow.h:
14901         Add the possibility for GtkWindows to specify a frame. This
14902         is used for the window decoration code, but could concievably
14903         be used for X programs too (xmms style windows).
14904         GtkWindow->frame is the toplevel window if the window is framed.
14905         The signal frame_event gets all events that are targeted to
14906         GtkWindow->frame.
14907         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
14908         
14909         * gtk/gtkwindow.c:
14910         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
14911         Call out to gtkwindow-decorate.c for WM support in linx-fb.
14912
14913 2001-01-08  Alexander Larsson  <alexl@redhat.com>
14914
14915         * docs/README.linux-fb:
14916         Correct filename ~/.pangoft2_aliases
14917
14918         * gdk/gdkwindow.h:
14919         Added new function gdk_window_get_decorations.
14920
14921         * gdk/linux-fb/gdkfb.h:
14922         Removed _gdk_window_get_decorations declaration.
14923         Renamed _gdk_window_set_child_handler to
14924         gdk_fb_window_set_child_handler.
14925
14926         * gdk/linux-fb/gdkwindow-fb.c:
14927         Renamed _gdk_window_set_child_handler to
14928         gdk_fb_window_set_child_handler.
14929
14930         * gdk/x11/gdkwindow-x11.c:
14931         New function gdk_window_get_mwm_hints().
14932         Implemented gdk_window_get_decorations.
14933
14934         * docs/reference/gdk/tmpl/windows.sgml:
14935         * docs/reference/gdk/gdk-sections.txt:
14936         Added gdk_window_get_decorations docs.
14937         
14938 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
14939
14940         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
14941         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
14942         gdk_fb_window_send_crossing_events):
14943         Possibly send focus events when the mouse moves from one
14944         window to another.
14945
14946 2001-01-07  Tor Lillqvist  <tml@iki.fi>
14947
14948         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
14949         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
14950         to match current API.
14951
14952         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
14953         environment variable is set, don't call g_error when on a
14954         palettized (PseudoColor) display. Some people want to use GTK+ 
14955         in 256-colour mode even though works only partially.
14956
14957         * gdk/gdk.def
14958         * gtk/gtk.def
14959         * gtk/makefile.mingw.in: Update.
14960
14961 2001-01-05  Havoc Pennington  <hp@redhat.com>
14962
14963         * tests/testtreeview.c: hack on this a bit
14964
14965         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
14966         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
14967
14968         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
14969         was spelled incorrectly
14970         (GTK_IS_TREE_MODEL_SIMPLE): ditto
14971
14972         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
14973         from gtk_tree_view_set_headers_active   
14974
14975         * gtk/gtktexttag.c:
14976         (gtk_text_tag_get_property): handle PROP_DIRECTION
14977         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
14978         properties, bug 40235
14979
14980         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
14981         forward_to_line_end
14982
14983 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
14984
14985         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
14986         modules/input/gtkimcontextxim.c: Adapt to new prototypes
14987         for unicode,locale,filename conversion functions.
14988
14989 2001-01-05  Havoc Pennington  <hp@redhat.com>
14990
14991         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
14992         broken if called on the first position in the buffer.
14993
14994         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
14995         forward_to_delimiters to be called only if we aren't already at
14996         the delimiters.
14997
14998 2001-01-05  Havoc Pennington  <hp@redhat.com>
14999
15000         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
15001
15002 2001-01-05  Alexander Larsson  <alexl@redhat.com>
15003
15004         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
15005         colormap in here. Sync from X port.
15006         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
15007         Sync from X port.
15008         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
15009         This happens now and then, and i don't think it is a bug.
15010         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
15011         != endpoint.
15012         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
15013         GDK_LINE_SOLID.
15014
15015         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
15016         some of the fields filled in at least.
15017
15018         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
15019         miLineArcD is no more, remove it from the function definition.
15020
15021 2001-01-04  Havoc Pennington  <hp@redhat.com>
15022
15023         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
15024         this
15025
15026         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
15027         user_data instead of tree_node
15028
15029         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
15030         TREE_VIEW_COLUMN_SIZE
15031
15032         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
15033         "size" field to "width" finishes bug 40061
15034
15035         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
15036         for bitfields, bug 40268
15037
15038 2001-01-04  Havoc Pennington  <hp@redhat.com>
15039
15040         Rename some stuff:
15041         
15042         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
15043
15044         s/GtkModelSimple/GtkTreeModelSimple/g;
15045         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
15046         s/gtk_model_simple/gtk_tree_model_simple/g;
15047         s/gtkmodelsimple/gtktreemodelsimple/g;
15048
15049         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
15050
15051         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
15052         s/column_set_col_type/column_set_sizing/g;
15053
15054         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
15055         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
15056
15057         s/GtkCellRendererType/GtkCellRendererState/g;
15058         
15059         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
15060         (gtk_cell_renderer_toggle_class_init): change "state" property to
15061         "active", to match GtkToggleButton
15062         (gtk_cell_renderer_toggle_get_active): new function, bug
15063         40269
15064         (gtk_cell_renderer_toggle_set_active): new function
15065         (gtk_cell_renderer_toggle_set_property): route changes to toggle
15066         state through gtk_cell_renderer_set_active
15067
15068 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
15069
15070         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
15071         temporarily until they work again.  Brought up to date with
15072         changes in the model.
15073         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
15074         model.
15075
15076 2001-01-04  Havoc Pennington  <hp@redhat.com>
15077
15078         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
15079         equal to the line length, then position iterator before paragraph 
15080         separators. Fixes crash reported by Mikael Hermansson when
15081         pressing left arrow from the start of a line.   
15082
15083         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
15084         about byte indexes off the end
15085         (iter_set_from_char_offset): add g_error about char offsets
15086         off the end
15087
15088 2001-01-03  Havoc Pennington  <hp@redhat.com>
15089
15090         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
15091
15092         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
15093         of private functions; remove inclusion of private headers.
15094
15095         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
15096         function, so we don't need private functions in gtktextdisplay.c
15097
15098         * gtk/gtktextiterprivate.h: underscore-ification
15099
15100         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
15101         to instead say "only useful to implement widgets"
15102
15103         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
15104         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
15105         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
15106
15107         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
15108         This function was completely broken
15109
15110         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
15111
15112         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
15113
15114         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
15115
15116         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
15117
15118         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
15119
15120         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
15121
15122         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
15123         gtk_paint_layout
15124
15125         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
15126         gtk_paint_layout
15127
15128         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
15129         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
15130         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
15131         which were not implemented.     
15132
15133         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
15134         insert_pixbuf signal. Rename delete_text to delete_range since it
15135         also deletes pixbufs and child anchors. This almost closes bug
15136         40245 (still need to deal with child anchors)
15137
15138         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
15139         insert_pixbuf, change signal names as appropriate, change types of
15140         signals taking marks/tags to have the specific type, not just
15141         G_TYPE_OBJECT
15142         
15143         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
15144         closes bug 40051
15145
15146         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
15147         unnecessary remove_contents() call
15148         (gtk_option_menu_class_init): add a "changed" signal, closes
15149         bug 40039
15150         (gtk_option_menu_update_contents): emit "changed" if the 
15151         active menu item changes
15152
15153         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
15154         cast to GtkObject, reported by Jonas Borgstrom
15155         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
15156         we can't do stuff with side effects in finalize. Instead, spew a
15157         warning if the loader isn't closed.
15158
15159         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
15160         colormap in here, non-X ports probably need to sync to this change
15161
15162         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
15163         assertion that colormap != NULL, you can set the colormap to NULL
15164         if you like.
15165         
15166         * Makefile.am: remove gtk-config-2.0
15167
15168         * configure.in: Use pkg-config to locate GLib. Remove
15169         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
15170         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
15171         Use pkg-config to locate Pango. Output correct Pango libs to
15172         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
15173
15174         * Makefile.am (pkgconfig_DATA): install only target-specific pc
15175         files
15176         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
15177         X11 pc files
15178
15179         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
15180         unref from here
15181
15182 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
15183
15184         * configure.in:
15185         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
15186
15187 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
15188
15189         * gtk/gtktextlayout.c
15190         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
15191         variable when moving back onto a single line.
15192
15193 2001-01-01  Havoc Pennington  <hp@redhat.com>
15194
15195         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
15196
15197         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
15198
15199         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
15200         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
15201
15202 2001-01-01  Havoc Pennington  <hp@redhat.com>
15203
15204         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
15205
15206         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
15207         GtkTextAttributes
15208
15209         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
15210         #40246
15211         (gtk_text_attributes_copy_values): rename from 
15212         gtk_text_attributes_copy
15213         (gtk_text_attributes_copy): a more standard GTK copy function, 
15214         which returns a new object
15215
15216 2001-01-01  Havoc Pennington  <hp@redhat.com>
15217
15218         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
15219         
15220         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
15221         don't fill in tree_view->priv->selection, kind of an unexpected
15222         side effect
15223
15224         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
15225         gtkintl.h
15226         
15227         * gtk/gtkcellrenderer.c: Remove definition of _ and include
15228         gtkintl.h
15229         (gtk_cell_renderer_get_property): remove calls to g_value_init
15230
15231         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
15232         gtkintl.h
15233
15234         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
15235         and include gtkintl.h
15236         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
15237         property names
15238
15239         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
15240         GtkTreeSelection
15241         (_gtk_tree_selection_new_from_with_view): rename, return
15242         GtkTreeSelection
15243         (_gtk_tree_selection_set_tree_view): rename with uscore
15244         (gtk_tree_selection_get_selected): fill in the "model" out param
15245         first, so it gets filled in even if we return at the top of the 
15246         function
15247         (gtk_tree_selection_real_select_all): add a comment and an else{}
15248         to clarify this a bit
15249         (gtk_tree_selection_real_unselect_all): add the same else{}
15250
15251         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
15252         set_tree_view to have underscore prefixes, move them to the
15253         private header, fix return type of new_with_tree_view
15254         (struct _GtkTreeSelection): mark struct
15255         fields private  
15256
15257         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
15258         GtkTreeModelFlags, not a guint
15259         (gtk_tree_path_prev): return gboolean not gint
15260         (gtk_tree_path_up): return gboolean not gint
15261
15262         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
15263         return GtkTreeModelFlags, not a guint
15264
15265         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
15266         that child model is non-null before unrefing it
15267         (g_value_int_compare_func): make this a qsort compare func, not 
15268         a boolean predicate
15269
15270         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
15271         (add -umn to the end), and mark it unimplemented
15272         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
15273         I don't see what it's for - doesn't the model always sort itself?
15274         (gtk_tree_model_sort_set_compare): this had the wrong signature
15275
15276         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
15277         Fix the docs to say that it destructively replaces existing
15278         attributes (previously said that it added attributes).
15279         (gtk_tree_view_column_set_visible): canonicalize bool before
15280         equality testing. Also, check for realization before
15281         hiding/showing the tree_column->window; if this window could exist
15282         before realization, then it's busted and needs fixing, we can't 
15283         create GDK resources pre-realization. Also, remove
15284         superfluous queue_resize(), since set_size() does that for us.
15285         (gtk_tree_view_column_set_col_type): check realization before 
15286         using tree_column->window
15287
15288         * gtk/gtktreedatalist.c: fix filename in copyright notice
15289
15290 2000-12-31  Havoc Pennington  <hp@pobox.com>
15291
15292         * gtk/gtktextview.c: Rearrange all the
15293         scroll-while-dragging-or-selecting code to be different, not
15294         necessarily better. ;-)
15295         (gtk_text_view_scroll_to_mark): Change this
15296         function to take within_margin as a fraction instead of a pixel
15297         value, and to take alignment arguments (indicating where to align 
15298         the mark inside the visible area)
15299         
15300         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
15301         to GtkObject
15302
15303         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
15304         behavior so that offsets past the end of the line are not 
15305         allowed, and an offset equal to the line length moves the iterator
15306         to the next line
15307         (gtk_text_iter_set_line_index): make parallel change
15308         (gtk_text_iter_get_bytes_in_line): add this function
15309         
15310         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
15311         of byte indexes off the end of the line; byte index at the end of
15312         the line now returns FALSE and doesn't fill in the requested
15313         values, byte index past the end of the line is an error.  Also,
15314         don't allow -1 offset anymore, since its meaning is unclear.
15315
15316         This change exposes some bug in visual cursor motion, where we
15317         end up with a huge invalid byte index; needs fixing. Symptom of 
15318         bug is a crash when you hit up arrow.
15319         
15320         (_gtk_text_line_char_locate): match the change to byte_locate
15321
15322         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
15323         from start of line properly. fixes bug reported by Mikael
15324         Hermansson where backspace would delete all text before the
15325         cursor.
15326
15327 2000-12-30  Tor Lillqvist  <tml@iki.fi>
15328
15329         * gdk/win32/gdkwindow-win32.c
15330         (gdk_window_impl_win32_get_visible_region): New function, as in
15331         the X11 backend.
15332         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
15333         instead of duplicating the same code here.
15334
15335         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
15336         GDK_COLORMAP macro.
15337
15338         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
15339         destroy function.
15340         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
15341         access that.
15342
15343         * gtk/gtk.def: Update.
15344
15345         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
15346
15347 2000-12-30  Havoc Pennington  <hp@pobox.com>
15348
15349         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
15350         colormap on input only windows, to avoid special cases all over
15351         the code for these windows.
15352
15353 2000-12-26  Tor Lillqvist  <tml@iki.fi>
15354
15355         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
15356         we are on a palettized display ("PseudoColor" in X11), as the code
15357         for that doesn't work anyway, and never has.
15358
15359 2000-12-22  Alexander Larsson  <alexl@redhat.com>
15360
15361         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
15362         Don't use isprint() for chars > 255.
15363
15364 2000-12-21  Havoc Pennington  <hp@redhat.com>
15365
15366         * tests/testtreeview.c: more work
15367
15368 2000-12-21  Alexander Larsson  <alexl@redhat.com>
15369
15370         * docs/README.linux-fb:
15371         Update the docs to the new pangoft2 way.
15372
15373 2000-12-21  Alexander Larsson  <alexl@redhat.com>
15374
15375         * configure.in:
15376         For linux-fb get the pangoft2 cflags and libs. This needs a recent
15377         pango version.
15378         Remove modules/linux-fb/Makefile.
15379
15380         * gdk/linux-fb/gdkdrawable-fb2.c:
15381         Render glyphs using freetype.
15382
15383         * gdk/linux-fb/gdkfb.h:
15384         Add new fb-specific functions needed for managing windows.
15385
15386         * gdk/linux-fb/gdkmain-fb.c:
15387         Remove gdk_font_init/fini() calls.
15388
15389         * gdk/linux-fb/gdkpango-fb.c:
15390         Remove old implementation. Use pangoft2 instead.
15391
15392         * gdk/linux-fb/gdkprivate-fb.h:
15393         Remove PangoFBFont and related stuff.
15394
15395         * gdk/linux-fb/gdkwindow-fb.c:
15396         Implement drawable->get_visible_region.
15397         Implement support for _gdk_window_set_child_handler () and
15398         _gdk_window_get_decorations().
15399
15400         * modules/Makefile.am:
15401         Remove linux-fb subdir.
15402
15403         * modules/linux-fb/*:
15404         Removed all.
15405         
15406 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
15407
15408         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
15409         calls, as they are no longer needed.
15410
15411         * gtk/gtktreemodelsort.c: Fix up the comparison code.
15412         
15413         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
15414         figure out how to emit a signal on an interface.
15415
15416 2000-12-20  Havoc Pennington  <hp@redhat.com>
15417
15418         * tests: new directory to contain tests, gtk/test* should move
15419         here sometime (with appropriate on-cvs-server hackery)
15420
15421         * tests/testtreeview.c, tests/Makefile.am: a test
15422         
15423         * configure.in (AC_OUTPUT): add tests/Makefile
15424
15425         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
15426         and "invisible_set" which were missing
15427
15428         * gtk/gtkrbtree.h: some cheesy indentation fix
15429         
15430 2000-12-20  Alexander Larsson  <alexl@redhat.com>
15431
15432         * gtk/gtkinvisible.c (gtk_invisible_realize):
15433         Attach the style to the window so that the style it is not
15434         leaked when unrealizing the window.
15435
15436 2000-12-18  Havoc Pennington  <hp@redhat.com>
15437
15438         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
15439         begin/end user action where appropriate
15440         (gtk_text_view_commit_handler): add begin/end user action
15441
15442         * gtk/gtktextbuffer.c: add begin/end user action signals, and
15443         bracket interactive operations with begin/end user action pair.
15444         
15445         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
15446         "interactive" arg from insert_text and delete_text signals.
15447         Add begin_user_action, end_user_action signals
15448         (gtk_text_buffer_begin_user_action): 
15449         (gtk_text_buffer_end_user_action): New functions to delimit 
15450         a user-visible action
15451
15452         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
15453         signals.
15454         
15455 2000-12-18  Havoc Pennington  <hp@redhat.com>
15456
15457         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
15458         was pretty non-working.
15459
15460         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
15461         by passing the length to g_utf8_validate().
15462
15463 2000-12-16  Havoc Pennington  <hp@pobox.com>
15464
15465         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
15466         Port to GObject, can go back in gdk-pixbuf after setting up 
15467         a gdk-pixbuf-marshal.h header over there.
15468
15469         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
15470         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
15471         args
15472         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
15473         set
15474         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
15475         here, do it when we create the buttons later
15476         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
15477         (gtk_tree_view_map): paranoia checks that column->button is shown 
15478         and unmapped
15479         (gtk_tree_view_size_request): only request visible children.
15480         Move header size calculation in here, for cleanliness, and 
15481         to maintain invariants for child widgets if we eventually 
15482         let users set different children inside the buttons
15483         (gtk_tree_view_map_buttons): factor out code to map buttons,
15484         since it was being called several times
15485         (gtk_tree_view_size_allocate_buttons): move_resize the drag
15486         windows instead of just moving them; their height may change 
15487         if we allow random widgets in there, or the theme changes.
15488         (gtk_tree_view_size_allocate): move button size allocation 
15489         above emitting the scroll signals, to ensure a sane state when we
15490         hit user code
15491         (gtk_tree_view_button_release): remove queue_resize after
15492         tree_view_set_size(), set_size() will handle any resize queuing
15493         that's needed
15494         (gtk_tree_view_focus_in): just queue a draw, don't fool with
15495         draw_focus goo
15496         (gtk_tree_view_focus): use gtk_get_current_event() and
15497         gdk_event_get_state()
15498         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
15499         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
15500         semicolon
15501         (gtk_tree_view_create_button): show the button here
15502         (gtk_tree_view_button_clicked): actually emit the clicked signal
15503         on the column
15504         (_gtk_tree_view_set_size): return right away if the size is
15505         unchanged, as a cheesy optimization
15506         (gtk_tree_view_setup_model): rename set_model_realized to 
15507         setup_model to match the flag that indicates whether we've 
15508         called it
15509         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
15510         exist, because set_scroll_adjustment does that and it shouldn't
15511         matter what order you call these in
15512         (gtk_tree_view_get_vadjustment): ditto
15513         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
15514         for paranoia
15515         (gtk_tree_view_set_headers_visible): call
15516         gtk_tree_view_map_buttons() instead of using cut-and-paste code
15517         (gtk_tree_view_append_column): clarify whether the return value
15518         is the count of columns before or after, and do the increment 
15519         separately from the return statement so you can tell from the code.
15520         (gtk_tree_view_remove_column): ditto
15521         (gtk_tree_view_insert_column): ditto
15522         (gtk_tree_view_get_column): remove g_return_if_fail for columns
15523         outside the existing range, the docs say that outside-range
15524         columns are allowed, so we handle them as documented. (Presumably
15525         this allows a nice loop with column != NULL as test.)
15526         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
15527         mean (left/right/center etc.).
15528         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
15529         (gtk_tree_view_expand_row): add docs
15530         (gtk_tree_view_collapse_row): add docs
15531
15532         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
15533         function to emit the clicked signal on a column
15534         
15535         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
15536         state of an event
15537         (gdk_event_get_time): don't treat GDK_SCROLL 
15538         as a button event, remove default case from switch so gcc 
15539         will whine if we don't explicitly handle all event types
15540
15541         * gtk/gtktreeselection.h: added some FIXME 
15542         
15543         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
15544         "columns" to "n_columns" and "column" to "columns" for clarity
15545
15546 2000-12-16  Havoc Pennington  <hp@pobox.com>
15547         
15548         * gtk/gtktextiter.c: General cleanup of the log attr iteration
15549         stuff. This should make e.g. the delete key work again in the
15550         text widget...
15551         (gtk_text_iter_forward_cursor_positions): handle negative count
15552         (gtk_text_iter_backward_cursor_positions): handle negative count
15553         (gtk_text_iter_forward_word_ends): handle negative count
15554         (gtk_text_iter_backward_word_starts): handle negative count
15555
15556         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
15557         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
15558         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
15559         GObject. No doubt will cause breakage.
15560
15561         * demos/gtk-demo/textview.c: remove hacks around
15562         non-GObject-ification of the text objects
15563
15564         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
15565         the text tag
15566         
15567 2000-12-14  Havoc Pennington  <hp@pobox.com>
15568
15569         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
15570         that we have Xrender
15571
15572 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
15573
15574         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
15575         Add two virtualized functions gdk_drawable_get_clip_region - to
15576         get the clip region when drawing.
15577         
15578         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
15579         use invalidate_region.
15580
15581         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
15582         region.
15583
15584         * acconfig.h configure.in: Check for Xft. For now, assume
15585         that if Xft is found, Pango was compiled with Xft support
15586         as well.
15587
15588         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
15589         gdk_colormap_query_color().
15590         
15591         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
15592         with Xft if appropriate.
15593
15594         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
15595         a pangoxft context if we have XFT and the environment
15596         variable GD_USE_XFT is set.
15597         
15598         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
15599         and also possibly an XftDraw structure.
15600
15601         * gtk/gtkfontsel.c: Handle the case where the font from the
15602         style doesn't match any of the fonts a bit better.
15603         
15604         * gtk/testgtk.c: Add tabs between directional segments for
15605         hebrew/arabic test. (Not really necessary, just a little
15606         prettier.)
15607
15608 2000-12-14  Havoc Pennington  <hp@redhat.com>
15609
15610         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
15611         reading a file
15612
15613 2000-12-14  Havoc Pennington  <hp@redhat.com>
15614
15615         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
15616         unused call to get_last_line()
15617
15618         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
15619         here until boxed is working (and maybe after that - we should
15620         really not gratuitously break old code)
15621
15622         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
15623         specific types for font_desc and tabs args, move them to
15624         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
15625         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
15626
15627         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
15628         use GTK_TYPE_POINTER for signal signatures as a hack-around
15629
15630         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
15631         PangoTabArray
15632
15633         * gtk/gtktextlayout.c (line_display_iter_to_index): 
15634         make static
15635         (line_display_index_to_iter): make static
15636
15637         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
15638         to marshal a string not a boxed
15639
15640         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
15641
15642         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
15643         since the UTF-8 isn't validated yet
15644
15645         * gtk/gtktextsegment.c (char_segment_check_func): don't require
15646         lines to end in '\n'
15647         
15648         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
15649         forward_to_delimiters, and grapheme boundaries
15650         (gtk_text_view_delete_from_cursor): properly handle non-newline
15651         delimiters, and grapheme boundaries
15652
15653         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
15654         to gtk_text_iter_forward_to_delimiters, and make it work properly
15655         if empty lines end with a character other than '\n'
15656
15657         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
15658         position
15659
15660 2000-12-15  Tor Lillqvist  <tml@iki.fi>
15661
15662         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
15663
15664         * gtk/gtk.def
15665         * gdk/gdk.def: Update.
15666
15667         * gdk/win32/gdkmain-win32.c
15668         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
15669         gdkmain-win32.c here.
15670
15671         * gdk/win32/makefile.mingw.in (all): No need to make
15672         gdk-win32res.o here, the makefile one step up will call us to make
15673         it.
15674
15675         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
15676         gdkkeys-win32.
15677
15678         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
15679
15680         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
15681         call to g_source_add().
15682
15683         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
15684         leak. Thanks to Andreas Kemnade.
15685
15686 2000-12-13  Havoc Pennington  <hp@pobox.com>
15687
15688         * gtk/gtktextbtree.h: Remove double _ in front of some functions
15689
15690         * gtk/gtktext*.[hc]: update accordingly
15691         
15692 2000-12-13  Havoc Pennington  <hp@pobox.com>
15693
15694         * gtk/gtktextbtree.h: Put _ in front of every function in this 
15695         header file
15696
15697         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
15698
15699 2000-12-13  Alex Larsson  <alexl@redhat.com>
15700
15701         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
15702         Add support for ps2 intellimouse.
15703
15704         * gdkkeyboard-fb.c:
15705         Move shift-F1 repaint handling to xlate handler only.
15706         
15707         * docs/README.linux-fb:
15708         Add imps2 to docs.
15709         Document the new refresh keys.
15710         
15711 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
15712
15713         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
15714
15715         * gtk/gtkbox.c: change property types from (u)long to (u)int for
15716         ::position and ::padding.
15717
15718         * gtk/gtkcontainer.c: make ::border_width an INT property.
15719
15720         * gtk/gtkpacker.c: make ::position an INT property.
15721
15722         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
15723         guard against NULL h/v scrollbars, since this is used at construction
15724         time.
15725
15726         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
15727         internal gtk_clist_constructor().
15728
15729         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
15730         gtk_ctree_constructor().
15731
15732         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
15733         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
15734
15735         * docs/reference/Makefile.am: fun stuff, disabled docs generation
15736         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
15737
15738         * gtk/gtkwidget.[hc]:
15739         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
15740         and gtk_widget_get().
15741         (gtk_widget_new): use g_object_new_valist().
15742         (gtk_widget_set): use g_object_set_valist().
15743
15744         * gtk/gtkobject.[hc]:
15745         removed gtk_object_arg_get_info(), gtk_object_getv(),
15746         gtk_object_query_args(), gtk_object_newv(),
15747         gtk_object_class_add_signals(),
15748         gtk_object_class_user_signal_new(),
15749         gtk_object_class_user_signal_newv(),
15750         gtk_object_arg_set(), gtk_object_arg_get(),
15751         gtk_object_args_collect(),
15752         gtk_object_default_construct(),
15753         gtk_object_constructed(),
15754         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
15755         removed nsignals, signals and n_args members from GtkObjectClass.
15756         (gtk_object_new): use g_object_new_valist().
15757         (gtk_object_set): use g_object_set_valist().
15758         (gtk_object_get): use g_object_get_valist().
15759         
15760         * gtk/gtkcompat.h: define gtk_object_default_construct().
15761         
15762         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
15763         g_object_new().
15764
15765         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
15766         fucntions, cleaned up method assignments (make sure your structures
15767         are setup properly before calling out). removed all GTK_CONSTRUCTED
15768         hacks ;)
15769
15770 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
15771
15772         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
15773         off-by-one error in checks. (Dave Lambert)
15774
15775 2000-12-12  Alexander Larsson  <alexl@redhat.com>
15776
15777         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
15778         Don't free gdk_fb_keyboard twice.
15779
15780 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
15781
15782         * gtk/testgtk.c:
15783         (create_tooltips): 
15784         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
15785         use GObject swapped_signal:: properties instead.
15786
15787         * gtk/gtkcellrenderertoggle.c: 
15788         * gtk/gtkcellrenderertextpixbuf.c: 
15789         * gtk/gtkcellrenderertext.c: 
15790         * gtk/gtkcellrendererpixbuf.c: 
15791         * gtk/gtkcellrenderer.c:
15792         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
15793         missing warnings for invalid property ids, install properties
15794         with g_object_class_install_property() now.
15795         
15796         * gtk/gtksignal.c:
15797         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
15798         
15799 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
15800         
15801         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
15802         to determine if a window is the focus widget within
15803         its toplevel.
15804
15805         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
15806         to be boolean.
15807
15808         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
15809         of the case where the container CAN_FOCUS to here instead
15810         of having it in each individual move-the-focus place.
15811
15812         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
15813         focusing to be geometric in a much more obvious sense. Arrowing
15814         around is still non-intuitive because it isn't perfect and
15815         because entries, etc, grab the arrow keys, but it at least
15816         usually will do what you expect now.
15817         
15818         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
15819         file.
15820
15821         * gtk/gtknotebook.c: Change tabs to be a single item in
15822         the focus chain. Make movement of focus on tabs with arrow
15823         keys wrap around.
15824         
15825         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
15826         CHECK_FIND_CHILD macro to give informative error messages
15827         instead of silent returns.
15828
15829         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
15830         flag since we handle GdkReturn on the tabs.
15831
15832         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
15833         windows rather than sending expose events directly.
15834
15835         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
15836         definition for GtkNotebookPage into .c file, since it is private.
15837
15838         * gtk/testgtk.c (create_notebook): Add option for 
15839         testing borderless notebook.
15840
15841         * gtk/testgtk.c (page_switch): Removed egregious poking
15842         around in GTK+ internals.
15843
15844         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
15845
15846         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
15847         properly through gtk_clist_focus. Make the title headers a
15848         single item in the tab-focus chain, and make left-right wrap
15849         around.
15850
15851         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
15852         focus method so that wrapping around works properly.
15853
15854         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
15855         that is handled for the widget now. 
15856
15857 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
15858
15859         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
15860         widgets as TOPLEVEL.
15861
15862         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
15863         TOPLEVEL widgets are containers.
15864
15865         * gtk/gtkinvisible.h: Remove useless include.
15866
15867 2000-12-11  Havoc Pennington  <hp@redhat.com>
15868
15869         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
15870         Handle chopping off \r\n and 0x2029 in addition to \n before
15871         passing to PangoLayout
15872
15873         * gtk/gtkimcontextsimple.c
15874         (gtk_im_context_simple_get_preedit_string): 
15875         return an empty string if no match is pending
15876
15877         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
15878         assertion that the returned preedit string was sane
15879
15880         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
15881         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
15882         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
15883
15884 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
15885
15886         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
15887         Fix up finalizer to chain to its parent.
15888
15889 2000-12-11  Alexander Larsson  <alexl@redhat.com>
15890
15891         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
15892         Clearified the difference between the keyboard types. Wrote a note
15893         about the magic sysrq key to get out of raw mode.
15894
15895 2000-12-09  James Henstridge  <james@daa.com.au>
15896
15897         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
15898         member to hold masks for detecting the start of a protocol packet.
15899         (mouse_devs): add packet start masks for ps2 and ms device types.
15900         Left the mask for fidmour blank, as I have no idea what it should
15901         be.
15902         (handle_mouse_io): skip bytes until we get to the start of a
15903         packet.  My Logitech mouse seems to be passing an extra NULL pad
15904         byte, and GPM does a similar thing here.
15905         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
15906         this is the ms mouse driver.
15907         (gdk_fb_mouse_ms_packet): fix up button handling, which was
15908         completely broken except for button1.  It was checking the wrong
15909         bit in the packet for the status of the right mouse button, and
15910         wrongly assuming right == button2 rather than 3.  I fixed that and
15911         also added support for middle button (button2).
15912
15913 2000-12-08  Havoc Pennington  <hp@redhat.com>
15914
15915         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
15916         that cause a segfault on text insertion
15917
15918         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
15919         warning
15920
15921         * gtk/gtktextiter.c (test_log_attrs): use
15922         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
15923
15924         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
15925         Get log attrs for a line, using a cache stored on the buffer
15926         
15927         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
15928         reported by Jeff Franks
15929
15930 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
15931
15932         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
15933         /dev/ttyS0 -> /dev/mouse
15934
15935 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
15936
15937         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
15938         Added dummy gdk_fontset_load.
15939
15940 2000-12-08  Alexander Larsson  <alexl@redhat.com>
15941
15942         * docs/README.linux-fb:
15943         * docs/Makefile.am:
15944         Initial GtkFB docs.
15945         
15946         * gdk/linux-fb/Makefile.am:
15947         Define GDK_DATA_PREFIX.
15948
15949         * gdk/linux-fb/gdkmain-fb.c:
15950         Fix typo.
15951         Change default display to /dev/fb0.
15952
15953         * gdk/linux-fb/gdkpango-fb.c:
15954         Add $(prefix)/share/fonts/ to font path.
15955         
15956 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
15957
15958         * gdk/linux-fb/gdkkeyboard-fb.c:
15959         New file containing the abstracted keyboard driver. Most code
15960         taken from gdkinput-ps2.c
15961
15962         * gdk/linux-fb/gdkinput-ps2.c:
15963         Removed file.
15964         
15965         * gdk/linux-fb/Makefile.am:
15966         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
15967
15968         * gdk/linux-fb/gdkcolor-fb.c:
15969         display->fb was renamed to display->fb_fd.
15970
15971         * gdk/linux-fb/gdkcursor-fb.c:
15972         gdk_mouse_get_info -> gdk_fb_mouse_get_info
15973
15974         * gdk/linux-fb/gdkinput.c:
15975         Moved gdk_input_init here from gdkinput-ps2.c
15976
15977         * gdk/linux-fb/gdkmain-fb.c:
15978         display->fb was renamed to display->fb_fd.
15979         Now the tty and the console is opened here instead
15980         of in the keyboard driver. Also check GDK_VT to see what
15981         tty to open.
15982         Move gdk_beep () here from gdkinput-ps2.c
15983         gdk_mouse_get_info -> gdk_fb_mouse_get_info
15984
15985         * gdk/linux-fb/gdkmouse-fb.c:
15986         Add header.
15987         gdk_mouse_get_info -> gdk_fb_mouse_get_info
15988         Return correct keyboard modifiers.
15989         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
15990
15991         * gdk/linux-fb/gdkprivate-fb.h:
15992         Add tty and vt info to display.
15993         Add orignal modeinfo storage to display
15994         Update global functions
15995
15996         * gdk/linux-fb/gdkwindow-fb.c:
15997         Added gdk_fb_window_find_focus().
15998         gdk_mouse_get_info -> gdk_fb_mouse_get_info
15999
16000 2000-12-07  Havoc Pennington  <hp@pobox.com>
16001
16002         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
16003         function, noticed by Alex
16004
16005 2000-12-06  Elliot Lee  <sopwith@redhat.com>
16006
16007         * configure.in: Detect freetype properly
16008
16009         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
16010         above.
16011
16012 2000-12-06  Alexander Larsson  <alexl@redhat.com>
16013
16014         * gdk/linux-fb/Makefile.am:
16015         Add gdkmouse-fb.c
16016         
16017         * gdk/linux-fb/gdkmouse-fb.c:
16018         New file. Abstracted the mouse drivers a bit.
16019
16020         * gdk/linux-fb/gdkcursor-fb.c:
16021         The cursor hide/show functions was moved here from gdkinput-ps2.c.
16022
16023         * gdk/linux-fb/gdkinput-ps2.c:
16024         Removed old mouse handling code. Moved cursor handling code
16025         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
16026         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
16027         gdk_mouse_get_info.
16028
16029         * gdk/linux-fb/gdkmain-fb.c:
16030         Pass NULL pointers for x,y in gdk_mouse_get_info call.
16031
16032         * gdk/linux-fb/gdkprivate-fb.h:
16033         Removed public gdk_fb_find_common_ancestor, added and renamed
16034         functions for the new mouse handling code.
16035
16036         * gdk/linux-fb/gdkwindow-fb.c:
16037         Moved gdk_fb_window_send_crossing_events here. added global
16038         variable gdk_fb_window_containing_pointer. made
16039         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
16040         renamed to gdk_mouse_get_info.
16041
16042 2000-12-06  Alexander Larsson  <alexl@redhat.com>
16043
16044         * gdk/linux-fb/gdkevents-fb.c:
16045         Update to match latest gmain/gsource changes.
16046
16047         * gdk/linux-fb/gdkinput-ps2.c:
16048         Bogus gdk_keymap_get_entries_for_keycode implementation so that
16049         it links. Will be implemented later.
16050
16051 2000-12-03  Havoc Pennington  <hp@pobox.com>
16052
16053         * gdk/Makefile.am: add gdkkeys.[hc]
16054
16055         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
16056         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
16057
16058         * acconfig.h, configure.in: add checks and command line options
16059         for XKB
16060
16061         * gdk/x11/gdkkeys-x11.c: Implement the above functions
16062         
16063         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
16064         and group in the key event
16065
16066         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
16067         field with the low-level hardware key code, and a group
16068         field with the keyboard group
16069
16070         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
16071         and declare a couple globals used for keymap handling
16072         
16073         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
16074         hold down Shift-Control and type a hex number to get a Unicode 
16075         character corresponding to the hex number
16076         (gtk_im_context_simple_get_preedit_string): Fix cursor position
16077         (return bytes not chars)
16078
16079 2000-12-05  Elliot Lee  <sopwith@redhat.com>
16080
16081         * gdk/gdkcolor.h: Make GdkColor specify element sizes
16082         to avoid waste on 64-bit platforms.
16083
16084 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
16085
16086         * INSTALL: Fix link to PNG home, remove reference
16087         to fribidi.
16088
16089         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
16090         
16091         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
16092         tested.)
16093
16094         * gtk/gtkcheckmenuitem.c: Permanently turn on
16095         always_show_toggle.
16096
16097         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
16098         be NULL. (Vladimir Klebanov, #26545)
16099
16100         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
16101         some signed/unsigned comparison problems. (#6510,
16102         David Kaelbling)
16103
16104         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
16105         return type to boolean (Oskar Liljeblad, #18648)
16106
16107 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16108
16109         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
16110         Remove bogus colormap setting.
16111
16112 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16113
16114         * gdk/linux-fb/gdkcolor-fb.c:
16115         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
16116
16117         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
16118         Must set colormap.
16119         
16120 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
16121
16122         * docs/tutorial/gtk-tut.sgml: DND updates
16123
16124 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
16125
16126         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
16127         Remove old debug g_warning().
16128         (gdk_fb_draw_drawable): The src argument can be either a wrapper
16129         or an implementation, just pass the implementation to draw_drawable_2.
16130         
16131         * gdk/linux-fb/gdkprivate-fb.h:
16132         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
16133
16134         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
16135         clear and invalidate area when window is destroyed.
16136         (send_map_events): Remove old commented out code.
16137
16138 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16139
16140         * gdk/linux-fb/gdkpango-fb.c:
16141         Use italic instead of oblique in font aliases.
16142         
16143         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
16144         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
16145         other unsupported functions.
16146
16147 2000-12-04  Havoc Pennington  <hp@redhat.com>
16148
16149         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
16150
16151         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
16152
16153         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
16154
16155         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
16156         hack to avoid infinite loops (synthetic expose event) - 
16157         Owen has more appropriate fixes in a branch he'll check in later.
16158
16159         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
16160         separator, CR, and CRLF as line ends
16161
16162         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
16163         into lines using pango_find_paragraph_boundary(); other bits of
16164         the widget are still going to be broken if the boundary isn't '\n'
16165         though
16166
16167 2000-12-04  Alexander Larsson  <alexl@redhat.com>
16168
16169         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
16170         multiply.
16171
16172         * gdk/linux-fb/gdkpango-fb.c:
16173         Copied some 26.6 scaling macros from pango to clean up the rounding.
16174         (pango_fb_font_get_glyph_info): Correct sign on x value.
16175
16176         * gdk/linux-fb/gdkprivate-fb.h:
16177         Removed unreferenced external functions.
16178
16179         * modules/linux-fb/Makefile.am: Use ` instead of '.
16180
16181         * modules/linux-fb/basic.c:
16182         Remove dead code. In particular the dummy lang engine which broke all
16183         pango layouts in GtkFB. Don't include tables-big.i anymore.
16184
16185         * modules/linux-fb/tables-big.i:
16186         Upgrade to latest version from pango. Left for reference, basic_ranges
16187         moved to basic.c.
16188         
16189 2000-12-04  Havoc Pennington  <hp@redhat.com>
16190
16191         Fix bugs Alex found:
16192         
16193         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
16194         to "draw"
16195
16196         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
16197
16198         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
16199
16200         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
16201         implementation in here, apparently the expose() implementation was
16202         dead code.
16203
16204 2000-12-04  Alexander Larsson  <alexl@redhat.com>
16205
16206         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
16207         Return positive descent.
16208
16209 2000-12-02  Havoc Pennington  <hp@pobox.com>
16210
16211         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
16212         method and signal
16213         
16214         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
16215         calls gdk_window_process_updates() to push the exposes through
16216         (gtk_widget_class_init): No more draw signal, no
16217         gtk_widget_real_draw()  
16218         
16219         * gtk/gtkbin.c (gtk_bin_draw): remove
16220
16221         * gtk/gtkbox.c (gtk_box_draw): remove
16222
16223         * gtk/gtkbutton.c (gtk_button_draw): remove
16224
16225         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
16226
16227         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
16228
16229         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
16230
16231         * gtk/gtkclist.c (gtk_clist_draw): remove
16232
16233         * gtk/gtkentry.c (gtk_entry_draw): remove
16234
16235         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
16236
16237         * gtk/gtkfixed.c (gtk_fixed_draw): remove
16238
16239         * gtk/gtkframe.c (gtk_frame_draw): remove
16240
16241         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
16242
16243         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
16244
16245         * gtk/gtklayout.c (gtk_layout_draw): remove
16246
16247         * gtk/gtklist.c (gtk_list_draw): remove
16248
16249         * gtk/gtklistitem.c (gtk_list_item_draw): remove
16250
16251         * gtk/gtkmenu.c (gtk_menu_draw): remove
16252
16253         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
16254
16255         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
16256
16257         * gtk/gtknotebook.c (gtk_notebook_draw): remove
16258
16259         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
16260
16261         * gtk/gtkpacker.c (gtk_packer_draw): remove
16262
16263         * gtk/gtkrange.c (gtk_range_draw): remove
16264
16265         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
16266
16267         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
16268
16269         * gtk/gtktable.c (gtk_table_draw): remove
16270
16271         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
16272
16273         * gtk/gtktext.c (gtk_text_draw): remove
16274
16275         * gtk/gtktextview.c (gtk_text_view_draw): remove
16276
16277         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
16278
16279         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
16280
16281         * gtk/gtktree.c (gtk_tree_draw): remove
16282
16283         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
16284
16285         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
16286
16287         * gtk/gtkviewport.c (gtk_viewport_draw): remove
16288
16289         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
16290
16291         * gtk/gtkvscale.c (gtk_vscale_draw): remove
16292
16293         * gtk/gtkwindow.c (gtk_window_draw): remove
16294
16295 2000-20-01  Anders Carlsson  <andersca@gnu.org>
16296
16297         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
16298         a GtkToggleButton is both insensitive and active, it was being
16299         drawn by the GtkButton draw handler which doesn't check the
16300         state. Now it's calling gtk_toggle_button_paint instead.
16301         
16302 2000-12-01  Havoc Pennington  <hp@redhat.com>
16303
16304         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
16305         dangling pointers to the appearance attributes from the 
16306         line display
16307
16308         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
16309         width/height to mean "full width/height of drawable"
16310
16311         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
16312         click to select word/line
16313         
16314         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
16315         when getting log attrs. Get a slice, so that pixmaps and stuff
16316         are properly handled.
16317
16318         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
16319         paste into the selection (replaces selection now, previously
16320         crashed or added to selection). Reveals longstanding btree bug -
16321         select multiple lines, middle-click on the selection, boom. This
16322         isn't related to my changes though.
16323
16324         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
16325         PangoLogAttrs changes
16326         (gtk_entry_move_backward_word): ditto
16327
16328         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
16329         functions return bool whether the iter moved onto a
16330         dereferenceable position.
16331  
16332         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
16333         functions for motion in terms of display lines.
16334
16335         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
16336         get the buffer a mark is inside
16337         
16338 2000-12-01  Alexander Larsson  <alexl@redhat.com>
16339
16340         * gdk/linux-fb/Makefile.am:
16341         * modules/linux-fb/Makefile.am:
16342         Freetype 2 final uses freetype-config
16343
16344         * gdk/linux-fb/gdkpango-fb.c:
16345         Upgrade to use Freetype 2 final.
16346         More flexible support for font aliases, this also fixes a bug with
16347         GtkFontSelector, as the aliases must be visible in the font/family list,
16348         or GtkFontSelector reads uninitialized memory.
16349
16350 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
16351
16352         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
16353         XGetIMValues to properly terminate variable argument list, and do
16354         NULL return check for ic_values and xim_styles.
16355
16356         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
16357         Restore preedit state after XmbResetIC().
16358         
16359         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
16360         XvaCreateNestedList() should take XvaNestedList, but not
16361         XvaNestedList*.
16362
16363         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
16364         preedit_draw_callback, preedit_caret_callback): Match
16365         "preedit-changed" signal name to "preedit_changed" to be
16366         consistent to the spec.
16367
16368         * gtk/gtkimcontextsimple.c (check_table):
16369         Match "preedit-changed" to "preedit_changed" to be consistent
16370         to the spec.
16371
16372 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
16373
16374         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
16375         gc->clip_region == NULL>
16376
16377 2000-11-30  Tor Lillqvist  <tml@iki.fi>
16378
16379         Changes by Hans Breuer:
16380         
16381         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
16382         Dont't use negative width and height as max_hints. This fixes
16383         Owen's recent testgtk changes for win32.
16384
16385         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
16386         gdk_win32_hdc_release): These are exported and may be called with
16387         other drawable types than our GdkDrawableImplWin32 (?).
16388
16389         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
16390         so always #define USE_BACKING_STORE.
16391
16392         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
16393         of printf for debugging output.
16394
16395         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
16396         
16397         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
16398
16399         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
16400         declaration.
16401
16402         * gtk/gtktexttypes.h: Ditto.
16403
16404         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
16405         (GDK_VoidSymbol) also if in case of arg check failure.
16406
16407         * gtk/gtkimcontextsimple.c
16408         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
16409         position to the pointer, but to the variable it points to.
16410
16411         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
16412
16413         * gtk/gtk.def: Updates.
16414
16415 2000-11-29  Elliot Lee  <sopwith@redhat.com>
16416
16417         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
16418         GTK_TYPE_TREE_MODEL.
16419
16420 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16421
16422         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
16423         Set the size of the font from the description.
16424         (gdk_text_width): Gross hack that calculates the width
16425         of text by text_length * size/2. This is necessary because
16426         GtkLabel does some ugly gtk_string_width call to calculate
16427         an good size.
16428         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
16429
16430 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
16431
16432         * docs/tutorial/gtk-tut.sgml: DND updates
16433
16434 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16435
16436         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
16437         If you pass width or height == 0 to gdk_window_clear_area they
16438         should be calculated from the window size.
16439
16440 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16441
16442         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
16443         a grab, but no grab-cursor, use the cursor from the grabbed
16444         window. (gdk_fb_window_send_crossing_events): Send normal
16445         enter/leave notifications if grab and owner_events == TRUE.
16446
16447 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16448
16449         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
16450         Do implicit button grabs, even if the window doesn't
16451         want the event.
16452         (gdk_fb_window_send_crossing_events): If there is a
16453         grab, only the grabbed window gets normal enter/leave
16454         notifications. On ungrab go from grabbed window to current.
16455         Don't send any notification to b when propagating from c -> b.
16456         If setting a grab on window, don't set prev_window.
16457         (handle_mouse_input): Send enter/leave events to the window the
16458         mouse is over, not the grabbed one.
16459         
16460 2000-11-28  Elliot Lee  <sopwith@redhat.com>
16461
16462         * gdk/gdkregion-generic.c: Zap warning.
16463         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
16464         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
16465
16466 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
16467
16468         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
16469         The cursor should be hidden if it is part of either the
16470         source or destination region. Not only if it is in both.
16471         (gdk_window_set_transient_for): Silence warnings.
16472
16473 2000-11-28  Alexander Larsson  <alexl@redhat.com>
16474
16475         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
16476         The default mode in X is Pie Arcs, therefore that is
16477         what Gtk+ uses.
16478
16479 2000-11-28  Alexander Larsson  <alexl@redhat.com>
16480
16481         * gdk/linux-fb/gdkinput-ps2.c:
16482         Implement correct EnterNotify/LeaveNotify:
16483         (gdk_fb_window_send_crossing_events): New function that sends
16484         all GdkCrossingEvents from the last mouse-window to the specified
16485         destination.
16486         (gdk_fb_window_visibility_crossing): Removed function.
16487         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
16488         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
16489         instead of gdk_window_get_pointer() for better readability.
16490
16491         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
16492         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
16493
16494         * gdk/linux-fb/gdkprivate-fb.h:
16495         removed gdk_fb_window_visibility_crossing, added
16496         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
16497
16498         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
16499         New function that finds the least common ancestor of two windows.
16500         (gdk_window_show, gdk_window_hide):
16501         Use gdk_fb_window_send_crossing_events.
16502         (gdk_fb_window_move_resize): Send configure events to toplevel
16503         windows. Use gdk_fb_window_send_crossing_events.
16504
16505 2000-11-27  Havoc Pennington  <hp@redhat.com>
16506
16507         * gtk/gtkprivate.h (enum): Remove a trailing comma
16508
16509 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
16510
16511         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
16512         the "changed" callback of the adjustment.  We need to redraw the
16513         spin button's arrows when the adjustment's range changes.
16514         (adjustment_changed_cb): Draw the arrows.
16515         (gtk_spin_button_value_changed): Draw the arrows.
16516
16517 2000-11-23  Alexander Larsson  <alexl@redhat.com>
16518
16519         * gdk/linux-fb/gdkselection-fb.c:
16520         Initial selection implementation.
16521
16522         * gtk/gtkselection.c:
16523         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
16524         requestor in gtk_selection_request.
16525         
16526         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
16527         Added gdk_selection_property atom.
16528
16529         * gdk/linux-fb/gdkprivate-fb.h:
16530         Export _gdk_selection_window_destroyed.
16531         Removed mask_off_x/y from GdkCursorPrivateFB.
16532         Removed hbearing, added top, left to PangoFBGlyphInfo.
16533
16534         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
16535         Call _gdk_selection_window_destroyed
16536         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
16537         the root window has been created.
16538         (static_dx_hack, static_dy_hack, compare_draw_rects,
16539         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
16540         in region. They are already sorted. Instead just traverse them in
16541         reverse if draw_direction < 0.
16542         
16543         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
16544         Double-clicks must be sent after the normal button_press.
16545         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
16546         
16547         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
16548         Pass _gdk_fb_screen_gc instead of NULL.
16549
16550         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
16551         Initialize gdk_selection_property.
16552         (gdk_event_make): Remove unused code.
16553
16554         * gdk/linux-fb/gdkcursor-fb.c:
16555         Make the pixmap for the cursor the same size as the mask. Also remove
16556         the mask_off_x/y fields in GdkCursorPrivateFB and combine
16557         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
16558         Now the whole cursor is visible.
16559
16560         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
16561         Fix bug where xdest+height instead of ydest+height was used
16562         to calculate if the source and dest overlapped. This fixes the
16563         redraw bug when the main window in testgtk was scrolled when
16564         partially covered by a tall window.
16565         Copy rectangles in region in order depending on draw_direction.
16566         Also moved the draw_direction flipping of start_y and end_y into
16567         the gc functions, as this might not be what all of them want.
16568         (gdk_fb_draw_lines): Support dashed lines.
16569         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
16570         so that the text is positioned correctly (was 1 pixel high).
16571
16572         gdk/linux-fb/gdkgc-fb.c:
16573         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
16574         all lines were drawn a pixel to short. Also checked the default of
16575         the rest of the values, and they're the same as X now.
16576
16577         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
16578         Clean up pixel positioning of the glyphs. Just use bgy->top and
16579         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
16580         to all divisions to get correct rounding behaviour.
16581
16582         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
16583         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
16584         Moved start_y/end_y flip into draw_drawable implementations.
16585         Flip also x rendering when draw_direction < 0.
16586         Remove unneccesary multiply with draw_direction.
16587
16588 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
16589
16590         * docs/tutorial/gtk-tut.sgml:
16591           - get rid of gtk_toggle_button_toggled FUD
16592           - start DND section - needs work - based on:
16593                 http://wolfpack.twu.net/docs/gtkdnd/
16594
16595 2000-11-22  Alexander Larsson  <alexl@redhat.com>
16596
16597         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
16598         Correct calculation of font metrics. Now GtkEntrys have sane
16599         size.
16600
16601 2000-11-22  Alexander Larsson  <alexl@redhat.com>
16602
16603         * gdk/gdktypes.h:
16604         Add new type GdkSpan
16605         
16606         * docs/reference/gdk/gdk-sections.txt,
16607         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
16608         gdk/gdkregion.h:
16609         Implement and document gdk_region_spans_intersect_foreach.
16610
16611         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
16612         Add new file gdkrender-fb.c which contains all core
16613         rendering code.
16614         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
16615         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
16616         (optimized rectangle fillers).
16617
16618         * gdk/linux-fb/gdkdrawable-fb2.c:
16619         Move all rendering code to gdkrender-fb.c.
16620         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
16621         Use the new span intersection functions in gdk_fb_fill_spans.
16622         gdk_fb_draw_rectangle() clips filled rectangles and calls
16623         gc->fill_rectangle with the result.
16624         gdk_fb_fill_spans() gets extra argument "sorted".
16625
16626         * gdk/linux-fb/gdkevents-fb.c:
16627         Remove unused includes and defines.
16628         New function gdk_fb_get_time() to get correct time for events.
16629
16630         * gdk/linux-fb/gdkinput-ps2.c:
16631         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
16632         Make sure to set the time of all events.
16633
16634         * gdk/linux-fb/gdkmain-fb.c:
16635         Use gdk_fb_get_time ().
16636
16637         * gdk/linux-fb/gdkprivate-fb.h:
16638         New virtual GC calls: fill_span & fill_rectangle.
16639         Export gdk_fb_get_time().
16640         gdk_fb_fill_spans() gets extra argument "sorted".
16641
16642         * gdk/linux-fb/mi*.c:
16643         Use GdkSpan instead of GdkRectangle.
16644         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
16645         from XFree 4 source)
16646         
16647 2000-11-22    <jrb@redhat.com>
16648
16649         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
16650         reversing the order in an if statement will do.  Doing so managed
16651         to make the treemodelsort half work.  Other half will follow after
16652         I get the insert function fully fixed.
16653
16654 2000-11-21  Elliot Lee  <sopwith@redhat.com>
16655         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
16656         more than 2 bits. Besides, I need to implement an evil hack. :)
16657
16658 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
16659
16660         * docs/tutorial/gtk-tut.sgml: minor corrections
16661
16662 2000-11-20  Jonathan Blandford <jrb@redhat.com>
16663         * gtk/gtktreemodelsort.h: Add convertion functions to let you
16664           convert to and from relative path's and iters.
16665
16666         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
16667           testing sorting functions a bit better.  Currently broken -- will
16668           fix in morning.
16669
16670 2000-11-20  Havoc Pennington  <hp@redhat.com>
16671
16672         * gtk/gtkwidget.c: Documented a bunch of functions in here
16673         (gtk_widget_realize): Warn if you try to realize
16674         a widget with no parent that isn't a toplevel
16675         (gtk_widget_intersect): return a gboolean
16676
16677 2000-11-20  Havoc Pennington  <hp@redhat.com>
16678
16679         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
16680         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
16681         scrolling to be implemented in GDK to finish. Also, right now
16682         we just size_allocate all children on every layout change,
16683         which is pretty lame. Test commented out of testtext.c, 
16684         until it works better.
16685
16686 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
16687
16688         * gdk/linux-fb/gdkdrawable-fb2.c:
16689         Removed unused arguments from gdk_fb_drawable_get_pixel().
16690
16691         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
16692         Renamed fidur specific mouse packet data in MouseDevice to
16693         generic. Used it in ps2 mouse handling code to avoid blocking
16694         reads.
16695
16696 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
16697
16698         * demos/gtk-demo/main.c: Changed to have the list become
16699         non-italic when the demo window is destroyed through an external
16700         event (like a close button).  Doing so found three bugs in the
16701         widget.
16702
16703         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
16704
16705         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
16706         we actually set the cell.
16707
16708         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
16709
16710         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
16711         free a leaked path.  Thanks memprof.
16712
16713 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
16714
16715         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
16716         off-by-one error when destroying allocated segments
16717         on failure. (Elliot)
16718
16719 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
16720
16721         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
16722         memleaks found by Evan Martin.
16723
16724 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
16725
16726         * Released 1.3.2
16727         
16728         * NEWS: Updates for 1.3.2
16729
16730 2000-11-17  Tor Lillqvist  <tml@iki.fi>
16731
16732         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
16733         but in general for window system specific events.
16734
16735         * gtk/gtk.def
16736         * gtk/makefile.mingw.in
16737         * gtk/makefile.msc.in: Update.
16738         
16739         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
16740
16741 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
16742
16743         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
16744         distribute gtk.immodules.
16745
16746         * gtk/Makefile.am (install-data-local): Don't install the
16747         gtk.immodules file created for the uninstalled modules;
16748         instead run gtk-query-immodules after install
16749
16750 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
16751
16752         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
16753         -rpath to the right install location.
16754
16755         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
16756         -export-dynamic.
16757
16758         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
16759         properly.
16760
16761 2000-11-15  Havoc Pennington  <hp@pobox.com>
16762
16763         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
16764         patch from Mikael Hermansson to temporarily stop blinking while
16765         the user is using the keyboard to type or navigate. 
16766
16767         Also, when blinking, stay on for longer than we stay off. Also,
16768         return from start_cursor_blink if !cursor_visible, to save
16769         checking that flag all over the place before we call
16770         start_cursor_blink.
16771
16772 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
16773
16774         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
16775         only contain a "fontset" line, which is now ignored.
16776
16777         * gtk/gtkentry.c (gtk_entry_button_release): Make 
16778         double-click-to-select-word work.
16779         
16780 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
16781
16782         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
16783         Don't move back one char when we are actually at the end of the 
16784         paragraph.
16785
16786 2000-11-15  Robert Brady  <robert@suse.co.uk>
16787
16788         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
16789         'o' < 'p'.
16790         
16791         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
16792         bind_textdomain_codeset.
16793
16794         (gtk_init_check): Make the warning about translating default:LTR
16795         sterner.
16796         
16797 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
16798
16799         * **/Makefile.am : remove unecessary rules for win32-specific
16800         config-substituted targets. If you want these rules, use
16801         --enable-maintainer-mode (called automatically by autogen.sh).
16802         Stops a lot of unneccessary make-time warnings.
16803
16804         * gtk/gtktext{layout,display}.c: Factor in total width as
16805         well as screen when figuring alignment for word-wrap as well as
16806         no wrap; this is necessary to handle lines that cannot be wrapped
16807         at all.
16808
16809 2000-11-15  Havoc Pennington  <hp@redhat.com>
16810
16811         * gtk/testtext.c: Implement essential color cycling feature
16812
16813 2000-11-15  Havoc Pennington  <hp@redhat.com>
16814
16815         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
16816         when we invalidate the main window.
16817
16818         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
16819         GtkTextView will now invalidate the side windows for us when text
16820         changes.
16821
16822 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
16823
16824         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
16825         unconditionally, since we may need to update the horizontal
16826         scrollbars even if the height didn't change.
16827
16828         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
16829         the extra attrs, since some of them affect size.
16830
16831         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
16832         x_offset correctly.
16833
16834 2000-11-15  Havoc Pennington  <hp@redhat.com>
16835
16836         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
16837         don't move the first line out into the margin, instead move the
16838         whole paragraph in order to make space for the first line within 
16839         the margin
16840
16841 2000-11-15  Havoc Pennington  <hp@redhat.com>
16842
16843         * gtk/gtktextview.c (changed_handler): offset redraw rect by
16844         xoffset in addition to yoffset, so horizontal scrolling doesn't
16845         break redraws
16846
16847 2000-11-15  Havoc Pennington  <hp@redhat.com>
16848
16849         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
16850         from the cursor
16851         (render_layout_line): fix reversed test that caused weird
16852         underlines to get drawn
16853
16854 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
16855
16856         * gdk/linux-fb/gdkprivate-fb.h:
16857         Fix debug macros.
16858         
16859 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
16860
16861         * gdk/linux-fb/gdkprivate-fb.h:
16862         Added virtual functions set_pixel, get_color,
16863         fill_span and draw_drawable to the GC.
16864         Added global _gdk_fb_screen_gc to use instead of
16865         NULL when drawing to the screen.
16866         Added _gdk_fb_gc_calc_state() prototype.
16867
16868         * gdk/linux-fb/gdkgc-fb.c:
16869         Call _gdk_fb_gc_calc_state() on any gc state change.
16870
16871         * gdk/linux-fb/gdkglobals-fb.c:
16872         Add _gdk_fb_screen_gc
16873                 
16874         * gdk/linux-fb/gdkdrawable-fb2.c:
16875         _gdk_fb_gc_calc_state() calculates best functions
16876         for the GC state and depth.
16877         Moved bpp specialized code to separate functions.
16878         Added optimized 24 bpp AA draw_drawable.
16879
16880         * gdk/linux-fb/gdkevents-fb.c:
16881         Silence gcc warning.
16882
16883         * gdk/linux-fb/gdkimage-fb.c:
16884         Use _gdk_fb_screen_gc
16885
16886         * gdk/linux-fb/gdkwindow-fb.c:
16887         Init and use _gdk_fb_screen_gc
16888
16889         * gdk/linux-fb/mitypes.h:
16890         Remove unused types.
16891
16892 2000-11-14  Havoc Pennington  <hp@pobox.com>
16893
16894         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
16895         to pixels
16896
16897 2000-11-14  Havoc Pennington  <hp@pobox.com>
16898
16899         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
16900
16901         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
16902         unknown char, no real reason we were using a variable. 
16903         Remove gtk_text_unknown_char variable. Fix all the text widget
16904         files accordingly.
16905
16906         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
16907         since the Unicode spec seems to prefer that character for our
16908         purposes.
16909
16910 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
16911
16912         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
16913         value of g_getenv() isn't freeable, so g_strdup it.
16914
16915         * modules/input/inuktitut.c: Inuktitut input method.
16916
16917         * modules/input/Makefile.am: Build this.
16918         
16919 2000-11-14  Elliot Lee  <sopwith@redhat.com>
16920
16921         * gtk/Makefile.am: Install gtk.immodules, needed for operation
16922         of gtk programs.
16923
16924 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
16925
16926         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
16927         reversed > that was causing Home to go to end of previous line.
16928
16929         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
16930         modified-keypresses (leave for bindings.)
16931
16932         * modules/input/Makefile.am: Remove useless -export-dynamic
16933         from module LDFLAGS.
16934
16935 2000-11-14  Havoc Pennington  <hp@redhat.com>
16936
16937         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
16938         higher.
16939
16940         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
16941         account. Also, render rise, underline, background, etc. for
16942         pixbufs as well as text. Also, draw underlines one pixel higher.
16943
16944         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
16945         PangoAttribute for the rise, so it gets drawn properly. Also,
16946         add the GtkTextAppearance attribute for pixbuf/widget segments
16947         as well; we should go ahead and have rise, underline, background,
16948         stipple work for those
16949
16950         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
16951         Pango
16952
16953 2000-11-15  Tor Lillqvist  <tml@iki.fi>
16954
16955         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
16956
16957         * gtk/gtk.def: Update.
16958
16959         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
16960         included.
16961         (gtk_rc_get_im_module_file): Use run-time installation directory
16962         on Win32.
16963
16964         * gdk/win32/rc/gdk.rc: Remove.
16965         * gdk/win32/rc/gdk.rc.in: New file.
16966         * gdk/win32/rc/Makefile.am: New file
16967         * gdk/win32/Makefile.am: Corresponding changes.
16968
16969         * gtk/gtk.rc: Remove.
16970         * gtk/gtk-win32.rc.in: New file.
16971         * gtk/Makefile.am: Corresponding changes.
16972
16973         * configure.in: Corresponding changes.
16974
16975         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
16976         has a built gtkcompat.h. Developers using CVS code on Win32 can
16977         hand-edit it from gtkcompat.h.in.
16978
16979         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
16980         gtkcompat.h from gtkcompat.h.win32.
16981
16982 2000-11-14  Havoc Pennington  <hp@redhat.com>
16983
16984         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
16985         to default to GDK_ACTION_MOVE if the drag is within a single
16986         widget. Defaults to GDK_ACTION_COPY between widgets.
16987
16988 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
16989
16990         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
16991
16992         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
16993
16994         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
16995         srcdir != builddir
16996
16997         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
16998
16999         * configure.in (GTK_VERSION): Up to 1.3.2
17000
17001         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
17002         gtkimcontextxim.h
17003
17004         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
17005         missing doc comment.
17006
17007 2000-11-14  Alexander Larsson  <alexl@redhat.com>
17008
17009         * modules/linux-fb/basic.c:
17010         Use the glib iconv wrappers.
17011
17012 2000-11-13  Havoc Pennington  <hp@pobox.com>
17013
17014         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
17015         still more bugs.
17016
17017         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
17018         scroll the GdkWindows before realization.
17019
17020 2000-11-13  Havoc Pennington  <hp@redhat.com>
17021
17022         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
17023         where GC didn't always get updated properly
17024
17025         * demos/gtk-demo/textview.c (create_tags): Use subattributes
17026         of fonts instead of setting the entire font
17027
17028         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
17029         setting entire font
17030
17031         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
17032
17033         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
17034         a bunch of individually-settable font attributes. You can still 
17035         use the "font" and "font_desc" args, they just set all the font
17036         attributes at once.
17037
17038 2000-11-13 Elliot Lee <sopwith@redhat.com>
17039
17040         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
17041
17042 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
17043
17044         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
17045         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
17046
17047         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
17048         work better.
17049
17050 2000-11-13  Havoc Pennington  <hp@redhat.com>
17051
17052         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
17053         the module file.
17054
17055         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
17056         dest->language
17057
17058         * gtk/testtext.c: Test pixels above/below/inside paragraphs
17059         settings
17060
17061         * gtk/gtktextview.c: Implement object args and setters/getters for
17062         all the aspects of the GtkTextAttributes that are not set from
17063         GtkWidget attributes. This is spacing, justification, margins,
17064         etc.
17065
17066         (gtk_text_view_set_arg)
17067         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
17068         args
17069         (gtk_text_view_class_init): Add args for justify, left_margin,
17070         right_margin, indent, and tabs
17071         
17072
17073         * gtk/gtktextlayout.c (set_para_values): fix to display indent
17074         attribute properly
17075
17076         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
17077         replace with indent attribute
17078
17079         * gtk/gtktextlayout.c (set_para_values): multiply indent by
17080         PANGO_SCALE
17081
17082         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
17083         rearranging code to do that
17084         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
17085         i.e. don't subtract the top_margin first, just to keep
17086         all margin-futzing in one place.
17087
17088         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
17089
17090         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
17091         special case of last line, Pango now handles this itself.
17092         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
17093         Y coordinate
17094         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
17095         (find_display_line_above): wasn't moving the byte index as it
17096         iterated over lines, so always returned byte 0. Also, port to use
17097         PangoLayoutIter.
17098         (find_display_line_below): same problem as
17099         find_display_line_above. Also, port to use PangoLayoutIter.
17100
17101 2000-11-13  Alexander Larsson  <alexl@redhat.com>
17102
17103         * gdk/linux-fb/*.[ch]:
17104         Massive reindent to gtk+ standard. My hands hurt.
17105
17106         * gdk/linux-fb/gdkcolor-fb.c:
17107         Move GdkColorPrivateFB from inherited to windowing_data
17108
17109         * gdk/linux-fb/gdkcursor-fb.c:
17110         _gdk_cursor_new_from_pixmap made static
17111
17112         * gdk/linux-fb/gdkdnd-fb.c:
17113         GdkDragContextPrivate moved to windowing_data
17114
17115         * gdk/linux-fb/gdkdrawable-fb2.c:
17116         Removed endian.h, use glib endianness macros instead
17117         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
17118         and GDK_DRAWABLE_IMPL_FBDATA
17119
17120         * gdk/linux-fb/gdkfont-fb.c:
17121         Add empty gdk_font_load(). Needed for linking of Gtk+.
17122
17123         * gdk/linux-fb/gdkimage-fb.c:
17124         Removed endian.h, use glib endianness macros instead
17125         Moved GdkImagePrivateFB to windowing_data
17126         gdk_image_new_bitmap didn't always allocate enough
17127         memory.
17128
17129         * gdk/linux-fb/gdkinput-ps2.c:
17130         Added semi-working support for MS serial mice.
17131
17132         * gdk/linux-fb/gdkprivate-fb.h:
17133         s/GdkWindowPrivate/GdkWindowObject/
17134         Removed GdkWindowPrivate typedef
17135         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
17136         Removed GDK_DRAWABLE_P
17137         Move GdkColorPrivateFB from inherited to windowing_data
17138         Moved GdkImagePrivateFB to windowing_data
17139
17140         * gdk/linux-fb/gdkvisual-fb.c:
17141         Removed some unused debug code.
17142
17143         * gdk/linux-fb/gdkwindow-fb.c:
17144         Use stock cursors instead of including X headers.
17145         s/GdkWindowPrivate/GdkWindowObject/
17146
17147         * gdk/linux-fb/mitypes.h:
17148         Removed unused types.
17149
17150         * modules/linux-fb/basic.c:
17151         Use the pango fribidi wrappers.
17152
17153 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17154
17155         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
17156         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
17157         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
17158         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
17159         GEqualFunc where applicable.
17160         
17161         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
17162         pango_font_description_equal as changed in pango.
17163         
17164         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
17165
17166         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
17167
17168         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
17169
17170         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
17171
17172         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
17173
17174         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
17175
17176         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
17177         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
17178
17179         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
17180         gtk_rc_styles_compare -> gtk_rc_styles_equal.
17181
17182 2000-11-12  Havoc Pennington  <hp@pobox.com>
17183
17184         * demos/gtk-demo/Makefile.am (democodedir): change demo install
17185         dir to datadir/gtk+-2.0/demo
17186
17187         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
17188         sorts of text widget and Pango font bugs. Urgh.
17189
17190         * demos/gtk-demo/Makefile.am (demos): Add textview.c
17191
17192         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
17193         tree that you should double click to see the demo. Fix 
17194         types of variables to reflect changed return values from 
17195         GtkTreeStore and GtkTreeViewColumn constructors.
17196
17197         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
17198         newly-created buffer to prepare for GObject semantics
17199
17200         * gtk/testtext.c: don't leak the buffer with GObject semantics
17201
17202         * gtk/testtextbuffer.c: ditto
17203         
17204 2000-11-12  Havoc Pennington  <hp@pobox.com>
17205
17206         Rename this testgtk to gtk-demo to avoid confusion, and 
17207         install it so people can use it as a supplement to 
17208         the documentation.
17209         
17210         * demos/gtk-demo: Moved from demos/testgtk
17211
17212         * demos/testgtk: Removed
17213
17214         * configure.in: make Makefile in gtk-demo
17215         
17216         * demos/gtk-demo/Makefile.am: Install sample source to 
17217         datadir/gtk-demo (maybe there's a better place?), and 
17218         rename the binary to gtk-demo
17219         
17220         * demos/gtk-demo/main.c (load_file): Load installed sample
17221         source if source isn't found in pwd.
17222
17223 2000-11-09  Havoc Pennington  <hp@pobox.com>
17224
17225         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
17226         argument to set the char displayed when visibility == FALSE
17227         (gtk_entry_create_layout): If !entry->visible, replace 
17228         all chars with the "invisible char"
17229
17230         * gtk/testgtk.c: Test the invisible_char deal
17231         
17232 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
17233
17234         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
17235         can't get a native font in the right encoding.
17236
17237 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
17238
17239         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
17240         respectively.
17241
17242 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
17243
17244         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
17245         Fix warning when moving between paragraphs.
17246
17247         * gtk/gtkentry.[ch]: Change move => move_cursor, 
17248         delete => delete_from_cursor, insert => insert_at_cursor
17249
17250 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
17251
17252         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
17253
17254         * modules/input/imthai-broken.c: A Thai input method for use if
17255         Thai keys are really generating Latin1 keysyms.
17256
17257         * modules/input/Makefile.am: Build these.
17258
17259 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
17260
17261         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
17262         g_filename_{to,from}_utf8 now takes an extra parameter.
17263
17264         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
17265         strftime into UTF-8.
17266
17267         (column_from_x, gtk_calendar_paint_day_names): Support RTL
17268         calendars.
17269
17270         (gtk_calendar_paint_day_names): Draw day names in the right 
17271         place.
17272         
17273 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
17274
17275         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
17276         problem with using result of g_get_charset() backwards -
17277         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
17278
17279         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
17280         negative min_width/height and max_width/height to
17281         mean "requisition"; this allows setting a window
17282         to be user-resizable in only one direction easily.
17283
17284         * gtk/testgtk.c (create_main_window): Remove hard-coded
17285         usize - set a default size in the vertical direction.
17286
17287 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
17288
17289         * gtk/gtkrange.c: Add some missing casts. Support 
17290         2 and 3 button clicks on the arrows to mean 
17291         "move by pages" and "jump to end". (Like gtkspinbutton)
17292
17293 2000-11-12 Hans Breuer <Hans@Breuer.Org>
17294
17295         * gdk/win32/makefile.msc : reflect build module changes
17296
17297         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
17298         from GdkPixmap*, cast implementation member instead.
17299
17300         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
17301         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
17302         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
17303         more Gdi functions return value checking. 
17304         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
17305         GdkImagePrivateWin32 *.
17306
17307         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
17308         menus useable again. Add #pragma message to keep reminded on this issue.
17309         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
17310         windows. This allows to enable backing store on Win32!
17311
17312         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
17313         in drawable is of impl type. Correct specific type checks appropriate.
17314  
17315         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
17316         GDK_WINDOW_DESTROYED before allocating new resources.
17317
17318         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
17319
17320         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
17321         (gdk_window_foreign_new) initialize parent handle.
17322         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
17323
17324         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
17325         Let the GDI invalidate the window on MoveWindow call to fix scrolling
17326         problems (e.g. main buttons in testgtk). 
17327
17328 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
17329
17330         * gtk/gtkentry.c (gtk_entry_key_press): Call 
17331         gtk_widget_activate for GDK_Return.
17332
17333         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
17334         of preedit cursor position.
17335
17336 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
17337
17338         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
17339         static.
17340
17341 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
17342
17343         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
17344         out support for multiple locales; that simple doesn't
17345         work reliably with current Xlib
17346
17347         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
17348         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
17349         Add support for positioning the cursor within the preedit string.
17350
17351 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
17352
17353         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
17354         at XIM input method module.
17355
17356         * gtk/gtktextview.c: Check for bindings after passing
17357         events to im context filter.
17358
17359 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
17360
17361         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
17362         empty attribute lists properly.
17363
17364 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
17365
17366         * gtk/queryimmodules.c (main): Return non-zero exit
17367         status if errors were encountered querying any
17368         modules.
17369
17370         * modules/input/Makefile.am (moduledir): remove
17371         leftover bin program target.
17372
17373         * docs/make-todo: Fix typo in error message.
17374
17375 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
17376
17377         * configure.in: Add modules/input/Makefile
17378
17379 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
17380
17381         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
17382         don't include gtkthemes.h.
17383
17384         * gtk/testgtk.c gtk/testtext.c: Set environment variables
17385         to point
17386
17387         * gtk/Makefile.am: Add new .c and .h files, build 
17388         gtk-query-immodules and use it to create a gtk.immodules
17389         file for use of test programs.
17390
17391         * gtk/gtkpreview.c: remove extra blank line.
17392
17393 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
17394
17395         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
17396         Add the ability to add extra tables beyond the default
17397         one, and also the ability to have compose sequences 
17398         that are prefixes of other compose sequences. 
17399
17400         * gtk/gtkimcontextsimple.c: Export a preedit string which
17401         consists of possible candidates for keystrokes that have
17402         been entered but not yet committed.
17403
17404         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
17405         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
17406
17407         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
17408         Add a function to add input-method switching menu items
17409         to a menu.
17410
17411         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
17412         when switching input methods.
17413
17414         * gtk/gtkimcontextsimple.[ch]: Change the format of
17415         the compose table to allow compose tables of different
17416         lengths / sequence.
17417
17418 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
17419
17420         * gtk/gtkimmodule.[ch]: Support routines for loading
17421         GtkIMContext implementations dynamically at runtime.
17422
17423         * modules/input/imcyrillic-translit.c: A sample input
17424         method (based on GtkIMContextSimple with an extra table),
17425         which demonstrates preedit strings and the module
17426         system for input modules
17427
17428         * gtk/queryimmodules.c: Program to query the available
17429         input modules and write the results into a file.
17430          
17431         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
17432         extra config options "im_module_file" (cache file for
17433         input method modules), and "im_module_path" - path
17434         to look for modules when generating cache file.
17435
17436         This doesn't scale.
17437
17438 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
17439
17440         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
17441         generic code from gtkthemes into a new abstraction
17442         GtkModule which has the logic for implementing
17443         a loadable module which implements a number of 
17444         GObject types.
17445
17446 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
17447
17448         * gtk/gtkeditable.[ch]: Convert GtkEditable from
17449         a class into an interface  
17450         
17451         * gtk/gtkoldeditable.[ch]: Move the old editable
17452         implementation into here, so legacy widgets can
17453         still rely on the implemenation. GtkOldEditable
17454         exports GtkEditable. Make selection handling
17455         code use new text conversion functions (and
17456         handle UTF-8 as a side-effect). Use GtkClipboard
17457         for CLIPBOARD.
17458
17459         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
17460         Adopt to match above changes.
17461
17462         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
17463         avoid GtkOldEditable implementation. Restructure
17464         to reduce number of places that modify state directly.
17465         Move to GtkBindingSet. Display the preedit string.
17466         Queue recomputation of PangoLayout and scroll position
17467         to improve effiency of doing complex changes naively.
17468         Add a menu with cut/copy/paste and input method selection.
17469
17470 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
17471
17472         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
17473         to set preedit string and attributes; display preedit string by
17474         inserting string and attributes at cursor when creating the
17475         GtkTextLineDisplay.
17476
17477         * gtk/gtktextlayout.c: Move all conversions between byte
17478         positions in PangoLayout and GtkTextIter into new functions
17479         line_display_iter_to_index/index_to_iter that properly
17480         handle the preedit string.
17481
17482         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
17483         it to return const char * (eventually will end up
17484         as GCONST char *, most likely.)
17485
17486         * gtk/gtktextview.[ch]: Handle the preedit string, call
17487         gtk_im_context_reset() as necessary, add a menu to switch
17488         input methods.
17489         
17490         * gtk/gtktextlayout.[ch]: Remove useless
17491         gtk_text_layout_get_log_attrs() function.
17492
17493 2000-11-11  Tor Lillqvist  <tml@iki.fi>
17494
17495         * gdk/gdk.def
17496         * gtk/gtk.def: Update.
17497
17498         * gdk/win32/*.c: Add last argument to g_type_register_static()
17499         calls.
17500
17501         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
17502
17503         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
17504         generated by older wheel mouse drivers. Get the correct y
17505         coordinate from WM_MOUSEWHEEL messages.
17506
17507         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
17508         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
17509         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
17510         Debugging functions.
17511
17512         * gdk/win32/gdkprivate-win32.h: Declare them.
17513
17514         * gdk/win32/gdkinput-win32.h: Add declaration for
17515         gdk_input_window_destroy().
17516
17517         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
17518
17519 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
17520
17521         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
17522         function to help handle keeping things in sync.
17523
17524 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
17525
17526         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
17527         BOXED marshallers.
17528
17529         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
17530         (gtk_list_store_class_init): use the new BOXED marshallers.
17531
17532         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
17533         new_with_values to new_with_types.
17534         (gtk_tree_store_get_column_type): add this.
17535         (gtk_tree_store_class_init): use the new BOXED marshallers.
17536
17537         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
17538         mirror some POINTER marshallers.
17539
17540 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
17541
17542         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
17543         allow more interesting iterators.  Also, made the lifecycle of
17544         iterators more explicit.
17545
17546         * gtk/gtktreemodelsort.[ch]: New model for sorting.
17547
17548         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
17549         types.
17550
17551 2000-11-09  Alexander Larsson  <alexl@redhat.com>
17552
17553         * demos/testgtk/menus.c:
17554         Changes to make the new testgtk compile after
17555         gtk_menu_append was removed.
17556
17557         * gdk/linux-fb/gdkdrawable-fb2.c
17558         (gdk_fb_get_depth, gdk_fb_get_visual,
17559         gdk_drawable_impl_fb_class_init): Implement
17560         these drawable functions. Now GtkImages work again.
17561
17562         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
17563
17564         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
17565         
17566         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
17567         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
17568         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
17569         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
17570
17571 2000-11-08  Havoc Pennington  <hp@pobox.com>
17572
17573         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
17574         visible_set args, don't know where these had gone, I thought they
17575         used to be there
17576
17577         * gtk/testtext.c: Add a menu item to apply invisibility tag;
17578         now we can test the feature and see that it's totally broken.
17579
17580 2000-11-08  Havoc Pennington  <hp@pobox.com>
17581
17582         Make DND copy pixbufs and tags when source and target share a 
17583         tag table.
17584         
17585         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
17586         in-process GTK_TEXT_BUFFER_CONTENTS target
17587         (gtk_text_view_drag_data_received): Paste from
17588         GTK_TEXT_BUFFER_CONTENTS if we receive it.
17589
17590 2000-11-08  Alexander Larsson  <alexl@redhat.com>
17591
17592         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
17593         API changes.
17594
17595         * gtk/gtkmenu.c: Add support for scrolling menus.
17596         Remove gtk_menu_append/prepend/insert, these have been moved to
17597         gtkcompat.h as #defines.
17598
17599         * gtk/gtkcompat.h.in:
17600         Add compatibility #defines for gtk_menu_append/prepend/insert
17601
17602         * gtk/gtkmenu.h: Add data needed for scrolling menus.
17603         GtkMenuPositionFunc gets an extra argument push_in.
17604         gtk_menu_append/prepend/insert removed.
17605         
17606         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
17607         positioning behaviour to fit to scrolling menus.
17608
17609         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
17610         into menuitem->submeny. That is wrong, and broke torn
17611         off submenus of torn off menus, since they were unrealized
17612         when the first menu was unrealized.
17613
17614         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
17615         gtk_menu_shell_select_item() since these need to be overridden in
17616         GtkMenu.
17617
17618         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
17619         positioning behaviour to fit to scrolling menus.
17620         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
17621         the current item so that it is prelighted when the menu pops up.
17622         This is a workaround to the fact that the menu doesn't get the
17623         initial enter event (due to grabs).
17624
17625         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
17626         s/gtk_menu_append/gtk_menu_shell_append/
17627
17628         * gtk/gtknotebook.c:
17629         s/gtk_menu_insert/gtk_menu_shell_insert/
17630
17631         * gtk/testgtk.c (create_menu, create_menus):
17632         Create the first menu with 50 items so that menu scrolling
17633         can be tested.
17634         
17635         
17636         Patch from Jonathan Blandford  <jrb@redhat.com>
17637
17638         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
17639         system to handle size requests.  First, we ask what the size of
17640         the toggle is.  Then, when allocating the size, we allocate the
17641         toggle_size first.  This way we can have multiple menu-item
17642         classes w/o needing a seperate class for each.
17643
17644         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
17645         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
17646
17647         * gtk/gtkcheckmenuitem.c
17648         (gtk_check_menu_item_toggle_size_request): New function to handle
17649         the toggle size-request.
17650
17651 2000-11-07  Havoc Pennington  <hp@redhat.com>
17652
17653         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
17654         Half-ass somewhat fix this function, so that scrolling to the
17655         insertion point works. Pango hacking is in the future to really
17656         fix it.
17657
17658         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
17659         length of data, no longer used.
17660
17661         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
17662         method contents in here, get rid of destroy method
17663         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
17664         that were backward. Remove debug spew.
17665         (cut_or_copy): Make the clipboard work with insert_range to
17666         preserve tags and pixbufs, not just the primary selection.
17667
17668 2000-11-07  Havoc Pennington  <hp@redhat.com>
17669
17670         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
17671         to gtk_text_mark_get_visible
17672
17673         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
17674         bug that was generating an invalid iterator
17675
17676         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
17677         ensure_char_offsets() in front of code placing the iter in an
17678         invalid state.
17679
17680         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
17681         make override_location arg const
17682         (paste): Replace the selection if we paste into the 
17683         current selection
17684
17685         * gtk/gtkselection.h: Remove "GtkSelectioData"
17686         (struct _GtkSelectionData): move the definition here.
17687
17688         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
17689         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
17690
17691         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
17692
17693         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
17694         (gtk_text_buffer_insert_range_interactive): implement
17695         (gtk_text_buffer_get_tags): Remove, replaced by
17696         gtk_text_iter_get_tags()
17697
17698         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
17699         limit parameter, to avoid infinite linear scan.
17700         (gtk_text_iter_backward_search): Add search limit
17701         (gtk_text_iter_forward_find_char): Add search limit
17702         (gtk_text_iter_backward_find_char): Add search limit
17703
17704 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
17705
17706         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
17707         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
17708         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
17709         gdk/linux-fb/gdkwindow-fb.c:
17710         use g_object_new() instead of g_type_create_instance() which
17711         is a private function for fundamental type implementations.
17712
17713         * gdk/linux-fb/gdkinput-ps2.c:
17714         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
17715         instead just store the current modifier state. Add a (somewhat broken)
17716         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
17717         Rename exported function gdk_input_ps2_get_mouseinfo to
17718         gdk_input_get_mouseinfo.
17719
17720         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
17721         gdk/linux-fb/gdkwindow-fb.c:
17722         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
17723         
17724
17725 2000-11-02  Havoc Pennington  <hp@redhat.com>
17726
17727         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
17728         use stock buttons. Should be 100% source compatible, appropriate
17729         filesel fields now point to dialog->vbox and dialog->action_area.
17730         On the bizarre side, dialog->action_area and filesel->action_area
17731         are not the same widget.
17732         (gtk_file_selection_init): Put some padding around the selection
17733         entry, so it isn't touching the GtkDialog separator.    
17734
17735         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
17736         use stock buttons, etc. Should also be source compatible.
17737         Set the dialog default title in _init not _new().
17738         
17739         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
17740         Use stock buttons; don't put a button box inside the existing
17741         dialog button box. Don't bother with push/pop colormap anymore.
17742
17743         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
17744         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
17745         for message dialog, and necessary for the font selection and color
17746         selection with help and apply buttons.
17747         
17748         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
17749         to the created button widget. Set GTK_CAN_DEFAULT on the button.
17750         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
17751         between buttons, put less padding around the action area.
17752         (gtk_dialog_run): Exit on unmap rather than on destroy. 
17753         This will also exit the loop if the widget is hidden.
17754         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
17755         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
17756         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
17757         special-case delete event.
17758
17759         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
17760         formatting
17761         
17762 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
17763
17764         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
17765         button to temporarily disable position recording in the
17766         "saved position" test.
17767
17768 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
17769
17770         * gtk/gtkthemes.c: added compat code that temporarily implements
17771         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
17772         going to be revamped by owen's upcoming GtkModule patches, but
17773         untill then people want gtk to build, right? ;)
17774
17775 2000-11-04  Havoc Pennington  <hp@pobox.com>
17776
17777         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
17778         list
17779
17780         * docs/Changes-2.0.txt: Add note about
17781         gtk_container_get_toplevels()
17782
17783         * gtk/gtktextview.h: formatting
17784         
17785         * gtk/gtktextview.c: don't start descriptions with "Returns",
17786         confuses gtk-doc
17787
17788 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
17789
17790         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
17791         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
17792
17793 2000-11-03  Havoc Pennington  <hp@redhat.com>
17794
17795         * gtk/gtktexttagtable.c: Docs
17796         (gtk_text_tag_table_size): return a signed int
17797
17798         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
17799         (gtk_text_tag_event): make the event_object a GObject
17800
17801         * gtk/gtktextview.c: Write API docs for all functions.
17802
17803         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
17804         for gtk_text_view_get_window_type() called on one of the private
17805         windows.
17806
17807         * gtk/gtktextview.c: Instead of accessing text_view->buffer
17808         directly, call get_buffer() which demand-creates a default
17809         buffer. So gtk_text_view_new() can be used to create a view with a
17810         default buffer in it, if you just want an empty text box users can
17811         put data in. Useful for GUI builders also.
17812
17813 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
17814
17815         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
17816         the charset encodign portion MUST be in lowercase.
17817         * gtk/gtkrc.az: added file for Azeri language
17818
17819 2000-11-03  Havoc Pennington  <hp@redhat.com>
17820
17821         Get widgets working on the btree/buffer side. Display of them 
17822         still doesn't work.
17823         
17824         * gtk/gtktextview.c: start implementing child widget stuff
17825
17826         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
17827
17828         * gtk/gtktextlayout.c: handle embedded widgets
17829
17830         * gtk/gtktextdisplay.c: handle embedded widgets
17831
17832         * gtk/gtktextchild.c: Implement all the child anchor goo
17833
17834         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
17835         function
17836
17837         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
17838         (insert_pixbuf_or_widget_segment): abstract out common portions of 
17839         creating a child anchor or a pixbuf segment.
17840         (gtk_text_btree_create_child_anchor): new function
17841         (gtk_text_btree_unregister_child_anchor): new function
17842
17843         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
17844         allocate_child signal on GtkTextLayout
17845
17846         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
17847         values
17848         (gtk_text_iter_get_child_anchor): new function
17849
17850         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
17851         default handler for the changed signal, which calls
17852         gtk_text_buffer_set_modified(), instead of just always emitting
17853         changed then calling set_modified() manually. I guess this is
17854         maybe more flexible. It seems logical.
17855
17856 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
17857
17858         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
17859         now.
17860
17861         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
17862
17863 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
17864
17865         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
17866         been marked static.
17867
17868 2000-11-02  Havoc Pennington  <hp@redhat.com>
17869
17870         * gtk/testgtk.c (create_labels): had a test backward
17871
17872         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
17873         fields, so the dest GC ends up with the correct clip origin, 
17874         etc. Fixes a bug where colored labels didn't redraw 
17875         properly.
17876
17877 2000-11-02  Alexander Larsson  <alexl@redhat.com>
17878
17879         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
17880         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
17881         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
17882         Add last argument to t_type_register_static call.
17883         
17884         * gdk/linux-fb/gdkdrawable-fb2.c:
17885         Add last argument to t_type_register_static call.
17886         export the get_image drawable virtual function.
17887
17888         * gdk/linux-fb/gdkimage-fb.c:
17889         Add last argument to t_type_register_static call.
17890         rename gtk_image_get to _gdk_fb_get_image and
17891         export it for use by gdkdrawable-fb2.
17892
17893         * gdk/linux-fb/gdkprivate-fb.h:
17894         export _gdk_fb_get_image.
17895
17896         * gdk/linux-fb/gdkselection-fb.c:
17897         Add new api call stubs.
17898
17899         * gtk/Makefile.am:
17900         Missing ( in linux-fb part.
17901
17902         * modules/linux-fb/Makefile.am:
17903         Must link with gdk_pixbuf or get unresolved symbol.
17904
17905 2000-11-01  Havoc Pennington  <hp@pobox.com>
17906
17907         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
17908         GTK_TYPE_TEXT_ITER and BOXED marshallers
17909
17910         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
17911
17912         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
17913         
17914         * gtk/gtk-boxed.defs: add GtkTextIter
17915
17916         * gtk/gtkmarshal.list: Add marshallers for text widget that 
17917         properly use OBJECT and BOXED
17918
17919 2000-11-01  Havoc Pennington  <hp@redhat.com>
17920
17921         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
17922
17923         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
17924         before returning it. 
17925         
17926 2000-11-01  Havoc Pennington  <hp@redhat.com>
17927
17928         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
17929         Clip the rectangle to be rendered to the drawable, since
17930         get_from_drawable() requires a region within the drawable
17931
17932 2000-11-01  Havoc Pennington  <hp@redhat.com>
17933
17934         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
17935         from coordinates.
17936
17937 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
17938
17939         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
17940         it isn't NULL.
17941
17942 2000-11-01  Havoc Pennington  <hp@pobox.com>
17943
17944         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
17945         on a label
17946         (gtk_label_finalize): unref the attr list if any.
17947
17948         * gtk/testgtk.c (create_get_image): close test on second click
17949         (make_message_dialog): close dialog if it exists
17950
17951         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
17952
17953         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
17954         gdk-pixbuf
17955
17956         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
17957         from Pango markup format
17958         (gtk_label_set_markup_with_accel): ditto but with accelerator
17959         parsing
17960
17961         * gtk/gtkimage.c (gtk_image_expose): reformatting.
17962
17963         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
17964         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
17965         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
17966         call gdk_window_get_origin().
17967
17968         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
17969         implement GDK_PIXBUF_ALPHA_FULL
17970         
17971 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
17972
17973         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
17974         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
17975         g_signal_handlers_disconnect_matched to block/unblock and disconnect
17976         multiple handlers respectively, instead of only treating the
17977         first handler found (bug reported by owen).
17978
17979 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
17980
17981         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
17982
17983         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
17984
17985         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
17986         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
17987         gtk/gtktreeviewcolumn.h: Fixed inline docs.
17988
17989         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
17990         widget.  Needs writing someday.
17991
17992         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
17993         the docs.
17994
17995 2000-10-30  Havoc Pennington  <hp@redhat.com>
17996
17997         * gtk/gtktextview.h, gtk/gtktextview.c:
17998         Rename delete_at_cursor delete_from_cursor, and 
17999         move to move_cursor.
18000
18001 2000-10-30  Havoc Pennington  <hp@redhat.com>
18002
18003         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
18004         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
18005         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
18006         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
18007         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
18008         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
18009         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
18010         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
18011         gtktexttypes.h, gtktextview.c, gtktextview.h:
18012
18013         Massive reindentation and reformatting. Arg alignment and comments
18014         still need fixing in various places.
18015
18016 2000-10-30  Havoc Pennington  <hp@redhat.com>
18017
18018         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
18019         to be named insert_at_cursor and delete_at_cursor so C++ can
18020         handle them.
18021
18022 2000-10-28  Tor Lillqvist  <tml@iki.fi>
18023
18024         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
18025         to get a double directory separator in case the home directory
18026         ends with one. This would cause trouble especially on Windows,
18027         where the path will be confused with the syntax for an an UNC
18028         (network share) path \\server\share\path.
18029         (gtk_rc_add_initial_default_files): Ditto.
18030
18031 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
18032
18033         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
18034
18035         * gtk/gtktextview.c: Use correct marshallers.
18036
18037 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
18038
18039         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
18040         use new iter stuff, and added all the appropriate signals et al.
18041
18042         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
18043         code is internal to gtk only.
18044
18045 2000-10-28  Tor Lillqvist  <tml@iki.fi>
18046
18047         * gtk/gtk.def
18048         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
18049         glib-genmarshal etc.
18050
18051 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
18052
18053         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
18054         parallel builds.
18055
18056 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
18057
18058         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
18059
18060 2000-10-27  Robert Brady  <robert@suse.co.uk>
18061
18062         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
18063         en_GB (British), ia (Interlingua).
18064
18065 2000-10-26  Havoc Pennington  <hp@redhat.com>
18066
18067         * gtk/gtktextiter.c (my_strrstr): fix constness warning
18068
18069         Fixed output of:
18070         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
18071         
18072         * gtk/gtktextsegment.c (char_segment_new): rename
18073         (_char_segment_new_from_two_strings): rename
18074         (_toggle_segment_new): rename
18075         
18076         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
18077         (make_clipboard_widget): make it static
18078         (text_get_func): static
18079         (text_clear_func): static
18080
18081         * gtk/gtkcolorsel.c (adjustment_changed): make this function
18082         static
18083         (hex_changed): make it static
18084         (hsv_changed): make it static
18085         (opacity_entry_changed): make it static
18086
18087         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
18088         (toggle_segment_check_func): rename with _gtk
18089
18090         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
18091         (_widget_segment_new): rename
18092         (_widget_segment_add): rename
18093         (_widget_segment_remove): rename
18094         (_widget_segment_ref): rename
18095         (_widget_segment_unref): rename
18096
18097         * gtk/gtktextmark.c (_mark_segment_new): Rename
18098         _gtk_mark_segment_new   
18099
18100 2000-10-26  Havoc Pennington  <hp@redhat.com>
18101
18102         * gtk/gtkmarshal.list: add new marshallers used by the text widget
18103         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
18104         types
18105
18106         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
18107         marshaller types
18108
18109         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
18110         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
18111         license on these files.
18112
18113         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
18114         work.
18115
18116         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
18117         runtime random number different for each tree, instead of 
18118         a constant I made up.
18119
18120 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
18121
18122         * gtk/Makefile.am: buncha cleanups, kludged build sources
18123         dependencies with a Makefile: oldest-source-stamp dependancy
18124         for the moment. automake is really fighting us here, with
18125         intentionally not allowing user-defined rules or dependancies
18126         prior to it's -include $(DEP_FILES) statement. sucks rocks!
18127
18128         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
18129         to public headers. tehy have a comment stating that they are
18130         "semi-public" aren't included by gtk.h and if enums popup there,
18131         they can be /*< skip >*/-ed.
18132
18133         * gtk/gtktextlayout.h: 
18134         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
18135         added LGPL... <SIGH>
18136
18137 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
18138
18139         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
18140         GtkTreeIter.  Added iterators everywhere.
18141
18142         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
18143
18144         * gtk/gtktreeviewselection.c: Changed to use the iterators.
18145
18146         * gtk/gtktreestore.c: Changed to use the iterators.
18147
18148         * gtk/gtkliststore.c: Commented out the code.  Will convert to
18149         iterators tomorrow.
18150
18151         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
18152         iterators tomorrow.
18153
18154         * gtk/treestoretest.c: Changed to use iterators.
18155
18156         * demos/testgtk/main.c: Moved to use the new iterator system.
18157
18158 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
18159
18160         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
18161         localization misbehaviour.
18162
18163         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
18164         a useless type without copy/free.
18165
18166         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
18167         of GTK_TYPE_CTREE_NODE.
18168
18169 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
18170
18171         * gtk/gtksignal.c:
18172         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
18173         applicable.
18174
18175         * gtk/gtk-boxed.defs (GtkSelectionData): specify
18176         gtk_selection_data_copy and gtk_selection_data_free
18177         do GtkSelectionData work as params in signals.
18178
18179 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
18180
18181         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
18182         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
18183         couldn't they at least give it a non-standard name?
18184         
18185         * gtk/gtktextlayout.c: arg! yet another implementation of
18186         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
18187
18188         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
18189         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
18190         home. now i know this _is_ a conspiracy.
18191
18192         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
18193         ::state-changed.
18194
18195         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
18196         (gtk_accel_group_create_add): marshaller signature fixups.
18197
18198         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
18199         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
18200
18201         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
18202         anymore.
18203
18204 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
18205
18206         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
18207         due to the signal system changes, it wouldn't build currently. to
18208         be fixed soon.
18209
18210         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
18211
18212         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
18213         so it needs gtk_marshal_VOID__ENUM() instead of
18214         gtk_marshal_NONE__UINT().
18215
18216         * gdk/gdk*.c: adapted type registration functions.
18217
18218         * gtk/gtkbindings.c:
18219         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
18220         gone.
18221
18222         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
18223
18224         * gtk/gtkobject.c:
18225         (gtk_object_destroy):
18226         (gtk_object_shutdown): fixed recursion guards. basically we have to
18227         catch the case where any of GObject.shutdown() or gtk_object_destroy()
18228         is called during ::destroy, and avoid recursion there.
18229
18230         * gtk/gtktypeutils.c:
18231         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
18232         boxed_copy/boxed_free. this needs a more general solution based on a
18233         publically installed code-generator utility.
18234
18235         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
18236         glib's gobject has support for that now.
18237         define GtkSignalMarshaller in terms of GSignalCMarshaller.
18238
18239 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
18240
18241         * gtk/gtksignal.[hc]:
18242         * gtk/gtkmarshal.[hc]:
18243         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
18244         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
18245         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
18246         care of that.
18247
18248         * *.c: marshaller name fixups.
18249
18250         * gtk/gtkmarshal.list: added a comment briefing the format.
18251
18252 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
18253
18254         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
18255         compatibility macros here now. more specifically, most of
18256         the API is preserved (yes, _most_, nonwithstanding the
18257         following exceptions listed, the API is stil lHUGE ;)
18258         things that got removed completely:
18259         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
18260         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
18261         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
18262         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
18263         gtk_signal_remove_emission_hook().
18264         non-functional functions variants:
18265         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
18266         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
18267         not supported anymore.
18268         (gtk_signal_compat_matched): new internal function to aid
18269         implementation of the compatibility macros, it  provides
18270         functionality to block/unblock/disconnect handlers based
18271         on func/data.
18272
18273         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
18274
18275         * *.c: adaptions to new type registration API signatures.
18276
18277 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
18278
18279         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
18280
18281 2000-10-25  Robert Brady  <robert@suse.co.uk>
18282
18283         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
18284         gdk_property_delete): If window == NULL, assume the root window.
18285         (restoring the behaviour that was in 1.2).
18286         
18287         * gtk/testtext.c (save_buffer): Allow creation of new files when
18288         saving.
18289
18290         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
18291         calls to read().
18292
18293 2000-10-25  Tor Lillqvist  <tml@iki.fi>
18294
18295         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
18296
18297         * gdk/win32/gdkdrawable-win32.c
18298         * gdk/win32/gdkimage-win32.c
18299         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
18300         X11 backend.
18301
18302         * gdk/win32/gdkcc-win32.c
18303         * gdk/win32/gdkcolor-win32.c
18304         * gdk/win32/gdkfont-win32.c
18305         * gdk/win32/gdkinput-win32.c
18306         * gdk/win32/gdkmain-win32.c
18307         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
18308
18309 2000-10-24  Havoc Pennington  <hp@redhat.com>
18310
18311         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
18312         it a static function
18313
18314         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
18315         redraw text when a tag is applied to it.
18316
18317         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
18318         (gtk_text_tag_affects_nonsize_appearance): private functions to
18319         see if a tag requires various kinds of redraw/layout to be queued
18320         up.
18321
18322         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
18323
18324         * gtk/testtext.c (fill_example_buffer): Put the cursor 
18325         at the start of the buffer, so search works by default
18326
18327         * gtk/gtktextiter.c (lines_match): init match_start always
18328
18329         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
18330         function, get iter at a line + a byte index
18331
18332         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
18333         to set byte position within a line
18334         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
18335
18336 2000-10-23  Havoc Pennington  <hp@redhat.com>
18337
18338         * gtk/testtext.c: Re-enable the "find" dialog
18339
18340         * gtk/testgtk.c: Add test for gdk_drawable_get_image
18341         
18342         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
18343         the arguments to gdk_draw_drawable were in the wrong order
18344         (gdk_window_paint_init_bg): This function was ignoring the
18345         init_region, instead of clipping to it, so the entire backing
18346         pixmap was cleared on every begin_paint()
18347         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
18348         was in here again, the loop kept using the same GtkWindowPaint
18349         over and over.
18350         (gdk_window_begin_paint_region): Fix a bug where we had two
18351         x_offset instead of x_offset and y_offset
18352
18353         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
18354         before we get the image.
18355         (gdk_draw_drawable): get the composite before we draw the drawable.
18356         (gdk_drawable_real_get_composite_drawable): default
18357         get_composite_drawable implementation that returns the drawable 
18358         itself
18359
18360         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
18361         get_composite_drawable virtual function
18362
18363         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
18364         list-walking bug
18365
18366         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
18367         make this work if the source drawable is a GdkDrawableImplX11
18368         instead of a public drawable type. This is really broken; the
18369         problem is that GdkDrawable needs a virtual method get_xid(), but
18370         of course that doesn't work in practice. Enter RTTI.
18371
18372         Also, improve mismatched depth message.
18373
18374         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
18375         GdkPixmap
18376
18377         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
18378         install _gdk_x11_get_image as our implementation of get_image
18379         
18380         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
18381         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
18382
18383         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
18384         gdk_drawable_get_image
18385
18386         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
18387
18388         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
18389         get_image
18390
18391         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
18392         trailing semicolon after for loop
18393
18394 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
18395
18396         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
18397         where font_desc for widget's context lagged widget's font_desc by
18398         one step.
18399
18400 2000-10-22  Tor Lillqvist  <tml@iki.fi>
18401
18402         * gdk/win32/gdkgc-win32.c
18403         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
18404
18405         * gtk/makefile.mingw.in
18406         * gtk/gtk.def: Updates.
18407
18408         * gtk/testgtk.c: sleep() is called _sleep in MS's C
18409         library.
18410
18411         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
18412
18413         * gtk/makefile.msc: Remove
18414
18415         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
18416
18417         * gtk/Makefile.am: Add it.
18418
18419         * configure.in: Generate it.
18420
18421         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
18422         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
18423         something even if not implemented, to satisfy picky MSVC.
18424
18425         Patches by Hans Breuer:
18426         
18427         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
18428         SetBkMode() and SetTextAlign() before calling
18429         pango_win32_render().
18430
18431         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
18432         Set hcliprgn to NULL after destroying it.
18433         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
18434
18435         * gdk/win32/gdkgeometry-win32.c
18436         (_gdk_windowing_window_queue_antiexpose): More effective
18437         implementation.
18438
18439         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
18440         depth as default, not the visual's.
18441
18442         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
18443         against empty title.
18444
18445         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
18446         IMAGE_PRIVATE_DATA.
18447
18448         * gdk/win32/gdkimage-win32.c: Use it.
18449
18450 2000-10-22  Robert Brady  <robert@suse.co.uk>
18451
18452         * configure.in: Check for bind_textdomain_codeset
18453
18454         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
18455         present, make use of it.
18456
18457         Add a translatable string "default:LTR" which, if translated
18458         to "default:RTL", will cause the default direction to be
18459         Right-to-Left.
18460
18461         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
18462         direction if marked as flippable.
18463
18464         * gtk/gtkhscale.c: Mark widget as flippable.
18465         
18466 2000-10-04  Havoc Pennington  <hp@redhat.com>
18467
18468         * gtk/testgtk.c (create_buttons): create some stock buttons
18469         with the default accel group
18470         (create_image): test some new GtkImage features
18471         (make_message_dialog): test GtkMessageDialog
18472         (create_modal_window): fix someone's bizzarro indentation
18473
18474         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
18475         GTK_WIN_POS_CENTER_ON_PARENT. 
18476         Add "destroy with parent" setting, which means the window goes
18477         away with its transient parent.
18478         (gtk_window_get_default_accel_group): get the default accel group
18479         for the window.
18480         (gtk_window_set_destroy_with_parent): set/unset destroy with
18481         parent flag
18482         (gtk_window_read_rcfiles): invalidate icon set caches
18483         after reloading rcfiles 
18484
18485         * gtk/gtkenums.h (GtkWindowPosition): add
18486         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
18487         on its parent window when the dialog is mapped for the first time.
18488
18489         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
18490         a simple message dialog class
18491         
18492         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
18493         handler to emit response signal, and maybe later it would
18494         honor a hide_on_delete flag - though that isn't there yet.
18495         Set border width on the vbox to 2, so we get some padding.      
18496         Use a button box for the action area.
18497         (gtk_dialog_key_press): synthesize a delete event if Esc
18498         is pressed and the GtkWidget key press handler didn't 
18499         handle the escape key.
18500         (gtk_dialog_new_with_buttons): new function creates a dialog
18501         with some default buttons in it.
18502         (gtk_dialog_add_action_widget): add an activatable widget
18503         as a button in the dialog - you can also add a non-activatable
18504         widget by accessing the action area directly.
18505         (gtk_dialog_add_button): add a simple button - stock ID or 
18506         label - to the action area
18507         (gtk_dialog_response): emit response signal
18508         (gtk_dialog_run): block waiting for the dialog, return 
18509         the response. Override normal delete_event behavior, so that 
18510         delete_event does nothing inside gtk_dialog_run().
18511         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
18512         emitted when an action widget is clicked or the dialog gets
18513         delete_event
18514
18515         * gtk/gtk.h: add gtkmessagedialog.h
18516
18517         * gtk/Makefile.am: add gtkmessagedialog.[hc]
18518
18519 2000-10-18  Havoc Pennington  <hp@redhat.com>
18520
18521         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
18522         where any number of empty lines would get skipped
18523
18524         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
18525         edge.
18526
18527         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
18528         warning about invalid iterators (explain more thoroughly)
18529         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
18530
18531         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
18532         big
18533
18534         * demos/*.c: Add error handling
18535
18536         * gtk/gtktextbuffer.c: don't modify const iterators
18537
18538         * gtk/gdk-pixbuf-loader.c: Add full error handling here
18539
18540         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
18541         on file load
18542
18543         * gtk/gtkiconfactory.c: Update to reflect addition of error
18544         handling to gdk-pixbuf loaders
18545
18546 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
18547
18548         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
18549         move to new modularized testgtk.
18550
18551 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
18552
18553         * gtk/gtktreeview.c: Draw the arrows correctly.
18554
18555         * gtk/gtktreemodel.c: Added user docs.
18556
18557         * gtk/gtk.h: remove gtktreedatalist.h.
18558
18559         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
18560         parent when generating my type.
18561
18562         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
18563         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
18564
18565 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
18566
18567         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
18568         GtkTreeModel from object to interface.
18569
18570 2000-10-16  Havoc Pennington  <hp@redhat.com>
18571
18572         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
18573         compilation
18574
18575 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
18576
18577         * gtk/gtktreeselection.c: Add API documentation to all public
18578         functions.
18579
18580         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
18581         functions.
18582
18583 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
18584
18585         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
18586         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
18587         docs to all public functions.
18588
18589         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
18590         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
18591         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
18592         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
18593         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
18594         issue.
18595
18596 2000-10-14  Robert Brady  <robert@suse.co.uk>
18597
18598         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
18599
18600 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
18601
18602         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
18603         values other then G_TYPE_STRING.
18604         * gtk/gtktreeselection.c: Minor commenting updates.
18605         * gtk/gtktreeview.c: Format updates.
18606
18607 2000-10-09  Tor Lillqvist  <tml@iki.fi>
18608
18609         * README.win32: Update.
18610
18611         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
18612         lines that had been deleted by mistake (?).
18613
18614         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
18615         also the case fg==white and bg==black (but still not randomly
18616         coloured cursors). Thanks to Wolfgang Sourdeau.
18617
18618         * gdk/win32/*.c: Silence gcc -Wall.
18619
18620         * gtk/gtk.def: Add missing entry points.
18621
18622         Fixes by Hans Breuer:
18623
18624         * gdk/makefile.msc
18625         * gdk/win32/makefile.msc: Update.
18626
18627         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
18628         some MSVC thing, presumably), cause breakpoint on failures. Add
18629         GDK_NOR case. Call g_log_set_always_fatal.
18630
18631         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
18632         should be pased by reference.
18633         
18634         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
18635         
18636         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
18637
18638         * gdk/win32/gdkevents-win32.c
18639         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
18640
18641         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
18642         implementation object.
18643
18644         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
18645         not just windows.
18646         
18647         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
18648         Use the wrapper object.
18649         
18650 2000-10-06  Havoc Pennington  <hp@redhat.com>
18651
18652         * Makefile.am (SRC_SUBDIRS): contrib subdir
18653
18654         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
18655         so it can be used in Xlib version
18656
18657         * demos/testpixbuf.c (update_timeout): error checking from 1.0
18658         tree
18659
18660         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
18661         change from 1.0 tree that returns first frame of animation
18662         if the loaded file is an animation.
18663
18664         * contrib: add new directory to hold stuff that comes with GTK+
18665         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
18666         
18667         * configure.in: add contrib/*
18668
18669 2000-10-05  Havoc Pennington  <hp@redhat.com>
18670
18671         * demos/testpixbuf-save.c: add pixbuf save test
18672
18673         * demos/Makefile.am: add testpixbuf-save.c
18674
18675 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
18676
18677         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
18678         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
18679         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
18680         * gtk/gtktreeselection.[ch]: Replaced
18681         "node_selected"/"node_unselected" signal with "selection_changed"
18682         signal.
18683
18684 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
18685
18686         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
18687         tree widget.
18688
18689 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
18690
18691         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
18692         drawing.
18693
18694 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
18695
18696         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
18697         Move list pointer forwards before removing item from
18698         list. (Crash reported by Salmaso Raffaele)
18699
18700         * gdk/gdkwindow.h: Remove spurious trailing ,
18701
18702         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
18703         dependencies on uninstalled libraries, sorry folks.
18704
18705 2000-10-04  Havoc Pennington  <hp@redhat.com>
18706
18707         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
18708         gtk/gtkiconfactory.c: Fix copyrights    
18709
18710         * demos/testpixbuf.c: add inline pixbuf test
18711         
18712 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
18713
18714         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
18715         Add gdk_window_iconify.
18716
18717         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
18718         (gdk_window_set_geometry_hints): Add win_gravity
18719         to geometry structure.
18720
18721         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
18722         Implement _NET_WM_PING.
18723
18724         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
18725         Set _NET_WM_PID on the client leader.
18726
18727         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
18728         Handle UTF-8 better.
18729
18730         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
18731         UTF-8 better, set _NET_WM_NAME as well. Only set
18732         icon name if it hasn't previously been explicitely 
18733         set.
18734
18735 2000-10-03  Havoc Pennington  <hp@redhat.com>
18736
18737         * gtk/testtextbuffer.c: clean up trailing whitespace,
18738         add extensive tests for tag toggle iteration.
18739         
18740         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
18741         distance
18742
18743         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
18744         optimize case where the tag root is on level 1
18745         (gtk_text_line_previous_could_contain_tag): attempt to implement
18746         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
18747         functionality
18748
18749         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
18750         Implement this, though not very efficiently.
18751
18752         * gtk/gtktextiterprivate.h: reformat
18753
18754         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
18755         iterator
18756
18757         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
18758         this to properly revalidate the iterators.
18759
18760         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
18761         properly at the end of the line (and therefore on empty lines)
18762
18763         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
18764         maybe we should return a value...
18765
18766 2000-10-03  Tor Lillqvist  <tml@iki.fi>
18767
18768         * config.h.win32: Guard definition of alloca(). glib.h now handles
18769         that.
18770
18771         * gdk/gdk.def
18772         * gtk/gtk.def: Add new entry points.
18773
18774         Changes just to make GTK+ build without errors on Win32. No hope
18775         of it working in its current state, though...:
18776         
18777         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
18778         some functions from the X11 backend, just to make GTK+ build.
18779
18780         * gdk/makefile.mingw.in
18781         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
18782         number. Add new object files.
18783
18784         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
18785         GetMessageTime to get timestamp (where on X11 uses
18786         gdk_x11_get_server_time()).
18787
18788 2000-10-02  Havoc Pennington  <hp@pobox.com>
18789
18790         * gtk/gtktextview.c: text_window_* weren't static and should have
18791         been.
18792         Start work on child widgets; not yet complete, syncing to 
18793         office computer.
18794
18795         * gtk/gtktextchild.h: change this to contain a public interface,
18796         starting work on child interfaces.
18797         * gtk/gtktextchildprivate.h: move private interfaces here
18798
18799         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
18800
18801         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
18802         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
18803         gtk/gtktextmark.c: copyright notices
18804
18805         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
18806         internal functions      
18807
18808         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
18809         internal function
18810
18811         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
18812         Reformatting    
18813
18814 2000-09-30  Havoc Pennington  <hp@pobox.com>
18815
18816         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
18817         NULL start/end pointers
18818
18819         * gtk/gtktextbuffer.c: Write some docs
18820         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
18821         NULL, so you can just check whether there's a selection.        
18822
18823         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
18824         cleanup_line or segments_changed ourselves, it gets done 
18825         in unlink_segment
18826
18827         * gtk/gtktextmark.h:
18828         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
18829         
18830         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
18831
18832         * gtk/gtktextmark.c: delete some more old Tk cruft
18833
18834         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
18835         mark before removing it, so we can emit MARK_DELETED with a valid
18836         pointer.
18837         (gtk_text_buffer_mark_set): hold ref across signal emission
18838
18839         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
18840         whining about attempts to delete special marks
18841
18842         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
18843         underscore, since it's internal.
18844
18845         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
18846         now implemented in terms of iterators in gtktextiter.h
18847
18848         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
18849         New function, destructively sets contents of buffer. Also 
18850         a convenient way to clear the buffer by setting text to ""
18851
18852         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
18853         multiline string literal
18854
18855         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
18856         text changes.
18857
18858         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
18859         is not dereferenceable
18860         (gtk_text_iter_forward_lines): fix return value
18861
18862 2000-09-29  Havoc Pennington  <hp@redhat.com>
18863
18864         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
18865
18866         * gtk/gtktextview.c: Implement drag thresholding; change functions 
18867         that set border window size to have nicer name
18868         (gtk_text_view_mark_set_handler):  Fix this to have the 
18869         right signature.
18870
18871         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
18872
18873         * gtk/testtext.c: Update with API changes, put line numbers on 
18874         both sides.
18875         
18876         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
18877         with this
18878
18879         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
18880         pixbuf; delete a big block of #if 0 Tk code
18881
18882         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
18883         insert_pixmap with insert_pixbuf
18884
18885 2000-09-29  Martin Baulig  <baulig@suse.de>
18886
18887         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
18888         confusion with the GdkPixbuf of the GNOME 1.x platform.
18889
18890 2000-09-29  Havoc Pennington  <hp@pobox.com>
18891
18892         * gtk/gtktextview.c: Implement the side windows.
18893
18894         * gtk/testtext.c: Implement simple line numbering in the 
18895         left side window; seems to make scrolling sloooow. Oops.
18896         Also, cursor blink is for some reason causing redraws
18897         of the line numbers. Should investigate...
18898
18899 2000-09-28  Havoc Pennington  <hp@redhat.com>
18900
18901         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
18902         scrolling child windows, and draw focus rectangle properly.
18903         
18904         (gtk_text_view_buffer_to_window_coords):
18905         Coordinate transformation to deal with all these freaking windows
18906         and offsets
18907         (gtk_text_view_window_to_buffer_coords): transform the other way
18908
18909         * gtk/testtext.c (create_buffer): Update to match Pango API change
18910
18911         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
18912         anonymous tags
18913         (foreach_unref): don't emit remove signal from finalize, just
18914         set tag's parent to NULL
18915
18916 2000-09-26  Havoc Pennington  <hp@redhat.com>
18917
18918         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
18919         Fix some warnings       
18920
18921 2000-09-26  Havoc Pennington  <hp@redhat.com>
18922
18923         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
18924         headers into the private header list
18925
18926         * Makefile.am (pkgconfig_DATA): install pkg-config files
18927
18928         * configure.in: add pkg-config files
18929
18930         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
18931
18932         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
18933         outstanding icon caches on theme change.
18934
18935         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
18936         important types:
18937
18938         (GtkIconSource): Specification for creating a pixbuf 
18939         appropriate for a direction/state/size triplet from 
18940         a source pixbuf or filename
18941
18942         (GtkIconSet): List of GtkIconSource objects that are used to
18943         create the "same" icon (e.g. an OK button icon), and cache for
18944         rendered icons
18945
18946         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
18947         up the icon set for a given stock ID.  GTK maintains a stack of
18948         GtkIconFactory to search, and applications or libraries can add
18949         additional icon factories on top of the stack
18950         
18951         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
18952         the set of GtkIconSource specified for a given stock ID into 
18953         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
18954         RcStyle, under the specified stock ID.
18955
18956         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
18957         render_icon used to derive a GdkPixbuf from a GtkIconSource.
18958         This allows people to theme how prelight, insensitive, etc. are
18959         done.
18960
18961         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
18962         icon factories for a style, and return the resulting 
18963         icon set if any.
18964
18965         (gtk_style_render_icon): Render an icon using the render_icon 
18966         method in the GtkStyleClass.
18967
18968         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
18969         Use the style for a given widget to look up a stock ID, get the
18970         icon set, and render an icon using the render_icon method 
18971         of the style
18972
18973         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
18974         (contains information about a stock item), the built-in stock item
18975         IDs, and functions to add/lookup stock items.
18976
18977         * gtk/stock-icons/*: Stock icons that come with GTK
18978
18979         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
18980         a button based on a GtkStockItem
18981         (gtk_button_new_accel): Takes a uline string and accel group, and
18982         installs the accelerator.
18983
18984         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
18985         image-display widget.
18986
18987 2000-09-25  Havoc Pennington  <hp@redhat.com>
18988
18989         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
18990
18991         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
18992         Fix a bug when removing node data, we didn't properly 
18993         re-splice the linked list after removing the data.
18994
18995         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
18996         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
18997
18998         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
18999
19000         * gtk/gtktextlayout.c (set_para_values): Set tab array 
19001         for the layout from the GtkTextTag.
19002
19003         * gtk/gtktexttypes.h: delete tab and search cruft, 
19004         remove g_convert() in favor of GLib version
19005
19006         * gtk/gtktexttypes.c: remove tab implementation from here,
19007         move to Pango
19008
19009         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
19010         tab stuff using new PangoTabArray from Pango
19011
19012         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
19013         unused border_width stuff
19014
19015 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
19016
19017         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
19018         glib) and now useless utf_to_latin1() latin1_to_utf()
19019
19020         * gtk/gtktextview.[ch]: Change ::move_insert and
19021         ::delete_text action signals to ::move and ::delete;
19022         create the signals with the right enumeration type,
19023         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
19024         C-v bindings, change Home, End to move to beginning/end
19025         of line, Add C-Home C-End to move to beginning/end
19026         of buffer. Change ::cut_text to ::cut_clipboard, etc;
19027         combine ::scroll_text into ::move; use new GtkSelectionData
19028         functions to simplify DND text handling.
19029         
19030         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
19031         deletion enumerations here, rename enumeration values to 
19032         be consistently plural.
19033
19034         * gtk/gtktextbuffer.c: Use new clipboard interfaces
19035         for cut/copy/paste and primary selection.
19036
19037         * gtk/gtktextbuffer.[ch]: Remove excess time and
19038         'interactive' arguments from cut/copy/paste;
19039         rename cut to cut_clipboard, etc; remove
19040         gtk_text_buffer_get_clipboard_contents().
19041
19042         * gtk/gtktextlayout.[ch]: Add 
19043         gtk_text_layout_move_iter_to_line_end() to move the iter to 
19044         line ends.
19045
19046         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
19047         Functions to set or get a UTF-8 string on the selection
19048         data.
19049
19050         * gtk/gtkclipboard.[ch]: New, simplified selection handling
19051         interfaces.
19052
19053         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
19054         created widgets - one of these is useless if we don't.
19055
19056         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
19057         a public function clear all targets registered for the
19058         widget.
19059
19060         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
19061         Never call gtk_widget_realize() - that was just asking
19062         for bizarre side-effects.
19063
19064         * gtk/gtkselection.c (gtk_selection_owner_set): Call
19065         gdk_selection_owner_set even if the widget is the
19066         same so that we reliably update the timestamp on
19067         the server.
19068
19069         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
19070         gdk_x11_get_server_time() function.
19071         
19072         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
19073         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
19074         Add some tricky filtering on serial numbers for
19075         selection clear events to fix up long-standard
19076         race condition FIXME's in gtkselection.c.
19077
19078         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
19079         routines to convert from utf8 to compound text or
19080         STRING and from a text property to UTF-8.
19081
19082         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
19083         a convenience function gdk_get_current_event_time().
19084
19085         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
19086         and free selection_data->data properly
19087
19088 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
19089
19090         * gtk/gtkthemes.c: Remove some unecessary includes.
19091
19092 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
19093
19094         * gtk/gtktextdisplay.c
19095         * gtk/gtktextlayout.c
19096         * gtk/gtktexttag.c
19097         * gtk/gtktexttag.h
19098         * gtk/testtext.c: Change the overstrike property to strikethrough,
19099         to closer match pango.
19100
19101 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
19102
19103         * gtk/gtktextview.c: Fix up visibility so that focus,
19104         cursor_visible and blink interact properly.  Reenable cursor blink
19105         which had been roughly disabled. Make blink and focus
19106         properly per-view.
19107
19108         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
19109         Add a flag for whether to display insertion cursor and
19110         a function to set the flag.
19111
19112         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
19113         get_line_y() to get_line_yrange(), to be a bit more generally
19114         useful.
19115
19116 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
19117
19118         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
19119           do stop_navigating_submenu, to clear last timeout properly.
19120           Also in gtk_menu_motion_notify move ignore_enter above
19121           the conditional to make it always happen as suggested by Owen
19122
19123 2000-09-07  Tor Lillqvist  <tml@iki.fi>
19124
19125         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
19126
19127         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
19128         w32api headers.
19129
19130         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
19131         declarations.
19132
19133         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
19134         (gdk_win32_get_colormap): A line had been deleted by mistake.
19135
19136         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
19137         (gdk_event_translate): Handle more virtual keycodes to be able to
19138         generate GDK events for Control-comma, Control-period, etc.
19139
19140         * gtk/gtk.def: Add some missing entry points.
19141
19142 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
19143
19144         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
19145         Doc comment fixing. (Mostly non-matching parameter names.)
19146
19147         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
19148         comments a little to avoid looking like a doc comment.
19149
19150         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
19151         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
19152         conversions be changed to GError?)
19153
19154         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
19155         Move private #defines into .c file.
19156
19157         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
19158         order of argument addition, remove duplicates.
19159
19160         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
19161         parent class is FrameClass, not BinClass.
19162
19163         * gtk/gtk.h: Add gtkinvisible, which was missing.
19164         (It's occasionalyl useful for client apps, if seldom.)
19165
19166         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
19167         #define.
19168
19169 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
19170
19171         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
19172         coordinates when creating window, instead of GDK-space
19173         coordinates. (Avoid BadValue on too large windows.)
19174
19175 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
19176
19177         * configure.in (use_mmx_asm): Remove conftest* after use along the
19178         lines of AC_TRY_COMPILE.        
19179         
19180         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
19181         of g_dirname, which is deprecated.
19182         (gtk_rc_parse_any): Removed calls to
19183         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
19184
19185         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
19186         Removed calls to g_hash_table_{freeze,thaw}, as they are
19187         deprecated now.
19188
19189         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
19190         instead of g_basename.
19191         
19192 2000-09-04 Elliot Lee <sopwith@redhat.com>
19193         
19194         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
19195         ANSI warning.
19196
19197 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
19198
19199         * gtk/gtkwidget.h:  Add some documenting comments about 
19200           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
19201           just as owen said on irc.
19202
19203         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
19204           set HAS_DEFAULT.  Only set it if there isn't another window
19205           holding it (a focus window which RECEIVES_DEFAULT) and only unset
19206           it if the widget is not the focused window with RECEIVES_DEFAULT.
19207           This fixes weird double default bugs in dialogs which has things
19208           call gtk_window_set_default at times.
19209
19210 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
19211
19212         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
19213         Nils Barth and David Santiago to improve submenu
19214         navigation. The patch does this by creating a triangular
19215         region from the point where the pointer leaves the
19216         menu to the submenu.  While the pointer is in
19217         that region and a timeout has not expired, events 
19218         that would cause the active submenu to change are
19219         ignored.
19220
19221 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
19222
19223         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
19224         moving a toplevel window immediately after sizing it would
19225         result in it being sized back to the old size since 
19226         impl->width, impl->height aren't updated until we hear
19227         back from the server. There is still a (longstanding) bug
19228         here that gdk_window_get_size() will give the wrong size
19229         until we do hear back.
19230
19231 2000-08-31  Havoc Pennington  <hp@redhat.com>
19232
19233         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
19234         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
19235         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
19236         Rename GtkTextStyleValues to GtkTextAttributes
19237
19238 2000-08-31  Havoc Pennington  <hp@pobox.com>
19239
19240         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
19241         for rapid testing whether an iterator is the end iterator
19242         (gtk_text_btree_new): init end line cache
19243         (gtk_text_line_is_last): use fast cached line to 
19244         see if we're the last line.
19245         (get_last_line): use cached line here too, should 
19246         speed up some random unrelated code.
19247         
19248 2000-08-30  Havoc Pennington  <hp@pobox.com>
19249
19250         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
19251         signals.
19252
19253         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
19254         delete_text signals. This allows the signals to be used for
19255         implementing undo.
19256
19257         * gtk/gtktextbuffer.c: Change signal handler signatures; 
19258         provide "interactive" argument when emitting insert_text or
19259         delete_text signal.
19260         
19261 2000-08-30  Havoc Pennington  <hp@pobox.com>
19262
19263         * gtk/gtktextbuffer.c: Docs
19264
19265 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
19266
19267         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
19268         from switch statements, since Tor removed the enumeration
19269         value.
19270         
19271         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
19272         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
19273
19274 2000-08-29 Elliot Lee <sopwith@redhat.com>
19275         * */*.h: Use G_GNUC_CONST.
19276
19277 2000-08-27  Havoc Pennington  <hp@pobox.com>
19278
19279         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
19280         minor indentation fixes, inserted some FIXME about stuff I
19281         realized was broken while documenting it.
19282         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
19283         GTK convention  
19284
19285 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
19286
19287         * gtk/testgtk.c (create_styles): Fix double free of
19288         font desc.
19289
19290 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19291
19292         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
19293         
19294         * gtk/testgtk.c (create_styles): Add a test for modifying
19295         the style through gtk_widget_modify_*.
19296
19297         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
19298         a function to get the current modifier style.
19299
19300         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
19301         of the passed in GtkRcStyle instead of ref'ing it.
19302
19303         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
19304
19305 2000-08-20  Tor Lillqvist  <tml@iki.fi>
19306
19307         * gdk/gdkimage.h
19308         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
19309         shared memory image+pixmap GdkImage type, or
19310         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
19311         I am dropping that.
19312
19313         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
19314         actually call gtk_init_abi_check(), passing also
19315         sizeof(GtkWindow). Ditto for gtk_init_check(). 
19316
19317         * gtk/gtk.def
19318         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
19319         New functions, used to check that the GTK+-using code has been
19320         compiled using the correct compiler and switches. In particular,
19321         with gcc one has to use the -fnative-struct switch as GTK+ is
19322         compiled with that.
19323
19324 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
19325
19326         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
19327         ->prev fields when merging lists. (Found simultaneously
19328         by Pawel Salek and Jakub Jelinek)
19329
19330 2000-08-12  Tor Lillqvist  <tml@iki.fi>
19331
19332         * gdk/gdk.def
19333         * gtk/gtk.def: Add missing entries.
19334
19335         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
19336         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
19337
19338         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
19339         function. Dummy implementation at this point.
19340
19341         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
19342         rules. Undefine GTK_COMPILATION when compiling the test programs.
19343         
19344         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
19345
19346 2000-08-11  Tor Lillqvist  <tml@iki.fi>
19347
19348         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
19349         to convert back and forth from UTF-8 and the "system" (or "current
19350         locale") charset when necessary. Indentation/spacing cleanup.
19351
19352 2000-08-10  Havoc Pennington  <hp@redhat.com>
19353
19354         * Makefile.am (snapshot): Change the format of the snapshot
19355         version to match glib
19356
19357         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
19358         from EXTRA_DIST since it doesn't seem to exist
19359
19360 2000-08-10  Tor Lillqvist  <tml@iki.fi>
19361
19362         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
19363         version of the directory name (not the UTF-8 one) when building
19364         the path name to stat().
19365
19366 2000-08-03  Elliot Lee  <sopwith@redhat.com>
19367
19368         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
19369         PANGO_ATTR_SHAPE set.
19370
19371 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
19372
19373         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
19374         Peter Osterlund to simplify the code while keeping the
19375         functionality the same.
19376
19377 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
19378
19379         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
19380         is_viewable() test further inside the function, since removing the 
19381         window from the redraw list without clearing ->update_area
19382         was also very broken.
19383
19384 2000-08-02  Tor Lillqvist  <tml@iki.fi>
19385
19386         * configure.in: Check for <unistd.h>.
19387
19388 2000-08-01  Martin Baulig  <baulig@suse.de>
19389
19390         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
19391         to display the message that this is a development version of GTK+.
19392
19393 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
19394
19395         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
19396         was depending on widget->allocation instead of the width of text_area,
19397         which was incorrect for subclasses like GtkSpinButton.
19398
19399         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
19400         with width == 1 tests that should be width == -1.
19401
19402 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
19403
19404         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
19405         (broken, Elliot, every single window blank on X) custom code with call
19406         to gdk_window_is_viewable() which a) prevents code duplicate and
19407         b) works. 
19408
19409 2000-07-31  Elliot Lee  <sopwith@redhat.com>
19410
19411         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
19412         to get the GDK_PARENT_ROOT() macro to work.
19413         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
19414         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
19415         of, windows that aren't shown.
19416         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
19417         pointer grab stuff.
19418
19419 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
19420
19421         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
19422           s/gtk_main_iteration/g_main_iteration/
19423
19424           Did this already in change:
19425                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
19426           don't know how it got reverted.
19427
19428 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
19429
19430         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
19431         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
19432
19433         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
19434         not gdk_pixbuf.
19435
19436 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
19437
19438         * configure.in,po/{sp,sr}.po: Added Serbian files
19439
19440 2000-07-30  Tor Lillqvist  <tml@iki.fi>
19441
19442         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
19443
19444         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
19445         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
19446         GIOChannel implementation.
19447
19448         * gdk/win32/gdkinput.c
19449         * gdk/win32/gdkpango-win32.c: Update license name here, too.
19450
19451         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
19452         definition to match prototype.
19453
19454         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
19455
19456 2000-07-27  Elliot Lee  <sopwith@redhat.com>
19457
19458         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
19459         function, to allow handling image formats that cannot be detected
19460         by looking at content alone.
19461
19462 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
19463
19464         * docs/tutorial/*.gif *.jpg *.eps
19465           Update these to the same look-n-feel.
19466           Why does including images in DocBook suck so badly?
19467
19468 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
19469
19470         * gtk/gtktable.c: applied patch from Phil Thompson
19471         <phil@river-bank.demon.co.uk> that enables space settings for
19472         the last row/columns as well.
19473
19474 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
19475
19476         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
19477         updates the license headers to the GNU Lesser General Public License,
19478         as well as updating the copyright year to 2000.
19479
19480 2000-07-26  Robert Brady  <rwb197@zepler.org>
19481
19482         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
19483           and po/Makefile, was installing and looking for them under gtk20
19484           and gtk2 respectively.
19485
19486 2000-07-25  Havoc Pennington  <hp@redhat.com>
19487
19488         * gtk/testtext.c: Comment out some stuff that depends on the rest
19489         of my patches.
19490
19491 2000-07-25  Havoc Pennington  <hp@redhat.com>
19492
19493         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
19494         buffer
19495
19496 2000-07-25  Havoc Pennington  <hp@redhat.com>
19497
19498         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
19499         widget changes.
19500
19501         * gtk/gtktextview.h: To be consistent with usage of "line"
19502         throughout the API to mean "newline-terminated thingy", change
19503         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
19504         to MOVEMENT_LINE.
19505
19506         (GtkTextView): Add flags for default editability, and whether to
19507         show the cursor. Add functions to get/set that. Add 
19508
19509         (gtk_text_view_get_iter_location): new function
19510
19511         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
19512         gtktextlayout.h
19513         (g_convert): Add g_convert temporarily, will go in glib in a bit
19514         
19515         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
19516         GtkTextTagTableForeach instead of brokenly using GHFunc.
19517         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
19518
19519         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
19520         moved to public header.
19521
19522         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
19523         "invisible", since "elide" was a bad name.
19524         (gtk_text_tag_get_priority): Added
19525
19526         (GtkTextStyleValues): put this in public header, along with
19527         functions to use it.
19528
19529         * gtk/gtktextmarkprivate.h: Include more headers, since we no
19530         longer include gtktextbtree.h.
19531
19532         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
19533         gtk_text_mark_deleted
19534
19535         * gtk/gtktextlayout.h: Don't include the "really private" headers,
19536         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
19537         to make this possible. Now we only need to install
19538         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
19539         (However the Makefile.am isn't changed yet because of the
19540         logistics of merging gtk-hp-patches piecemeal)
19541
19542         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
19543         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
19544         gtk_text_iter_get_line is now used in the public API for a
19545         different purpose.
19546
19547         * gtk/gtktextiter.h: Clean up function names to be more
19548         consistent. Always call char offset "offset" and byte index
19549         "index". A "line" is always a line number. 
19550
19551         (gtk_text_iter_is_last): new function, more efficient than 
19552         the existing way to check
19553         (gtk_text_iter_is_first): new function, also more efficient
19554
19555         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
19556
19557         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
19558         gtk_text_iter_forward_char, etc.
19559
19560         (gtk_text_iter_forward_to_tag_toggle): Renamed from
19561         forward_find_tag_toggle, since this isn't a linear search
19562
19563         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
19564
19565         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
19566         New functions, search for a buffer substring.
19567
19568         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
19569         interactive and default editable (since we need to store that info
19570         until we receive the selection data).
19571
19572         Remove all the _at_char and at_line etc. versions of functions;
19573         only have iterator versions.
19574
19575         Add _interactive() versions of functions, that consider the
19576         editability of text. (FIXME add interactive flag to the 
19577         insert/delete signals per Darin's suggestion)
19578
19579         (gtk_text_buffer_get_tag_table): new function, demand-creates the
19580         tag table if necessary
19581
19582         Remove declaration of gtk_text_buffer_get_iter_from_string
19583
19584         (_gtk_text_buffer_get_btree): private/internal function, added.
19585         
19586
19587         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
19588         (gtk_text_line_is_last): new function
19589
19590 2000-07-25  Havoc Pennington  <hp@redhat.com>
19591
19592         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
19593         using GtkProgressBar. See Changes-2.0.txt for details.
19594
19595         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
19596         "pulse_step" which are the equivalent of
19597         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
19598         Implement new API.
19599         
19600         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
19601         (use_text_format) to mark whether text set on the progress bar is
19602         a format string. Deprecate entire GtkProgress interface.
19603
19604         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
19605         (gtk_progress_build_string): make this a no-op if use_text_format
19606         is FALSE
19607
19608         * docs/Changes-2.0.txt: Describe progress bar changes.
19609
19610 2000-07-25  Tor Lillqvist  <tml@iki.fi>
19611
19612         * Makefile.am: Include the build directory.
19613
19614         * configure.in: Generate build/Makefile, build/win32/Makefile,
19615         gdk/, gdk/win32/, and gtk/makefile.mingw.
19616
19617         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
19618         Add GETTEXT_PACKAGE.
19619         
19620         * gdk/gdk.def
19621         * gtk/gtk.def: Updates.
19622
19623         * gdk/gdkfont.h
19624         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
19625         need them any longer.
19626
19627         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
19628
19629         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
19630         PANGOWIN32_LIBS and gdk_pixbuf.
19631
19632         * gdk/win32: Compiles, but no doubt doesn't work at all.
19633
19634         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
19635
19636         * gdk/win32/gdkinput.c: New file, temporarily.
19637         
19638         * gdk/win32/gdkinput-win32.h: New file
19639
19640         * gdk/win32/gdkinputprivate.h: Remove.
19641
19642         * gdk/win32/gdkpango-win32.c: New file.
19643
19644         * gtk/makefile.mingw.in: New file
19645
19646         * gtk/makefile.cygwin: Removed
19647         
19648         * gtk/Makefile.am: Update accordingly.
19649
19650         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
19651         made externally visible.
19652
19653         * gtk/gtkmain.c: Use it.
19654         
19655         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
19656         is enough.
19657
19658         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
19659
19660 2000-07-24 Elliot Lee <sopwith@redhat.com>
19661         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
19662         individual backends already.
19663         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
19664         again. Yes, there really is a good reason for this, if you are using the gdkregion
19665         internals, and if you're not, why do you care?
19666         * gdk/gdkwindow.c: Fix inverted condition
19667         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
19668         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
19669         * gtk/gtkrange.c: Redraw trough when moving.
19670         * gtk/gtktypeutils.c: Fix warning by adding const cast.
19671         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
19672
19673 2000-07-23  Tor Lillqvist  <tml@iki.fi>
19674
19675         * configure.in: Check for mkstemp and sigsetjmp. Output
19676         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
19677
19678         More work on GDK for Win32. Still in an intermediate state.
19679
19680         * gdk/makefile.cygwin
19681         * gdk/win32/makefile.cygwin: Removed.
19682         
19683         * gdk/makefile.mingw.in
19684         * gdk/win32/makefile.mingw.in: New files.
19685
19686         * gdk/Makefile.am
19687         * gdk/win32/Makefile.am: Generate and distribute them.
19688
19689         * gdk/win32/gdkwindow-win32.h
19690         * gdk/win32/gdkdrawable-win32.h
19691         * gdk/win32/gdkpixmap-win32.h: New files.
19692
19693         * gdk/win32/gdkcolor-win32.c
19694         * gdk/win32/gdkcursor-win32.c
19695         * gdk/win32/gdkdrawable-win32.c
19696         * gdk/win32/gdkgc-win32.c
19697         * gdk/win32/gdkimage-win32.c
19698         * gdk/win32/gdkprivate-win32.h
19699         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
19700         Rename fields and variables called xcursor, xid, etc (these names
19701         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
19702
19703 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
19704
19705         * gtk/gtkentry.[ch]: Fix some problems with vertical
19706         alignment.
19707
19708         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
19709         char/byte confusion.
19710
19711 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
19712
19713         * gtk/gtktextview.c (changed_handler): Fix bug where
19714         redraw wasn't being done properly when height of
19715         dirty region changed.
19716
19717         * demos/Makefile.am: Remove various references to
19718         -lgmodule
19719
19720 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
19721
19722         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
19723         PangoAttrShape to reserve space for pixmaps, add 
19724         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
19725         in the display functions.
19726         
19727         * gtk/testgtk.c (create_layout): Set some more exotic
19728         scrolled window options
19729
19730         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
19731         Add function to set the shadow type of a window, to allow
19732         putting a shadow around widgets such as GtkLayout or GnomeCanvas
19733         which don't draw their own frame.
19734
19735 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
19736
19737         * docs/tutorial/package-db-tutorial.sh: New file for
19738           packaging DocBook format tutorial
19739
19740 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
19741
19742         * docs/tutorial/gtk-tut.sgml: Minor updates
19743
19744         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
19745
19746 2000-07-19  Tor Lillqvist  <tml@iki.fi>
19747
19748         * gtk/gtksignal.c: Fix C++ comment.
19749
19750         * gtk/gtkimmulticontext.c
19751         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
19752         don't return value from void functions.
19753
19754         * gtk/gtk.def: Add gtk_rc_style_unref.
19755
19756 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
19757
19758         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
19759         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
19760         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
19761         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
19762         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
19763         gtk/gtktypeutils.h: Include files outside of the extern "C"
19764         block. Makes some C++ compiler happy. Reported by Denis Vakatov
19765         <vakatov@peony.nlm.nih.gov>.
19766
19767 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
19768
19769         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
19770           Completes first pass. Hurrah!
19771
19772 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
19773
19774         * docs/tutorial/gtk-tut.sgml: More clean ups.
19775
19776 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
19777
19778         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
19779         paint the background of the text area which was accidentally
19780         removed at some point.
19781
19782         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
19783           
19784          - Move most of the functionality from the theme vtable
19785            into GtkRcStyleClass and GtkStyleClass. The moved
19786            vtable functions were changed a bit in the move to
19787            work better in their new home.
19788
19789          - Get rid of the engine and engine_data fields from
19790            GtkRcStyle and GtkStyle; instead the theme
19791            engine derives theme-specific subclasses of GtkRcStyle
19792            and GtkStyle
19793
19794          - Add extra dlsym() found entry point to themes,
19795            theme_create_rc_style().
19796
19797         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
19798         in gtk_style_real_copy.
19799
19800         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
19801         to register a type associated with an engine. (The engine
19802         won't be unloaded as there is an instance of the type.)
19803
19804
19805 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
19806
19807         * docs/tutorial/gtk-tut.sgml: Clean ups.
19808
19809 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
19810
19811         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
19812           of cleaning up to do.
19813
19814 2000-07-15  Tor Lillqvist  <tml@iki.fi>
19815
19816         * gdk/testgdk.c: New file, quick hack to test backends for
19817         pixel-by-pixel correctness of the most simple graphic operations.
19818
19819 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
19820
19821         * Really release 1.3.1
19822         
19823         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
19824         include structure.
19825
19826 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
19827
19828         * Released 1.3.1
19829
19830 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
19831
19832         * gtk/gtktextlayout.c: use FALSE for size_only most
19833         of the time when calling gtk_text_layout_get_line_display()
19834         to avoid causing double reshapes when a redraw follows
19835         immediately after.
19836
19837 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
19838
19839         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
19840         appropriate region and gdk_window_process_updates() so trough
19841         updating doesn't lag behind the window being scrolled.
19842
19843         * gdk/gdkgc.c: Make parent_class pointer static.
19844          
19845 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
19846
19847         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
19848         include <string.h>.
19849          
19850         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
19851         cut-and-paste error in computing memory offset for 4 channels.
19852
19853 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
19854
19855         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
19856         gtk_rc_append_default_pixmap_path(), since it wasn't
19857         adding an interesting path and we don't have a meaningful
19858         default for this value.
19859
19860 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
19861
19862         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
19863         gtk-config to gtk-config-2.0 move gtk_.m4 to
19864         gtk-2.0.m4
19865
19866         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
19867         gdk/Makefile.am demos/Makefile.am: Change 
19868         library names to libgtk-1.3.la, etc, so that we
19869         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
19870
19871         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
19872         gdk/Makefile.am gdk/x11/Makfile.am
19873         Move include files into /usr/include/gtk-2.0, 
19874         /usr/lib/gtk-2.0/include/
19875          
19876         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
19877         gtk/gtkintl.h: Change package for gettext from 
19878         gtk+ to gtk20. Put hack in autogen.sh to modify
19879         po/Makefile.in.in after gettextize to make this
19880         possible.
19881
19882         * gtk+.spec: Some updates, not tested.
19883
19884         * gdk-pixbuf/Makefile.am: Move loaders into
19885         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
19886
19887         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
19888         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
19889         to THEMENAME/gtk-2.0/. Move engine directory  to
19890         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
19891         
19892 2000-07-12  Tor Lillqvist  <tml@iki.fi>
19893
19894         Win32 changes, still doesn't build though.
19895
19896         * gdk/makefile.cygwin
19897         * gdk/win32/makefile.cygwin
19898         * gtk/makefile.cygwin: Updates.
19899
19900         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
19901         default values for fg and bg pixel as X11 does (0 and 1), not
19902         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
19903         Use 0 for pen width by default (treated as 1 anyway later, but for
19904         apps that might check the value in the GdkGC).
19905         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
19906         interface to gdk_gc_predraw and _postdraw.
19907
19908         * gdk/win32/gdkwin32.h
19909         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
19910
19911         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
19912         extraneous semicolon.
19913
19914         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
19915
19916         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
19917         not the Win32 bitspixel value.
19918
19919         * gdk/win32/gdkcc-win32.c:
19920         * gdk/win32/gdkcolor-win32.c 
19921         * gdk/win32/gdkprivate-win32.h
19922         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
19923         GDK object structure.
19924
19925 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
19926
19927         * docs/tutorial/gtk_tut_12.es.sgml (name): 
19928         * docs/tutorial/gtk_tut_it.sgml (name): 
19929         * docs/tutorial/gtk_tut_fr.sgml (name): 
19930         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
19931         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
19932
19933 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
19934
19935         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
19936           small changes.
19937
19938 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
19939
19940         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
19941         a bug here, never been here and never fixed anything ;(
19942         (don't segfault if tree->root_tree is NULL, which happens prior
19943         to widget realization, but puke instead).
19944
19945 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
19946
19947         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
19948         add the necessary tokens.
19949
19950         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
19951         (gtk_rc_style_to_style): copy thicknesses.
19952         (gtk_rc_init_style): apply thicknesses.
19953         (gtk_rc_parse_style): parse xthickness and ythickness.
19954
19955         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
19956
19957         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
19958         (gdk_window_new): 
19959         (_gdk_windowing_window_init): 
19960         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
19961         (gdk_pixmap_create_from_data): 
19962         (gdk_bitmap_create_from_data): 
19963         (gdk_pixmap_new): 
19964         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
19965         (gdk_image_new): 
19966         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
19967         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
19968         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
19969         (gdk_colormap_get_system): 
19970         (gdk_colormap_new): 
19971         * gdk/gdkwindow.c (gdk_window_init): 
19972         * gtk/gtkstyle.c (gtk_style_new):
19973         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
19974         * gdk/gdkpixmap.c (gdk_pixmap_init): 
19975         * gtk/gtkrc.c (gtk_rc_style_new):
19976         use g_object_new() instead of g_type_create_instance() which
19977         is a private function for fundamental type implementations.
19978
19979 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
19980
19981         * configure.in: Add check for db2html
19982
19983 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
19984
19985         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
19986         hack to set glib_debug_objects based on gtk_debug_flags.
19987
19988 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
19989
19990         * INSTALL.in: Update the Prerequisites section.
19991
19992         * Makefile.am demos/Makefile.am docs/Makefile.am
19993         docs/tutorial/Makefile.am gdk/x11/Makefile.am
19994         gdk/linux-fb/Makefile.am: Dist fixes
19995
19996 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
19997
19998         * NEWS: 10,000 foot view of 1.3.1 changes.
19999
20000 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
20001
20002         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
20003         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
20004         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
20005         gdk/x11/gdkmain-x11.c: 
20006
20007         Patch from George Lebl to add a GdkGrabStatus enumeration to use
20008         as a return value of gdk_*_grab(). Previously, we just
20009         returned the X11 values directly.
20010
20011 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
20012
20013         * gdk/x11/Makefile.am: Patch from George Lebl to 
20014         install all the headers in the right place.
20015
20016 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
20017
20018         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
20019           initial conversion to DocBook.
20020
20021 2000-07-04  Tor Lillqvist  <tml@iki.fi>
20022
20023         * README.win32: Improve a bit.
20024
20025         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
20026         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
20027         Alt+0nnn on the numpad (used to enter characters by numeric code
20028         from current DOS or ANSI codepage) working correctly, as in other
20029         Windows apps.
20030
20031         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
20032         same argument validity tests as in X11 version.
20033         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
20034
20035         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
20036         definitions in case missing from headers.
20037
20038         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
20039         destroy the window-specific cursor.
20040         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
20041         calling GetModuleHandle(NULL).
20042         (gdk_window_set_cursor): Reworked to always copy the passed cursor
20043         with CopyCursor before setting it as the window-specific
20044         cursor. It is OK for the caller to destroy the GdkCursor (and thus
20045         also its Windows cursor) after calling this function. Destroy any
20046         previous window-specific cursor.
20047
20048 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
20049
20050         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
20051         font charset is iso8859-1, not iso-8859-1.
20052
20053 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
20054
20055         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
20056         Use g_get_charset() instead of g_get_codeset().
20057
20058         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
20059         Comment out some strdup'ing functions to keep timj
20060         happy until we finish fighting this out.
20061
20062 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
20063
20064         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
20065         <= width or height.
20066
20067         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
20068         from 1.2 for parent/child states.
20069
20070         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
20071         of typos.
20072
20073         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
20074         event structures, replace with a generic axes field. Replace 
20075         deviceid/sourec with GdkDevice *device.
20076
20077         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
20078         to extract particular axis use value from event. (Also
20079         can be used for normal X/Y.)
20080
20081         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
20082         allow for arbitrary number of axes, namespace everything
20083         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
20084         everywhere.
20085
20086         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
20087         Get rid of the gdk_input_vtable setup if favor of simply
20088         defining the functions in gdkinput-none/gxi/xfree.c in
20089         a similar fashion to the way that the port structure is 
20090         done.
20091
20092         * gtk/gtkdnd.c: Fix fields of synthesized button press event
20093         for new event structures. 
20094
20095         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
20096         new device interfaces.
20097
20098 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
20099
20100         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
20101         set the initial text.
20102
20103         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
20104         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
20105         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
20106         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
20107
20108         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
20109         pango_layout_set_font_description to simplify.
20110
20111 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
20112
20113         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
20114         pango_layout_set_font_description to simplify.
20115
20116 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
20117
20118         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
20119         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
20120         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
20121
20122         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
20123         PANGO_PIXELS() macro.
20124
20125 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
20126
20127         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
20128         that returns a PangoContext owned by the widget and updated to
20129         match future changes in the widget. Also, make 
20130         gtk_widget_create_pango_layout() use this context. If we ever
20131         add a ::changed signal to PangoContext, this will make things
20132         much more convenient. 
20133
20134         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
20135         in the appropriate places instead of destroying the layouts and
20136         creating new ones.
20137
20138         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
20139         in a few strategic places.
20140
20141 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
20142
20143         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
20144         gtk_widget_size_request() on reparented child, if one. Otherwise,
20145         queue_resize() on the child never results in it getting size-requested
20146         at all.
20147
20148         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
20149         in option menus, so that (with luck) people won't copy it into
20150         their apps in the future.
20151
20152         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
20153         to gtk_option_menu_calc_size. This isn't perfect, but should fix
20154         a lot of problems with changing the size of the menu's menu
20155         items after adding it to the option menu.
20156
20157         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
20158
20159         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
20160         the text direction for a widget changes.
20161
20162         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
20163         ::direction_changed to get rid of various hacks.
20164
20165 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
20166
20167         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
20168         name.
20169
20170 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
20171
20172         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
20173         flag to the structure. Do not call XFreePixmap on pixmaps created
20174         by gdk_pixmap_foreign_new().
20175
20176 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
20177
20178         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
20179         value using GdkRGB functionality given GdkColormap and GdkColor.
20180         (name not final, waiting for inspiration.)
20181         
20182         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
20183         set the foreground/background of a GC using the GC's colormap
20184         and GdkRGB. (name not final, waiting for inspiration.)
20185
20186         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
20187         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
20188
20189         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
20190         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
20191         purely a function of the corresponding colormap. Make
20192         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
20193
20194         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
20195         gdk_pixbuf_*create_from_xpm_* in terms of
20196         gdk_pixbuf_new_from_xpm_data(), move into platform independent
20197         code.
20198
20199         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
20200         advantage of the new draw_rgb_32_image_dithalign.
20201
20202         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
20203
20204         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
20205         on each created GC.
20206
20207         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
20208
20209         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
20210         which we initialize from the drawable when the GC is created,
20211         if the drawable has a colormap.
20212
20213         * gdk/x11/gdkgc-x11.c: include string.h for memset.
20214
20215         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
20216
20217         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
20218
20219 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
20220
20221         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
20222         actually returning expose events, make sure to set
20223         the count field properly.
20224
20225         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
20226         accidentally reintroced bug which always cleared
20227         the graphics_exposures value. 
20228
20229 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
20230
20231         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
20232
20233 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
20234
20235         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
20236
20237 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
20238
20239         * docs/faq/gtk-faq.sgml: Start of Section 6.
20240
20241 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
20242
20243         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
20244         
20245         (Fixes problem with drawing childless frames. Pointed out
20246         by and a first patch from Anders)
20247         
20248         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
20249         compute a child_allocation, even if we don't have a child.
20250
20251         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
20252         Always chain to the parent's impl, even if we don't have a child.
20253
20254 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
20255
20256         * gdk/gdkrgb.c: If possible, create only a single shm segment and
20257         use multiple parts of it instead of creating a bunch of separate
20258         segments, since the maximum number of segments per system is not
20259         large. (This might be worth backporting to GTK+-1.2.x if we make a
20260         new release )
20261
20262         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
20263         structure in preparation for per-colormap GdkRGB.
20264
20265         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
20266         to False when we get EINVAL from shmget so that the caller of
20267         gdk_image_new can retry with a smaller segment size.
20268
20269 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
20270
20271         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
20272
20273 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
20274
20275         * configure.in: make the current version number 1.3.1 (binary age 0,
20276         interface age 0).
20277         
20278         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
20279         gtkcompat.h is all we want.
20280
20281         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
20282         GLib primitive types. fixed g_type_register_fundamental() argument
20283         ordering.
20284
20285         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
20286         compiles.
20287
20288         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
20289         object code cleanup, comment trigraph fixes, etc...
20290
20291 2000-06-23  Havoc Pennington  <hp@redhat.com>
20292
20293         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
20294         instead of making up a bogus name for first_para_mark
20295
20296         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
20297         0 as a context ID
20298
20299 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
20300
20301         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
20302
20303 2000-06-21  Havoc Pennington  <hp@pobox.com>
20304
20305         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
20306         we didn't check window->bg_pixmap != GDK_NO_BG.
20307
20308         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
20309         gdk-pixbuf
20310
20311 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
20312
20313         * docs/faq/gtk-faq.sgm: Move file to here.
20314           TODO: Update Makfile.am 
20315
20316 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
20317
20318         * docs/gtk-faq.sgm: Add Section 2
20319
20320 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
20321
20322         * docs/gtk-faq.sgm: New file. Start of DocBook
20323           version of the FAQ.
20324
20325 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
20326
20327         * configure.in (GDK_PIXBUF_MAJOR): Define version
20328         numbers for GDK_PIXBUF_*, as they get substituted
20329         into a header file. Need to consider versioning
20330         for gdk-pixbuf more carefully later.
20331
20332 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
20333
20334         Work with srcdir != builddir.   
20335         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
20336         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
20337         * demos/testpixbuf.c: Likewise.
20338         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
20339         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
20340         <gdk/x11/gdkx.h>.
20341         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
20342         "gdk-pixbuf.h".
20343         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
20344
20345 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
20346
20347         * TODO.xml: Change 1.4 version numbers to 2.0.
20348
20349 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
20350
20351         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
20352         fixups to GTK+ standard.
20353
20354 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
20355
20356         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
20357         gdk-pixbuf.
20358
20359         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
20360         fixups for GObject.
20361
20362         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
20363         gdk-pixbuf with GDK dependencies moved into GDK.
20364         
20365         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
20366         move gdk-pixbuf-loader here until GObject has signals.
20367
20368         * demos/: New directory of demos. Move demos from
20369         gdk-pixbuf here.
20370
20371         * demos/pixbuf-init.c: Small bit of code to check for
20372         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
20373         set GDK_PIXBUF_MODULEDIR appropriately.
20374
20375         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
20376         define which no longer makes sense.
20377
20378 2000-06-21  Havoc Pennington  <hp@redhat.com>
20379
20380         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
20381         gtk_get_default_language
20382
20383         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
20384         new function to get the default language
20385
20386         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
20387         s/gtk_text_view_style_values/gtk_text_style_values/
20388
20389         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
20390         Add a "language" field to tags.
20391
20392         (gtk_text_tag_set_arg): Fix bug in setting
20393         "bg_full_height_set" tag.
20394
20395 2000-06-21  Havoc Pennington  <hp@redhat.com>
20396
20397         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
20398         in the interfaces
20399
20400         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
20401         stuff instead when possible.
20402
20403         * gtk/gtktexttypes.h: Delete some unused constants
20404
20405         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
20406         testtextbuffer.c: use glib instead of custom unicode routines
20407
20408 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
20409
20410         * docs/es/: Removed mistakenly added generated sgml
20411
20412         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
20413         Remove outdated info files.
20414
20415         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
20416         Moved tutorial files into subdir
20417
20418         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
20419         subdir.
20420
20421         * docs/man/gtk_button.pod: Remove. (contents will be
20422         integrated into gtk-reference button page.)
20423
20424         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
20425         docs/faq/Makefile.am: Adjust for new organization
20426
20427 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
20428
20429         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
20430         not $(MKINSTALLDIRS)
20431
20432 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
20433
20434         * gtk/testgtk.c (create_text): Finish the job Elliot started
20435         of removing font setting test for text widget. (Since text widget
20436         and GdkFont are not deprecated, and cause portability problems.)
20437
20438 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
20439
20440         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
20441         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
20442         Remove use of libunicode in favor of new GLib functions.
20443
20444         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
20445         nano-x, framebuffer. The X11 include is just a hack until we get
20446         the necessary functions in gdkcolor.h, so there is no reason to
20447         add other includes of platforms.
20448
20449         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
20450         window bigger than the screen change.
20451
20452         * gtk/testgtk.c: Revert some random changes from Elliot
20453         that had no particular point and were causing testgtkrc
20454         not to function correctly.
20455         
20456         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
20457         because GdkSegment and GdkRegionBox have the same fields,
20458         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
20459         results in clearer code.
20460
20461         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
20462         gdk_input_translate_coordinates): Fix missed GdkObjectification
20463
20464 2000-06-18  Elliot Lee  <sopwith@redhat.com>
20465
20466         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
20467         * gtk/gtk{plug,socket}.h: Missed commits from previous.
20468
20469 2000-06-20  Havoc Pennington  <hp@redhat.com>
20470
20471         * modules/linux-fb/Makefile.am: Make this compile
20472         without framebuffer enabled
20473
20474         * gdk/linux-fb/Makefile.am: Add conditional to not build
20475         framebuffer unless specified in configure
20476
20477         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
20478         the size of the target instead of source if -1 was passed for
20479         width/height
20480
20481         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
20482         width/height confusion.
20483
20484 2000-06-19  Havoc Pennington  <hp@redhat.com>
20485
20486         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
20487         GDK_DRAWABLE_XID. In the future, we probably want to make it
20488         faster with G_DISABLE_CHECKS turned on.
20489
20490 2000-06-14  Havoc Pennington  <hp@redhat.com>
20491
20492         * gdk/Makefile.am: add gdkpixmap.c
20493
20494         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
20495         s/gdk_image_init/_gdk_windowing_image_init
20496
20497         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
20498         ref/unref
20499
20500         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
20501
20502         * gdk/gdkcompat.h: remove GdkWindowType compat, since
20503         GdkWindowType is now non-deprecated; 
20504         change gdk_window_get_type() compat to be
20505         gdk_window_get_window_type().
20506
20507         * gdk/gdkdnd.h: make GdkDragContext a GObject.
20508
20509         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
20510         virtual GObject. Make all functions call into the vtable.
20511         Move gdk_image_put() guts in here. Remove GdkDrawableType
20512         and gdk_drawable_get_type(), these are now GdkWindow-specific.
20513         draw_image, get_depth, get_size, set_colormap, get_colormap,
20514         get_visual added to the vtable.
20515         
20516         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
20517         GObject. Virtualize everything. 
20518         (gdk_gc_new_with_values): remove check for destroyed window,
20519         because now GdkWindow::create_gc will check this.
20520         (gdk_gc_set_values): New function to set GC values, this 
20521         was already implemented but wasn't in the header
20522
20523         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
20524
20525         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
20526         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
20527         remove _gdk_window_class; add _gdk_window_impl_get_type() and
20528         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
20529         _gdk_windowing_window_init, rename gdk_image_init to
20530         _gdk_windowing_image_init.
20531         
20532         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
20533         (gdk_draw_layout): Remove check for destroyed window, 
20534         because all the drawable methods already check it.
20535         
20536         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
20537         Add gdkpixmap.c which contains implementation of GdkDrawable
20538         virtual table (by chaining to a platform-specific implementation
20539         object).
20540         
20541         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
20542         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
20543         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
20544         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
20545         GdkColormapPrivate. 
20546
20547         * gdk/gdktypes.h: #include <glib-object.h>
20548
20549         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
20550         Move most functionality to platform-specific implementation
20551         object. GdkWindow itself now handles the backing store, then
20552         chains to the platform-specific implementation.
20553         (gdk_window_get_window_type): return GdkWindowType of the window.
20554         (gdk_window_peek_children): New routine, returns the children of 
20555         a GdkWindow
20556         (gdk_window_get_children): Was in X11-specific code and did 
20557         XQueryTree. Changed to simply return a copy of window->children; 
20558         so it can go in cross-platform code.
20559         
20560         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
20561
20562         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
20563         GdkColormap; just changed to use the new private data instead
20564         of casting to GdkColormapPrivate.
20565
20566         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
20567         gdk_cursor_new().
20568
20569         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
20570         (private data member in the GObject). 
20571         (xdnd_manager_source_filter): Function had broken 
20572         error handling, fix it (use gdk_error_trap_push).
20573
20574         * gdk/x11/gdkdrawable-x11.c: This file now implements
20575         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
20576         base class is purely for the convenience of the X port,
20577         and not part of the interface to cross-platform GDK.
20578
20579         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
20580         
20581         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
20582         specific to X, and returned by the create_gc virtual method
20583         of GdkDrawableImplX11. 
20584         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
20585         rather than gchar, this was also changed in the GdkGC vtable.
20586         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
20587         mask is 0, return immediately, instead of checking every flag.
20588         This is faster, and keeps us from segfaulting if values is NULL
20589         and the mask contains some nonzero flags.
20590
20591         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
20592         GdkWindow.
20593
20594         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
20595         GdkWindowPrivate is gone.
20596
20597         * gdk/x11/gdkim-x11.c: rename things that got renamed.
20598
20599         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
20600         remove the image_put stuff that got transferred to GdkDrawable.
20601         
20602         * gdk/x11/gdkinput.c: renamings
20603
20604         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
20605
20606         * gdk/x11/gdkpixmap-x11.c: GObject conversion
20607
20608         * gdk/x11/gdkprivate-x11.h: indentation fixes
20609
20610         * gdk/x11/gdkproperty-x11.c: renamings
20611
20612         * gdk/x11/gdkselection-x11.c: renamings
20613
20614         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
20615         implements the platform-specific "impl" object.
20616         Moved gdk_window_get_children to gdk/gdkwindow.c
20617
20618         * gdk/x11/gdkx.h: Remove all the private structs and private datas
20619         that no longer exist. Add declaration of GdkGCX11 object here.
20620         Fix all the macros to still work. 
20621
20622         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
20623         GdkDragContext from the boxed types since they are now GObjects.
20624
20625         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
20626         moved xthickness/ythickness into the instance. GtkStyleClass
20627         functions are now in the standard vtable for GtkStyle, so you have
20628         to create a GObject subclass to write a theme engine.
20629         (gtk_style_copy): fixed a leaked PangoFontDescription
20630         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
20631         can be the standard GObject function.
20632         
20633         * Throughout GTK:
20634         s/style->klass->[xy]thickness/style->[xy]thickness
20635         s/pango_layout_unref/g_object_unref/
20636
20637         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
20638         
20639         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
20640         accessing GDK internals.
20641
20642         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
20643         accessing GDK internals.
20644
20645 2000-06-18  Elliot Lee  <sopwith@redhat.com>
20646
20647         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
20648
20649         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
20650         problem by calculating event position relative to the trough
20651         rather than the slider.
20652         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
20653
20654         * gdk/gdkgc.h: Add GDK_NOR.
20655
20656         * configure.in, Makefile.am: Add modules top level dir
20657         * configure.in: Only use pangox library if building x11 target.
20658         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
20659
20660 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
20661
20662         * gtk/gtkcolorsel.c: Change private class member to be named
20663         private_data throughout the file.
20664
20665         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
20666         private_data to avoid clashing with keyword.
20667
20668 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
20669
20670         * gdk/gdkdnd.h: Add comment to remove warning.
20671
20672 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
20673
20674         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
20675         Byelorussian language; changed the Makefile and file names 
20676         to reflect that.
20677
20678 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
20679
20680         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
20681         rather than gdk_window_hide; this makes things work
20682         correctly if the window is programmatically hidden while
20683         iconified.
20684
20685 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
20686
20687         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
20688         cut and paste typo where wrong pixmap was being
20689         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
20690
20691 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
20692
20693         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
20694         Add helper function to compute format / bytes 
20695         relationship. Use in a couple places to fix up
20696         errors which assume 8 * format.
20697
20698         * gtk/gtkselection.c (gtk_selection_request): Use 32
20699         rather than 8 * sizeof (GdkAtom), to work correctly
20700         on Alpha.
20701
20702 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
20703
20704         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
20705         libgtk.la
20706         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
20707         versions
20708
20709         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
20710         checking macros return NULL since the function has a return value.
20711
20712 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
20713
20714         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
20715         GTK+ from building at all.
20716
20717         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
20718
20719 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
20720
20721         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
20722         gtk/Makefile.am: make it possible to configure gtk for different
20723         targets on the same platform. The library name is now 
20724         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
20725         flag. Only the x11 target compiles right now.
20726         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
20727         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
20728         * gdk/nanox/gdk*generic*: delete generic region code.
20729         * gdk/linux-fb/gdk*generic*: delete generic region code.
20730         * README.nanox: update information.
20731         
20732 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
20733
20734         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
20735         prepend not append. (Pointed out by Brett Hall.)
20736
20737 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
20738
20739         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
20740
20741 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
20742
20743         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
20744         need this later, and this makes sure that the atexit for
20745         glib gets called after that for GDK, so atexits are
20746         properly ordered for object leak checking.
20747
20748         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
20749
20750         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
20751         pango_x_shutdown_display()
20752
20753         * gtk/simple.c (main): Close window on destroy.
20754
20755 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
20756
20757         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
20758         to treat initial creation different from setting with 
20759         regards to the graphics-exposures parameter, so add a parameter
20760         indicating whether this is initial or not.
20761
20762 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
20763
20764         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
20765         to sort of work by adding an extra return_exposes arg
20766         to gdk_event_translate() - it might be better to simply
20767         deprecate the function altogether and force people to rewrite
20768         without it. gdk_window_scroll() handles most of it, and where
20769         gdk_window_scroll() doesn't work, simply redrawing more does.
20770
20771         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
20772         assertion.
20773
20774         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
20775
20776         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
20777         bunch of pretty much useless /* Print debugging info */ comments 
20778         which had drifted away from the code they were commenting.
20779
20780 2000-06-02  Havoc Pennington  <hp@pobox.com>
20781
20782         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
20783         is in working order.
20784         
20785         * gtk/testtext.c: Change to reflect anonymous mark API
20786
20787         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
20788
20789         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
20790         field, which was unused.
20791
20792         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
20793         saves some typing.
20794
20795         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
20796
20797         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
20798         flag on the insertion point and selection bound
20799
20800         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
20801         make mark-manipulation functions take a GtkTextMark* instead of a
20802         mark name.
20803         
20804         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
20805         GtkTextMarkBody; will be used to detect attempts to delete
20806         the permanent marks (insert and selection bound)
20807
20808         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
20809
20810 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
20811
20812         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
20813         flag to on.
20814
20815         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
20816         Honor DOUBLE_BUFFRED_FLAG
20817
20818         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
20819         function to set the DOUBLE_BUFFERED flag.
20820
20821         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
20822         or not exposes done on the widget should be double-buffered.
20823
20824         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
20825         to be what would be expected. (Fixes problem with a
20826         g_return_if_fail() validating a TextDirection enumeration)
20827
20828 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
20829
20830         * gtk/gtkwidget.c: Remove all references to 
20831         offscreen flag which was no longer used.
20832
20833         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
20834
20835         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
20836         for non-null label_widget->parent.
20837
20838         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
20839         which no longer was used.
20840
20841         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
20842
20843         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
20844         for null arguments.
20845
20846         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
20847         check for destroyed windows.
20848
20849 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
20850
20851         * gtk/gtkimmulticontext.c: Add a finalize method and unref
20852         the slave context there.
20853
20854         * gtk/gtkinvisible.[ch]: Make reference counting behavior
20855         identical to GtkWindow.
20856
20857 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
20858
20859         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
20860         pangox to here, so we can write them independent of rendering
20861         system, using GDK primitives.
20862
20863         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
20864         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
20865         since we have a rendering-system independent implementation in
20866         terms of draw_glyphs().
20867         
20868         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
20869         function to render a single line.
20870
20871         * gdk/x11/gdkpango.c: Move the guts of this file mostly
20872         into ../gdkpango.c, which simplifies things, since we
20873         don't have to deal with raw X gc's.
20874
20875 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
20876
20877         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
20878         get the logical attributes for a given GtkTextLine.
20879
20880 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
20881
20882         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
20883         g_locale_get_codeset() to g_get_codeset() change.
20884
20885 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
20886
20887         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
20888         descriptions.
20889
20890         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
20891         the entry.
20892
20893         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
20894         redoing (vastly simplifying) for Pango. Still needs quite
20895         a bit of work. (Size selection is currently poor. List of 
20896         predefined sizes is not a good idea, since all of these
20897         sizes won't necessarily be distinct.)
20898
20899 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
20900
20901         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
20902         CODESET results for LANG=C.
20903
20904 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
20905
20906         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
20907         which takes a stringized pango font description;
20908         ignore the older 'font' and 'fontset' declarations.
20909
20910         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
20911         field with a GdkFont derived via gdk_font_from_description(),
20912         for compatibility. (Should we just remove it entirely?
20913         Probably too much compatibility breakage, but people
20914         should be migrating to the new Pango stuff as quickly
20915         as possible.)
20916
20917 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
20918
20919         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
20920
20921 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
20922
20923         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
20924         redoing; there are some bugs in size allocation right
20925         now, the semi-existant distinction between header / day
20926         fonts was removed, but, with Pango, could actually
20927         be made functional in a nice way.
20928         
20929         * gtk/testcalender: Move calender from examples into this
20930         directory as a test program. (We really need to restrcture
20931         testgtk into a whole directory full of tests for every
20932         widget or functionality group, separated into multiple .c
20933         files.)
20934
20935 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
20936
20937         * gtk/testgtk.c (file_exists): Fix stupid typo that
20938         was keeping RC file from being loaded.
20939
20940         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
20941         RC file font code.
20942
20943 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
20944
20945         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
20946         Add function to load a GdkFont from a PangoFontDescription.
20947
20948 2000-05-29  Tor Lillqvist  <tml@iki.fi>
20949
20950         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
20951         variable should be of type GdkEventPrivate.
20952
20953 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
20954
20955         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
20956         to have any widget for the label, use a GtkLabel widget
20957         to display the text. (Based partially on a patch from
20958         Anders Carlson.)
20959
20960         (Quite a bit of code reorganization - strip 90% of the
20961         guts out of gtkaspectframe and add a single virtual
20962         func to GtkFrameClass - compute_child_allocation.)
20963
20964 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
20965
20966         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
20967         (Removed clist->row_center_offset field because caching
20968         it wasn't saving time or code, added private function
20969         _gtk_clist_create_cell_layout()).
20970
20971 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
20972
20973         * gtk/gtkaccellabel.c: Pangoized.
20974
20975         * gtk/[hv]ruler.c: Pangoized
20976
20977 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
20978
20979         * gtk/gtkfilesel.c (gtk_file_selection_init):
20980         Use gtk_clist_set_column_auto_resize() to remove need
20981         need for manual column width computations.
20982
20983 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
20984
20985         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
20986         ensuring Pango correctness, and considerably simplifying the
20987         code.
20988         
20989         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
20990
20991         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
20992         getting of numbers of lines.
20993
20994         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
20995         to the actual requested width of the lable, not to the wrap
20996         width we set.
20997
20998         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
20999
21000         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
21001           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
21002
21003         * gtk/gtktextview.c: Fix structure inheritance.
21004
21005         * gtk/gtkprogressbar.c: Pangoize.
21006
21007 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
21008
21009         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
21010         in a function.
21011
21012         * gtk/gtktextlayout.c (find_display_line_above): Fixed
21013         bug with computing line tops.
21014
21015         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
21016
21017 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
21018
21019         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
21020         and y_offset coordinates to do what we need now. (The offset between
21021         buffer and layout coordinates has been reintroduced, but is a 
21022         bit different than before.)
21023
21024         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
21025         handle the adjustments ourselves, and scroll as necessary using
21026         the new gdk_window_scroll().
21027         
21028         The advantage of this is that when we are incrementally revalidating,
21029         we are essentially rearranging things around the visible portion
21030         of the screen. With the old setup, the visible portion of the
21031         screen was moved around in the layout, so scrolling and redrawing
21032         to track that caused jumping of the display. Since we now
21033         control the scrolling ourselves, we can suppress this and
21034         only redraw when things actually change.
21035
21036 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
21037
21038         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
21039         the region not just redisplay it after-all, since we store the
21040         cursors in the LineDisplay. (Ugly interactions here between
21041         GtkLayout and GtkTextBTree here.)
21042         
21043         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
21044
21045 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
21046
21047         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
21048         Added function to scroll contents of a window while keeping the
21049         window constant. Works by XCopyArea or guffaw-scrolling depending
21050         on the details of how the window is set up. (guffaw-scrolling
21051         still needs to be filled in.)
21052
21053 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
21054
21055         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
21056         move the debugging that was tied to a global variable
21057         to that.
21058
21059         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
21060
21061         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
21062         validated flag, in line data instead of setting height/width to
21063         -1. This allows us to perform operations with partially invalid
21064         buffer (using the old size for invalid lines) and thus to do
21065         incremental vaidation. Keep height/width aggregates up to date
21066         when deleting text and rebalancing the tree.
21067
21068         * gtk/gtktextbtree.[ch]: Add functions validate a line
21069         (gtk_text_btree_validate_line), and to validate up
21070         to a number of pixels (gtk_text_btree_validate).
21071
21072         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
21073         that indicates that something is changed and a revalidation
21074         pass is needed. Change ::need_repaint to ::changed, and
21075         make it take old and new yranges instead of a rectangle.
21076
21077         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
21078         the line_data_destroy() function from 
21079         gtk_text_btree_add_view() to a virtual function in 
21080         GtkTextLayout
21081
21082         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
21083         since we are handling partial repaints in a different fashion
21084         now.
21085
21086         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
21087         of the selection instead of queueing a repaint on the
21088         entire widget.
21089
21090         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
21091         get_selection_bounds() down to btree, make the function
21092         in buffer a wrapper around the btree function.
21093
21094         * gtk/gtktextlayout.[ch]: Add functions to check if the
21095         layout is valid and to recompute either a range of pixels
21096         aroudn a line or a certain total number of pixels.
21097
21098         * gtk/gtktextlayout.[ch]: Cache a single line display;
21099         now that we only redraw the needed portions, the hit rate
21100         for this cache is quite high.
21101         
21102         * gtk/gtktextview.[ch]: Keep track of the first paragraph
21103         on the screen so that when re-laying-out the buffer, we can
21104         keep the same place. This requires connecting to ::value_changed
21105         on the adjustments
21106
21107         * gtk/gtktextview.[ch]: Add idle functions to revalidate
21108         the buffer after we receive an ::invalidated signal.
21109         
21110 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
21111
21112         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
21113         to max of allocation and layout size, not just to the
21114         layout size.
21115
21116         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
21117         Invalidate window so it gets redrawn properly.
21118
21119         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
21120         to mean the entire window.
21121
21122         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
21123         into public header.
21124
21125 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
21126
21127         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
21128         to get the name of a mark.
21129
21130         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
21131         to find the paragraph from a y position.
21132
21133 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
21134
21135         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
21136         nodes have width/height >= 0, not > 0.
21137
21138 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
21139
21140         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
21141         Add a size_only flag, so when we only need the size, we don't create
21142         useless appearance attributes.
21143
21144         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
21145         duplicate setting of font description.
21146
21147         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
21148
21149 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
21150
21151         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
21152         EXTRA_DIST. It does not work well when the file that
21153         everything depends on is not in the tarball.
21154
21155 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
21156
21157         * gtk/testgtk.c: Some hacks and fixes so that it basically
21158         works when not sitting in the GTK+ build tree.
21159
21160 2000-05-03  Havoc Pennington  <hp@redhat.com>
21161
21162         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
21163         Properly determine the ordering of the tag root and the current
21164         line within the tree. Previous algorithm only worked if the tag
21165         root's immediate parent was the common root of both the current
21166         line and the tag root.
21167
21168 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
21169
21170         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
21171         alignment.
21172
21173         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
21174         the widget text directional dynamically.
21175
21176         * gtk/gtktextview.[ch]: Added functions to get and set default
21177         wrap mode.
21178
21179 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
21180
21181         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
21182         in cursor location computation.
21183
21184 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
21185
21186         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
21187         vadjusment values properly when layout gets smaller.
21188
21189         * gtk/gtktextview.c (need_repaint_handler): Areas being
21190         passed in are far completely inaccurate, and sometimes
21191         too small, so, for now, just queue a redraw on the
21192         whole visible region.
21193
21194 2000-04-25  Havoc Pennington  <hp@redhat.com>
21195
21196         * gtk/gtktextbtree.c (summary_destroy): new function to 
21197         destroy tag summary nodes
21198         (gtk_text_line_next_could_contain_tag): this function was 
21199         totally broken if the line passed in wasn't below the tag
21200         root. Fix it.
21201         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
21202         "wildcard" case, we have to do a linear scan. Blah.
21203         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
21204         we have to do the linear scan
21205         (tag_removed_cb): When a tag is removed from the tag table, 
21206         remove the GtkTextTagInfo node from the btree.
21207         (gtk_text_btree_spew): Implement the spew function, for 
21208         our debugging pleasure.
21209
21210 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
21211
21212         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
21213         a problem with referring to the wrong buffer.
21214
21215         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
21216
21217         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
21218         font description to gtk_style_new() - otherwise things
21219         don't work without a .gtkrc file.
21220
21221         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
21222         tags table if we create it ourself, too.
21223
21224         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
21225         it was conflicting with XKB modifiers.
21226
21227         * gtk/gtktextview.[ch]: Add simple support for 
21228         GtkIMContext.
21229
21230 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
21231
21232         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
21233         with deletion from last commit.
21234
21235 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
21236
21237         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
21238         in the context from the current locale.
21239         
21240         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
21241         context, not hardcoded value.
21242
21243         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
21244         not logical.
21245
21246 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
21247
21248         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
21249         attributes - that doesn't handle partial-glyph selection
21250         properly. Instead use new pango_layout_line_get_x_ranges()
21251         functionality to draw the selection.
21252
21253         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
21254         now properly handles out-of-range coordinates.
21255
21256         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
21257
21258         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
21259         public.
21260
21261         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
21262         for paragraphs opposite to the base direction of the widget.
21263
21264         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
21265
21266         * gtk/gtktextlayout.c: Don't split segments on marks, since that
21267         causes Arabic words to reshape as you cursor through.
21268
21269         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
21270         cursor position when moving vertically with the arrow keys and
21271         scrolling with page-up/page-down. (Arrow keys save only the X,
21272         scrolling saves both X and Y.)
21273
21274         This means you can line-up / line-down or page-up / page-down
21275         without losing your place, and also that moving vertically
21276         with the cursor keys keeps the same X position, not the same
21277         character count:
21278
21279         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
21280         arrow keys move by display lines, not paragraphs.
21281
21282 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
21283
21284         * gtk/gtklayout.c: Make sure that the bin window is at least
21285         as big as the allocation. (Should we also make sure that the
21286         bin window is big enough to completely cover widget->window?)
21287
21288         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
21289         function to get the onscreen rectangle.
21290
21291         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
21292         for offsets in window coordinates.
21293
21294 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
21295
21296         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
21297         confusion.
21298
21299         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
21300         from the widget direction.
21301
21302         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
21303         Add a "direction" attribute.
21304
21305         * gtk/gtktextview.c: global s/tkxt/text_view/.
21306
21307         * gtk/testtext.c: Added long block of text in Arabic, to test out
21308         the direction attributes. (Some problems with the shaping system
21309         for arabic become obvious - like the fact the cursor splits words
21310         into unjoined pieces.)
21311
21312 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
21313
21314         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
21315
21316         * gtk/gtktextlayout.c: Fix up alignment.
21317
21318         * gtk/testtext.c: Add some tests for centering, wrapping.
21319
21320 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
21321
21322         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
21323         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
21324         If we wrote GTK+-specific layout-render function this could just replace
21325         the draw_layout() operation in the vtable.
21326
21327         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
21328         pango_layout_get_cursor_pos() and use that function.
21329
21330         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
21331         is a non-static symbol.
21332
21333         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
21334         with gtk_text_btree_find_line_by_y()
21335
21336         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
21337         renderer that handles GtkTextAppearance attributes.
21338
21339         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
21340
21341           - Move the values in the style that don't affect geometry into a
21342             GtkTextAppearance structure.
21343           - Change underline to take a PangoUnderline and "font" a string
21344             representation of a font description
21345           - Add a "font_desc" attribute which takes a FontDescription structure.
21346
21347         * gtk/gtktextlayout.[ch]:
21348
21349           - Get rid of the display-line list per each line. Instead, we
21350             generate, on demand, a GtkTextLineDisplay structure which]
21351             contains a PangoLayout * and other necesary information
21352             (offsets, cursor locations) for displaying a paragraph.
21353           - Get rid of the code to wrap lines, create display chunks,
21354             etc. Instead, we just go through a paragraph and convert
21355             it into the necessary inputs to a PangoLayout.
21356           - Implement a new attribute type, GtkTextAttrAppearance. This
21357             holds a GtkTextAppearance, and is used to pass colors, 
21358             stipple, etc, through from the layout to the display without
21359             having to use lots and lots of individual attributes.
21360           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
21361             in terms of PangoLayout functions.
21362         
21363         * gtk/gtktextview.c: 
21364          
21365           - Handle passing the necessary PangoContext to the layout
21366           - Some fixups in painting to deal with the automatic backing store
21367             and offsetting of GTK+-1.4
21368           - Add a style_set handler so that the default style reacts
21369             properly to theme changes.
21370         
21371         * gtk/gtktext?*.[ch]: Random code-style fixes.
21372
21373         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
21374
21375 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
21376
21377         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
21378         in original form preparatory to Pango-ization and gdkimcontext-ization.
21379
21380 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
21381
21382         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
21383         so that we can derive from gtkimcontext in language bindings properly.
21384
21385 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
21386
21387         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
21388         Add a compose table including (almost) all the compose combinations
21389         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
21390         data in the XIM implementation.
21391
21392         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
21393         Moved functions to convert keyvalues from and to unicode here from
21394         the win32 port and made them public.
21395
21396 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
21397
21398         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
21399
21400 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
21401
21402         * gtk/gtkimcontext.[ch]: Base class for new input context system
21403
21404         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
21405         the real input context implementation to be loaded from modules
21406         and switched on the fly.
21407
21408         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
21409         context that just does direct keysymbol => unicode translation.
21410
21411         * gtk/gtkentry.[ch]: Start switching editing over to using
21412         GtkInputContext. (No handling of preedit yet.)
21413
21414 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
21415
21416         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
21417         many substitutions. (klass should not be subsituted.)
21418
21419 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
21420
21421         * configure.in: Add checks for Pango
21422
21423         * configure.in docs/Makefile.am: Add test for sgml2html
21424         and allow 'make dist' without building html, but print out
21425         warnings in that case. (For making snapshots)
21426
21427         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
21428         Add Pango libraries and C flags
21429
21430         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
21431         Add function (gdk_draw_layout) to draw a pango layout.
21432
21433         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
21434         for getting Pango contexts for GDK.
21435
21436         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
21437
21438         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
21439         editing.
21440
21441         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
21442         keysym => unicode translations. More languages can be added
21443         here, but real input-method support is needed.
21444
21445         * docs/Changes-1.4.txt: Added note about entry behavior.
21446         
21447         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
21448         to set the reading direction for a widget and the global direction.
21449         Add test which allows toggling the global direction. Two private
21450         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
21451
21452         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
21453           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
21454
21455         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
21456
21457         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
21458         underlining now handled by Pango.
21459
21460         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
21461         to RCStyle and Style. (Having both this and the old font name and GdkFont 
21462         is temporary.)
21463
21464         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
21465         convenience functions for creating contexts and layouts for widgets.
21466
21467         * gtk/testgtk.c: Enhance label tests with multilingual labels.
21468
21469 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
21470
21471         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
21472         titles to be active, even if they aren't visible.
21473         (gtk_clist_column_titles_passive):  Ditto.
21474
21475 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
21476
21477         * gtkmenu.c:
21478         * gtkmenu.h:
21479         * gtktypeutils.h: Spelling/grammar fixes in comments.
21480
21481 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
21482
21483         * gdk/nanox/*.h: add missing header files.
21484
21485 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
21486
21487         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
21488         send_event to TRUE.
21489         (gtk_drawing_area_size): queue a resize.
21490
21491 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
21492
21493         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
21494         the handlers, also invalidate them. bug nailed down by Karl Nelson
21495         <kenelson@ece.ucdavis.edu>.
21496
21497 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
21498
21499         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
21500         "(nil)" foundries, patch from Grigorios Magklis.
21501
21502         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
21503         on non-available fonts, based on a patch by Grigorios Magklis
21504         <maglis@cs.rochester.edu>.
21505
21506 2000-05-18  Elliot Lee  <sopwith@redhat.com>
21507
21508         * gdk/x11/gdkregion-generic.c: If a region does not have any
21509         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
21510         instead of GDK_OVERLAP_RECTANGLE_IN.
21511
21512 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
21513
21514         * gtk/gtklayout.c (gtk_layout_map): Remove references to
21515         OFFSCREEN, as it is no longer necessary.
21516
21517 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
21518
21519         * gtk/gtkcolorsel.c: Patch from David Santiago
21520         <mrcooger@cyberverse.com> to change things so that the 
21521         indicator of the active palette entry is done independently,
21522         not via the focus, since it should always be visible.
21523
21524 2000-05-17  Tor Lillqvist  <tml@iki.fi>
21525
21526         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
21527         refcount leaks as in the X11 backend.
21528
21529         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
21530         cosmetics.
21531
21532         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
21533         backend. Add _gdk_windowing_window_destroy().
21534
21535         * gtk/gtkcolorsel.c: Include correct backend-specific header.
21536         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
21537         either, but these probably do exist on nanox?)
21538         
21539         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
21540         which isn't necessarily defined by <math.h>.
21541
21542         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
21543         ancestry past GtkObject.
21544
21545         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
21546         from DLL on Win32.
21547
21548         * gtk/gtk.def: Update corresponding to recent changes.
21549
21550         * gtk/makefile.{cygwin,msc}: Updates.
21551
21552 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
21553
21554         * docs/Changes-1.4.txt: A bit of editing.
21555
21556         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
21557         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
21558         to clear the update area for the window, and clear it
21559         when hiding a window.
21560
21561         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
21562         if window destroyed.
21563
21564         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
21565
21566         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
21567         gdk_window_destroy() to the generic code, since there was a lot of 
21568         window-system-independent logic it in. Add a function:
21569         
21570          _gdk_window_destroy() 
21571
21572         to the internal API to destroy a window without unreferencing it.
21573         Add a function:
21574
21575          _gdk_windowing_window_destroy()
21576
21577         That does the windowing-system-dependent part of destroying 
21578         the window.
21579
21580 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
21581
21582         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
21583
21584 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
21585
21586         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
21587         Make gtk_widget_shape_combine_mask() keep a reference count on
21588         the pixmap since it keeps it around.
21589
21590 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
21591
21592         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
21593         leak.
21594
21595         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
21596         leak with event filters.
21597
21598 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
21599
21600         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
21601         signal handlers with the right data arguments. (Fixes
21602         some warnings when a widget was repeatedly set as a drag
21603         destination.)
21604
21605         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
21606         window so we can avoid avoid setting the DND properties on the
21607         toplevel window repeatedly.
21608
21609 2000-05-13  Tor Lillqvist  <tml@iki.fi>
21610
21611         * gdk/win32/gdkwin32.h: Define more message types missing from
21612         mingw headers.
21613
21614         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
21615         call gdk_window_destroy_notify(). It was never called. This
21616         probably meant that the GdkWindow was never freed. Thanks Owen for
21617         noticing (!).
21618
21619         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
21620         window as destroyed before calling DestroyWindow(). DestroyWindow()
21621         causes a call to the window procedure (gdk_WindowProc), which
21622         calls gdk_event_translate(), which calls
21623         gdk_window_destroy_notify(), which gets confused unless the window
21624         is set as destroyed.
21625
21626         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
21627         this function to indicate it's win32 only. Put inside #ifdef
21628         G_ENABLE_DEBUG.
21629
21630         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
21631         debugging function. (gdk_event_translate:) Add a default branch
21632         that uses the above function to print debug messages with all
21633         Windows messages symbolically.
21634
21635         * gdk/win32/gdkprivate-win32.h: Declare it, and
21636         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
21637
21638 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
21639
21640         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
21641         public header file.
21642
21643 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
21644
21645         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
21646
21647         * gtk/gtktext.c: made the adjustments no-construct args, simply
21648         provide default adjustments.
21649         (gtk_text_destroy): release adjustments.
21650
21651         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
21652         adjustment argument non-construct.
21653
21654         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
21655         instead of in finalize.
21656         (gtk_progress_get_text_from_value): 
21657         (gtk_progress_get_current_text): 
21658         (gtk_progress_set_value): 
21659         (gtk_progress_get_percentage_from_value): 
21660         (gtk_progress_get_current_percentage): 
21661         (gtk_progress_set_percentage): 
21662         (gtk_progress_configure): ensure an adjustment is present.
21663
21664 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
21665
21666         * gtk/gtkcolorsel.[hc]:
21667         * gtk/gtkcolorseldialog.[hc]:
21668         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
21669         their parent implementation, use bit fields for boolean values, don't
21670         create unused widgets, usage of glib types, braces go on their own
21671         lines, function argument alignment, #include directives etc. etc. etc..
21672
21673         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
21674
21675 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
21676
21677         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
21678
21679         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
21680         of NULL.
21681
21682         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
21683         to freed data.
21684         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
21685
21686         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
21687         to NULL when the toplevel is getting destroyed.
21688         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
21689         (gtk_menu_destroy): 
21690         (gtk_menu_init): store the information of whether we have to
21691         readd the initial child ref_count during destruction in a new
21692         GtkMenu field needs_destruction_ref_count.
21693
21694         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
21695         here, those reading: learn from my mistake! ;)
21696         in order for set_?adjustment to support a default adjustemnt if
21697         invoked with an adjustment pointer of NULL, the code read (pseudo):
21698         if (v->adjustment) unref (v->adjustment);
21699         if (!adjustment) adjustment = adjustment_new ();
21700         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
21701         now imagine the first unref to actually free the old adjustment and
21702         adjustment_new() creating a new adjustment from the very same memory
21703         portion. here, the latter comparision will unintendedly fail, and
21704         all hell breaks loose.
21705         (gtk_viewport_set_hadjustment):
21706         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
21707         after unreferencing it.
21708
21709         * gtk/gtkcontainer.[hc]: removed toplevel registration
21710         functions: gtk_container_register_toplevel(),
21711         gtk_container_unregister_toplevel() and
21712         gtk_container_get_toplevels() which had wrong semantics
21713         anyways: it didn't reference and copy the list.
21714
21715         * gtk/gtkwindow.c: we take over the container toplevel registration
21716         bussiness now. windows are registered across multiple destructions,
21717         untill they are finalized. the initial implicit reference count
21718         users are holding on windows is removed with the first destruction
21719         though.
21720         (gtk_window_init): ref & sink and set has_user_ref_count, got
21721         rid of gtk_container_register_toplevel() call. add window to
21722         toplevel_list.
21723         (gtk_window_destroy): unref the window if has_user_ref_count
21724         is still set, got rid of call to
21725         gtk_container_unregister_toplevel().
21726         (gtk_window_finalize): remove window from toplevel list.
21727         (gtk_window_list_toplevels): new function to return a newly
21728         created list with referenced toplevels.
21729         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
21730
21731         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
21732         adjustment a non-construct arg.
21733         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
21734         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
21735         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
21736
21737         * gtk/gtkrange.c: added some realized checks.
21738         (gtk_range_destroy): get rid of the h/v adjustments in the
21739         destroy handler instead of finalize. remove timer.
21740         (gtk_range_get_adjustment): demand create adjustment.
21741
21742         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
21743         we simply create them on demand now and get rid of them in
21744         the destroy handler.
21745         (gtk_viewport_destroy): get rid of the h/v adjustments in the
21746         destroy handler instead of finalize.
21747         (gtk_viewport_get_hadjustment): 
21748         (gtk_viewport_get_vadjustment): 
21749         (gtk_viewport_size_allocate): demand create h/v adjustment
21750         if required.
21751
21752         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
21753         gtk_widget_real_destroy () functionality.
21754         (gtk_widget_real_destroy): reinitialize with a new style, instead
21755         of setting widget->style to NULL.
21756
21757 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
21758
21759         * gtk/gtkcalendar.c:
21760         * gtk/gtkbutton.c: ported _get_type() implementation over to
21761         GType, either to preserve memchunks allocation facilities,
21762         or because Gtk+ 1.0 GtkTypeInfo was still being used.
21763
21764         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
21765         over. prepare for ::destroy to be emitted multiple times.
21766         removed reference tracer magic. chain into GObjectClass.shutdown()
21767         to emit ::destroy signal.
21768
21769         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
21770         fundamental.
21771
21772         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
21773         cludge.
21774
21775         * gtk/gtksocket.c:
21776         * gtk/gtkplug.c:
21777         * gtk/gtklayout.c:
21778         * gtk/gtklabel.c:
21779         * gtk/gtkargcollector.c:
21780         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
21781         not being a fundamental anymore, and to work with the new
21782         type system (nuked fundamental type varargs clutter).
21783
21784         * gtk/*.c: install finalize handlers in the GObjectClass
21785         part of the class structure.
21786         changed direct GTK_OBJECT()->klass accesses to
21787         GTK_*_GET_CLASS().
21788         changed direct object_class->type accesses to GTK_CLASS_TYPE().
21789
21790         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
21791         GType. made most of the GTK_*() type macros and Gtk* typedefs
21792         simple wrappers around macros and types provided by GType.
21793         most notably, a significant portion of the old API vanished:
21794         GTK_TYPE_MAKE(),
21795         GTK_TYPE_SEQNO(),
21796         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
21797         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
21798         GTK_TYPE_ARGS,
21799         GTK_TYPE_CALLBACK,
21800         GTK_TYPE_C_CALLBACK,
21801         GTK_TYPE_FOREIGN,
21802         GtkTypeQuery,
21803         gtk_type_query(),
21804         gtk_type_set_varargs_type(),
21805         gtk_type_get_varargs_type(),
21806         gtk_type_check_object_cast(),
21807         gtk_type_check_class_cast(),
21808         gtk_type_describe_tree(),
21809         gtk_type_describe_heritage(),
21810         gtk_type_free(),
21811         gtk_type_children_types(),
21812         gtk_type_set_chunk_alloc(),
21813         gtk_type_register_enum(),
21814         gtk_type_register_flags(),
21815         gtk_type_parent_class().
21816         replacements, where available are described in ../docs/Changes-1.4.txt.
21817         implemented compatibility functions for the remaining API.
21818
21819         * configure.in: depend on glib 1.3.1, use gobject module.
21820
21821 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
21822
21823         * TODO.xml: Various updates to current status.
21824
21825 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
21826
21827         * gtk.m4: Print out version when test succeeds.
21828
21829 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
21830
21831         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
21832         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
21833         
21834         (Original triangle color selector from Simon Budig
21835         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
21836         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
21837         Santiago <mrcooger@cyberverse.com>)
21838
21839         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
21840         out into a separate widget.
21841
21842         * gtk/testgtk.c: Add some checkbuttons for toggling palette
21843         and opacity controls.
21844
21845 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
21846
21847         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
21848         snuck in prematurely.
21849
21850 2000-05-07  Tor Lillqvist  <tml@iki.fi>
21851
21852         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
21853         had deleted a ! operator by mistake, which caused
21854         GDK_SELECTION_CLEAR events never to be generated, which caused
21855         only the first copy to the clipboard from an gtkeditable to
21856         actually cause a copy to the Windows clipboard.
21857
21858 2000-05-06  Tor Lillqvist  <tml@iki.fi>
21859
21860         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
21861         compilation, too. Current mingw gcc distributions include the
21862         necessary headers. Also the necessary IIDs are now in mingw
21863         headers/libraries, and own definitions unnecessary.
21864
21865         More hacking on OLE2 DND, still doesn't work though, and thus
21866         ifdeffed out.
21867
21868         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
21869         here, too.
21870
21871 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
21872
21873         * gdk/nanox/*: nano-X port work in progress.
21874         * gdk/simple.c: simple test for Gdk.
21875         * README.nanox: notes about the port: read this first!
21876         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
21877         with nano-X.
21878
21879 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
21880
21881         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
21882         gdk_window_clear() into common code, implement in terms of
21883         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
21884         not redirected to the backing rectangle.
21885
21886 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
21887
21888         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
21889         EXTRA_DIST. It does not work well when the file that
21890         everything depends on is not in the tarball.
21891
21892 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
21893
21894         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
21895         with recursion where process_updates() is called from
21896         an expose handler. (GtkTextView is highly broken in
21897         doing this, but it should work, so it is a nice test
21898         case.)
21899
21900 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
21901
21902         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
21903         handle the case where updates are queued during processing of
21904         updates.
21905
21906 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
21907
21908         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
21909         window is on gdk_display - use that instead of segfaulting.
21910
21911 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
21912
21913         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
21914         broken and require an empty arg, give it to them.
21915
21916 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
21917
21918         * gtk/gtklabel.h: indentation fixes.
21919
21920 2000-05-02  Tor Lillqvist  <tml@iki.fi>
21921
21922         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
21923         draw too narrow or too low arcs, they seem to fail, at least with
21924         some display drivers.
21925
21926         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
21927
21928         Large changes to the Win32 backend, partially made necessary by
21929         the changes to the backend-independent internal
21930         structures. Attempts to implement similar backing store stuff as
21931         on X11. The current (CVS) version of the Win32 backend is *not* as
21932         stable as it was before the no-flicker branch was merged. A
21933         zipfile with that version is available from
21934         http://www.gimp.org/win32/. That should be use by "production"
21935         code until this CVS version is usable. (But note, the Win32
21936         backend has never been claimed to be "production quality".)
21937
21938         * README.win32: Add the above comment about versions.
21939
21940         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
21941
21942         * gdk/gdk.def: Update.
21943
21944         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
21945         presumably be replaced by some more better mechanism as 1.4 gets
21946         closer to release shape.
21947
21948         * gdk/makefile.{cygwin,msc}: Update.
21949
21950         * gdk/win32/*.c: Correct inclusions of the backend-specific and
21951         internal headers. Change code according to changes in these. Use
21952         gdk_drawable_*, not gdk_window_* where necessary.
21953
21954         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
21955         our old DND.
21956
21957         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
21958         to interpret single characters as UTF-8. Thanks to Hans Breuer.
21959         Use correct function name in warning messages.
21960
21961         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
21962         GSourceFuncs gdk_event_prepare and gdk_event_check.
21963         (gdk_event_get_graphics_expose): Do implement, use
21964         PeekMessage. Thanks to Hans Breuer.
21965         (event_mask_string): Debugging function to print an GdkEventMask.
21966         (gdk_pointer_grab): Use it.
21967
21968         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
21969         (old) book I used claimed was Hangul actually is CJK Unified
21970         Ideographs Extension A. Also, Hangul Syllables were missing.
21971         Improve logging.
21972
21973         * gdk/win32/gdkgc-win32.c: Largish changes.
21974
21975         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
21976         g_win32_getlocale() from GLib, and not setlocale() to get current
21977         locale name.
21978
21979         * gdk/win32/gdkprivate-win32.h
21980         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
21981         gdkwin32.h, similarily as in the X11 backend.
21982
21983         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
21984         assignment was used instead of equals in if test. Thanks to Hans
21985         Breuer.
21986
21987         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
21988         the X11 version.
21989
21990         * gdk/win32/makefile.{cygwin,msc}
21991         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
21992         path to the Win32 headers that works also with the mingw compiler.
21993
21994         * gtk/gtkstyle.c: Include <string.h>.
21995
21996 2000-04-26  Havoc Pennington  <hp@redhat.com>
21997
21998         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
21999         replacing the broken gtk_label_get ()
22000
22001 2000-04-15  Havoc Pennington  <hp@pobox.com>
22002
22003         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
22004         this keeps scanner scripts from getting confused.
22005
22006         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
22007         data, rather than void
22008
22009 2000-04-15  Tor Lillqvist  <tml@iki.fi>
22010
22011         * gtk/gtkclist.c (gtk_clist_motion)
22012         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
22013         with is_hint FALSE, get x and y from the event. They used to be
22014         used uninitialised. The Win32 backend never sends motion events
22015         marked as hints. This for instance fixes the annoying file and
22016         font selector behaviour in the Win32 version.
22017
22018 2000-04-14  Tor Lillqvist  <tml@iki.fi>
22019
22020         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
22021         gtk_private_n_signals variables, they are used by some software,
22022         sigh.
22023
22024         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
22025         installation directory from the Registry, where the installer
22026         should have put it.
22027
22028 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
22029
22030         * gdk/x11/Makefile.am: Fix problem with installation directory for
22031         gdkx.h
22032
22033         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
22034         <mrcooger@cyberverse.com> so that when selecting menus with the
22035         mouse, the first item will not be selected, but when selecting
22036         with an accelerator, or navigating left-right on a menubar with
22037         the menus popped up, the first item will be selected.
22038
22039 2000-04-05  Dan Damian  <dand@dnttm.ro>
22040
22041         * configure.in: Added "ro" to ALL_LINGUAS.
22042
22043 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
22044
22045         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
22046         indentation.
22047
22048         * Makefile.am (EXTRA_DIST): Fix typo.
22049
22050         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
22051         to catch gdkconfig.h
22052
22053         * gtk/gtkitemfactory.c: Added FIXME.
22054
22055 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
22056
22057         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
22058         s/return_if_fail/return_val_if_fail/g and add a return value.
22059
22060 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
22061
22062         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
22063         merge slipup.
22064
22065         * gdk/gdkinput.h: Fix missing line from merge.
22066
22067 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
22068
22069         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
22070         instead of gdkprivate.h.
22071
22072 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
22073
22074         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
22075         parent class to correctly be GtkDialogClass.
22076
22077 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
22078
22079         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
22080         toplevel windows and their immediate children by their parents,
22081         since the size of toplevel windows is out of our immediate
22082         control and we don't get any real benefit from trying to track
22083         this size for clipping.
22084
22085         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
22086         for input_only windows.
22087
22088         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
22089         to fix some hacks and make sure that we don't try to set the
22090         background of input only windows.
22091
22092 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
22093
22094         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
22095         the _really_ internal stuff, and leave gdkprivate.h for the fake private
22096         stuff that we've traditionally exposed.
22097
22098         * gdk/**.c: Use gdkinternals.h where appropriate.
22099
22100         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
22101         not include gdkprivate-x11.h, move all stuff of conceivable public
22102         interest into gdkx.h; keep all really private stuff in
22103         uninstalled header gdkprivate-x11.h.
22104
22105         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
22106         image->image_put on windows through a new function _gdk_window_draw_image()
22107         to allow us to do backing store for images. (Sort of ugly)
22108
22109         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
22110         contexts locally so that we can offset them properly when drawing 
22111         onto backing pixmaps.
22112
22113         * gdk/gdkinput.h: Reindented
22114
22115         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
22116         pixmap or color for the window, so we can properly initialize
22117         our double-buffer pixmaps, and also so that we temporarily set
22118         a background of None while scrolling.
22119
22120         * gdk/gdkregion.h: Revise region boolean operators to have an
22121         interface that is actually convenient - switch from creating new
22122         regions on every op, to "methods" that modify existing regions
22123         (A = A OP B). 3 argument forms which allow dest == src, would also
22124         be possible, but the current interfaces seem to map nicely
22125         onto what needs to be done. (There is quite a lot of region
22126         code in GDK now.)
22127
22128         * gdk/gdkregion.h: Add constructor from rectangle and a copy
22129         operator.
22130
22131         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
22132         gdkpoly-generic.h: Copy region code from Xlib, switch it over
22133         to 32 bit coordinates, modify it to be mostly GTK+ style
22134         and to have interfaces that match gdkregion.h.
22135
22136         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
22137         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
22138         create a backing pixmap and redirect all drawing to
22139         that backing pixmap until a matching gdk_window_end_paint().
22140
22141         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
22142         Create a special drawable class for GtkWindow's that 
22143         redirects the drawing to the backing pixmap as necessary
22144         and then calls the real operations in _gdk_windowing_window_class.
22145
22146         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
22147         Store invalid region for each window. Generate expose events for invalid
22148         region in an idle. This replaces both the expose compression
22149         and the redrawing queuing in GTK+. It is both more efficient and
22150         simpler than either one individually and far more so then the
22151         combination.
22152
22153         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
22154         Emulate 32 bit coordinates for windows with 16 bit coordinates
22155         by offsetting drawing, guffaw scrolling techniques and
22156         mapping/unmapping child windows as necessary.
22157
22158         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
22159         where, when invalid regions are processed, the region is stored,
22160         and if expose events come in that are detectably duplicate
22161         the processed exposes (by comparison of event serial numbers),
22162         the stored region is subtracted out of those exposes.
22163
22164         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
22165         regions newly exposed when scrolling or resizing windows.
22166         This, combined with forcing processesing of queued invalidated
22167         regions, gives nice flicker-free scrolling.
22168
22169         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
22170         invalidated regions after every scroll.
22171
22172         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
22173         emulation in GDK. Its, for all practical purposes just a
22174         GtkViewport/GtkFixed hybrid now.
22175
22176         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
22177         (16-bit) structures as necessary instead of just casting.
22178
22179         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
22180         in terms of the structures from gdkregion-generic.c, using appropriate
22181         offsets from GDK to X11 coordinates. Cache clip mask and
22182         origin and ts origin locally and only flush to the server
22183         when drawing, to avoid constantly setting and resetting these
22184         values when offsetting GC's for scrolling and backing pixmaps.
22185
22186         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
22187
22188         * gtk/gtkcontainer.c: Call process_all_updates at end
22189         of resizing to reduce flicker. (Avoids having redraw
22190         lag arbitrarily behind resize under some circumstances)
22191
22192         * gtk/gtkentry.c: Remove old backing store code, and simply take
22193         advantage of the new backing store capabilities of GDK.
22194
22195         * gtk/gtkmain.c: Simple implementation of widget backing
22196         store - simply push a paint while handling each expose.
22197         (Should really be configurable widget for widget.)
22198         
22199         * gtk/gtkwidget.c: Remove all the old complicated redraw
22200         code, and simply invalidate the GDK windows from
22201         gdk_window_queue_clear(), etc. (Sigh, so much carefully
22202         debugged complexity ... gone to the winds.)
22203
22204         Remove all the code for suppressing expose events while
22205         resizes are pending; this isn't needed since the invalid
22206         areas won't be processed until after the resizes are
22207         processed, since they are in a lower priority idle.
22208
22209 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
22210
22211         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
22212         and height of dest rectangle for non-intersecting rectangles.
22213
22214 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
22215
22216         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
22217         for GdkRectangle.
22218
22219 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
22220
22221         * gdk/gdk{events,image,private,types,window}.h
22222          gdk/x11/gdkinputprivate.h: Change all coordinates
22223          from int16 to int. Also, Change width and height from
22224          unsigned to signed to avoid all the stupid C 
22225          signedness bugs.
22226
22227 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
22228
22229         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
22230         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
22231         Add some more detailed checking.
22232
22233         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
22234         New function to retrieve the depth of a drawable.
22235
22236         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
22237         field, reorder fields to save memory. 
22238
22239 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
22240
22241         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
22242         of the background image instead of scaling the background down to
22243         a line.
22244
22245         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
22246         which temporarily set slider to wrong size.
22247
22248         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
22249         queue_clear().
22250
22251 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
22252
22253 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
22254
22255         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
22256
22257 2000-03-17  Tor Lillqvist  <tml@iki.fi>
22258
22259         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
22260         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
22261
22262         * gdk/win32/gdkfont-win32.c
22263         * gdk/win32/gdkproperty-win32.c
22264         * gdk/win32/gdkselection-win32.c
22265         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
22266         now declared such.
22267
22268 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
22269
22270         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
22271
22272 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
22273
22274         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
22275         is called without trapping X errors.
22276
22277 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
22278
22279         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
22280         way into the fontset lists.
22281
22282 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
22283
22284         * gtk/gtkthemes.h: add extern "C" scope.
22285
22286 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
22287
22288         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
22289         to make appends to the list constant. (gtk-guy-990901-0.patch)
22290
22291 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
22292
22293         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
22294         for the typename hash table.
22295
22296 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
22297
22298         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
22299         to make sure we never divide by zero. 
22300         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
22301
22302 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
22303
22304         * gtk/gtkfontsel.c: Apply patch from
22305         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
22306         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
22307
22308         Also, some cleanups in atom handling.
22309
22310 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
22311
22312         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
22313         not GtkWidget.
22314
22315 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
22316
22317         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
22318         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
22319         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
22320         more guint wrap-around bugs before going to bed.
22321
22322 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
22323
22324         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
22325         guint wrap arounds in allocation.width.
22326
22327         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
22328         process untill we fit the allocation given.
22329
22330 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
22331
22332         * gtk/gtkwidget.c:
22333         (gtk_widget_unrealize): guard widget access with ref/unref
22334         around signal emission.
22335         (gtk_widget_hide): same here, but also check its destroyed
22336         state before queueing a resize.
22337
22338 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
22339
22340         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
22341         of gtk_default_insensitive_bg as insensitive base color.
22342
22343         * gtk/gtktext.c (gtk_text_style_set): set the background color according
22344         to the widget's state.
22345         (gtk_text_realize): same here.
22346         (gtk_text_state_changed): same here.
22347         (draw_bg_rect): compare background color against base[] from
22348         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
22349
22350 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
22351
22352         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
22353         grabs are active, unless a delete event is send to the toplevel
22354         of the currently grab holding widget.
22355
22356 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
22357
22358         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
22359         debugging g_print's.
22360
22361 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
22362
22363         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
22364         ever make the scrolled-window requisition ever depend on the 
22365         visibility state of the scrollbars for the AUTOMATIC policy. 
22366         This breaks the GTK+ requisition model, and causes loops.
22367
22368 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
22369
22370         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
22371         the default font to avoid problems with XFree86-4.0 where the
22372         default charset is iso10646-1, not iso8859-1.
22373
22374 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
22375
22376         * acinclude.m4
22377         * config.guess
22378         * config.sub
22379         * ltconfig
22380         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
22381
22382         * gtk/Makefile.am: minor cosmetic consistency tweak
22383
22384 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
22385
22386         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
22387         the activate_time to 0, so that we handle a quick
22388         press/release press/release properly and don't suppress
22389         the second release. (Red Hat bug #7545)
22390
22391 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
22392
22393         * gtk/gtkctree.c (row_delete):
22394         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
22395         bugs with destruction notifier, *always* update internal
22396         structures *before* calling user code.
22397
22398 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
22399
22400         A few more fixes for bug #5487, #2051, #2677.
22401         * gtk/gtkclist.c : 
22402         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
22403         not GDK_BUTTON_PRESS.
22404         (resync_selection): resync only if selection_mode is
22405         GTK_SELECTION_EXTENDED
22406         * gtk/gtkctree.c (resync_selection): same here
22407
22408 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
22409
22410         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
22411         gdk_drag_get_selection() and gtk_menu_detach().
22412
22413         [ From Jeroen Ruigrok/Asmodai ]
22414
22415 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
22416
22417         * gtk/gtknotebook.c (gtk_notebook_size_request): 
22418         page->tab_label can be NULL.
22419
22420 2000-01-25  Havoc Pennington  <hp@pobox.com>
22421         
22422         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
22423         arg is boolean
22424
22425         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
22426
22427         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
22428
22429         * gdk/gdkproperty.c (gdk_property_get): return boolean
22430
22431         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
22432
22433         * gdk/gdkim.c (gdk_im_ready): return boolean
22434
22435         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
22436
22437         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
22438         glib clash, should fix glib)
22439
22440         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
22441         (gdk_get_show_events): return gboolean, and canonicalize 
22442         to TRUE/FALSE
22443
22444         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
22445         colormap is private
22446         (gdk_colors_alloc): gboolean whether to be contiguous
22447         (gdk_color_equal): return gboolean since we are a predicate
22448         and not a qsort() (this looks semi-wrong due to glib breakage,
22449         IMO glib should be fixed)
22450         
22451         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
22452         (gdk_get_use_xshm): return gboolean
22453         (gdk_pointer_is_grabbed): return gboolean
22454
22455         * gdk/gdk.h: Change prototypes to match all the above changes,
22456         and re-run egtk-format-protos as required.
22457
22458 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
22459
22460         * gtk/gtkctree.c (resync_selection): 
22461         * gtk/gtkclist.c (resync_selection):
22462
22463         Return immediately if clist->drag_pos < 0. This is a workaround
22464         for the corrupt state that the clist gets into when a
22465         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
22466
22467         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
22468         
22469         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
22470         variable from recent commit.
22471
22472 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
22473
22474         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
22475
22476 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
22477
22478         * gtk/Makefile.am: prefix all autogenerated source that get build in
22479         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
22480         in builddir. since we subsequently cd into srcdir for autogeneration,
22481         the paths have to be stripped from the target file names, thusly we
22482         use $(@F) as target names now.
22483         put a comment about configure.in's --disable-rebuilds option,
22484         which can be used for non-writable source directories, for development
22485         setups though, srcdir has to be *writable*.
22486
22487 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
22488
22489         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
22490           Finish the job of allowing event to be NULL.
22491           (Fixes bug #4283, reported by Chris Blizzard)
22492
22493         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
22494           things so that the cursor appears on screen, properly
22495           take into account INNER_BORDER.
22496           (Fixes bug #4754, reported by Antonio Campos)
22497
22498 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
22499
22500         * gtk/gtknotebook.c (gtk_notebook_map): Don't
22501           show the tab_label unless it itself is visible.
22502
22503           gtk/gtknotebook.c (gtk_notebook_size_request):
22504           Do a better job of making sure that the visibility
22505           of the tab label corresponds to whether it should
22506           be mapped or not.
22507
22508 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
22509
22510         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
22511           Use the requisition, not the allocation, since the
22512           allocation has not necessarily been computed yet.
22513           (Pointed out by Eugene Osintsev)
22514
22515 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
22516
22517         * gtk/gtkstyle.c (gtk_style_new): Dont' set
22518           style/base[GTK_STATE_INSENSITIVE] both to
22519           gtk_default_insensitive_bg!
22520           (Bug #2187, reported by Jonathan Blandford)
22521
22522         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
22523           Add Alt_L, Alt_R to list of invalid accelerators.
22524           (Bug #3736, reported by Vlad Harchev)
22525
22526 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
22527
22528         * gtk/gtkfilesel.c (open_ref_dir): Fix several
22529         bugs which occured after an attempt to open 
22530         invalid home directory left cmpl_state->reference_dir == NULL.
22531
22532          - completion on files in home directory didn't work
22533          - completion on an empty string caused  segfault
22534
22535          (Bug #3678, reported by Steve Ratcliffe)
22536
22537         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
22538         cut and paste error that was causing scales to
22539         be incorrectly positioned.
22540         (Bug #2956,
22541          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
22542
22543 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
22544
22545         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
22546         when checking for dcgettext, if we've found we needed
22547         it for dgettext.
22548 +
22549 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
22550
22551         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
22552         queue_clear on NO_WINDOW widgets during a reparent,
22553         since at that point the window and widget heirarchies
22554         are out of sync. This stops crashing in some cases
22555         (the scrolled window reparent test, for instance), and
22556         _probably_ won't cause drawing errors.
22557
22558         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
22559         test do what it was supposed to do and be robust against
22560         window closings, etc. (Bug #2443)
22561
22562 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
22563
22564         * gtk/gtkentry.c: Fix return values on mouse events.
22565         (Bug #2686, Sky <seb_sky@yahoo.com>)
22566
22567         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
22568         (pointed out by George Lebl)
22569
22570         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
22571         (From Ettore Perazzoli  <ettore@helixcode.com>)
22572  
22573 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
22574
22575         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
22576         clicks between rows or outside calender area correctly.
22577         (Patch from Damon Chaplin)
22578
22579         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
22580         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
22581           Call destroy function when overwriting existing data. 
22582           (Pointed out by Damon Chaplin)
22583
22584 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
22585
22586         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
22587           which was causing problems on various systems with Xmu.
22588           This hasn't been needed for a very long time.
22589           (Fixes #1185 3167)
22590
22591 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
22592
22593         * gdk/gdki18n.h: Include <ctype.h> when defining
22594           gdk_isw* in terms of is* as a fallback.
22595           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
22596
22597 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
22598
22599         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
22600           realize the widget when it is size allocated!
22601           (old, old bug)
22602
22603         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
22604           Removed unused call to gdk_window_get_size() that
22605           showed up when the above was fixed.
22606
22607 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
22608
22609         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
22610           fix up widget->window when the widget is a
22611           NO_WINDOW container widget.
22612
22613 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
22614
22615         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
22616           to account for the fact that feof() does _not_ 
22617           return TRUE on errors, and thus avoid infinite loops
22618           when trying to use gdk_pixmap_create_from_xpm()
22619           on unreadable values.
22620
22621 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
22622
22623         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
22624
22625 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
22626
22627         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
22628           gdk_gc_set_dashes to take gint8 instead of gchar to
22629           make it clearer that it is _not_ a NULL terminated string.
22630
22631         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
22632           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
22633           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
22634           arguments.
22635
22636 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
22637
22638         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
22639         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
22640         background size relative to our allocation, guard against small
22641         allocations, we may have not yet been size allocated.
22642
22643 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
22644
22645         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
22646         not just version == 3. We implement all 3 + most of 4 - 
22647         (we don't support matching text/plain;charset=iso-8859-1
22648         to a dest that expects text/plain). We'll still advertise
22649         3 to be safe, but any client implementing version >= 3
22650         must interoperate with 3.
22651         
22652 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
22653
22654         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
22655         background and gc members, add a warning in gtk_tooltips_set_color()
22656         indicating that this function is deprecated.
22657
22658 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
22659
22660         * docs/gtkfaq.sgml: FAQ Update:
22661           - Minor cleanups (Emmanuel, me)
22662           - New questions:
22663                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
22664                 How can I retrieve the text from a GtkMenuItem? (timj)
22665                 How do I validate/limit/filter the input to a GtkEntry? (me)
22666                 Memory does not seem to be released when I free the list
22667                         nodes I've allocated (timj)
22668
22669 2000-03-07  Tor Lillqvist  <tml@iki.fi>
22670
22671         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
22672         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
22673         for which it is no use to call GetLastError onWin9x.
22674         (gdk_other_api_failed) New function, for general error
22675         reporting without calling GetLastError.
22676         (gdk_win32_api_failed) OTOH, this function always calls
22677         GetLastError. (gdk_win32_last_error_string) Remove this function,
22678         GLib has the equivalent now.
22679
22680         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
22681         call them with function name, file name and line number in the
22682         arguments.
22683
22684         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
22685         functions.
22686         
22687         * gtk/gtk.def: Add some missing entry points.
22688
22689         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
22690         gtk_paned_set_gutter_size, which don't exist any longer, as void.
22691         
22692         Fixes by Hans Breuer:
22693
22694         * gdk/makefile.msc: Update for debugging.
22695
22696         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
22697         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
22698         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
22699         in the dash_list.
22700
22701         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
22702         the x11 backend.
22703
22704         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
22705
22706         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
22707
22708 2000-03-04  Tor Lillqvist  <tml@iki.fi>
22709
22710         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
22711         just pixel value of background colour.
22712
22713         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
22714         containing code snippet previously duplicated in a couple of
22715         places.
22716         
22717         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
22718         gdk_colormap_color.
22719
22720         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
22721         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
22722         events for autorepeated Shift, Control and Alt keys. Use
22723         gdk_colormap_color.
22724
22725         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
22726         pointer is inside the window the cursor of which we are setting,
22727         call SetCursor immediately.
22728
22729         * gdk/win32/makefile.cygwin
22730         * gtk/makefile.cygwin: If we don't have the build number stamp
22731         file, use zero.
22732
22733         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
22734         gtk_paned_set_gutter_size as empty.
22735
22736         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
22737         
22738 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
22739
22740         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
22741           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
22742           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
22743           docs/gtk_tut.sgml docs/gtk.texi TODO:
22744
22745           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
22746
22747 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
22748
22749         * gtk/gtkcalendar.c: Implement num_marked_dates,
22750           and don't emit mutiple day_selected signals on
22751           month_prev.
22752
22753 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
22754
22755         * docs/make-todo (lineno): let title and logo be configurable so
22756         that GNOME can use this script too.
22757
22758         * TODO.xml: added logourl and a title
22759
22760 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
22761
22762         * TODO.xml: Added some UI items, and an explanatory
22763         comment at the top of the file.
22764
22765 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
22766
22767         * TODO.xml: some updates, added abunch of new entries.
22768         a note for those fiddeling with this file, when done
22769         with it, invoke:
22770         $ ./docs/make-todo TODO.xml >/dev/null
22771         and correct output errors before comitting changes.
22772
22773 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
22774
22775         * TODO.xml: Added XML-structured TODO file.
22776         * docs/make-todo: python script to turn TODO.xml into
22777           pretty XML output. 
22778
22779 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
22780
22781         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
22782         the function to let it draw the seven dots, instead of the old,
22783         much maligned, method.
22784         (draw_dot): New function to draw a dot.
22785
22786         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
22787         to draw the handle inside the border width as opposed to outside.
22788         Use paint function instead of gdk_draw_point.
22789
22790         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
22791         to draw the handle inside the border width as opposed to outside.
22792         Use paint function instead of gdk_draw_point.
22793
22794         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
22795         Change indenting to be more GTK like.
22796
22797 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
22798
22799         * docs/gtk_tut.sgml: New section on GtkCalendar
22800         * examples/calendar: Update example code
22801
22802 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
22803
22804         * docs/gtkfaq.sgml: FAQ Update
22805
22806 2000-02-19  Anders Carlsson  <andersca@gnu.org>
22807
22808         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
22809         to prevent the scroll event to be propagated upwards.
22810
22811 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
22812
22813         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
22814         OwnerGrabButtonMask from button entries for
22815         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
22816
22817         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
22818         to the event mask (which will result in button/press release
22819         being added to the event mask on Unix) so scrolling works
22820         for layouts in scroll windows.
22821
22822         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
22823
22824         Patch from Anders Carlsson  <andersca@gnu.org> to add
22825         a scroll event.
22826
22827         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
22828         scrolling to the "Test Scrolling" part of testgtk.
22829  
22830         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
22831  
22832         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
22833         it against GDK_SCROLL.
22834  
22835         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
22836         way of mouse wheel scrolling.
22837  
22838         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
22839  
22840         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
22841  
22842         * gtk/gtkmain.c: Removed previous mouse wheel hack.
22843  
22844         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
22845         gdk_event_mask_table.
22846  
22847         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
22848         GdkEventScroll handler.
22849  
22850         * gdk/gdkevents.h: Added GdkEventScroll structure.
22851  
22852 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
22853
22854         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
22855         and Anders Carlsson to change the Paned widgets so that they
22856         can be dragged from anywhere along the length. Also change
22857         the way that this is drawn to make this apparent.
22858
22859         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
22860         from George Lebl to check that option_menu->menu is present
22861         before getting history.
22862
22863 2000-02-14  Tor Lillqvist  <tml@iki.fi>
22864
22865         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
22866         before the assertion for non-NULL segment list.
22867
22868         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
22869         Seems that pattern brushes *must* be 8x8 pixels! At least on my
22870         machine, but it might be display driver dependent. Sigh, so make
22871         sure the stipple is that size. Does Windows suck or what?
22872
22873         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
22874         places.
22875
22876 2000-02-13  Havoc Pennington  <hp@pobox.com>
22877
22878         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
22879         refcount to 1
22880         (gdk_cursor_new): init refcount to 1
22881
22882         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
22883
22884 2000-02-13  Tor Lillqvist  <tml@iki.fi>
22885
22886         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
22887         so that we don't have to do unnecessary settings to the HDC.
22888
22889         * gdk/win32/gdkdrawable-win32.c
22890         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
22891         gdk_gc_predraw.
22892
22893         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
22894         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
22895         GDI paths, call WidenPath to get the outline of the stroken path,
22896         and then fill the outline (with the brush that was built from the
22897         stipple).
22898
22899         * gdk/win32/gdkgc-win32.c: Factor out common code from
22900         _gdk_win32_gc_new and gdk_win32_gc_set_values into
22901         gdk_win32_gc_values_to_win32values. Use correct colour for
22902         SetBkColor() (Until now the code actually used a random colour in
22903         the call to SetBkColor()... but that didn't show up as not many
22904         GDI APIs use the background colour. Pattern (opaque stippled)
22905         brushes do.)
22906
22907         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
22908         gdk_win32_api_failed): New functions for error logging.
22909
22910         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
22911         WIN32_API_FAILED to call them, passing function or file name and
22912         line number.
22913
22914         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
22915
22916         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
22917         GdkColor for foreground and background in GdkGCWin32Data.
22918
22919         * gdk/makefile.cygwin: Link in the resource object separately.
22920
22921         * gdk/win32/rc/gdk.rc
22922         * gtk/gtk.rc (New file)
22923         * gdk/win32/makefile.cygwin
22924         * gtk/makefile.cygwin: Update build number in DLLs automatically,
22925         as in GLib.
22926
22927 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
22928
22929         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
22930         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
22931         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
22932         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
22933         parameters given and cursor->ref_count. coding style fixups.
22934
22935         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
22936         not GtkWidget.
22937         
22938         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
22939         fix up widget macros and add _GET_CLASS() variant.
22940         
22941         * gtk/*.c: some GtkType fixups.
22942
22943 2000-02-09  Tor Lillqvist  <tml@iki.fi>
22944
22945         * gdk/win32/gdkproperty-win32.c
22946         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
22947         were reversed.
22948
22949 2000-02-04  Tor Lillqvist  <tml@iki.fi>
22950
22951         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
22952         g_filename_to_utf8 to convert the font names Windows gives us from
22953         whatever is the default codepage to UTF-8.
22954         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
22955         in the other direction.
22956
22957         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
22958         error in debugging output.
22959
22960 2000-02-02  Tor Lillqvist  <tml@iki.fi>
22961
22962         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
22963         and height parameters to gdk_window_clear_area(). Not minus one.
22964
22965 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
22966
22967         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
22968         checks if the widget passed to gtk_drag_get_data() was not the
22969         dest widget.
22970
22971 2000-02-01  Tor Lillqvist  <tml@iki.fi>
22972
22973         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
22974         g_filename_from_utf8 functions (which were added a moment ago to
22975         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
22976         size buffers.
22977
22978         gtk_file_selection_get_filename returns the filename in the C
22979         runtime encoding. It calls g_filename_from_utf8, but copies the
22980         returned string to a static buffer, which is returned. I think
22981         this is better than returning the result from g_filename_from_utf8
22982         directly, which would mean all apps that use it would have to free
22983         the return value. Or should this function care about this issue at
22984         all? Maybe a new function with clearly defined semantics.
22985
22986         * gtk/gtkfilesel.h: Add comment about
22987         gtk_file_selection_get_filename returning the filename in the C
22988         runtime's encoding.
22989
22990         * README.win32
22991         * gdk/gdk.def
22992         * gdk/makefile.{cygwin,msc}
22993         * gtk/gtk.def: Updates.
22994
22995         * gdk/gdkcursor-win32.c: Initialise refcount.
22996
22997 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
22998
22999         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
23000
23001 2000-01-30  Havoc Pennington  <hp@pobox.com>
23002
23003         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
23004         destroy
23005
23006         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
23007
23008         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
23009         implemented in platform-specific code
23010
23011         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
23012
23013         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
23014         underscore in front
23015
23016         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
23017         put an underscore in front
23018
23019         * gdk/gdkcursor.c: new file, implements
23020         gdk_cursor_ref/gdk_cursor_unref
23021
23022         * gdk/gdkcursor.h: Refcount GdkCursor
23023
23024         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
23025
23026 2000-01-29  Tor Lillqvist  <tml@iki.fi>
23027
23028         * gdk/gdkwindow.h
23029         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
23030
23031 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
23032
23033         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
23034         structures to properly inherit from GtkWidget not GtkBin.
23035
23036 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
23037
23038         * gtk+.spec.in: Added lib/gtk+/include/* to %files
23039         (bug #5178 - Peter Wainright)
23040         
23041         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
23042         so that it will be installed.
23043         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
23044
23045 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
23046
23047         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
23048         for the GtkStyleClass vtable const.
23049
23050         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
23051         take a const string argument like GtkTranslateFunc. This will
23052         require changes in use code.
23053
23054 2000-01-19  Tor Lillqvist  <tml@iki.fi>
23055
23056         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
23057         semantics (to mimic the X11 backend, which just calls XClearArea)
23058         is to check for zero width (and height), and in that case use the
23059         window's width minus x (height minus y). This fixes for instance
23060         some redraw problems with gtkclist, which were easily noticeable
23061         in the gtk file selection widget.
23062
23063         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
23064         windows.
23065
23066 2000-01-13  Tor Lillqvist  <tml@iki.fi>
23067
23068         * configure.in
23069         * gdk/Makefile.am
23070         * gdk/x11/Makefile.am
23071         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
23072         (bug #5177).
23073         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
23074         out later.
23075
23076 2000-01-09  Tor Lillqvist  <tml@iki.fi>
23077
23078         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
23079         WM_MOVE for iconified or invisible windows. This fixes various
23080         problems when minimising windows. Thanks to Bernd Herd.
23081
23082 2000-01-05  Tor Lillqvist  <tml@iki.fi>
23083
23084         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
23085         backend's draw_lines method, not draw_points.
23086
23087 2000-01-02  Tor Lillqvist  <tml@iki.fi>
23088
23089         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
23090         before Owen's reorganisation: Don't have queued_events and
23091         queued_tail statics in this file, but use gdk_queued_events and
23092         gdk_queued_tail. This makes exposure event compression work again.
23093
23094         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
23095         seem to be needed?
23096
23097 1999-12-30  Tor Lillqvist  <tml@iki.fi>
23098
23099         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
23100         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
23101         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
23102         doesn't do anything.
23103
23104         * gdk/gdk.def: Add gdk_xid_table_insert.
23105
23106         * gdk/win32/gdkprivate-win32.h
23107         * gdk/win32/gdkevents-win32.c
23108         * gdk/win32/gdkinput-win32.c
23109         
23110         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
23111         extension_events field in the GdkWindowWin32Data struct. Use only
23112         the extension_events field in GdkWindowPrivate. Previously one was
23113         set, and the other one tested, which broke tablet
23114         functionality. Thanks to Keishi Suenaga for pointing this out.
23115
23116 1999-12-18  Tor Lillqvist  <tml@iki.fi>
23117
23118         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
23119         When handling a single character (text length == 1), don't handle
23120         it as if it was UTF-8.
23121
23122 1999-12-11  Tor Lillqvist  <tml@iki.fi>
23123
23124         * Makefile.am: Distribute README.win32.
23125         
23126         * gdk/Makefile.am
23127         * gdk/win32/Makefile.am: Distribute Win32 files.
23128
23129         * gdk/makefile.msc: New file.
23130
23131         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
23132         after label).
23133
23134         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
23135         gdk_error_code as GDKVAR, as they are referred outside GDK.
23136
23137         * gdk/win32/makefile.msc: Update.
23138
23139         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
23140         tweaks. Check only if at least one of those Unicode subrange bits
23141         we care for is set. If no code page bits are set, guess (wildly)
23142         based on the charset.
23143
23144         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
23145
23146         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
23147         non-NULL.
23148
23149         * gtk/gtkdnd.c
23150         * gtk/gtklayout.c
23151         * gtk/gtkplug.c
23152         * gtk/gtkselection.c
23153         * gtk/gtksocket.c
23154         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
23155         appropriate. There must be a cleaner way to handle this?
23156
23157         * gtk/gtkrc.c: Must include windows.h on Win32.
23158
23159         * gtk/testgtk.c: No need to include gdkx.h.
23160
23161         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
23162
23163 1999-12-07  Tor Lillqvist  <tml@iki.fi>
23164
23165         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
23166         the rbearing is set to the same as the width, but this should be
23167         fixed.
23168
23169 1999-12-06  Tor Lillqvist  <tml@iki.fi>
23170
23171         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
23172         function. If Windows doesn't tell us what Unicode subranges a font
23173         covers, guesstimate based on the codepages it covers. This will
23174         hopefully help those Windows versions or fonts that don't give us
23175         any useful Unicode subrange information with GetTextCharsetInfo.
23176         Call this function in gdk_font_load_internal.
23177
23178         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
23179         minor changes.
23180
23181 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
23182
23183         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
23184         New function, long needed.
23185
23186 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
23187
23188         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
23189         only_if_exists argument of gdk_atom_intern to
23190         bool.
23191
23192 1999-11-25  Tor Lillqvist  <tml@iki.fi>
23193
23194         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
23195         Fix two copy&paste errors.
23196
23197         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
23198         win32 has changed.
23199
23200         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
23201         GdkWin32SingleFont struct.
23202
23203         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
23204         subranges of loaded fonts. Clear font signature first, in case
23205         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
23206         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
23207
23208         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
23209         Unoffset clip region.
23210
23211 1999-11-23  Tor Lillqvist  <tml@iki.fi>
23212
23213         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
23214         event->any.window before calling filter functions.
23215
23216 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
23217
23218         * gtk/gtkgamma.h: Adapt cast macros to standard.
23219
23220 [ Merges from 1.2 ]
23221
23222 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
23223
23224         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
23225         If translation does not include a '/', use entire
23226         translation instead of crashing.
23227
23228 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
23229
23230         * docs/gtk_tut.sgml:
23231         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
23232
23233 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
23234
23235         * gtk/gtkselection.c (gtk_target_list_remove): Use
23236         g_list_remove_link, not g_list_remove.
23237
23238         [ From Geert Bevin <gbevin@thunderstorms.org> ]
23239         
23240 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
23241
23242         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
23243         statement upon unselection (how the heck did that slip in?).
23244
23245 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
23246
23247         * gtk/gtktext.c (gtk_text_freeze): 
23248         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
23249         in frozen state (and aparently crashes). patch provided by Anders
23250         Melchiorsen <and@kampsax.dtu.dk>.
23251
23252 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
23253
23254         * fix insensitive default/focus widget activation,
23255         reported by Matt Goodall <mgg@isotek.co.uk>.
23256
23257         * gtk/gtkwindow.c (gtk_window_key_press_event): 
23258         (gtk_window_activate_default):
23259         (gtk_window_activate_focus):
23260         return handled=FALSE for actiavtion of insensitive default
23261         widgets. return handled=TRUE for activation of insensitive
23262         focus widgets. don't activate in either case.
23263
23264 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
23265
23266         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
23267         and $glib_cflags to match library order and in the
23268         theory that an old version of GLib is more likely to
23269         be in the include directory for X then vice-versa.
23270         (Bug #2776)
23271
23272 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
23273
23274         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
23275         to determine the locale for fontsets, not LC_MESSAGES;
23276         the user may want English messages with a handling
23277         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
23278         will still be broken) (Bug #2891)
23279
23280 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
23281
23282         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
23283
23284 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
23285
23286         * gtk/gtkrc.ko: Changed the Korean default fontset.
23287
23288 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
23289
23290         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
23291         where when scrolling to the left or top double exposes
23292         were done, causing major slowdowns.
23293
23294 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
23295
23296         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
23297         names to lowercase and alphanumeric, before looking
23298         them up.
23299
23300         * gtk/Makefile.am: Install codeset variant gtkrc files
23301         with normalized names.
23302
23303 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
23304
23305         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
23306         popup menus when the menu is already visible, but its parent
23307         is still hidden, (happens after tornoff window got hidden).
23308
23309 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
23310
23311         * gtk/Makefile.am (install-data-local): Fix
23312         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
23313         deleted, causing error messages on install.
23314
23315 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
23316
23317         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
23318         the handle as well, since we now sometimes ignore
23319         exposes on the handle while resizing.
23320
23321 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
23322
23323         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
23324         extra g_free introduced in one of the last one or two 
23325         commits.
23326
23327 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
23328
23329         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
23330         consistent, put each style that a gtkrc.* file creates
23331         in a unique namespace, remove old files before installing.
23332
23333 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
23334
23335         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
23336         gtk_rc_init is called multiple times. (Yes, people who
23337         do that have bugs in their code.)
23338
23339 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
23340
23341         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
23342         Remove it since it's generated by the Makefile anyway
23343
23344 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
23345
23346         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
23347         device->info.axes for core pointer.
23348
23349 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
23350
23351         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
23352         idle_id, to deal with obsolete, broken C libraries.
23353
23354 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
23355
23356         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
23357         allocation->x/y twice!
23358
23359         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
23360         consistent with gtk_vscale_pos_trough().
23361
23362 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
23363
23364         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
23365         be queueing a resize on a toplevel container between
23366         the time we show it and when we map it. So, we need
23367         to test GTK_WIDGET_VISIBLE() for toplevels, and only
23368         use GTK_WIDGET_DRAWABLE() for child windows.
23369
23370 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
23371
23372         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
23373         (fixes bug #2144)
23374
23375 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
23376
23377         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
23378         container DRAWABLE (instead of VISIBLE), so we don't queue
23379         resizes on non-toplevel containers.
23380
23381 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
23382
23383         * gtk/gtkselection.[ch]: Make the data argument
23384         const guchar *.
23385
23386 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
23387
23388         * gtk/gtkwindow.c: Try to behave sensibly if 
23389         the focus widget is the window itself. (Should
23390         we allow this at all?)
23391
23392 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
23393
23394         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
23395         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
23396         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
23397         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
23398         in prototypes and implementations consistent (Tomas Ogren).
23399
23400         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
23401         before the widget is unparented (reported by damon).
23402
23403         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
23404         since we provide unsigned data anyways.
23405
23406 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
23407
23408         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
23409         the call to gtk_tooltips_layout_text() until later.
23410
23411         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
23412         Call gtk_widget_ensure_style() before using the style.
23413
23414 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
23415
23416         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
23417         for old widgets that don't propagate draws to all
23418         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
23419
23420 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
23421
23422         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
23423         for a redraw but just the widget that requested the resize.
23424
23425 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
23426
23427         * gtk/gtkcontainer.c: added new widget level method
23428         gtk_container_set_reallocate_redraws() and a GtkContainer flag
23429         reallocate_redraws : 1 to reflect the setting, exported this through
23430         the argument system as a boolean ::reallocate_redraws.
23431
23432         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
23433         on the widget because the allocation changes, do so as well for
23434         widget->parent if the parent has reallocate_redraws set to TRUE.
23435         with that containers requesting reallocation redraws get automatically
23436         redrawn if their children changed allocation (this unfortunately
23437         affects also other children that didn't change allocation, but we
23438         cannot work around that before 1.3).
23439
23440 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
23441
23442         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
23443         _and_ height are >0 (not _or_).
23444
23445         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
23446         instead of gtk_container_queue_resize(), which is a core gtk internal
23447         function (must have been on crack when i queued that).
23448
23449         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
23450         we can check more reliably if we want to discard expose events.
23451         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
23452         flag.
23453         
23454         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
23455         we simply trust these events. for deciding whether to discard exposes,
23456         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
23457         
23458 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
23459
23460         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
23461         queues of areas that are completely off screen.
23462
23463         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
23464         logic for handleboxes.
23465
23466         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
23467         check on width/height.
23468
23469 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
23470
23471         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
23472         we are fine with using $@ the way we do (if we actually encounter
23473         brokeness with $@ in VPATH builds because of additional path prefixes,
23474         we need to use $(@F) actually).
23475
23476 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
23477
23478         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
23479         short lived bugs, that would allow language bindings to do surgeries
23480         to our guts.
23481
23482 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
23483
23484         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
23485         where comparison was being done against an uninitialized
23486         value causing intermittant results depending on
23487         compiler flags. Also make it clearer that we aren't
23488         ever initializing the child as 0x0 (though this will
23489         be caught in gtk_widget_size_allocate())
23490
23491 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
23492
23493         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
23494         gtk_window_unset_transient_for() call after we do checks
23495         involving the old transient parent.
23496         [ From Lance Capser <lmc@cyberhighway.net> ]
23497
23498 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
23499
23500         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
23501         an empty file.
23502
23503 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
23504
23505         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
23506         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
23507
23508 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
23509
23510         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
23511         `$@' is valid only in the build dir, not after we've done 
23512         `cd $srcdir'.  Also use `test -f' instead of less portable
23513         `test -e'.
23514
23515 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
23516
23517         * gtk/gtktext.c (correct_cache_insert): Rewrite
23518          for simplicity, and hopefully correctness.
23519          (Fixes bug #1322, which was a segfault when
23520           on some insertions with the properties around
23521           the insertion set up just wrong.)
23522
23523         * gtk/gtktext.c (gtk_text_adjustment): When we receive
23524          a "changed" signal, clamp the new value to the adjustment
23525          bounds to avoid segfaulting if someone tries to change
23526          the adjustment to a bogus value. (Bug #1795)
23527
23528 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
23529
23530         * gtk/gtkmain.c: Ignore unexpected destroy notifies
23531         for children, for toplevel windows handle them
23532         like delete_event.
23533
23534         * gtk/gtkplug.c: Add an unrealize handler so that
23535         we unref plug->socket_window when we are done
23536         with it.
23537
23538 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
23539
23540         * gtk/gtktext.c (clear_area): Fix stupid signedness
23541          problem that was causing background to sometimes
23542          be misaligned.
23543
23544 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
23545
23546         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
23547         
23548         * gtk/gtkmenu.c (gtk_menu_position): Make
23549          sure we never position menus with negative x, y,
23550          since gtk_widget_set_uposition() can't handle that.
23551
23552         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
23553          Modify the positioning code a bit so that we always
23554          put the top-left corner onscreen. (This is for
23555          UI reasons, gtk_menu_position() now takes care of
23556          gtk_widet_set_uposition() brokeness.)
23557
23558 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
23559
23560         * gtk/Makefile.am: fixed up things for -jx, x > 1.
23561
23562 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
23563
23564         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
23565           RC style that is passed in. The lack of the ref
23566           before was a bug. If people worked around this
23567           bug, this will introduce a slight memory leak
23568           in their code. The code should typically look like:
23569
23570             rc_style = gtk_rc_style_new ();
23571             [...]
23572             gtk_widget_modify_style (widget, rc_style);
23573             gtk_rc_style_unref (rc_style);
23574
23575         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
23576           the style if it was already set.
23577
23578         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
23579           style if it was set before.
23580
23581 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23582
23583         * gtk/testgtk.c (main): Add a check to see if we
23584           are being run from the correct directory and
23585           to quit nicely if we are not.
23586
23587         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
23588           static.
23589
23590 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
23591
23592         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
23593
23594         * gtk/gtkwindow.c:
23595         queue resizes unconditionally (gtk_widget_queue_resize will figure
23596         what to do if the window is not realized).
23597         (gtk_window_move_resize): only recenter the window
23598         for GTK_WIN_POS_CENTER_ALWAYS.
23599         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
23600         the same way as GTK_WIN_POS_CENTER.
23601
23602 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
23603
23604         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
23605         with (!(info->last_flags & GDK_HINT_POS)) instead of
23606         (!info->last_flags & GDK_HINT_POS).
23607
23608         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
23609         new_height unconditionally, because we use these values even if
23610         !default_size_changed && !hints_changed.
23611         comented the (default_size_changed || hints_changed) case with
23612         respect to resize rejects from the window manager.
23613
23614         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
23615         in the zvt condition hack, since this includes the window hints, set
23616         the hints after the handling_resize case.
23617
23618         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
23619         window is initially shown with to the geometry.
23620
23621 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
23622
23623         * gtk/gtkwindow.c (gtk_window_move_resize):
23624         s/size_changed/default_size_changed/g so i know what's
23625         really going on (frying brain on smaller flame now).
23626
23627 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
23628
23629         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
23630         we have size_changed upon handling_resize. this is a gross
23631         workaround for the broken zvt widget and should be removed in
23632         1.3 again (search for FIXME).
23633         Owen provided an accurate comment for this:
23634
23635         /* We could be here for two reasons
23636          *  1) We coincidentally got a resize while handling
23637          *     another resize.
23638          *  2) Our computation of size_changed was completely
23639          *     screwed up, probably because one of our children
23640          *     is broken. It's probably a zvt widget.
23641          *
23642          * For 1), we could just go ahead and ask for the
23643          * new size right now, but doing that for 2)
23644          * might well be fighting the user (and can even
23645          * trigger a loop). Since we really don't want to
23646          * do that, we requeue a resize in hopes that
23647          * by the time it gets handled, the child has seen
23648          * the light and is willing to go along with the
23649          * new size. (this happens for the zvt widget, since
23650          * the size_allocate() above will have stored the
23651          * requisition corresponding to the new size in the
23652          * zvt widget)
23653          *
23654          * This doesn't buy us anything for 1), but it shouldn't
23655          * hurt us too badly, since it is what would have
23656          * happened if we had gotten the configure event before
23657          * the new size had been set.
23658          */
23659
23660 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
23661
23662         * gtk/gtkrc.c: deal properly with the fact that RC
23663           style lists may include rc styles more than once.
23664
23665         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
23666           unused static function.
23667
23668         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
23669           stack of directories of RC files currently being
23670           parsed and implicitely add them to pixmap path.
23671           
23672           This fixes a bug where the directory would get
23673           appended then overwritten by pixmap_path declarations.
23674
23675           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
23676
23677         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
23678           theme's exit function. (Patch from Peter Wainwright,
23679           bug #1454)
23680
23681         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
23682           Add a destroy() handler to take care of removing
23683           group for menu item. (Fixes bug #1197)
23684
23685         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
23686           in warning message.
23687
23688 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
23689
23690         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
23691         roundtrip to figure window's width and height, since we know that
23692         anyways from widget->allocation.
23693
23694 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
23695
23696         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
23697           the hints after we request the new size.
23698
23699 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
23700
23701         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
23702           GTK_WIDGET_REALIZED() assertion - we can compute the
23703           hints before we are realized.
23704
23705         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
23706           hint changing so that we have a value of hints_changed
23707           when we decide whether to constrain the window size.
23708
23709         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
23710
23711         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
23712         change back to G_MAXINT.
23713
23714 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
23715
23716         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
23717         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
23718         contain uncluttered values.
23719         (gtk_window_compute_hints): simply assert that window is realized
23720         and that geometry_info is valid, since we rely on this anyways.
23721         (gtk_window_constrain_size): major cleanups to the code.
23722         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
23723         for the base size, instead of the minimums. use 32767 as max width
23724         and height (like in gtkwindow.c) instead of G_MAXINT.
23725
23726 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
23727
23728         * cleaned up the GtkContainer.need_resize flag handling mess, we
23729         only need to force resize requests when we were prematurely
23730         realized, or our widget tree was modified when we were temporarily
23731         hidden. handling these cases directly upon showing the window (i.e.
23732         while the GdkWindow is still unmapped) avoids the need to wait for
23733         a configure event response and therefore makes the GUI more snappier
23734         and avoids blank windows during the roundtrip.
23735
23736         * gtk/gtkwidget.c:
23737         (gtk_widget_hide): 
23738         (gtk_widget_show): don't queue resizes on toplevels, they know how
23739         to deal with matters.
23740
23741         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
23742         flag directly for not visible resize containers and spare us unecessary
23743         signal emissions.
23744
23745         * gtk/gtkwindow.c:
23746         (gtk_window_realize): if we need to enforce premature size allocation,
23747         queue a container resize so we are correctly resized later on.
23748         (gtk_window_init):
23749         (gtk_window_size_request):
23750         don't freak around with the ->need_resize flag,
23751         gtk_container_queue_resize() will care about that.
23752         (gtk_window_show):
23753         handle initial resizing issues here, we can handle matters better in
23754         this place, especially since we know that our GdkWindow is still
23755         unmapped.
23756         (gtk_window_move_resize):
23757         don't care about ->need_resize at all.
23758         handle size changes properly that occoured while we waited for a
23759         configure event.
23760
23761 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
23762
23763         * gtk/gtkwidget.c (gtk_widget_set_uposition):
23764         * gtk/gtkwindow.[hc] (gtk_window_reposition):
23765         Move the hint setting code from gtk_widget_set_uposition
23766         to here; set the hints so that we respect any previously
23767         set geometry hints.
23768
23769         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
23770         change the window hints here or move the window here,
23771         let that happen in gtk_window_move_resize().
23772
23773 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
23774
23775         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
23776         to already queued resizes (and therefore redraws) on a widget, check
23777         its anchestry as well.
23778
23779         * gtk/gtkcontainer.c:
23780         (gtk_container_queue_resize): clear resize widgets for resize
23781         containers before aborting prematurely. this is especially important
23782         for toplevels which may need imemdiate processing or their resize
23783         handler to be queued.
23784         (gtk_container_dequeue_resize_handler): added new internal function for
23785         gtkwindow.c.
23786
23787         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
23788         configure event, take possible changes in window position into account
23789         as well.
23790         if we request a new window size, queue up a resize handler that will
23791         last until the configure event response arrives.
23792         combined the ->need_resize case (initial show) with the general size
23793         (hints) changed case and added even more comments.
23794         if !auto_shrink, only revert to the old allocation if the new size
23795         is smaller than the current allocation.
23796
23797 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
23798
23799         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
23800                            gtk_window_set_geometry_hints
23801                            gtk_window_set_default_size):
23802         When hints are set, queue a resize so that the hints will
23803         be eventually reset on the toplevel.
23804
23805         * gtk/gtkwindow.c (gtk_window_show): Use
23806         gtk_window_compute_default_size(). Clear the need_resize flag
23807         on the initail map so that we don't unnecessarily trigger the
23808         resize code.
23809
23810         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
23811         into separate functions. Compare the hints we are setting
23812         with what we set last time so that we can accurately
23813         tell when we need to reset the hints.
23814
23815         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
23816         function to figure out the size from requisition
23817         and default_size.
23818
23819         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
23820         from fvwm to constrain a size to the geometry hints.
23821
23822         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
23823         to compare two sets of geometry hints.
23824
23825         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
23826         from gtk_window_set_hints(), just compute the hints,
23827         don't set them.
23828
23829         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
23830         code from gtk_window_move_resize() to separate function,
23831         rationalize a bit.
23832
23833 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
23834
23835         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
23836         structure into a new private structure.
23837
23838         * gtkrc.c: Split GtkRcStyle into public/private.
23839         In the private part, add a list of pointers to the
23840         RcStyle lists this RcStyle participates in.
23841
23842         * gtkrc.c: When a RcStyle is free, remove all
23843         lists referencing it from the 
23844         realized_style_ht hash, and free those lists.
23845         
23846         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
23847         gtk_rc_init(), since that adds the default styles
23848         to the list of parsed RC files again.
23849
23850         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
23851         
23852 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
23853
23854         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
23855         checks that ensure that a widget's allocation is at least 1 in width
23856         and height. (GNOME note: this doesn't affect old panel code anymore,
23857         because GtkSocket will request width and height of at least 1 since
23858         Fri Jul 23).
23859
23860         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
23861         allocated yet (happens if the user realizes the window prematurely),
23862         size request and allocate it.
23863         (gtk_window_size_allocate): guard against guint underflows.
23864
23865 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
23866
23867         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
23868         in gtk_built_sources, so gtk.defs gets built prior to all other
23869         sources.
23870
23871 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
23872
23873         * gtk/Makefile.am:
23874         invoke indent on gtkmarshal.*. 
23875         rewrote source generation rules, use COPYING as oldest source tag for
23876         a piggyback rule to generate all sources from (don't touch it ;).
23877         major cleanups, strip spaces on build rules for GNU Make.
23878
23879         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
23880         source and target files from commandline arguments. don't invoke indent.
23881
23882 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
23883
23884         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
23885         notebook after switch to avoid drawing problems.
23886         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
23887         
23888         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
23889         show them instead. 
23890         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
23891
23892 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
23893
23894         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
23895         notebook after switch to avoid drawing problems.
23896         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
23897         
23898         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
23899         show them instead. 
23900         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
23901
23902 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
23903
23904         * gtk/gtkwindow.c:
23905         we use window->need_resize from configure_event now, to indicate that
23906         the gtkwindow should keep its allocation (e.g. because the user resized
23907         the window through window manager handles). resize_count is now reliably
23908         used to figure whether we got the allocation we requested from the
23909         window manager.
23910         configure events get queued as resizes now, the real stuff (size
23911         computation and allocation) now only goes on in gtk_window_move_resize().
23912         GtkWindow's requisition now contains its *real* requisition (like all
23913         other widgets), *not* taking usize into account.
23914         geometry_info->last_{width|height} is now updated from set_hints() only
23915         so it always contains the last hints we set for the window manager.
23916         made some event handlers return TRUE instead of FALSE.
23917         the overall code should be much more straight forward now, and the
23918         significant code portions are accompanied by comments now.
23919         (gtk_window_set_hints):
23920         removed requisition argument and made it
23921         fetch the requisition through gtk_widget_get_child_requisition.
23922         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
23923         does that now.
23924         (gtk_window_show):
23925         ensure that the widget is realized before calling 
23926         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
23927         ensure that we got properly size requested and allocated before
23928         realization.
23929         (gtk_window_configure_event):
23930         ignore plain window moves, or reallocate the widget tree through the
23931         resize queue otherwise.
23932         (gtk_window_move_resize):
23933         mostly rewrote this function to figure window manager hints more
23934         reliably, coalesce window moves and resizes to reduce configure events
23935         and do actuall size allocations.
23936
23937 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
23938
23939         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
23940         that have a resize pending, because a redraw is already queued for them.
23941
23942         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
23943         hack to clear resize_widgets.
23944
23945         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
23946         for resize containers prior to size allocation. (this is also a bit
23947         ugly, but avoids side effects for stopped emissions and is thus more
23948         reliable).
23949         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
23950
23951         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
23952         function from gtk_tooltips_expose, as we connect to ::expose_event
23953         *and* ::draw now.
23954
23955 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
23956
23957         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
23958         checks.
23959         (gtk_target_list_unref): Likewise.
23960
23961         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
23962
23963 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
23964
23965         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
23966         guard against division by zero. (Fixes bug #1339)
23967
23968 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
23969
23970         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
23971         Prevent the trivial leak of information of allowing
23972         word motion when the entry is not visible.
23973
23974 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
23975
23976         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
23977         modality to error dialog as well as confirmation dialogs.
23978         (Bug #1803, reported by Rosanna Wing Sze Yuen)
23979
23980 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
23981
23982         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
23983         tree->view_lines.
23984         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
23985
23986         * gtk/Makefile.am (install-data-local): Solaris apparently
23987         has various troubles with ln -f; use rm first instead.
23988         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
23989
23990 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
23991
23992         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
23993         use `cp' followed by `rm' (the `rm' was already there).
23994
23995 July 30, 1999 Elliot Lee <sopwith@redhat.com>
23996         
23997         * configure.in: Fix autoconf warnings about cross compilation by
23998         trying to provide sane defaults for AC_TRY_RUN.
23999         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
24000         put them into $(srcdir) when generated. Also add a dependency of
24001         gtksignal.h on gtkmarshal.h for -j builds. 
24002         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
24003
24004 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
24005
24006         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
24007         GDK_THREADS_{LEAVE,ENTER} pair.
24008         (From Paul Fisher <pnfisher@redhat.com>)
24009
24010 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
24011
24012         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
24013         width and height are always >0 (owen).
24014
24015 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
24016
24017         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
24018         change that assured that a widget's allocated with and height are
24019         always >1, since this breaks *buggy* panel code. unfortunately this
24020         back-breaks the gimp's color selector.
24021
24022         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
24023         allocation is always >0 in width and height, before sending the
24024         configure event; this is a *gross* hack to get the gimp back to work.
24025         
24026         * marked both cases with TODO-1.3
24027
24028 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
24029
24030         * gtk/gtktext.c: Don't display wrap indicators when
24031         text is not editable and word wrap is on.
24032
24033 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
24034
24035         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
24036         option menus here as they are not derived from menu shell, assure that
24037         the option menu has a menu we can add items to.
24038
24039 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
24040
24041         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
24042         width/height to (gint) before calculations and check against < 0 to
24043         avoid guint wraparounds.
24044
24045 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
24046
24047         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
24048         width and height is never zero. sanity check both dimensions against
24049         32767 and issue a warning if the allocation is greater than that.
24050
24051 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
24052
24053         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
24054         to g_main_pending() as well.
24055
24056 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
24057
24058         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
24059         call to g_main_iteration() - since that will regrab
24060         GTK+ lock to process events.
24061
24062 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
24063
24064         * gtk/gtkwindow.c
24065         - Regularize with the rest of GTK+ by making widget->requisition
24066           not reflect the set_usize()
24067         - Always recompute geometry hints, then check if they
24068           changed before sending them to the X server. The
24069           previous checks for changes would fail in a number
24070           of circumstances. 
24071
24072 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
24073
24074         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
24075
24076 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
24077
24078         * gtk/gtkdnd.c:
24079         - Code cleanups
24080         - Instantaneously update on modifier key presses
24081         - Allow cancellation of the drag with Escape.
24082
24083 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
24084
24085         * gtk/testgtk.c (create_handle_box): Set the policy
24086         to auto_shrink - otherwise the appearance is rather
24087         strange when flipping between horizontal and vertical.
24088
24089 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
24090
24091         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
24092         (gtk_window_set_default_size): don't change a value if it's < 0.
24093         queue a resize.
24094
24095 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
24096
24097         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
24098
24099 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
24100
24101         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
24102         add an extra "/" when concating "/" + filename.
24103         (From Matt Grossman <mattg@oz.net>)
24104
24105 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
24106
24107         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
24108         for fg_gc if we set it for drawing pixmap.
24109
24110 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
24111
24112         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
24113         
24114         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
24115         already set, call old engine's destroy function and
24116         unref the old engine.
24117
24118 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
24119
24120         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
24121
24122 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
24123
24124         * gtk/gtkaccelgroup.h: mark certain functions as internal.
24125
24126 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
24127
24128         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
24129         expand behaviour changed.
24130
24131         * gtk/gtklabel.c (gtk_label_set_pattern):
24132         (gtk_label_set_justify):
24133         (gtk_label_set_line_wrap):
24134         don't bother invoking queue_clear, the reallocation does
24135         that for us, always free_words so the upcoming resize will
24136         relayout the label's contents.
24137
24138 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
24139
24140         * applied argument implementation patches from Elena Devdariani
24141         <elena@cogent.ca>.
24142
24143         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
24144         ::space_style, ::relief
24145         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
24146         * gtk/gtkpreview.c: ::expand
24147         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
24148         * gtk/gtknotebook.c: ::homogeneous
24149         * gtk/gtklabel.c: ::wrap
24150         * gtk/gtklist.c: ::selection_mode
24151         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
24152         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
24153         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
24154         * gtk/gtkclist.c: ::sort_type
24155         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
24156         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
24157
24158 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
24159
24160         * gtk/gtkstyle.c: Removed ill-thought-out part of last
24161         comment.
24162
24163 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
24164
24165         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
24166         counting right when we have to attach a new style
24167         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
24168
24169         * gtk/gtkstyle.c: Documented the refcounting
24170         peculularities of gtk_style_attach.
24171
24172 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
24173
24174         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
24175         window types.
24176
24177         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
24178         of GTK_TOPLEVEL for creating the window.
24179
24180 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
24181
24182         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
24183         the last argument (reported by Per Winkvist).
24184         
24185 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
24186
24187         Fixes for invisible XOR lines (Frank Loemker
24188         <floemker@TechFak.Uni-Bielefeld.DE>)
24189         
24190         * gtk/gtkclist.c (gtk_clist_realize): Always use
24191         a non-zero pixel for GDK_XOR.
24192
24193         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
24194         Use GDK_INVERT instead of GDK_XOR.
24195
24196 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
24197
24198         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
24199         signals if h/voffsets differ from adjustment values.
24200         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
24201
24202 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
24203
24204         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
24205         ::selection-done emissions up to the topmost menu shell.
24206
24207 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
24208
24209         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
24210         the user data on the window before destroying it.
24211
24212         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
24213         unrealize handler to take care of destroying 
24214         notebook->panel properly. 
24215         (Bug #1198 - Morten Welinder <terra@diku.dk>)
24216
24217         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
24218         of g_new and g_realloc to stop memory leak. (Actually,
24219         we could just use g_realloc(), but I'm not 100% sure
24220         that is portable).
24221         (Bug #1196 - Morten Welinder <terra@diku.dk>)
24222
24223 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
24224
24225         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
24226
24227         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
24228         for fontsets.
24229
24230         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
24231         with bin/button confusion.
24232
24233 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
24234
24235         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
24236         and show how preselection of radio items is done.
24237
24238 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
24239
24240         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
24241         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
24242         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
24243         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
24244         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
24245         * gtk/gtktable.c (gtk_table_attach): 
24246         * gtk/gtklist.c (gtk_list_insert_items): 
24247         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
24248         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
24249         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
24250         * gtk/gtkbin.c (gtk_bin_add): 
24251         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
24252         * gtk/gtkfixed.c (gtk_fixed_put): 
24253         * gtk/gtklayout.c (gtk_layout_put):
24254         general fixups to container_add logic. always realize child if
24255         child->parent is realized, only map the child and queue a resize
24256         if child and child->parent are both visible.
24257
24258 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
24259
24260         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
24261         instead of gtk_container_foreach to walk and unrealize children, so
24262         composite children get also unrealized.
24263         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
24264         (gtk_widget_map): assert that the widget is visible (basic constrain).
24265         (gtk_widget_real_map): assert that the widget is realized (basic
24266         constrain).
24267
24268 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
24269
24270         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
24271
24272 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
24273
24274         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
24275         file for iso-8859-2 locales.
24276
24277         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
24278
24279 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
24280
24281         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
24282          (Pointed out by andy@rz.uni-karlsruhe.de and others).
24283          Remove some suspicious and useless lines. 
24284
24285 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
24286
24287         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
24288         width,height = 0, 0 to mean - here to edge of window,
24289         instead of -1, -1, since the former is all we support.
24290
24291 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
24292
24293         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
24294         when removing from quit_functions list.
24295
24296 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
24297
24298         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
24299
24300 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
24301
24302         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
24303          When redrawing characters on non-visible entry, use appropriate
24304          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
24305
24306 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
24307
24308         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
24309         from drag coordinates.
24310         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
24311         use drag_dest_cell.
24312
24313         * gtk/gtktree (drag_dest_cell)
24314         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
24315         (Bug #1129)
24316
24317 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
24318
24319         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
24320         translate_* fields.
24321         (gtk_item_factory_finalize): invoke translate_notify independant from
24322         translate_data.
24323         (gtk_item_factory_set_translate_func): likewise.
24324         (gtk_item_factory_destroy): only remove ifactory pointer from those
24325         widgets that belong to us (stupid me).
24326
24327 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
24328
24329         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
24330         rc_style list when lookup succeeeds.
24331
24332 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
24333
24334         * gtk/gtkctree.c (resync_selection): 
24335         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
24336         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
24337         bug.
24338
24339 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
24340
24341         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
24342         Add some missing GDK_THREADS_ENTER()/LEAVE around
24343         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
24344
24345 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
24346
24347         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
24348         rather than emit_by_name.
24349
24350         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
24351         on the widget across multiple signal emissions.
24352         (gtk_editable_delete_text): same here.
24353         (gtk_editable_class_init): set widget_class->activate_signal after
24354         editable_signals[ACTIVATE] has been created.
24355
24356 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
24357
24358         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
24359         position here prematurely -- we might not have the
24360         right ->min_position and ->max_position yet.
24361
24362 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
24363
24364         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
24365         Add error traps so if the other end of the connection
24366         dies, we survive.
24367
24368         * gtk/gtkselection.c (gtk_selection_notify): Clean
24369         up properly when selection property retrieval fails.
24370         
24371         * gtk/gtkselection.c (gtk_selection_request): Correctly
24372         reject SelectionRequest notifies where the handler
24373         returns no data.
24374
24375 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24376
24377         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
24378         when we've previously highlighted.
24379
24380         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
24381         emit two "drag_leave" signals for Motif drops.
24382
24383         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
24384         back the correct status messages when dropping from
24385         Motif onto a proxy window that is rejecting the
24386         drop.
24387
24388 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
24389
24390         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
24391         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
24392         to compare two argument values. added gtk_arg_to_valueloc() to set a
24393         variable from an arg through its location (pointer).
24394
24395         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
24396         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
24397         as gfloat*, uchars are collected as guchar*, ints are collected as
24398         gint*, etc...
24399
24400 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
24401
24402         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
24403         Include <string.h> instead of <strings.h>.
24404
24405         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
24406         (actually, a lot more duplicate includes occur if
24407          you trace through the sequence of #include's)
24408         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
24409         
24410 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
24411
24412         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
24413         gtk-a-higuti-990322-[0-3]
24414
24415         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
24416         that was causing -DX_LOCALE not to work.
24417
24418         * gtk/gtkrc.c (gtk_rc_init):
24419         X_LOCALE will never have LC_MESSAGES defined
24420
24421 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
24422
24423         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
24424         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
24425
24426         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
24427         left/right as well (gtk-michael-980726-0.patch.gz).
24428
24429         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
24430         for pointer values, use gchar instead of char. fixed uline allocation
24431         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
24432         chunks instead of G_ALLOC_ONLY.
24433         (gtk_label_size_request): always alter requisition as passed and leave
24434         widget->requisition alone.
24435         (gtk_label_set_text): allow NULL strings.
24436         (gtk_label_new): likewise.
24437
24438 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
24439
24440         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
24441
24442 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
24443
24444         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
24445         *and* mapped (i.e. drawable).
24446         (gtk_bin_expose): only send exposes to drawable children.
24447
24448         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
24449         (gtk_box_expose): only send exposes to drawable children.
24450
24451         * gtk/gtkhscale.c (gtk_hscale_draw): 
24452         * gtk/gtkvscale.c (gtk_vscale_draw):
24453         hm, this is an ugly one. we first compute the size of our trough area
24454         here (window relative) and then check intersection with the draw_area
24455         which is parent relative because we're a NO_WINDOW widget, so we need
24456         to offset the trough area by allocation.x and allocation.y before the
24457         check. (this must not be done for the background area though, since
24458         that's already computed parent relative).
24459
24460 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
24461
24462         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
24463         unrealize title buttons.
24464
24465 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
24466
24467         * gtk/gtkclist.c (gtk_clist_column_title_passive)
24468         (gtk_clist_column_title_active): 
24469         only connect/disconnect to GtkWidgetClass::event to block mouse events.
24470
24471         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
24472         zero initialize event, removed superfluous gdk_window_get_pointer call
24473
24474         * gtk/gtklist.c (gtk_list_vertical_timeout)
24475         (gtk_list_horizontal_timeout): removed superfluous
24476         gdk_window_get_pointer call
24477
24478 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
24479
24480         * plugging problems reported by "Bruce Mitchener, Jr."
24481         <bruce@puremagic.com> due to a purify session.
24482
24483         * gtk/gtkstyle.c:
24484         (gtk_style_ref): 
24485         (gtk_style_unref): assert ref_count to be > 0.
24486
24487         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
24488         the requisition.
24489         (gtk_clist_set_shift): likewise.
24490
24491         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
24492         adjustments.
24493
24494         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
24495         event before sending it and set send_event to TRUE (which needs to
24496         be done for *all* synthesized events).
24497         (gtk_list_vertical_timeout): likewise.
24498
24499         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
24500         leaks.
24501
24502         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
24503         to TRUE when synthesizing events.
24504
24505 [ *** end of merges from 1.2 *** ]      
24506         
24507 1999-11-21  Tor Lillqvist  <tml@iki.fi>
24508
24509         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
24510         (or copied from gdkconfig.h.win32 on Win32, sigh).
24511
24512         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
24513
24514         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
24515
24516         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
24517
24518         * gdk/gdkconfig.h.win32: New file.
24519
24520         * gdk/win32/makefile.cygwin: Build just a static archive here.
24521
24522         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
24523         for the DLL from the static archive built above.
24524
24525         * gdk/gdk.def: Moved here from the win32 subdirectory.
24526
24527         * gdk/win32/*: Adapt for the changed private struct organisation.
24528
24529         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
24530
24531 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
24532
24533         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
24534         for wheel mice (buttons 4 and 5).
24535
24536 1999-11-18  Tor Lillqvist  <tml@iki.fi>
24537
24538         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
24539         drawables use just the pixel field in the foreground and
24540         background GdkColor of the GdkGC.
24541
24542         gdk_gc_set_{fore,back}ground() are called in the GIMP with
24543         GdkColors containing uninitialized (red,green,blue) fields, and
24544         just the pixel field filled in, and furthermore in the
24545         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
24546         It thus turns out that we really don't need to have the full
24547         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
24548         it later to have just the pixel values.
24549
24550 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
24551
24552         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
24553
24554 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
24555
24556         * docs/gtkfaq.sgml: threads example from Erik Mouw.
24557         New question on GtkLabel background colors.
24558
24559         * docs/gtk_tut.sgml:
24560           - Correct the example code callback
24561             function definitions.
24562           - Update the gtkdial example code, from Frans van Schaik.
24563           - Update setselection.c to current API.
24564
24565         * examples/Makefile examples/*/*.c: Update to code
24566         listed in tutorial.
24567
24568 1999-11-10  Tor Lillqvist  <tml@iki.fi>
24569
24570         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
24571         subrange table (from the "Developing International Software for
24572         WIndows 95 and Windows NT" book) was missing the Hangul syllable
24573         block... Get the loaded font's charset correctly.
24574
24575         (Note that this, and the other *-win32.c files, still really are
24576         the old ones, the win32 subdirectory is not ready for compilation
24577         yet after the reorg.)
24578
24579 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
24580
24581         * gtk/gtkclist.c: Fix off-by-one bug in parameter
24582         check.
24583
24584 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
24585
24586         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
24587         on results of XQueryDeviceState().
24588
24589 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
24590
24591         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
24592         we need to accesss only ->children. We need an accessor
24593         for the children.
24594
24595         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
24596         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
24597         to get rid of gdkx.h include.
24598         
24599         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
24600         and random references to 'None'.
24601
24602         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
24603         Get rid of unused #include <gdk/gdkx.h>
24604
24605         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
24606         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
24607         gdkconfig.h.
24608
24609 1999-11-08  Tor Lillqvist  <tml@iki.fi>
24610
24611         * gdk/win32/gdkdraw.c
24612         * gdk/win32/gdkfont.c
24613         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
24614         following yesterday's changes. (Unrelated to Owen's reorg.)
24615
24616 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
24617
24618         * gdk/x11/gdkinput-gxi.c: Add missing include,
24619           fix GdkWindowPrivate => GdkDrawablePrivate.
24620
24621         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
24622
24623         * gdk/x11/Makefile.am (xinput_sources): Add missing
24624         backslash to fix building with --with-xinput=none
24625
24626 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
24627
24628         Move all X specific code into the x11/ directory.
24629         Aside from shuffling things around, did the following:
24630
24631        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
24632          gdk_arg_context_* - a simple argument parsing system
24633          in the style of popt.
24634
24635        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
24636          gdk/x11/gdkprivate-x11.h:
24637          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
24638          add ->klass and ->klass_data fields. The klass_data
24639          field points to an auxilliary structure that is
24640          windowing system dependent.
24641
24642        * gdk/gdkfont.c: Make most of the measurement functions
24643          simply wrappers around gdk_text_extents().
24644
24645        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
24646          _gdk_font_strlen() function that hides the weird
24647          behavior in gtk+-1.[02] where a string is interpreted
24648          differently for 8-bit and 16-bit fonts.
24649
24650        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
24651          to store common code for synthesizing double/triple
24652          press events.
24653         
24654        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
24655          Make all the function that modify an existing GC
24656          simply wrappers around gdk_gc_set_values().
24657          
24658        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
24659          for throwing out later.
24660
24661        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
24662          GdkImagePrivate and GdkColormapPrivate to have a
24663          windowing system dependent part (GdkFontPrivateX etc.)
24664          that "derives" from the system-independent part.
24665
24666        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
24667          Got rid of the included-source-files for XInput in
24668          favor of automake conditionals. (Which didn't exist
24669          when XInput support was originally added.)
24670
24671        * gdk/gdkrgb.c: Remove the visual id from the debugging
24672          statements since that is X11 specific; print out
24673          type/depth info instead.
24674          
24675
24676 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
24677
24678         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
24679         loading duplicates of hashed fonts.
24680
24681         * gdk/gdk.c (gdk_keysym_convert_case): rename
24682         gdk_XConvertCase to gdk_keysym_convert_case, allow
24683         results to be NULL in the GTK+ style.
24684
24685         * gdk/gdkcompat.h: Started compatibility header
24686         for renames.
24687
24688 1999-11-07  Tor Lillqvist  <tml@iki.fi>
24689
24690         * gdk/win32/gdkprivate.h: New font private structures, related to
24691         fontsets.
24692
24693         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
24694         gdk_font_list_free(). On X11, will just be wrappers to
24695         XListFonts() and XFreeFontNames(). On Win32, the code previously
24696         in gtkfontsel.c is now here.
24697
24698         New function gdk_font_xlfd_create(). On X11 will get the FONT
24699         property of the font (for GDK_FONT_FONTs), or call
24700         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
24701         builds a XLFD style name from the font information in the LOGFONT
24702         struct(s).
24703
24704         New function gdk_font_xlfd_free(), which correspondingly frees the
24705         string returned by gdk_font_xlfd_create().
24706
24707         Implement fontsets on Win32. Add a function that iterates over a
24708         wide char string and calls a callback function for each substring
24709         of wide chars from the same Unicode subrange (and thus probably
24710         available in the same real font).
24711
24712         Improve the XLFD emulation a bit.
24713
24714         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
24715
24716         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
24717         Beta3, WM_IME_CHAR messages don't seem to contain the composed
24718         multi-byte char as with the Active IMM on Win9x. Oh well, handle
24719         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
24720         ImmGetCompositionStringW() to get the composed Unicode chars.
24721
24722         * gdk/win32/gdkgc.c
24723         * gdk/win32/gdkdraw.c: Changes needed because of the font private
24724         struct changes.
24725
24726         * gdk/win32/gdk.def: Add the new functions.
24727
24728 1999-11-04  Tor Lillqvist  <tml@iki.fi>
24729
24730         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
24731         get the Platform SDK to get <dimm.h>.
24732
24733         * gdk/win32/gdkevents.c: More event handling fixes and
24734         simplification. Never generate motion events with is_hint true. We
24735         used to do that on bogus grounds earlier. Windows sends
24736         WM_MOUSEMOVE messages on button events even if the mouse hasn't
24737         moved, ignore these.
24738
24739         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
24740
24741         * gdk/win32/gdkglobals.c
24742         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
24743         the TrackMouseEvent function, and use it.
24744
24745         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
24746         char before calling WideCharToMultiByte in order to get a string
24747         for the window title.
24748
24749         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
24750
24751         * gdk/win32/gdk.def: Remove obsolete functions.
24752
24753         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
24754         /nodefaultlib and /defaultlib switches.
24755
24756         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
24757
24758 1999-10-31  Tor Lillqvist  <tml@iki.fi>
24759
24760         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
24761         EuroSign).
24762
24763         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
24764         same type as GdkWChar, especially on Win32.
24765
24766         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
24767
24768         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
24769         before passing to Windows GDI for drawing etc. Convert to the
24770         system default codepage before passing to Windows as window
24771         titles.
24772
24773         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
24774         support changing input locale on the fly.
24775
24776         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
24777         on-the-fly changes. Convert incoming characters from the current
24778         codepage to Unicode (and then to a UTF-8 multi-byte string) based
24779         on the current input language. Use keysym<->Unicode mapping tables
24780         and functions borrowed from xterm sources.
24781
24782         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
24783         editions of Win9x, use the ActiveX-based Active IMM (Input Method
24784         Manager) if available. IMEs and the Active IMM are available under
24785         the disguise of Chinese, Korean and Japanese support for IE and
24786         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
24787         support is present in all editions (as long as you install it).
24788
24789         Call DispatchMessage from gdk_events_queue() (and thus
24790         gdk_WindowProc()), instead of duplicating the code in
24791         gdk_WindowProc().
24792
24793         Reworked the grab handling and propagation code, factored out
24794         duplicated code snippets into separate functions. Other cleanups,
24795         too.
24796
24797         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
24798         the <dimm.h> header describing the Active IMM.
24799
24800         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
24801         just do the same as for "single" fonts.
24802
24803         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
24804         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
24805         the new keysyms from gdkkeysyms.h.
24806
24807         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
24808         fontset, so that gtkentry uses wide characters.
24809
24810         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
24811         GTk+'s system directory "gtk+", not "gtk".
24812
24813 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
24814
24815         * docs/gtkfaq.sgml: FAQ update
24816
24817 1999-10-21  Tor Lillqvist  <tml@iki.fi>
24818
24819         * gdk/win32/gdkprivate.h: Add more font private data.
24820
24821         * gdk/win32/gdkfont.c
24822         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
24823         fonts and strings. Now works much better. You still have to
24824         have a correct font selected, though. No fontset emulation yet.
24825
24826 1999-10-19  Tor Lillqvist  <tml@iki.fi>
24827
24828         * gtk/maketypes.awk: Use G_OS_WIN32.
24829
24830         * gtk/gtk.def: Add some missing entry points. Also some non-public
24831         ones, but PyGTK porter claims to need them.
24832
24833         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
24834         built-in type generation.
24835
24836 1999-10-14  Tor Lillqvist  <tml@iki.fi>
24837
24838         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
24839         GDK_FONT_FONT fonts (which is all we have for now, we don't
24840         emulate fontsets). The X11 version uses plain XDrawString in that
24841         case, too. The string passed to gdk_draw_text_wc seems to be in
24842         fact (at least, when used by gtkentry and gtktext) either in a
24843         single-byte charset, or a DBCS. Not Unicode.
24844
24845         This fixes the problem in gtkfontsel, where even if you had
24846         selected a font with a non-Latin1 charset (windows-greek, for
24847         instance), the preview still used Latin-1 glyphs.
24848
24849         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
24850         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
24851         (gdk_font_load): Recognize the demibold etc weights, even if we
24852         don't have the corresponding constants in the headers.
24853         (gdk_font_hash_insert): Use same hash mechanism as in the X11
24854         version. Should save font resources a bit, when we don't have
24855         multiple HFONTs for the same font.
24856
24857         * gdk/win32/gdkprivate.h: Add the names field as in the X11
24858         version.
24859
24860 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
24861
24862         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
24863         X values
24864
24865 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
24866
24867         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
24868         layout support (as mentioned on
24869         http://www.jcinteractive.com/gnome-ui/software/widgets/)
24870
24871 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
24872
24873         * gtk/fnmatch.c
24874         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
24875
24876 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
24877
24878         * configure.in (ALL_LINGUAS): Added Galician (gl)
24879
24880 1999-10-05  Tor Lillqvist  <tml@iki.fi>
24881
24882         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
24883
24884         * gdk/win32/gdkcompat.c: New file, actually provide an
24885         implementation for the deprecated functions. (Just temporarily.)
24886
24887         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
24888
24889         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
24890
24891         * gdk/win32/gdk.def gtk/gtk.def: Updates.
24892
24893 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
24894
24895         * configure.in: Added "uk" to ALL_LINGUAS.
24896         
24897 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
24898
24899         * configure.in: correct checking for BeOS check
24900
24901         * gdk/gdktypes.h
24902         * gtk/fnmatch.c
24903         * gtk/gtkfilesel.c
24904         * gtk/gtkitemfactory.c
24905         * gtk/gtkmain.[ch]
24906         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
24907
24908 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
24909
24910         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
24911         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
24912         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
24913         by Bulgarian). 
24914
24915 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
24916
24917         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
24918         Fix a reference to window_private->destroyed.   
24919
24920         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
24921         (ugly) setting of an internal GdkWindow member to use
24922         a _slightly_ cleaner macro.
24923
24924         * gdk/gdkprivate.h: Split GdkWindowPrivate into
24925         GdkDrawablePrivate and GdkWindowPrivate.
24926         Add extra macros for accessing GDK_DRAWABLE_ components.
24927
24928         * *.[ch]: Massive adjustments for the above, use the
24929         new macros in a lot of places.
24930
24931 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
24932
24933         * gdk/gdktypes.h: Make GdkDrawable the base type,
24934         not GdkWindow.
24935
24936 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
24937
24938         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
24939
24940 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
24941
24942         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
24943
24944 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
24945
24946         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
24947         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
24948
24949         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
24950
24951         * docs/gtk-config.1: Now autogenerated.
24952         * docs/Changes-1.4.txt: started
24953         
24954 1999-10-03  Tor Lillqvist  <tml@iki.fi>
24955
24956         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
24957         to #ifdef also here.
24958
24959         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
24960         Owen did to the X11 backend.
24961
24962         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
24963         ScrollWindowEx when blitting inside a window, it can't be correct
24964         in the general case.
24965
24966         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
24967         WM_GETMINMAXINFO is easier.
24968
24969         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
24970         depth equal to the bitspixel value, not the visual's depth.
24971
24972         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
24973         to 24 even if the bitspixel value is 32.
24974
24975         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
24976         need to check for depth==32 when bpp==32, depth will always be 24.
24977
24978 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
24979
24980         * docs/Changes-1.4.txt: Started
24981         
24982         * gtk/Makefile.am (gdk_headers): Include all the new headers.
24983
24984         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
24985         
24986         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
24987         into C file.
24988         
24989         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
24990         header to gdkinputprivate.h.
24991
24992         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
24993         unused since before 1.2.
24994
24995 1999-09-30  Tor Lillqvist  <tml@iki.fi>
24996
24997         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
24998         expand possible hex escapes in the font family (put there by
24999         logfont_to_xlfd if the font name isn't a legal XLFD font family,
25000         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
25001         On Win32, add hex escapes here, too.
25002
25003 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
25004
25005         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
25006         to #ifdef GDK_WINDOWING_X11.
25007
25008 [ Merges from gtk-1-2 ]
25009
25010 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
25011
25012         * configure.in: fixed "GNU Make" check to pass with new make version
25013         3.77.95.
25014
25015 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
25016
25017         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
25018         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
25019         AM_PATH_GTK() macros don't get confused by the -pre1.
25020
25021 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
25022
25023         * configure.in (REBUILD): Change check for perl5
25024           to check explicitely for v >= 5.002. (5.001
25025           does not work with our scripts.)
25026
25027 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
25028
25029         * configure.in: evaluate $PERL for the perl version check. added
25030         --disable-rebuilds to give the user an option to completely disable
25031         any source autogeneration rules.
25032
25033 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
25034
25035         * configure.in: evaluate $ac_make when checking for GNU Make.
25036
25037 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
25038
25039         * docs/Makefile.am: added generation.txt.
25040
25041         * Makefile.am: require automake 1.4, build README from README.in and
25042         INSTALL from INSTALL.in in dist-hook.
25043         
25044         * README.in:
25045         * INSTALL.in: new files to autogenerate README and INSTALL from.
25046
25047         * configure.in: figure whether we have GNU Make
25048
25049         * docs/generation.txt: minor additions/corrections.
25050
25051 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
25052
25053         * docs/gtkfaq.sgml: FAQ Update
25054
25055 July 30, 1999 Elliot Lee <sopwith@redhat.com>
25056         
25057         * configure.in: Fix autoconf warnings about cross compilation by
25058         trying to provide sane defaults for AC_TRY_RUN.
25059
25060 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
25061
25062         * ltconfig
25063         * ltmain.sh: upgrade to libtool 1.3.3
25064
25065 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
25066
25067         * INSTALL: Indicate that the --with-glib= configure
25068         time flag is unsupported.
25069
25070 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
25071
25072         * docs/generation.txt: Added a file that gives
25073         documenation about the autogeneration process for
25074         various autogenerated files.
25075         
25076 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
25077
25078         * configure.in (LIBS): Look for libgmodule in the
25079         right location.
25080
25081 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
25082
25083         * docs/gtk_tut.sgml: Removed references to
25084         code examples in my directory on gtk.org as
25085         they should all be in the tutorial now.
25086
25087         * docs/gtk_tut.sgml: Added sources for dial-test
25088         and scribble-xinput programs that were previously
25089         missing.
25090
25091 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
25092
25093         * TODO: Added entry about menu keyboard navigation, removed
25094         some finished items.
25095
25096 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
25097
25098         * acinclude.m4: Standardize on func_dgettext
25099         not func_gettext, so that the checks for dgettext
25100         actually are paid attention to.
25101
25102 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
25103
25104         * configure.in (LIBS): Add $INTLLIBS into $LIBS
25105         directly, rather than repeating the checks for
25106         gettext.
25107
25108         * INSTALL: Added information about gettext and
25109         NLS support.
25110
25111         * acinclude.m4 (LIBM): Check for dgettext, not
25112         just gettext. This should hopefully fix things wrt
25113         systems with old versions of GNU gettext installed.
25114
25115 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
25116
25117         * configure.in (LIBS): Look for libgmodule in the
25118         right location.
25119
25120 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
25121
25122         * autogen.sh: add --enable-maintainer-mode
25123
25124         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
25125
25126 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
25127
25128         * docs/gtk-config.1.in:
25129           docs/Makefile.am:
25130           configure.in: gtk-config is now generated.
25131
25132         * docs/gtk-config.1: Removed, now generated.
25133
25134 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
25135
25136         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
25137         handle CreateNotify itself, still put out a debuging message for
25138         --gdk-debug=events. made the ReparentNotify debugging message more
25139         verbose.
25140         wrap xcoords translation for ConfigureEvents into an error trap,
25141         a destroy event may already be pending, and in that case, the
25142         actuall coordinate values are not at all critical.
25143
25144 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
25145
25146         * gdk/gdkcc.c: Stop leaking the color_hash all over
25147         the place. Simplify and improve the logic.
25148
25149 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
25150
25151         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
25152         for prototypes and function implementations consistent (reported
25153         by Tomas Ogren).
25154
25155 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
25156
25157         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
25158         send_event set in debugging output.
25159         (gdk_compress_exposures): default initialize the event so we don't
25160         operate on bogus values (namely send_event).
25161
25162 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
25163
25164         * gdk/gdkwindow.c: When we receive an unexpected
25165         destroy notify on one of our windows, don't just
25166         warn about it, also mark our windows as destroyed.
25167
25168 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
25169
25170         * gdk/gdkfont.c (gdk_font_hash_insert): Add
25171           name => font and name => fontset hashes. The 
25172           name => fontset hash is a _big_ win since we
25173           weren't previously caching fontsets at all and loading
25174           fontsets is expensive. The name => font hash
25175           is less of a win, but it does save us from doing
25176           repeated XQueryFont calls on the same font.
25177
25178         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
25179           list so we can remove font/fontset from hash.
25180
25181 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
25182
25183         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
25184           and slightly confusing test. [ XInternAtom (,,TRUE)
25185           will never return None ].
25186
25187 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
25188
25189         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
25190           gdk/gdkwindow.c (gdk_window_set_hints):
25191
25192         Don't omit setting the properties if flags == 0 -
25193         there may be an existing set of properties there
25194         already. (Very old bug. Would it be better to
25195         delete the property instead?)
25196
25197         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
25198           spelling error in comment.
25199
25200 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
25201
25202         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
25203           to avoid stomping over gdk_error_warnings.
25204
25205         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
25206           as (bits_per_pixel + 7) / 8. This gives the same
25207           result as before for multiples of 8, but actually
25208           a "reasonable" value for 1bit or 4bit displays.
25209
25210 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
25211
25212         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
25213         GNU Make.
25214
25215 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
25216
25217         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
25218         discarding configure events.
25219
25220 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
25221
25222         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
25223         refcount is greater than zero.
25224
25225         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
25226
25227         * gdk/gdkfont.c (gdk_font_unref): Likewise.
25228
25229         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
25230
25231         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
25232
25233 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
25234
25235         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
25236         that format 32 => sizeof(item) == 4. It really is
25237         sizeof(long).
25238
25239 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
25240
25241         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
25242         core dump at all on X IO errors, only core dump
25243         if --enable-debug for X errors.
25244
25245 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
25246
25247         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
25248         unknown window:" message. disabled ConfigureNotify discarding code,
25249         because it led to events being processed out of order.
25250
25251 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
25252
25253         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
25254
25255         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
25256         we export this function, supress error warnings and don't reset the
25257         error code in the first half of this function.
25258
25259         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
25260         code (instead of just -1) so gdk_error_trap_pop() reveals something
25261         actually informative about the error that happened.
25262
25263         * gdk/*.c:
25264         don't rely on gdk_error_code being -1 if an error occoured, but just
25265         gdk_error_code != 0.
25266
25267 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
25268
25269         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
25270         pointer *before* invoking the filter function, so we at least don't
25271         crash if a filter is removed that is currently executed. window filters
25272         *really* need to be made truely reentrant at some point.
25273
25274 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
25275
25276         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
25277         PropertyNotify debug messages.
25278
25279 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
25280         
25281         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
25282         
25283         * gdk/gdkim.c: Fix cut-and-paste errors for 
25284         x/y and PreeditAttributes/StatusAttributes.
25285
25286 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
25287
25288         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
25289         G_MAXINT to 2^16 to alleviate overflow problems in
25290         various window managers.
25291
25292 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
25293
25294         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
25295         for fontsets.
25296
25297 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
25298
25299         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
25300         Initialize size_hints.x and size_hints.y because kwm
25301         brokenly pays attention to them.
25302         (Bug #1181 -  Lars Heete <hel@admin.de>)
25303
25304 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
25305
25306         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
25307         return value of gdk_list_visuals(). 
25308         (Bug #1193 - Morten Welinder <terra@diku.dk>)
25309
25310 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
25311
25312         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
25313         XSetIMValues to (void *) when comparing to NULL, to workaround
25314         the problem of some compilers barfing since older X headers don't
25315         have the prototype for it.
25316
25317 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
25318
25319         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
25320         for pseudocolor where colormap->colors was double
25321         allocated.
25322
25323         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
25324         color value in the hash table with the pixel filled
25325         in so when we do later hash table lookups, the color
25326         value is correct.
25327         
25328 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
25329
25330         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
25331         making the call
25332
25333 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
25334
25335         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
25336         pointed out by Morten Welinder <terra@diku.dk>.
25337
25338 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25339
25340         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25341           default filter from the list
25342
25343 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25344
25345         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25346           default filter from the list
25347
25348 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
25349
25350         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
25351
25352         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
25353         g_strdup_printf instead of calcing the length separately
25354
25355 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
25356
25357         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
25358         that we don't do in many other places. (Fixing duplicate 
25359         #include of config.h)
25360
25361         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
25362         Otherwise, #ifndef XINPUT_NONE check in the latter
25363         doesn't work. (Bug #546)
25364
25365 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
25366
25367         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
25368         "None" case insensitive.
25369
25370 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
25371
25372         * gdk/gdkselection.c: 
25373         Add error traps so if the other end of the connection
25374         dies, we survive.
25375
25376 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
25377
25378         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
25379         dest_xid field into two fields - one for the window
25380         to send in messages, one to indicate the last looked
25381         up window for caching purposes. This is needed, so
25382         that Leave messages get the correct window.
25383
25384 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
25385
25386         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
25387         Fix warning created by people mucking around
25388         with the gsource API.
25389
25390         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
25391         Change mapping between GIOCondition and GdkInputCondition
25392         to match the way the Linux kernel does it. This should
25393         fix problems where closed pipes were no longer signalling
25394         GDK_INPUT_READ on systems with a native poll().
25395
25396 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
25397
25398         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
25399         explicitly for the string "None" - it is in the XPM
25400         spec and some servers treat unknown colors in odd ways
25401         (like asking the user!)
25402
25403 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
25404
25405         * gdk/gdkevents.c: made "->" into a "." of previous change so
25406         it compiles
25407
25408 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
25409
25410         * gdk/gdkevents.c (gdk_compress_exposures): Set the
25411         window field of the event structure before calling
25412         user filters.
25413
25414 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
25415
25416         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
25417         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
25418
25419 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
25420
25421         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
25422         intermediate text property - prevents major memory
25423         leak when gdk_use_mb.
25424         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
25425
25426 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
25427
25428         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
25429         gtk-a-higuti-990322-[0-3]
25430
25431         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
25432         sizeof(wchar_t) != sizeof (GdkWChar)
25433
25434         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
25435         that was causing -DX_LOCALE not to work.
25436
25437         * gtk/gtkrc.c (gtk_rc_init):
25438         X_LOCALE will never have LC_MESSAGES defined
25439
25440         * gdk/gdk.c (gdk_init_check):
25441         Remove --xim-preedit and --xim-status from argv properly.
25442
25443         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
25444         that the client window is present on the X server
25445         before we pass it to the input method.
25446
25447 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
25448
25449         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
25450         if --display is specified on the command line, than
25451         the drag window will not be created on that display.
25452         
25453 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
25454
25455         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
25456         lookups with only_if_exists == TRUE were inserting
25457         bogus values into the atom cache.
25458
25459 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
25460
25461         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
25462         then reset it to NULL.
25463
25464         * gdk/gdkcolor.c:
25465         (gdk_colors_free): 
25466         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
25467         key for g_hash_table_remove() in both functions, this prevents us
25468         from accessing possibly uninitialized portions of a GdkColor structure
25469         where we are only interested in its pixel value.
25470
25471 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
25472
25473         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25474         font hash table, if we have a GdkFontPrivate entry for this font
25475         already, simply increment its reference count, provided by Olaf Dietsche
25476         <olaf.dietsche+list.gtk@netcologne.de>.
25477
25478 1999-09-21  Tor Lillqvist  <tml@iki.fi>
25479
25480         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
25481         just to be sure.
25482
25483         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
25484         unused variables, leftovers from the X11 version.
25485
25486         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
25487
25488         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
25489         downcase fields on X11.
25490
25491 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
25492         
25493         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
25494         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
25495
25496 1999-09-17  Tor Lillqvist  <tml@iki.fi>
25497
25498         * gdk/win32/gdk.def: Add gdk_threads_mutex.
25499
25500         * gtk/makefile.msc: Correct path to libintl.
25501
25502         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
25503         use of gint vs. int, and gint vs. gboolean in headers and
25504         definitions. Use GtkType for the *_get_type functions. Note that
25505         these changes preserve binary compatibility.
25506
25507         * gdk/gdk.c
25508         * gdk/win32/gdk.c
25509         * gdk/gdk.h: Fix inconsistencies: gint vs int.
25510
25511         * gtk/gtkmain.c
25512         * gtk/gtkclist.c
25513         * gtk/gtkmenufactory.c
25514         * gtk/gtknotebook.c
25515         * gtk/gtkwidget.c: Fix inconsistencies, also gint
25516         vs. gboolean.
25517
25518         * gtk/gtkcolorsel.[ch]
25519         * gtk/gtkcombo.[ch]
25520         * gtk/gtkdrawingarea.[ch]
25521         * gtk/gtkgamma.[ch]
25522         * gtk/gtkhandlebox.[ch]
25523         * gtk/gtkhpaned.[ch]
25524         * gtk/gtkhruler.[ch]
25525         * gtk/gtkplug.[ch]
25526         * gtk/gtkpreview.[ch]
25527         * gtk/gtkruler.[ch]
25528         * gtk/gtksocket.[ch]
25529         * gtk/gtkstatusbar.[ch]
25530         * gtk/gtktoolbar.[ch]
25531         * gtk/gtkvbbox.[ch]
25532         * gtk/gtkvpaned.[ch]
25533         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
25534         functions.
25535
25536         * gtk/gtkgamma.h: Fix bug, missing () in call of
25537         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
25538
25539 1999-09-14  Tor Lillqvist  <tml@iki.fi>
25540
25541         * gdk/gdkcolor.c (gdk_colormap_new)
25542         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
25543         colormap->colors was allocated twice.
25544
25545         * gdk/win32/gdk.c: Remove some unused stuff.
25546
25547         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
25548         colormap.
25549
25550         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
25551         * gtk/gtklabel.h (gtk_label_get_type)
25552         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
25553         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
25554         in a couple of places, not guint.
25555
25556 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
25557
25558         * configure.in,po/et.po: added Estonian language file
25559
25560 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
25561
25562         * configure.in,po/da.po: added Danish file
25563
25564 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
25565
25566         * docs/gtkfaq.sgml: Minor FAQ Update
25567
25568 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
25569
25570         * docs/gtkfaq.sgml: FAQ update
25571
25572 1999-08-27  Tor Lillqvist  <tml@iki.fi>
25573
25574         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
25575         way to get window contents continually refreshed while resizing. I
25576         didn't like the effects myself, so it's not on by default.
25577
25578         * gdk/win32/gdkprivate.h: New flag variable
25579         gdk_event_func_from_window_proc, FALSE by default.
25580
25581         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
25582         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
25583         are passed --gdk-event-func-from-window-proc.
25584
25585         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
25586         and we have am event_func, call it instead of enqueing the event.
25587
25588 1999-08-23  Tor Lillqvist  <tml@iki.fi>
25589
25590         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
25591         Kelley: Set expose_count in GdkEventExposes correctly.
25592
25593         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
25594         MULTIPLE_WINDOW_CLASSES).
25595
25596         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
25597         for bug in NT, apparently NT *does* draw the end pixel, too, in
25598         LineTo with a one-pixel pen, so we don't have to do it ourselves.
25599
25600 1999-08-21  Tor Lillqvist  <tml@iki.fi>
25601
25602         Improvements by Hans Breuer: 
25603
25604         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
25605
25606         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
25607         CS_?REDRAW flags as they cause lots of (late) redraws when "show
25608         window contents while dragging" is turned on. Allocate at least
25609         one unique class for every GdkWindowType. If support for single
25610         window-specific icons is ever needed (eg. Dialog specific), every
25611         such window should get its own class.
25612
25613 1999-08-19  Tor Lillqvist  <tml@iki.fi>
25614
25615         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
25616         error that caused crashes.
25617
25618 1999-08-17  Tor Lillqvist  <tml@iki.fi>
25619
25620         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
25621         window, use ScrollWindowEx, and call UpdateWindow. This prevents
25622         bugs when for instance part of the window was outside the
25623         display. Thanks to Philippe Colantoni for finding and fixing this.
25624
25625 1999-08-16  Tor Lillqvist  <tml@iki.fi>
25626
25627         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
25628         endpoint calculations which were totally wrong. (A little RTFMing
25629         helps a lot ;-)
25630
25631         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
25632         from a separate directory, not from gettext, because of licensing
25633         issues (we want to use the LGPL version).
25634
25635         * README.win32: Mention the intl from glibc vs from gettext issue.
25636
25637 1999-08-13  Tor Lillqvist  <tml@iki.fi>
25638
25639         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
25640         in the key event handling: Now AltGr chars work again. Also,
25641         now Alt-digits are passed up as well as Control-digits.
25642         Pass keypad plus and minus as normal plus and minus.
25643
25644 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
25645
25646         * docs/gtkfaq.sgml: FAQ Update
25647
25648 1999-07-25  Tor Lillqvist  <tml@iki.fi>
25649
25650         * README.win32
25651         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
25652         the Wintab SDK.
25653
25654         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
25655         OK, but getting closer. Guard against bogus tilt data from Wacom
25656         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
25657         enable easier building without Wintab.
25658
25659         * gdk/win32/gdkinput.h
25660         * gdk/win32/gdkevents.c 
25661         * gdk/win32/gdkwindow.c: Minor changes related related to above.
25662         
25663         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
25664         code. As we have just one visual on Win32, no sense to have it in a
25665         table, and no need for the hash table.
25666
25667         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
25668         better on white background.
25669
25670 1999-07-21  Tor Lillqvist  <tml@iki.fi>
25671
25672         * README.win32: Update gcc build instructions. Mention gettext is
25673         GPL.
25674
25675         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
25676         supported cursor size with GetSystemMetrics.
25677
25678         * gdk/win32/gdkfont.c
25679         * gtk/gtkfontsel.c: Guard against some font weight and charset
25680         symbols being undefined (in mingw32 headers).
25681
25682         * gdk/win32/makefile.cygwin
25683         * gtk/makefile.cygwin
25684         * gtk/gtkthemes.c: No longer need to have differently named
25685         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
25686
25687 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
25688
25689         * docs/gtkfaq.sgml: Long awaited FAQ update.
25690
25691 1999-07-15  Tor Lillqvist  <tml@iki.fi>
25692
25693         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
25694         it. Obscure bit manipulation needed.
25695
25696         * gdk/win32/gdkevents.c: Logging.
25697         
25698         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
25699         style (file name include compiler name) for theme engines.
25700
25701 1999-07-13  Tor Lillqvist  <tml@iki.fi>
25702
25703         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
25704
25705         * gdk/win32/gdkevents.c: Fix long-standing bug in key
25706         events. The key.string wasn't zero-terminated, still we strdup'ed
25707         it in gdk_event_copy(). Synthesize crossing events for button
25708         events before possible propagation.
25709
25710         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
25711
25712         * gdk/win32/makefile.cygwin
25713         * gtk/makefile.cygwin: Use new DLL naming style for the
25714         GCC-compiled ones.
25715
25716         * gdk/win32/makefile.msc
25717         * gtk/makefile.msc: Cosmetics mostly.
25718
25719         * gtk/gtk.def: Add missing entry points.
25720
25721         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
25722
25723 1999-07-09  Tor Lillqvist  <tml@iki.fi>
25724
25725         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
25726         or height is zero. Don't print a warning if Pie or Arc fails, they
25727         always fail (?) for very narrow ellipses.
25728
25729         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
25730         the part or the destination window corresponding to source area
25731         outside of the source drawable's boundary.
25732
25733         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
25734         anything if less than two points.
25735
25736         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
25737         return NULL. Gtk cut-and-paste inside a single program works
25738         better this way. (It always gets the clipboard contents from
25739         Windows, not from its own copy, which is cleared anyway. I can't
25740         say I fully understand what happens... Emulating the X selection
25741         and property stuff is a bit of a mess.)
25742
25743         * gdk/win32/gdkevents.c
25744         * gdk/win32/gdkproperty.c: A bit more verbose logging.
25745
25746         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
25747         that never got deleted). Revamp gdk_region_shrink.
25748
25749         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
25750         after use.
25751
25752         * gtk/gtk.def: Add some missing entry points.
25753
25754         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
25755         component.
25756
25757 1999-07-04  Tor Lillqvist  <tml@iki.fi>
25758
25759         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
25760         Control-digits specially.
25761
25762 1999-07-03  Tor Lillqvist  <tml@iki.fi>
25763
25764         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
25765
25766 1999-06-28  Tor Lillqvist  <tml@iki.fi>
25767
25768         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
25769         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
25770         finding this.)
25771
25772 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
25773
25774         * gtk+.spec.in: Corrected some typos in files section.
25775         
25776 1999-06-15  Tor Lillqvist  <tml@iki.fi>
25777
25778         * README.win32: Mention using GNU gettext.
25779         * config.h.win32: Enable NLS stuff.
25780         * gtk/makefile.msc: Use GNU gettext.
25781         * gdk/win32/gdkdnd.c: Minor header reorg.
25782         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
25783         cosmetics.
25784         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
25785         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
25786
25787 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
25788
25789         * acinclude.m4
25790         * config.guess
25791         * config.status
25792         * ltconfig
25793         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
25794
25795 1999-05-30  Tor Lillqvist  <tml@iki.fi>
25796
25797         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
25798         SafeAdjustWindowRectEx. Don't override all calls to
25799         AdjustWindowRectEx by it, but use it only in two places: When
25800         creating a new top-level window and when moving a top-level
25801         window.
25802
25803         Use screen coordinate rectangle, not client rectangle, in
25804         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
25805         when we try to place a window so that the decoration (mainly,
25806         title bar) isn't visible.
25807
25808         These changes fix the bug that showed up for instance as the
25809         GIMP's saved top-level windows moving right and down (by an amount
25810         equal to the window decoration) for each session. This bug showed
25811         up also in testgtk's "Saved Position".
25812
25813         gdk_window_resize also redone a bit.
25814
25815 1999-05-25  Tor Lillqvist  <tml@iki.fi>
25816
25817         * gtk/testgtkrc: Add (commented out) Windows-style theme
25818         include line.
25819
25820         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
25821
25822 1999-05-18  Tor Lillqvist  <tml@iki.fi>
25823
25824         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
25825         gdkx.h to a gdk subdirectory, so that applications can include
25826         these with <gdk/*.h> without trouble.
25827
25828         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
25829         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
25830         have their bitmap destroyed.
25831
25832         * gdk/win32/gdk.def: Add gdk_root_parent.
25833
25834 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
25835
25836         * configure.in
25837           gtk-config.in
25838           ltconfig
25839           ltmain.sh     
25840           gtk/Makefile.am: changes to compile nicely (with xlib) 
25841           on BeOS
25842
25843 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
25844
25845         * acinclude.m4
25846         * config.guess
25847         * config.sub
25848         * ltconfig
25849         * ltmain.sh: upgrade to libtool 1.3
25850
25851 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
25852
25853         * gtk/gtkclist.c:
25854         * gtk/gtkctree.c: merges from gtk-1-2
25855
25856 1999-04-25  Tor Lillqvist  <tml@iki.fi>
25857
25858         Support added for building using a GNU toolchain on Win32,
25859         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
25860
25861         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
25862         * config.h.win32: Changes for gcc.
25863         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
25864         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
25865         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
25866         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
25867         Protect shl stuff unavaiilable with mingw32 headers.
25868         * gdk/win32/gdkevents.c: Fix typo.
25869         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
25870         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
25871         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
25872         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
25873         the mingw32 headers.
25874         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
25875         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
25876         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
25877         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
25878         Test for NATIVE_WIN32, not _MSC_VER.
25879         * gtk/gtkmain.c: No use warning about developer version on Win32,
25880         there aren't any non-developer versions anyhow.
25881         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
25882         * gtk/makefile.msc: Use pthread from another directory. Minor other
25883         changes. 
25884
25885 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25886
25887         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25888           default filter from the list
25889
25890 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
25891
25892         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
25893          when gtk_widget_grab_default() is called for a widget that
25894          is not within a GtkWindow.
25895
25896 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
25897
25898         * docs/gtk_tut.sgml, examples/clist.c: use a
25899           scrolled window in the clist example. Minor
25900           tutorial fixes.
25901
25902 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
25903
25904         * docs/gtk_tut.sgml: Style check from David King
25905           <dking@youvegotmail.net>
25906
25907 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
25908
25909         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
25910         compile with unknown value of GDK_WINDOWING
25911
25912 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
25913
25914         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
25915         after the rule is fired.
25916         (install-exec-local): Install gdkconfig.h only if the contents are
25917         different from the currently installed gdkconfig.h.
25918
25919 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
25920
25921         * gdk/Makefile.am (configexecincludedir): Rename from 
25922         configincludedir so that gdkconfig.h will be installed 
25923         as part of `make install-exec'. 
25924
25925 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
25926
25927         * acinclude.m4
25928         * config.guess
25929         * config.sub
25930         * ltconfig
25931         * ltmain.sh: upgrade to libtool 1.2f
25932
25933         * autogen.sh: libtool is not required to autogen gtk+
25934
25935         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
25936         needed)
25937
25938 1999-03-18  Tor Lillqvist  <tml@iki.fi>
25939
25940         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
25941         declaring gdk variables exported/imported from the DLL. New image
25942         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
25943         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
25944         GDK_DRAG_PROTO_OLE2.
25945
25946         * gdk/gdk.h: Merge in Win32 version: Two new functions,
25947         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
25948         declared only for the Win32 version, but could be in the X11
25949         version as well. (Needed for a Xlib-less gdk_imlib.)
25950         gdk_color_hash should have only one parameter. Declare
25951         gdk_threads_mutex with GDKVAR.
25952         
25953         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
25954         just one parameter.
25955
25956         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
25957         per pixel, not bits.
25958
25959         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
25960         Fetch bpp (which means bits-per-pixel here) from another place on
25961         Win32. Accept also depth==32 (which we might get on Win32) with
25962         bpp==32.
25963
25964         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
25965         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
25966         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
25967         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
25968         in the backend-dependent directory, not in the common gdk
25969         directory.
25970
25971         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
25972         headers.
25973
25974 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
25975
25976         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
25977         want to use the Gtk+ devel version (which is true, and yes - even i am
25978         currently working with the 1.2.x branch). so everyone reading this, you
25979         probably want to issue
25980         cvs checkout -r glib-1-2 glib
25981         and
25982         cvs checkout -r gtk-1-2 gtk+
25983         as your next two comands.
25984
25985 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
25986
25987         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
25988         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
25989
25990         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
25991         file. strongly deprecated the GTK_HAVE_* macros, we provide
25992         GTK_CHECK_VERSION() for people that need to check for certain
25993         Gtk+ versions.
25994
25995         * gtk/gtkcompat.h: removed this from CVS.
25996         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
25997         idea right from the start, it just didn't seem like that back then.
25998
25999 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
26000
26001         * merges from gtk-1-2:
26002
26003 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
26004
26005         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
26006         item factory class has been created.
26007         (gtk_item_factory_parse_rc): likewise.
26008
26009         * gtk/gtkmenu.c:
26010         keep proper references for old_active_menu_item.
26011         (gtk_menu_reparent): unset the usize of the new parent,
26012         so the menu can sanely be size requested and we don't get nasty screen
26013         artefacts upon next reparentation.
26014         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
26015         enter notify. only synthesize enter notifies if the pointer really is
26016         inside the event window.
26017         (gtk_menu_popdown): use gtk_menu_shell_deselect().
26018         (gtk_menu_popup): move the background setting stuff into
26019         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
26020
26021         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
26022         gtk_menu_shell_select_item() to select the new item.
26023         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
26024         do the right thing for deselection as well.
26025
26026 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
26027
26028         * gtk/gtkwidget.[hc]:
26029         (gtk_widget_accelerators_locked): return whether a widget's accelerators
26030         are locked.
26031
26032         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
26033         existing accelerators if the widget's accelerators are locked.
26034
26035 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
26036
26037         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
26038
26039         * gtk/gtkmenu.c: truely forward key press and key release events to
26040         the menu widget from the toplevel or tearoff window. we can't simply
26041         connect to that, we need to stop further processing of the events as
26042         well.
26043
26044 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
26045
26046         * gtk/gtkmenu.c:
26047         (gtk_menu_key_press): pass event->keyval, event->state to
26048         gtk_accelerator_valid, instead of event->keyval twice.
26049         refuse to install single letter accelerators for menus that use
26050         single letter shortcuts.
26051
26052         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
26053         gtk_menu_ensure_uline_accel_group().
26054
26055         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
26056         which will always return an uline accel group, made
26057         gtk_menu_get_uline_accel_group() return NULL if the group isn't
26058         yet created.
26059
26060 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
26061
26062         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
26063
26064         * gtk/gtkclist.c (gtk_clist_column_title_passive):
26065         Leave button sensitive, trap  button_press, button_release,
26066         motion_notify, enter_notify and leave_notify events instead.
26067         (gtk_clist_column_title_active): disconnect event handler.
26068         (gtk_clist_drag_data_get): fixed memory leak. Reported by
26069         Guillaume Laurent <glaurent@worldnet.fr>
26070
26071 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
26072
26073         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
26074         width/height mixups.
26075
26076         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
26077         if needed.
26078
26079 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
26080
26081         * gtk/testgtk.c (create_item_factory): unref the item factory after
26082         window's destruction.
26083
26084         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
26085         count on the menu shell around the menu item's activation, since the
26086         signal emission may cause menu shell destruction.
26087
26088         * gtk/gtkitemfactory.c:
26089         the previous code leaked one accel group per menu. we use
26090         gtk_menu_get_uline_accel_group() now to fix that, and with that
26091         also create the underline accelerator group of the menus only if
26092         required (i.e. an underline accelerator has been specified).
26093         (gtk_item_factory_construct):
26094         (gtk_item_factory_create_item): removed code that would create an
26095         extra accel group for the menu (and leak references).
26096         (gtk_item_factory_create_item): adapted the underline accelerator
26097         installation code to properly feature gtk_menu_get_uline_accel_group().
26098
26099         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
26100         menu->accel_group, this may return NULL if the accelerator group
26101         hasn't been set yet.
26102         added gtk_menu_get_uline_accel_group() to retrive the underline
26103         accelerator group of the menu, this will be created on demand
26104         and proper care is taken about its reference count.
26105
26106         * gtk/gtkitemfactory.h:
26107         * gtk/gtkitemfactory.c:
26108         dumped the approach of keeping a widgets by action list on the
26109         factory since the factory<->widget destroy negotiation didn't work
26110         and would be hard to get going at all. instead we keep a list of
26111         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
26112         persistant throughout a program's life time).
26113         also, i removed the static const gchar *key_* variables, and made
26114         them inline strings (they weren't actually used anyways).
26115         (gtk_item_factory_add_item): update ifactory->items.
26116         (gtk_item_factory_destroy): destroy ifactory->items (and remove
26117         the item factory pointer from the remaining ifactory widgets).
26118         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
26119         list to find the widget.
26120         (gtk_item_factory_get_item): new function that works around
26121         gtk_item_factory_get_widget() limitations, this function will only
26122         return menu items, even for <Branch> entries.
26123
26124 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
26125
26126         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
26127         font hash table, if we have a GdkFontPrivate entry for this font
26128         already, simply increment its reference count, provided by Olaf Dietsche
26129         <olaf.dietsche+list.gtk@netcologne.de>.
26130
26131         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
26132         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
26133
26134 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
26135
26136         * gtk/gtkcontainer.c:
26137         (gtk_container_add_with_args):
26138         (gtk_container_addv):
26139         (gtk_container_add): before adding a child to a conatiner, make sure
26140         it is (default) constructed, this is neccessary because under certain
26141         circumstances the child will get relized and mapped immediatedly, in
26142         which case it has to be constructed already.
26143
26144 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
26145
26146         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
26147         values > 1 as TRUE also.
26148
26149 1999-03-16  Tor Lillqvist  <tml@iki.fi>
26150
26151         * README.win32: New file.
26152                 
26153         * configure.in: Check for lstat.
26154
26155         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
26156         completeness.
26157
26158         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
26159
26160         * gtk/gtk.def: Removed CRs.
26161
26162         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
26163         ..\gdk\win32).
26164
26165         * gdk/win32/makefile.msc: Correct upwards relative paths.
26166         
26167 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
26168
26169         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
26170           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
26171           it was connecting a void function to expose_event and the int
26172           returning function to the draw signal
26173
26174 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
26175
26176         * configure.in:
26177         Use correct path to libgmodule.la when ref'ing uninstalled copy
26178         of glib.  (Already in stable branch, Bug #417)
26179
26180 1999-03-15  Tor Lillqvist  <tml@iki.fi>
26181
26182         Win32 merge and general portability stuff:
26183                 
26184         * acconfig.h,configure.in: Check for <sys/time.h>.
26185
26186         * gdk/win32: New directory (actually, been there for a while).
26187         
26188         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
26189         NATIVE_WIN32, and use these. Always case fold on Win32. No
26190         backslashed escapes on native Win32.
26191
26192         * gtk/{gtk.def,makefile.msc}: New files.
26193
26194         * gtk/Makefile.am: Add above new files.
26195         
26196         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
26197         instead of <strings.h>.
26198
26199         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
26200         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
26201         <unistd.h> appropriately.
26202
26203         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
26204         Use ABS() (from <glib.h>) instead of abs().
26205         
26206         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
26207         of gtk (and thus glib) headers, so that WIN32 will be
26208         defined. With MS C, include <direct.h> for mkdir prototype.
26209
26210         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
26211         some casts, needed by MS C.
26212
26213         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
26214         implemented).
26215
26216         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
26217         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
26218         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
26219
26220         * gtk/gtkmain.h: Mark variables for export/import on Win32.
26221                 
26222         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
26223         the event is not a hint, or its window is not the slider. Needed
26224         on Win32, at least.
26225
26226         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
26227         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
26228         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
26229         a subdirectory of the Windows directory as gtk system
26230         configuration directory.
26231
26232         * gtk/gtkselection.c: No chunks on Win32.
26233
26234         * gtk/gtksocket.c: Not implemented on Win32.
26235
26236         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
26237
26238         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
26239
26240         * gtk/maketypes.awk: Declare variables with a macro that expands to
26241         necessary export/import magic in the case of Win32.
26242                 
26243         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
26244
26245 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
26246
26247         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
26248         since those were meant only for gdki18n.h.  
26249         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
26250         for widechar tests.
26251         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
26252
26253 1999-03-13  Tor Lillqvist  <tml@iki.fi>
26254
26255         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
26256         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
26257
26258         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
26259         installed) to CFLAGS.
26260
26261         * gdk/Makefile.am: Add rules for gdkconfig.h.
26262
26263         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
26264         APIs.
26265
26266         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
26267         gdkx.h anyway when compiling for X11.
26268         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
26269         general): Merge in Win32 version.
26270         
26271         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
26272         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
26273         expansion (if we don't have HAVE_PWD_H), allow for drive
26274         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
26275         included code from Craig Setera's port to Win32 (the one that uses
26276         X11, and the cygwin dll), even if it probably will be abandoned.
26277
26278         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
26279         the user entered one herself.  This way one can complete *.h and
26280         don't get matches on any .help files, for instance.
26281         
26282 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
26283
26284         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
26285         font hash table, if we have a GdkFontPrivate entry for this font
26286         already, simply increment its reference count, provided by Olaf Dietsche
26287         <olaf.dietsche+list.gtk@netcologne.de>.
26288
26289         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
26290         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
26291
26292 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
26293
26294         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
26295         the number of calls to gdk_draw_point() (and thus to X) by
26296         clipping the points by hand.
26297
26298         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
26299         the clip parameter.
26300         (gtk_handle_box_paint): Only paint the handle if the expose area
26301         intersects it.
26302
26303 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
26304
26305         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
26306
26307 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
26308
26309         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
26310         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
26311
26312 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
26313
26314         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
26315          textmode (O_TEXT) for OS/2 version.
26316
26317 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
26318
26319         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
26320         GtkSpinButton, "input" and "output", to make the output more flexible.
26321         The user has to provide a mapping between adjustment->value and the
26322         output string (and vice versa, if the spin button is editable). 
26323         See testgtk for examples.
26324
26325 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
26326
26327         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
26328         new one.
26329         
26330         * configure.in: set gtk+ version to 1.3.0.
26331
26332         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,