]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
a4587d429ec5ff0042748a6fcb256583c9e010fa
[~andy/gtk] / ChangeLog.pre-2-8
1 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
2
3         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
4         (gtk_tree_selection_select_all): Remove strict checking for rows.
5
6 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7
8         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
9         Don't remove the tooltip window when the tip text changes. (#15891)
10
11 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
12
13         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
14         $(srcdir).
15
16 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
17
18         * Makefile.am (EXTRA_DIST): Fix problem with trying to
19         dist files from intl/, which is no longer there.
20
21 2001-08-11  Hans Breuer  <hans@breuer.org>
22
23         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
24           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
25           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
26           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
27           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
28           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
29
30         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
31           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
32         GDK_TYPE_EVENT signals
33
34         * gtk/gtkalignment.c : removed 'direct allocation bug',
35         which Tim discovered while reading the patch
36
37 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
38
39         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
40         compat macros for push/pop/set_visual that were supposed
41         to be added a long time ago, but got dropped. 
42
43 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
44
45         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
46         property notifies.
47
48 2001-08-07  Havoc Pennington  <hp@pobox.com>
49
50         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
51
52         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
53         some fixage is needed here, but nothing simple. Owen understands
54         it. ;-)
55
56         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
57         sizing and positioning.  Also, fix bug in compute_geometry_hints
58         (width/height confusion for setting min size). 
59         (gtk_window_move): new function
60         (gtk_window_resize): new function
61         (gtk_window_get_size): new function
62         (gtk_window_get_position): new function
63         (gtk_window_parse_geometry): new function
64         
65         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
66         (gtk_widget_get_size_request): new function
67         (gtk_widget_get_usize): delete, that was a short-lived function
68         ;-)
69         (gtk_widget_set_usize): deprecate
70         (gtk_widget_set_uposition): deprecate, make it a trivial 
71         gtk_window_move() wrapper
72         (gtk_widget_class_init): remove x/y/width/height properties,
73         add width_request height_request
74         
75         * demos/*: update to avoid deprecated functions
76         
77         * gtk/gtklayout.c: add x/y child properties
78
79         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
80         uses of "gint16"
81
82         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
83         sizing test
84
85         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
86         configure events on toplevel windows are always in root window
87         coordinates, following ICCCM spec that all synthetic events 
88         are in root window coords already, while real events are 
89         in parent window coords. Previously the code assumed that 
90         coords of 0,0 were parent window coords, which was 
91         really broken.
92   
93         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
94         warning
95  
96         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
97         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
98         hints in gtk_window_parse_geometry()
99  
100         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
101         new USER_POS USER_SIZE hints    
102
103 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
104
105         * tests/prop-editor.c (properties_from_type): Use 
106         g_object_class_list_properties to get the param specs 
107         for a given type. (#58609)
108
109 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
110
111         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
112         free the text_aa parts. (#57549)
113
114 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
115
116         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
117         not the foreground color. (#57621)
118
119 2001-08-09  Alexander Larsson <alexl@redhat.com>
120
121         * gdk/win32/gdkfont-win32.c:
122         Update to the new pango win32 api.
123
124 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
125
126         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
127         COMPOUND_TEXT instead of TEXT
128         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
129         interpret the return value of g_string_to_compound_text()
130         (#55152)
131
132 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
133
134         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
135         fail if iter is NULL. (#58347)
136
137 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
138
139         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
140         some off-by-one issues, fixing selection of line-ends. (#50323)
141
142 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
143
144         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
145         functions in order to make mouse operation work again in the
146         color wheel. (#58604)
147
148 2001-08-07  James Henstridge  <james@daa.com.au>
149
150         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
151         the accelerator when the accel object is changed.  Fixes bug
152         #58628.
153
154 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
155
156         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
157         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
158         (gnome bugzilla #58202)
159
160 2001-08-06  Havoc Pennington  <hp@pobox.com>
161  
162         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
163         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
164         it was expecting a GdkWindow, not a GdkWindowImplX11.
165  
166         Also, we were getting the window rect in screen coords 
167         and the screen rect in window coords then intersecting 
168         them; instead, get window rect in window coords.
169  
170         Finally, there were codepaths that resulted in a stuck server grab
171         (when the window was fully onscreen, or on gdk_image_new()
172         failure); make the server ungrab thing a bit more
173         robust/consistent.
174
175 2001-08-06  Sven Neumann  <sven@gimp.org>
176
177         * gdk/gdkpango.c (gdk_pango_context_destroy): 
178         check if info->colormap != NULL before unref'ing it. It might have
179         been set to NULL using gdk_pango_context_set_colormap().
180
181 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
182
183         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
184         Fix conversion from float to int so that we don't get
185         skew in the int => float => int roundtrip. 
186         (#58120, reported by Vitaly Tishkov). Also fix problem
187         where if no alpha was set, the returned alpha
188         from (say) set_current_alpha() was returned as 1, not 65535.
189
190 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
191
192         * gtk/gtklist.c (gtk_list_clear_items): Fix
193         problem with selecting a new focus child.
194
195         * gtk/gtklist.c (gtk_list_clear_items): Clear 
196         list->undo/list_focus_child after unparenting
197         child, since unparenting the child can result
198         in list->last_focus_child being set. (#58024)
199
200         * Makefile.am (SUBDIRS): Add target specific pc
201         files to DISTCLEANFILES.
202
203         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
204         (58327, Matthias Clasen)
205
206 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
207
208         * tests/testgtk.c: Patch from Hans (with various modifications),
209         to add the ability to use testgtk as a rough-and-ready
210         benchmark. Try, 'testgtk --bench all:5' (if you want decent
211         numbers, run without a window manager)
212
213 2001-08-04 Alexander Larsson <alexl@redhat.com>
214
215         * gdk/win32/gdkinput.c:
216         Add #ifdef HAVE_WINTAB around wintab.h include.
217
218         * gtk/gtk.def:
219         Removed marshals that have been moved to glib.
220         Commented out plug and socket. They didn't compile for me 
221         on win32.
222
223 2001-08-04  Hans Breuer  <hans@breuer.org>
224
225         * gtk/stocks-icons/makefile.msc : new file
226         * gtk/makefile.msc.in : use it
227
228         * gtk/gtkstyle.c : not all platforms do provide M_PI and
229         friends, but luckily there is G_PI
230
231         * gtk/gtk.def : updated
232
233         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
234         windows WS_POPUP, but only those without a parent. This fixes the 
235         mis-alignment between the selectable (temp, input only) window and 
236         the window text of GtkLabel.
237
238         (gdk_window_show) : respect private->state when actually showing
239         the window.
240
241         (gdk_window_set_transient_for) : Implementation from Wolfgang 
242         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
243         error handling. Should fix #50586.
244
245         * gdk/win32/gdkevents-win32.c : beautify log output
246
247 2001-08-04  Michael Natterer  <mitch@gimp.org>
248
249         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
250         Need to show the image after adding it to the GtkImageMenuItem.
251         This used to work without in testgtk because of the
252         gtk_widget_show_all() at the end of the function.
253         (Closes #54978).
254
255 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
256
257         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
258         (gtk_notebook_set_child_property): fix finding of child's page,
259         since we have to validly deal with labels and menus here as well.
260         (gtk_notebook_get_child_property): fix warning.
261         (gtk_notebook_class_init): property tab_pack is of type
262         GTK_TYPE_PACK_TYPE (enum) not boolean.
263         (gtk_notebook_find_child): don't always warn, we might be looking
264         for a label or menu child.
265         (gtk_notebook_map): fix mapping of panel.
266
267         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
268         widget's mapped state, regardless of the value being set equals
269         old settings, since things like REALIZED(parent) or MAPPED(parent)
270         may have changed since the old value was set. make it an error to
271         invoke this function on a toplevel widget.
272
273 2001-07-31  Darin Adler  <darin@bentspoon.com>
274
275         * gdk/gdkprivate.h:
276         * gdk/x11/gdkx.h:
277         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
278
279         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
280         GTK_OBJECT.
281
282 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
283
284         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
285         scoping error pointed out by matthiasc@poet.de.
286
287 2001-07-31  Sven Neumann  <sven@gimp.org>
288
289         * demos/gtk-demo/appwindow.c
290         * demos/gtk-demo/item_factory.c
291         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
292
293 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
294
295         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
296         argument order for g_signal_has_handler_pending.
297
298 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
299
300         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
301         instead of long deprecated g_scanner_stat_mode().
302
303 2001-07-29  Hans Breuer  <hans@breuer.org>
304
305         * gdk/makefile.msc : build in the backend dir after
306         auto-generating files
307
308         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
309         with code from win32-production-branch.
310
311         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
312         before calling DestroyWindow, which indirectly calls 
313         gdk_window_destroy_notify ()
314
315         (performance patch merged from win32-production-branch)
316         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
317         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
318         R2_COPYPEN rop). It is claimed to be much faster.
319
320 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
321
322         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
323         add an "attributes" property to the text renderer for ATK.
324
325 2001-07-26  Alex Larsson  <alexl@redhat.com>
326
327         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
328         Initialize image->bits_per_pixel from the drawable, not from
329         the root window.
330
331         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
332         Fix cast. argument is an IMPL already.
333
334 2001-07-15  James Henstridge  <james@daa.com.au>
335
336         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
337         (gtk_window_remove_accel_group): same here.
338         (gtk_window_key_press_event): same here.
339
340         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
341         (gtk_widget_remove_accelerator): same here.
342         (gtk_widget_remove_accelerators): same here.
343
344         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
345
346         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
347         instead of GtkObject.
348
349         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
350         now takes GObjects.
351
352         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
353         pass a GObject to gtk_accel_group_entries_from_object.
354         (gtk_item_factory_create_item): s/accel_widget/accel_object/
355
356         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
357
358         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
359
360         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
361         GObjects can have accelerators set now.  Add compatibility
362         defines.
363
364         * gtk/gtkmarshal.list: add missing marshallers.
365
366         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
367         accelerators on plain GObjects.  gtk_accel_group_object_destroy
368         has been converted into a weak reference, and
369         gtk_accel_group_delete_entries is now a destroy notify for that
370         piece of data.
371
372 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
373
374         * gdk/gdkdraw.c: Added a check on the colormap depth to
375         gdk_drawable_set_colormap()
376         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
377         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
378         for pixmaps without visuals (more specifically, bitmaps)
379         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
380         doesn't set a colormap with the wrong depth
381
382
383 2001-07-22  Anders Carlsson  <andersca@gnome.org>
384
385         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
386         expander_height and expander_width properties with a single
387         property, expander_size.
388         (gtk_tree_view_init): Set the tab_offset to expander_size
389         plus some padding.
390         (gtk_tree_view_unrealize): Remove the expand/collapse
391         timeout if it exists.
392         (coords_are_over_arrow): Fix a small bug.
393         (gtk_tree_view_motion_draw_column_motion_arrow): Use
394         expander_size.
395         (gtk_tree_view_draw_focus): Use "treeview" instead of
396         "add-mode" as detail when drawing the focus.
397         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
398         instead of "add-mode" as detail when drawing the focus.
399         (gtk_tree_view_deleted): If we have a node currently being
400         expanded or collapsed, remove the timeout and set the node 
401         to NULL.
402         (gtk_tree_view_queue_draw_arrow): New function that just
403         redraws the arrow of a node.
404         (gtk_tree_view_draw_arrow): Use expander_size instead of
405         expander_width/expander_height, also pass a different
406         expander_style to gtk_paint_expander depending on the 
407         state of the node being drawn.
408         (expand_collapse_timeout): New function for expanding 
409         or collapsing a node depending on the previous state.
410         (gtk_tree_view_real_expand_row): Add timeout and set 
411         correct state for node being expanded.
412         (gtk_tree_view_real_collapse_row): Add timeout and set
413         correct state for node being collapsed.
414
415         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
416         information about the node currently being expanded or
417         collapsed, and also a timeout id.
418
419         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
420         with expander_style for draw_expander.
421
422         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
423         expander_style.
424         (create_expander_affine): New function for creating an 
425         expander affine.
426         (apply_affine_on_point): New function for applying an 
427         affine to a point.
428         (gtk_default_draw_expander): Modified to take expander_style
429         instead of is_open, and to draw the rectangle rotated differently
430         depending on the expander style.
431         (gtk_paint_expander): Replace is_open with expander_style.
432
433         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
434
435         * gtk/gtkenums.h: Add expander style enum.
436
437 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
438
439         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
440         value from gtk_tree_model_get_iter, the model might be empty.
441
442 2001-07-20  Hans Breuer  <hans@breuer.org>
443
444         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
445         gdk/gdkinput.c like the other backends
446
447         * gdk/win32/gdkinput-win32.h :
448         * gdk/win32/gdkinput.c :
449         * gdk/win32/gdkvisual-win32.c :
450         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
451         GdkVisual GObjectification. UNTESTED for pen-devices because
452         I simply have none.
453
454         * gdk/gdk.def :
455         * gtk/gtk.def : updated externals
456
457         * gtk/gtkiconfactory.c :
458         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
459         before passing &error to functions to avoid strange crashes
460         
461         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
462
463         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
464
465         * gtk/makefile.msc.in : updated
466
467 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
468
469         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
470         Add property support. (#51858)
471
472 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
473
474         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
475         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
476         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
477
478 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
479
480         * gtk/gtkcolorsel.c: Add propery support (roughly
481         based on patch from Lee Mallabone, #51014)
482
483         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
484         deprecated, since we already g_warning() on it.
485
486 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
487
488         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
489         typo that sometimes caused selection not to work properly.
490
491         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
492         entry when tabbing in. (#57743)
493         
494         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
495         user drags up above or down below the entry, move
496         to the end or the beginning of the entry. (Suggestion
497         from Jay Cox, #50940)
498
499         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
500         a current selection, then when moving by chars or
501         words, move to the end of the selection rather than
502         from entry->current_pos. (Suggestion from Jay Cox,
503         #50942)
504         
505 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
506
507         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
508         set window->decorated. (Patch from Hidetoshi Tajima,
509         #55846)
510
511 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
512
513         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
514         the widget/child realization/mapping invariants.
515
516         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
517         gtk_widget_[get/set]_child_visible() to control
518         whether visible children of a mapped window are
519         mapped.
520
521         * docs/widget_system.txt: Updated for changes in
522         container contract, and addition of GTK_CHILD_VISIBLE.
523
524         * gtk/gtkcontainer.c: Add generic map()/unmap()
525         functions that work for almost all containers.
526
527         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
528         gtk_widget_set_child_visible() where necessary.
529
530         * gtk/*.c: Remove excess map(), unmap(), and 
531         realization/mapping invariant enforcing code
532         from many containers.
533
534 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
535
536         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
537         Get the foreground color from 'text', nor 'fg'. (#57568)
538
539 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
540
541         * gtk/*.c: Patch from Matthias Clasen to remove remove
542         all instances of g_return_if_fail (foo != NULL); that are
543         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
544         since the second check catches the NULL anyways.
545
546 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
547
548         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
549         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
550         GDK_THREADS_ENTER()/LEAVE() pairs.
551
552         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
553         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
554         pairs. (Problem found by M. Meeks)
555
556 2001-07-18  Darin Adler  <darin@bentspoon.com>
557
558         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
559         that we don't get a g_warning message every time we register a new
560         icon size.
561
562         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
563         using pixel variable of the correct type.
564         
565 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
566
567         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
568         so that using X functions on a GdkWindow is possible, if
569         a little hairy.
570
571         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
572         and ts_origin of a GC, so that external parties can offset/restore
573         a GC, when using gdk_window_get_internal_paint_info().
574
575 2001-07-17  Darin Adler  <darin@bentspoon.com>
576
577         * .cvsignore: Ignore the sgml directory made by gtkdoc.
578         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
579         instead of the deprecated gtk_window_set_policy.
580         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
581         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
582         function to get rid of warning and some code too.
583         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
584         missing const.
585         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
586         unused local.
587         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
588         const.
589         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
590         (gdk_utf8_to_compound_text): Add missing const.
591         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
592         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
593         cast and get rid of an unnecessary one.
594         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
595         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
596         local.
597         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
598         Remove unused local.
599         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
600         missing const.
601         * tests/testsocket.c: (add_child): Add cast so the printf format
602         doesn't make us implicitly depend on what integer type
603         gtk_socket_get_id returns.
604         * tests/testtextbuffer.c: Add missing const.
605         * tests/testtreefocus.c: (main): Remove unused local.
606         * tests/treestoretest.c: (iter_remove): Remove unused local.
607         (uppercase_value): Remove unused function.
608         (make_window): Add statement to quiet the compiler's uninitialized
609         variable warning.
610
611 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
612
613         * gtk/gtkrange.c:
614         (second_timeout): 
615         (initial_timeout): 
616         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
617         (gtk_range_calc_layout): compute the new layout based on an
618         adjustment->value being passed in as argument.
619         (gtk_range_button_press): for button2 slider warps, first recalc
620         the layout, then adjust the value. also, use update_slider_position()
621         for adjusting the value, so we keep pixel quantisation at which we
622         usually operate (upon motion or button releases). the reason for this
623         is that, we can't change the adjustment upon button2 presses to a non
624         quantised value and upon button2 release re-quantise the value since
625         that'd alter the value even if we didn't get any motion events (causing
626         unexpected scroll area warps upon release and/or slider pixel-jitter).
627         (gtk_range_motion_notify): update the slider position from queried
628         coordinates, not event coordinates.
629
630 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
631
632         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
633         the default gc values are: width=0, CapBut, JoinMiter.
634
635 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
636
637         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
638         into account the xpad and ypad when calculating the width and the
639         height of the pixbuf cel.
640
641 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
642
643         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
644         Rename to gtk_radio_menu_item_get_group(), add deprecated
645         alias. (#57044)
646
647         * gtk/gtkfilesel.c: Indentation fix.
648
649 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
650
651         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
652         Hasselmann to fix warnings in compat macros. 
653         (#56773)
654
655         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
656         stupid wrong cast added in last patch.
657
658 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
659
660         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
661         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
662
663 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
664
665         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
666         missing cast.
667
668         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
669         NULL/FALSE return value confusion.
670
671         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
672         problem when scrollbar completely fills range. (Patch
673         from  Matthias Clasen, #57047)
674
675 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
676
677         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
678         clean up when handling events for move-resize emulation.
679         (Problem traced down by Matthias Clasen, #57271)
680
681 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
682
683         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
684           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
685           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
686           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
687           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
688           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
689           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
690         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
691
692 2001-07-09  Peter Williams  <peterw@ximian.com>
693
694         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
695         for when srcdir != builddir
696
697 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
698
699         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
700         gtk_tree_model_get_iter_root.
701
702         * gtk/gtkliststore.c: Add a bunch of g_return statements.
703         (gtk_list_store_iter_n_children): Fix up.
704
705         * gtk/gtktreestore.c: Add a bunch of g_return statements.
706
707 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
708
709         * gtk/gtkwidget.c (gtk_widget_class_init):
710         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
711         restore some workingness.
712
713         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
714         handle of window type for input-only windows.
715
716 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
717
718         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
719         Patch from Gregory Merchan to add 
720         gtk_button_box_set_secondary(), which separates
721         the child into a separate group from the normal
722         buttons. (#56331)
723
724         * gtk/gtkdialog.c: Make help buttons secondary by
725         default.
726
727         * gtk/gtkbbox.c: Added a child property "secondary".
728
729         * gtk/testgtk.c: Turn on the help button for the 
730         color selector to check that it properly appears
731         as secondary.
732
733 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
734  
735         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
736         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
737         Add gdk_set_pointer_hooks() to allow pointer-querying to
738         be hooked by an event record/playback system like GERD.
739         (#56914)
740         
741 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
742
743         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
744         in the right value of initial_emission to
745         gtk_widget_set_style_internal (#57091)
746
747 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
748
749         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
750         Make compile.
751
752         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
753         with calling gtk_widget_set_style_internal() with
754         the old style, not the new style. (#56989)
755
756 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
757
758         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
759           gtk/gtkwidget.c:
760         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
761         not GTK_WIDGET_GET_ANCESTOR ... see 
762         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
763         Indicate the best practice in the docs for gtk_widget_get_toplevel().
764
765         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
766         so GtkPlug can give the correct signals when transforming
767         from a child to a toplevel.
768         
769         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
770         reparentation correctly.
771
772         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
773         Propagate the previous_toplevel argument down properly.
774
775         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
776         of wrong atr list.
777
778         * gtk/gtkplug.[ch]: Add an "embedded" signal.
779
780         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
781         signals.
782
783         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
784         functions gtk_plug_get_id(), gtk_socket_get_id(),
785         to avoid the user having to worry about realization,
786         and gdkx.h.
787
788         * tests/testsocket.c: Extend to try out the new signals
789         and gtk_plug/socket_get_id().
790
791         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
792         setting of underline attributes.
793
794         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
795         DestroyNotify events from SubstructureNotifyMask
796
797         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
798         Switch GDK_WINDOW_TYPE (window) as needed.
799
800         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
801         allow creation of toplevel windows as children of
802         foreign windows.
803
804         * gtk/gtkplug.c: Remove hacks involving changing private
805         fields of GdkWindow.
806
807         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
808         exactly the same signals and notification
809         be emitted for local embedding as for inter-process
810         embedding.
811
812 2001-07-04  James Henstridge  <james@daa.com.au>
813
814         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
815
816 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
817
818         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
819         XEMBED embedding add a _XEMBED_INFO property to the
820         client with version number and a "mapped" flags.
821         Use the mapped flag instead of the racy MapRequestEvent
822
823         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
824         code to reliably set things (when the child is a passive
825         embedder participating in the XEMBED protocol) intead
826         of just being a hack for embedding non-participating
827         programs. Fix various bugs and race conditions.
828         
829         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
830         work by simply making the GtkSocket the gtk parent
831         of the GtkPlug. Set a flag in this case and make
832         the GtkPlug work like a normal container by overriding
833         methods such as check_resize and "chaining past" GtkWindow
834         to GtkBin.
835
836         * gtk/gtkentry.c (gtk_entry_real_activate)
837           gtk/gtkmain.c (gtk_propagate_event): 
838         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
839         
840         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
841         gtk_widget_get_ancestor):
842         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
843         might not give the expected result and recommend
844         an alternative.
845
846         * tests/testsocket.c tests/testsocket_child.c
847         tests/testsocket_common.c tests/Makefile.am: Extended
848         to test different type of adding plugs to sockets
849         (local,active,passive), and to test mapping/unmapping
850         the plug.
851
852         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
853         mark the window as destroyed until after we
854         called _gdk_windowing_window_destroy().
855         (_gdk_windowing_window_destroy() may use GDK functions
856         on the window.)
857
858         * gdk/x11/gdkinput.c: Remove the check for finalization - 
859         devices can be finalized under some circumnstances.
860  
861         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
862         small problem with GDK_TYPE_DEVICE.
863  
864 2001-07-02  Havoc Pennington  <hp@pobox.com>
865
866         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
867         use constants not atoms.
868
869 2001-07-02  James Henstridge  <james@daa.com.au>
870
871         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
872         PANGO_TYPE_TAB_ARRAY.
873
874         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
875         for PANGO_TYPE_TAB_ARRAY.
876
877         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
878         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
879
880         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
881         the file.  Remove Pango types from defs -- they are now defined in
882         libpango.
883
884 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
885
886         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
887
888         * gtk/gtkobject.c (gtk_object_destroy): invoke
889         g_object_run_dispose().
890
891         * gtk/gtkwindow.c: 
892         * gtk/gtkwidget.c: 
893         * gtk/gtkobject.c:
894         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
895         method.
896
897 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
898
899         * gtk/gtktypeutils.c (gtk_type_class): Remove
900         change check for GTK_TYPE_OBJECT derivation to
901         G_TYPE_OBJECTS - it's Tim-approved to use this 
902         for arbitary objects.
903
904         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
905         prefix gtk_container_dequeue_resize_handler().
906
907         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
908         to the hierarachy_changed signal, since you otherwise
909         have to always keep that around.
910
911         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
912         for extra argument to hierarchy_changed.
913
914 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
915
916         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
917         for style to mean "revert to default style"
918
919         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
920           gtk_widget_restore_default_style): Make this functions
921         deprecated aliases for gtk_widget_set_style (widget, NULL).
922
923         * gtk/gtkwidget.[ch]: Remove:
924            gtk_widget_set_default_style ()
925            gtk_widget_push_style ()
926            gtk_widget_pop_style ()
927         These functions interact are overriden by RC files, and
928         thus virtually useless, and complicated.
929
930 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
931
932         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
933         most of the previous global variables in gtkrc.c. This is
934         in preparation for multi-head, since each screen can
935         have different GtkSettings and RC information.
936
937         * gtk/gtkrc.[ch]: 
938
939         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
940         GtkSettings parameter to GtkRcStyle::parse.
941
942         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
943         Add two new settings gtk-theme-name, gtk-key-theme-name,
944         for RC files that are loaded by name after reading
945         the default RC files.
946         
947         * gtk/gtkrc.c: Allow priorities for styles, as wll as
948         bindings.
949
950         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
951         and use it by default for RC files loaded via 
952         gtk-theme-name, gtk-key-theme-name.
953
954         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
955         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
956         tests/testgtkrc: Require pathnames to be absolute.
957
958         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
959         the source when parsing, since the operation of looking up a
960         pixmap from an RC file depends on the parsing context.
961
962         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
963         reset RC styles on all widgets when files are reparsed.
964
965         * tests/testgtk.c (create_rc_file) 
966           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
967         Simplify, now that gtk_rc_reparse_all() resets styles on
968         all widgets itself.
969
970         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
971         return value.
972
973         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
974         GtkSettings argument.
975
976         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
977         gtk_settings_get_global().
978
979         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
980         to get the appropriate GtkSettings for a widget. (For now,
981         just gets the default GtkSetttings.) 
982
983         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
984           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
985         changes.
986
987         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
988         getting a style for a path without actually having a widget.
989         (Allows using a style for a subpart of a widget, for
990         example.)
991
992         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
993         the RC files to be reloaded for just one GtkSettings
994         (not sure how useful this really is.)
995
996         * gtk/gtkrc.h: Deprecate
997         gtk_rc_add_widget_name/widget_class/class_style
998
999 2001-06-30  Alex Larsson  <alexl@redhat.com>
1000
1001         * gdk/linux-fb/gdkinput-none.c:
1002         * gdk/linux-fb/gdkinput.c:
1003         * gdk/linux-fb/gdkinputprivate.h:
1004         Convert GdkDevice to a GObject.
1005
1006         * linux-fb/gdkprivate-fb.h:
1007         * linux-fb/gdkvisual-fb.c:
1008         Convert GdkVisual to a GObject.
1009
1010 2001-06-29  Alex Larsson  <alexl@redhat.com>
1011
1012         * gdk/gdkvisual.h:
1013         * gdk/gdkcolor.c:
1014         * gdk/x11/gdkx.h:
1015         * gdk/x11/gdkvisual-x11.c:
1016         Convert GdkVisual to a GObject.
1017
1018         * gdk/gdkinput.h:
1019         * gdk/gdkevents.c:
1020         * gdk/x11/gdkinputprivate.h:
1021         * gdk/x11/gdkinput-gxi.c:
1022         * gdk/x11/gdkinput-none.c:
1023         * gdk/x11/gdkinput-x11.c:
1024         * gdk/x11/gdkinput-xfree.c:
1025         * gdk/x11/gdkinput.c:
1026         Convert GdkDevice to a GObject.
1027
1028 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
1029
1030         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
1031         to just plain new, fixing the number of columns, and column types
1032         at creation time.
1033
1034         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
1035
1036         * gtk/gtkcellrenderertext.c
1037         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
1038         height to a specific font.
1039
1040         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
1041
1042         * tests/*c: change to work with new store models.
1043
1044 2001-06-29  Havoc Pennington  <hp@redhat.com>
1045
1046        * Throughout: fixes to compile with G_DISABLE_COMPAT
1047         (s/g_signal_connectc/g_signal_connect/,
1048         s/g_signal_newc/g_signal_new/,
1049         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
1050
1051 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
1052
1053         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
1054         add path argument to selection callbacks.
1055
1056 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
1057
1058         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
1059         walk through a model in a depth first manner, with the option to
1060         break out.
1061
1062 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
1063
1064         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
1065         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
1066         column and follow it when draged, rather than a location in the
1067         view. "expander_column" property and drawing functions changed
1068         accordingly.  Fixes bug #55942.
1069
1070         (gtk_tree_view_{set,get}_expander_column): Now works with a
1071         GtkTreeViewColumn* instead of int.
1072
1073 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
1074
1075         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
1076
1077 2001-06-28  Havoc Pennington  <hp@pobox.com>
1078
1079         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
1080         image data to the screen, using a server grab to avoid race
1081         conditions.
1082
1083         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
1084         check for NULL return from gtk_image_new_from_stock(), it never
1085         returns NULL.
1086         (gtk_item_factory_create_item): fix bug where we parsed the stock
1087         ID as an inline pixbuf
1088
1089         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
1090
1091         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
1092         support (should be using binding set here)
1093
1094         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
1095         support (should be using binding set here)
1096
1097         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
1098         support
1099
1100         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
1101
1102         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
1103
1104         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
1105
1106         * gtk/gtkimcontextsimple.c
1107         (gtk_im_context_simple_filter_keypress): keypad
1108
1109         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
1110
1111         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
1112
1113         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
1114
1115         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
1116         should be binding-setted)
1117
1118         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
1119
1120         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
1121
1122         * gtk/gtkcalendar.c: numeric keypad fixes
1123
1124         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
1125         support
1126
1127         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
1128         screwup
1129
1130         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
1131         clip the render area to the drawable's clip region in advance,
1132         so we don't get data from the server that we don't need.
1133
1134         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
1135         check return value of gdk_pixbuf_get_from_drawable(), fall back 
1136         to bilevel alpha if we can't get the pixbuf to composite against.
1137
1138         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
1139
1140         * gdk/gdkimage.c (gdk_image_get_colormap): add
1141         gdk_image_set_colormap, gdk_image_get_colormap
1142
1143         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
1144         take a region of the image, instead of converting the entire
1145         image.
1146
1147         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
1148         keybinding signal. Add default bindings for it. Add default
1149         handler for show_help that shows the tooltip for the widget.
1150
1151         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
1152         "close" keybinding signal, remove key press handler.
1153
1154         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
1155         it's not our usual practice to leave a deprecated function around
1156         with a runtime warning, plus we don't want it to appear in docs,
1157         plus if we make them yellow no one will want to change them
1158         anyhow.
1159
1160 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
1161
1162         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
1163         GTK_WIDGET_REALIZE() for resize queueing.
1164
1165         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
1166         GTK_WIDGET_REALIZE() for post event delivery destruction upon
1167         GDK_DESTROY.
1168         
1169         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
1170         sompensate for former (pre-2.0) connect_after() facility.
1171         (gtk_widget_send_expose): 
1172         (gtk_widget_event): assert the widget is realized, since event delivery
1173         to non-realized widgets is essentially a bug. event handlers should
1174         be able to unconditionally rely on widget->window (unless they
1175         emit events on their own which can trigger widget destruction).
1176         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
1177         logic. event delivery happens as follows:
1178         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
1179         b) if !was_handled in (a) and the widget is still realized, emit event-
1180            specific signal (RUN_LAST handler). returns was_handled.
1181         c) emission of GtkWidget::event-after for notification if the widget is
1182            still realized (regardless of was_handled from previous stages, no
1183            class handler). no return value.
1184         d) was_handled gets passed on to caller, to determine further
1185            propagation. if the widget got unrealized meanwhile, was_handled
1186            is returned as TRUE.
1187
1188         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
1189         gdk_event_get_coords().
1190
1191 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
1192
1193         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
1194         age 0, binary age 0. depend on glib 1.3.7.
1195
1196         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
1197
1198         * gtk/gtkmenubar.c: same here.
1199         
1200         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
1201
1202         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
1203
1204         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
1205         
1206         * gtk/gtkmenubar.c (add_to_window): likewise.
1207         
1208         * gtk/gtktextbtree.c: and here...
1209         
1210         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
1211         
1212         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
1213         
1214         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
1215         
1216         * gtk/gtktreeviewcolumn.c:
1217         (_gtk_tree_view_column_set_tree_view): yet again.
1218
1219         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
1220         signal connections without g_signal_connect_data().
1221         
1222         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
1223         demo of the matter.
1224         
1225         * demos/testpixbuf.c (main): running out of equality phrases for the
1226         ChangeLog, but had to adapt connections here as well.
1227         
1228         * demos/testanimation.c (progressive_timeout): and for the fun of it,
1229         tackled this the same way.
1230         
1231         * tests/testtext.c (create_view): ok, it's becoming a pain at this
1232         point, but had enough enery for one more fix.
1233
1234         * tests/testtreecolumns.c (main): stand up man, do your work!
1235
1236         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
1237         fix, either that's been all of it or CVS gtk is broken yet again.
1238         
1239 2001-06-29  James Henstridge  <james@daa.com.au>
1240
1241         The following changes correspond to bug #56812
1242
1243         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
1244         code for GdkDevice.
1245
1246         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
1247         GdkCursor.
1248
1249 2001-06-19  Havoc Pennington  <hp@pobox.com>
1250
1251         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
1252         for mapping a window without fooling with stacking order, but
1253         updating the "withdrawn" flag
1254
1255         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
1256         filtering as soon as possible, moving move resize and wmspec_check
1257         handling after the event filter.  Make default filter apply to all
1258         events, not just those with no GdkWindow wrapped around the X
1259         window. Fix a FIXME about how the window could be a pixmap using 
1260         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
1261
1262         Also, be robust against events not on a known GdkWindow.
1263
1264         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
1265         gdk_x11_ungrab_server): export reference-counted server grabs, so
1266         other people can grab server over a GDK function that also does
1267         so.
1268
1269 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
1270
1271         * gtk/gtktreeviewcolumn.c
1272         (gtk_tree_view_column_pack_start_cell_renderer): New function to
1273         reflect that you can (hypothetically) pack cell renderers into a
1274         column.
1275         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
1276         (gtk_tree_view_column_cell_is_visible): Move more functionality to
1277         the column.
1278         (gtk_tree_view_column_cell_can_focus): Move more functionality to
1279         the column.
1280
1281         * gtk/gtktreeview.c: Move to use new column-packing code.
1282         (gtk_tree_view_real_expand_row): remove totally braindead code.
1283         (gtk_tree_view_real_collapse_row): ditto.
1284
1285 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
1286
1287         * gtk/gtktreeviewcolumn.c: Fix a typo.
1288         
1289 2001-06-26  Joel Becker  <jlbec@evilplan.org>
1290
1291         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
1292           at the end of the file
1293
1294 2001-06-26  Havoc Pennington  <hp@redhat.com>
1295
1296         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
1297
1298 2001-06-26  Havoc Pennington  <hp@redhat.com>
1299
1300         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
1301         property
1302
1303 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
1304
1305         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
1306         stupid missing statement
1307
1308         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
1309         private function for ATK.  It notifies you of how many _visible_
1310         children are deleted when a node is deleted.  Should be used by
1311         atk only.
1312
1313 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
1314
1315         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
1316         Use new pango_context_get_metrics() to fix problems
1317         with font lists in descriptions. (#56184, reported by
1318         Jonas Borgström)
1319
1320 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
1321
1322         * gtk/gtkiconfactory.c:
1323         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
1324         item factory so inlined pixbufs actually work.
1325
1326 2001-06-25  Havoc Pennington  <hp@redhat.com>
1327
1328         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
1329         s/RESIZEABLE/RESIZABLE/
1330
1331         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
1332
1333 2001-06-25  Alexander Larsson  <alexl@redhat.com>
1334
1335         * configure.in:
1336         Added --enable-fbmanager. This is some experimental code
1337         that lets several GtkFB apps coordinate their access to the
1338         framebuffer.
1339         
1340         * acconfig.h:
1341         Added ENABLE_FB_MANAGER.
1342
1343         * gdk/linux-fb/Makefile.am:
1344         Added gdkfbmanager and gdkfbswitch.
1345
1346         * gdk/linux-fb/gdkkeyboard-fb.c:
1347         * gdk/linux-fb/gdkmouse-fb.c:
1348         * gdk/linux-fb/gdkprivate-fb.h:
1349         Split device init and open so that
1350         they can be opened and closed while switched
1351         away.
1352
1353         * gdk/linux-fb/gdkmain-fb.c:
1354         Add the basic manager communication.
1355
1356         * gdk/linux-fb/gdkrender-fb.c:
1357         Don't update to the shadow fb if we're
1358         blocked by the fb manager.
1359
1360 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
1361
1362         * docs/Changes-2.0.txt: Add note about child property
1363         changes.
1364
1365 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
1366
1367         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
1368         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
1369
1370         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
1371         with un'reffing wrong list reported by Jeff Franks.
1372
1373         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
1374
1375         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
1376         for the default icon. Remove inline XPM.
1377
1378         * gtk/gtkstock.h gtk/gtkiconfactory.c:
1379         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
1380         is used for GTK_STOCK_DND, but it is a bit too small.)
1381
1382         * gtk/stock-icons/stock_dnd_multiple.png
1383         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
1384
1385         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
1386         TRUE when starting a drag. In other cases, we are
1387         just observing. (#52995)
1388
1389         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
1390         function to set the icon for a drag from a GdkPixbuf
1391         or stock ID.
1392
1393         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
1394         Likewise, for drag sources.
1395
1396         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
1397         (Now should be done using the stock system.)
1398
1399 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
1400
1401         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
1402         Removed - didn't work and not particularly useful anyways
1403         if it did. 
1404
1405 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
1406
1407         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
1408         introduced last night that was making things decidedly not work.
1409
1410         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
1411         so that we have getter/setter pairing everywhere it makes
1412         sense. (#55767)
1413
1414         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
1415         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
1416         deprecated compat macro. (#55516)
1417
1418         * gtk/gtklabel.[ch]: Add functions
1419         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
1420         gtk_label_set_label(), which mirror the property API for GtkLabel.
1421         Make gtk_label_get_attributes() only reflect the attributes
1422         set by gtk_label_set_attributes.
1423
1424         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
1425         from gtk_notebook_set_page().
1426
1427 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
1428
1429         * configure.in: Fix tests for XShm.h.
1430
1431         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
1432         gdk_image_new() by use of goto, properly use g_object_unref().
1433
1434 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
1435
1436         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
1437         calls, as GdkImage is an object. these should be g_obejct_unref()
1438         instead but that won't work because of the g_error() statement
1439         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
1440         to spot these places.
1441
1442 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
1443
1444         * modules/input/gtkimcontextxim.c: Fixup some problems with 
1445         text length handling in error cases.
1446
1447         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
1448         a bit to make test actually warn on attempt to allocation
1449         a negative size. (#56101, Matthias Clasen)
1450
1451 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
1452
1453         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
1454         noticed by Brian Cameron.
1455         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
1456         Cameron.
1457
1458 2001-06-22  Hans Breuer  <hans@breuer.org>
1459
1460         * gdk/gdk.def : updated externals
1461
1462         * gdk/win32/gdkdrawable-win32.c : corrected some casts
1463         in GDK_NOTEs
1464
1465         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
1466         to translate coordinates to the internal > 16 bit system
1467         Try to handle WM_WINDOWPOSCHANGED to get better performance for
1468         when moving/resizing
1469
1470         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
1471         and gdk_keymap_get_direction (). The latter is untested for
1472         the RTL case
1473
1474         * gtk/gtk.def : updated externals
1475
1476         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
1477         from pango_language_from_string (), not an already freed pointer
1478
1479         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
1480         binary (-kb) to be useable on windoze
1481  
1482 2001-06-21  Alexander Larsson  <alexl@redhat.com>
1483
1484         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
1485         Update to new PangoLanguage changes.
1486         
1487         * gtk/gtkwindow-decorate.c:
1488         * gtk/gtkwindow.[ch]:
1489         Added setting argument to gtk_window_set_has_frame ()
1490         
1491 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
1492
1493         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
1494         the case without XKB properly.
1495
1496         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
1497         unused gtk_rc_auto_parse variable.
1498
1499         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
1500         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
1501         longer needed with GdkPixbuf.
1502
1503         * gtk/gtkrc.c (_gtk_rc_init): Make private.
1504
1505 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
1506
1507         * gtk/gtkentry.h: Mark deprecated functions with
1508         GTK_DISABLE_DEPRECATED.
1509
1510 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
1511
1512         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
1513
1514         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
1515
1516         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
1517           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
1518           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
1519           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
1520           to recent changes in Pango.
1521
1522         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
1523           to test whether the basic engine honors them.
1524
1525 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
1526
1527         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
1528         gtk_container_child_get_property().
1529
1530 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
1531
1532         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
1533         (gtk_tree_view_move_cursor_page_up_down): implement.
1534
1535 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
1536
1537         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
1538         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
1539         don't use automatic fixed size buffer for printf-ing floats, doubles
1540         can expand to really _huge_ strings, use g_strdup_printf() instead.
1541
1542 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
1543
1544         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
1545         construct property in 1.2 and still needs to be.
1546
1547         * gtk/gtkwidget.c: "composite_child" is not a settable property.
1548
1549 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
1550
1551         * gtk/gtkliststore.c (gtk_list_store_clear): 
1552         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
1553         clear a model.
1554
1555 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
1556
1557         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
1558
1559         * gtk/Makefile.am:
1560         * gtk/gtk.h: disabled GtkPacker compilation.
1561
1562         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
1563
1564         * gtk/gtknotebook.c:
1565         * gtk/gtktable.c:
1566         * gtk/gtkbox.c: ported this over to child properties.
1567
1568         * gtk/gtksettings.c: fetch class properties via
1569         g_object_class_list_properties().
1570
1571         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
1572         child arg interface. use gobjectnotifyqueue.c for child property
1573         notification.
1574
1575         * gtk/gtkwidget.[hc]: provide necessary means for container child
1576         properties, i.e. ::child_notify signal,
1577         gtk_widget_freeze_child_notify(),
1578         gtk_widget_child_notify(),
1579         gtk_widget_thaw_child_notify().
1580
1581         * tests/testgtk.c: removed inferior property handling code, for
1582         property editing, a generic module should be used, and GLE
1583         coincidentally fullfills that purpose.
1584
1585         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
1586         needs to be adapted to g_object_class_list_properties() before this
1587         builds again.
1588
1589 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
1590
1591         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
1592         test if a node is expanded.
1593
1594 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
1595
1596         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
1597         where collapsing a selected row would result in the cursor/anchor
1598         getting screwed up.
1599
1600 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
1601
1602         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
1603         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
1604         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
1605         Now I can really reorder/sort all Store widgets.  treesorttest
1606         seems to just work now.
1607         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
1608         testtreesort worked through a big coincidence all this time.
1609         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
1610         code.
1611         * tests/testtreecolumns.c: Big 'ol warning at the top letting
1612         people know that this code should never ever ever be copied.
1613
1614 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
1615
1616         * gtk/gtkwindow.h: Fixed a small typo, it should be
1617         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
1618         on line 134.
1619
1620 2001-06-14  Havoc Pennington  <hp@redhat.com>
1621
1622         Docs fixups, and:
1623         
1624         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
1625         GTK_DISABLE_DEPRECATED
1626
1627 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
1628
1629         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
1630         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
1631         finish it off tonight, though it basically works now when it's a
1632         list.  Also, I have a sinking feeling neither GtkTreeStore or
1633         GtkListStore actually resort when adding a new item.  I'll look
1634         into it.
1635
1636 2001-06-14  Havoc Pennington  <hp@redhat.com>
1637
1638         * demos/gtk-demo/main.c (load_file): fix bug identified by
1639         warnings I just added to gtktextbuffer
1640
1641 2001-06-14  Havoc Pennington  <hp@redhat.com>
1642
1643         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
1644
1645         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
1646
1647         * gtk/gtktextbtree.c: don't leak node data all over the place.
1648
1649         * demos/gtk-demo/main.c (main): create fontify tags for the right
1650         buffer
1651
1652         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
1653         to mention tags in the same table can't have the same name,
1654         suggested by Skip Montanaro
1655
1656 2001-06-11  Havoc Pennington  <hp@redhat.com>
1657
1658         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
1659         for trying to add two tags with same name to the tag table
1660
1661         * demos/gtk-demo/main.c (main): fix colors ;-)
1662
1663 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
1664
1665         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
1666         that allows grouping together multiple windows so that grabs
1667         within that set of windows only affect those windows.
1668
1669         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
1670         signal for notification when a widget becomes shadowed
1671         by a grab or is no longer shadowed by a grab.
1672
1673         * gtk/gtkwidget.c (gtk_widget_propagate_state)
1674           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
1675         insenstive widgets to maintain a grab.
1676
1677 2001-06-14  Alexander Larsson  <alexl@redhat.com>
1678
1679         * docs/README.linux-fb:
1680         Add some example config files that can be used with the URW fonts.
1681         
1682         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
1683         Set up the color ramps for DirectColor mode.
1684
1685 2001-06-11  Havoc Pennington  <hp@redhat.com>
1686
1687         * Release 1.3.6
1688          
1689 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
1690
1691         * gdk/linux-fb/gdkwindow-fb.c:
1692         Unify shaped window code and make it repaint the area that used
1693         to be part of the shape, but isn't anymore.
1694
1695 2001-06-11  Havoc Pennington  <hp@redhat.com>
1696
1697         * NEWS: Updates
1698
1699         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
1700
1701         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
1702         
1703 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
1704
1705         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
1706         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
1707         passes zero instead, so do we.
1708         
1709 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
1710
1711         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
1712         Deep copy dash_list too.
1713         (_gdk_fb_gc_new): Set default cap_style before
1714         setting values.
1715
1716 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
1717
1718         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
1719         gdk_keymap_get_direction): New functions.
1720
1721 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
1722
1723         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
1724         gtk_tree_model_get_flags by adding a second flag for atk.
1725
1726         * gtk/gtktreemodel.c: make cursor behavior interact better with
1727         mouse presses.
1728
1729 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
1730
1731         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
1732         expand_row/collapse_row to be 2 signals each -- test_expand_row
1733         and row_expanded as well as test_collapse_row and row_collapsed.
1734
1735 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
1736
1737         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
1738         signal name to be changed instead of selection_changed.
1739
1740 2001-06-08  Havoc Pennington  <hp@redhat.com>
1741
1742         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
1743         "scroll_offset" property for notification when the layout offsets
1744         may have changed
1745         (gtk_entry_adjust_scroll): add notify for scroll_offset
1746         (gtk_entry_layout_index_to_text_index): function to compensate for
1747         preedit string when doing coordinate stuff on the entry's layout
1748         (gtk_entry_text_index_to_layout_index): inverse function
1749         (gtk_entry_get_layout_offsets): hook to get current position of
1750         the layout      
1751         (gtk_entry_get_layout): hook to get the layout itself.
1752
1753         * gtk/gtklabel.c (gtk_label_get_layout): new function
1754
1755 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
1756
1757         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
1758         keybinding.
1759         (gtk_tree_view_focus): Fix merge conflict.
1760
1761 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
1762
1763         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
1764         clean up cursor handling.
1765
1766 2001-06-08  Havoc Pennington  <hp@redhat.com>
1767
1768         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
1769         function
1770
1771         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
1772         this function
1773
1774 2001-06-08  Alex Larsson  <alexl@redhat.com>
1775
1776         * gtk/gtkcompat.h.in:
1777         Added compat macros for all old GTK_TYPE_GDK_xxx types.
1778         Fixes bug #52892
1779
1780 2001-06-08  Havoc Pennington  <hp@redhat.com>
1781         
1782         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
1783         parent still
1784
1785 2001-06-08  Havoc Pennington  <hp@redhat.com>
1786
1787         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
1788         don't call g_list funcs on GSList
1789
1790         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
1791         gtk_container_focus(), since some widgets have focusable locations
1792         which are not other widgets. These widgets should not have to be 
1793         containers just to manage the focus. For example, GtkHSV is
1794         currently a container for no good reason. Also, this cleans
1795         up the "if (is_container && is_sensitive && is_drawable)
1796         container_focus ()" mess in widget implementations.
1797
1798         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
1799         function, and have it just call gtk_widget_child_focus().
1800
1801         * gtk/gtkhsv.c: derive from widget not container
1802         
1803         Throughout: fix to reflect GtkContainer::focus change
1804         
1805 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
1806
1807         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
1808         range.  Fix bug #55921
1809
1810         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
1811         (#55920).
1812
1813 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
1814
1815         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
1816         and gdk_keymap_get_current_direction().
1817
1818         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
1819           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
1820         the current locked group, use it to set the keymap
1821         direction.
1822
1823         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
1824         to determine whether we draw a split cursor or use
1825         a jumping cursor based on the current direction.
1826
1827         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
1828         Obey the split cursor setting. 
1829
1830 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
1831
1832         * gtk/gtkimmulticontext.c (activate_cb): Only activate
1833         when toggling on, not when toggling off... (#55906)
1834
1835 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
1836
1837         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
1838         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
1839         in docs. (#55812, Vitaly Tishkov)
1840
1841 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
1842
1843         * demos/gtk-demo/main.c (create_tree): Changed signal name from
1844         selection_changed to changed in signal connection to GtkTreeSelection,
1845         also used g_signal_connectc since GtkTreeSelection is now a GObject.
1846
1847 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
1848
1849         * gtk/gtktreeselection.c: Now it's a GObject instead of a
1850         GtkObject.  The GtkTreeSelection::selection_changed signal is now
1851         the GtkTreeSelection::changed signal.
1852
1853         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
1854         object.
1855
1856         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
1857         object.
1858
1859 2001-06-07  Havoc Pennington  <hp@redhat.com>
1860
1861         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
1862
1863 2001-06-07  Havoc Pennington  <hp@redhat.com>
1864         
1865         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
1866         (not tested yet because with absolute path to srcdir I can't build
1867         atk, but it was broken anyway so this may help) 
1868
1869 2001-06-07  Havoc Pennington  <hp@redhat.com>
1870
1871         * configure.in: output m4macros/Makefile
1872         
1873 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
1874
1875         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
1876         buttons.  Fixes #55460 reported by matthiasc@poet.de.
1877
1878 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
1879
1880         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
1881         expansion/collapsing so it only happens in one place.
1882         (gtk_tree_view_real_expand_row): ditto.
1883
1884 2001-06-07  Havoc Pennington  <hp@redhat.com>
1885
1886         * tests/Makefile.am: add missing -I flag
1887
1888         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
1889
1890         * configure.in: use pkg-config to see if GModule is
1891         supported; fix to properly turn on included loaders 
1892         when GModule isn't supported; don't use AC_CHECK_LIB 
1893         when libs are not installed yet
1894
1895         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
1896
1897         * Makefile.am (SUBDIRS): add m4macros subdir
1898
1899         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
1900         dependencies also.
1901
1902 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
1903
1904         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
1905         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
1906
1907 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
1908
1909         * gtk/gtktreeview.c
1910         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
1911         bindings to expand and collapse rows.
1912         (gtk_tree_view_real_select_cursor_parent): New key binding.
1913         (gtk_tree_view_real_toggle_cursor_row): New key binding.
1914
1915         * gtk/gtkmarshal.list: new
1916         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
1917
1918 2001-06-06  Havoc Pennington  <hp@redhat.com>
1919
1920         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
1921
1922         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
1923         Down to move visually rather than logically, since it confuses 
1924         people. Add -/+ and Ctrl--/+ bindings for logical movement.
1925
1926 2001-06-06  Alex Larsson  <alexl@redhat.com>
1927
1928         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
1929         Fix up error messages.
1930
1931 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
1932
1933         * gtk/gtktooltips.h: Include gtkwidget.h 
1934         (#55798, Karl Nelson)
1935
1936         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
1937         a valid latin-1 character. (Marc Lehmann, #35467)
1938
1939         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
1940         (Marc Lehmann, #35467)
1941         
1942 2001-06-05  Alex Larsson  <alexl@redhat.com>
1943
1944         * demos/gtk-demo/appwindow.c (do_appwindow):
1945         Don't swap the order of the args to gtk_widget_destroyed.
1946
1947         * tests/testgtk.c (destroy_properties):
1948         Don't crash when the properties window is destroyed.
1949
1950         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
1951         Use with_mnemonics to handle the case of stock items with
1952         underscores in them.
1953
1954 2001-06-05  Havoc Pennington  <hp@redhat.com>
1955
1956         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
1957         gtk_text_iter_reorder
1958
1959 2001-06-05  Havoc Pennington  <hp@redhat.com>
1960
1961         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
1962
1963 2001-06-05  Havoc Pennington  <hp@redhat.com>
1964
1965         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
1966         to the range that was set
1967
1968         * gtk/gtkrange.c: add value_changed signal, primarily 
1969         intended for use with GtkScale
1970         (gtk_range_set_increments): new function
1971         (gtk_range_set_range): new function with weird name
1972         (gtk_range_set_value): new function
1973         (gtk_range_get_value): new function
1974
1975         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
1976         from gtk_spin_button_get_value_as_float(). Compat #define
1977         added for get_value_as_float.
1978
1979         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
1980
1981         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
1982
1983 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
1984
1985         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
1986
1987 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
1988
1989         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
1990
1991         * tests/testgtk.c (create_tooltips): Remove usage of
1992         gtk_widget_set().
1993
1994 2001-06-05  Havoc Pennington  <hp@redhat.com>
1995
1996         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
1997
1998         Applying patch from Jeff Franks, with function docs added.
1999         
2000         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
2001         remove call to set_mnemonic_widget, change docs a bit.  
2002
2003         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
2004         new function
2005
2006         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
2007         new function
2008
2009         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
2010
2011         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
2012         function
2013         (gtk_radio_button_new_with_mnemonic_from_widget): new function
2014
2015         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
2016         new function
2017
2018         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
2019         function        
2020
2021         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
2022         auto-selection of mnemonic widget.
2023
2024 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
2025
2026         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
2027         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
2028         (gtk_tree_view_column_set_min_width): ditto.
2029
2030 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
2031
2032         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
2033         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
2034
2035 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
2036
2037         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
2038         gtk_clist_thaw().
2039
2040 2001-06-04  Havoc Pennington  <hp@pobox.com>
2041
2042         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
2043         releases for buttons 6, 7
2044
2045 2001-06-04  Havoc Pennington  <hp@redhat.com>
2046
2047         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
2048         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
2049         #55562
2050
2051 2001-06-04  Havoc Pennington  <hp@redhat.com>
2052
2053         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
2054         where text_view->layout == NULL by assuming its size is 0, 
2055         i.e. same as if we haven't done any reflow. Reported by 
2056         Hidetoshi Tajima #55448 
2057
2058 2001-06-04  Havoc Pennington  <hp@redhat.com>
2059
2060         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
2061         and 7 for scroll left/right, from Thomas Broyer
2062
2063 2001-05-10  Havoc Pennington  <hp@redhat.com>
2064
2065         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
2066         we need to parse the xsetting as if it were an RC file string.
2067
2068         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
2069         value of palette from settings, not from static variable
2070
2071         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
2072         xsettings translation table
2073
2074         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
2075         hardcoding the toolbar style conflicts with new customizable 
2076         toolbar style philosophy
2077         (gtk_toolbar_class_init): add settings for default toolbar style;
2078         these are used unless the app specifically forces a toolbar style
2079
2080         * gtk/gtksettings.c (settings_install_property_parser): only
2081         return at the start if we warn and parser == NULL
2082
2083         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
2084         palette changed handler so we don't notify dead color selections
2085
2086         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
2087         xthickness/ythickness of 0 or 1 properly 
2088         (gtk_default_draw_resize_grip): clear the background behind the
2089         resize grips, and align to bottom right if we square the 
2090         area to be drawn.
2091
2092         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
2093         statusbar label to 1, so it doesn't make toplevels resize oddly
2094         (gtk_statusbar_size_request): add grip size to request
2095         (gtk_statusbar_size_allocate): hack so the hbox still works with 
2096         the grip size in the request
2097
2098         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
2099         bug where showing all on a toplevel makes the toolbar 
2100         button text appear despite the toolbar mode
2101
2102         * gtk/gtkmenubar.c: add internal padding style property
2103
2104         * gtk/gtktoolbar.c: Add internal padding style property; add
2105         shadow type style property
2106
2107         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
2108         state; and put Container::border_width outside the frame
2109
2110         * gtk/gtktextview.c: don't draw focus rectangle if we're in
2111         interior focus mode, we just use blinking cursor
2112
2113 2001-06-04  Havoc Pennington  <hp@redhat.com>
2114
2115         * configure.in: Make gdk-pixbuf have same version number as GTK
2116
2117 2001-06-04  Havoc Pennington  <hp@redhat.com>
2118
2119         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
2120         digits greater than 6. If there actually are limits (which there
2121         likely aren't), should clamp to them not warn.
2122         (gtk_spin_button_new_with_range): don't take log of 0
2123         (gtk_spin_button_size_request): use digits to compute size
2124         request, rather than step increment.
2125
2126         * tests/testgtk.c (create_spins): test larger values of digits
2127         
2128         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
2129         font on map not expose, so we don't get weirdness during scrolling
2130
2131 2001-06-04  Havoc Pennington  <hp@redhat.com>
2132
2133         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
2134         Sam Solon, bug #54577, update value even if not drawable.
2135
2136 2001-06-04  Havoc Pennington  <hp@redhat.com>
2137
2138         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
2139         SCROLL_LEFT, reported by Thomas Broyer.
2140
2141 2001-06-04  Havoc Pennington  <hp@redhat.com>
2142
2143         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
2144         Process updates immediately, to prevent funny lag effect
2145         when scrolling, at some mild potential efficiency cost.
2146
2147 2001-06-04  Havoc Pennington  <hp@redhat.com>
2148
2149         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
2150         slider on the click.
2151
2152 2001-06-03  Havoc Pennington  <hp@pobox.com>
2153
2154         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
2155         hscale/vscale details, so we can use it for scrollbar as well.
2156
2157         * tests/testgtk.c (reformat_value): honor digits from GtkScale
2158
2159         * gtk/gtkenums.h (GtkTroughType): Remove this enum
2160         (GtkScrollType): add START and END from GtkTroughType
2161
2162         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
2163         its x/y arguments
2164
2165         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
2166         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
2167         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
2168         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
2169         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
2170
2171         Notable changes in the process:
2172          
2173         - stepper_size style property is the height for vertical 
2174           ranges, width for horizontal; the other dimension matches
2175           the trough size
2176         - add ability to do NeXT-style steppers (and several other styles
2177           that don't make any sense)
2178         - added min_slider_length, fixed_slider_length properties to
2179           GtkScrollbar
2180         - cleaned some private (or at least useless) functions out of
2181           gtkscale.h    
2182         - moved bindings to GtkScale from subclasses, even arrow keys,
2183           since blind users don't know scale orientation.
2184         - change move_slider action signal to use new GtkScrollType,
2185           remove GtkTroughType argument
2186         - digits rounds the values a range will input to the given 
2187           number of decimals, but will not try to force adjustment 
2188           values set by other controllers. That is, we no longer
2189           modify adjustment->value inside a value_changed handler.
2190         - added getters for GtkScale setters
2191         - middle-click begins a slider drag
2192         
2193 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
2194
2195         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
2196         getting the focus code to work.
2197         (gtk_tree_view_class_init): Add a bunch of keybindings.
2198
2199         * gtk/gtktreeviewcolumn.c
2200         (gtk_tree_view_column_set_cell_data_func):
2201         s/GtkCellDataFunc/GtkTreeCellDataFunc.
2202         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
2203         of "properties_changed" to help justify the death of the latter
2204         signal. (-:
2205
2206         * tests/testtreefocus.c (main): Let some columns be focussable to
2207         test focus better.
2208
2209 2001-06-01  Havoc Pennington  <hp@redhat.com>
2210
2211         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
2212         
2213         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
2214         overwrite in overwrite mode if we already deleted the selection
2215         and replaced it with new text.  
2216
2217         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
2218         selection to an empty range, clear the clipboard if we owned it.
2219         (gtk_label_set_selectable): give up selection if we become
2220         unselectable.
2221         (gtk_label_state_changed): override state changed to unselect text
2222         when insensitive
2223         (get_text_callback): add paranoia check that indexes aren't
2224         outside of label->text
2225         (gtk_label_select_region): make -1 for start_offset mean "end of
2226         label," for consistency with GtkEditable
2227
2228         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
2229         GTK_DIALOG_NO_SEPARATOR flag
2230
2231 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
2232
2233         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
2234         notifications on non-existant "enable_arrow_keys".
2235         (#53753, Skip Montanaro)
2236
2237 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
2238
2239         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
2240         GDK_TYPE_RECTANGLE.
2241
2242         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
2243         of allocation argument be GDK_TYPE_RECTANGLE.
2244
2245 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
2246
2247         * gtk/gtkoptionmenu.c: Account for the fact that the border
2248         width is _outside_ the window. (Fixes #54585, bug found
2249         by Bastien Nocera.)
2250
2251 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
2252
2253         * gtk/gtksettings.c (gtk_settings_get_property): Validate
2254         value from GDK settings against parameter spec.
2255
2256         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
2257         to temporary values and use g_value_transform(), since
2258         thinking that GValue was going to be easy or efficient
2259         to use was, of course, a mistake.
2260
2261         * gtk/gtksettings.c: Add cursor blink setting.
2262         
2263         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
2264
2265         * gtk/gtkentry.c: Add cursor blinking.
2266
2267         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
2268         cursor blink global settings.
2269
2270         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
2271         for :text_position in places where it is missing.
2272
2273 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
2274
2275         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
2276
2277 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
2278
2279         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
2280         not pkg-config. (#51032)
2281
2282         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
2283         (fixes #51952, James Henstridge)
2284         
2285 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
2286
2287         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
2288         Rename to the more correct gtk-go-up.
2289
2290         * gtk/stock-icons/stock_menu_sort_ascending.png:
2291         Added new file.
2292         
2293         * gtk/stock-icons/stock_menu_sort_descending.png:
2294         Changed to show descending instead of ascending.
2295
2296         * gtk/gtkiconfactory.c:
2297         Added menu size icon to sort ascending.
2298
2299         * gtk/stock-icons/Makefile.am:
2300         Added stock_menu_sort_ascending.png.
2301         
2302         * gtk/gtkseparatormenuitem.c:
2303         Use correct typenames.
2304
2305 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
2306
2307         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
2308         gulong as in GSignal.
2309
2310 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
2311
2312         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
2313         instances of GtkCellRenderer in code (all but dnd icon code).
2314         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
2315         there, and I can do multiple Cells per column.
2316
2317         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
2318
2319         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
2320         when model was unreffed prior to removing the row reference.
2321
2322 2001-05-25  Havoc Pennington  <hp@redhat.com>
2323
2324         * gtk/gtkiconfactory.c: fix so that default icons are created if 
2325         you call gtk_stock_list_ids()
2326
2327         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
2328         in list
2329
2330 2001-05-25  Havoc Pennington  <hp@redhat.com>
2331
2332         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
2333         set can render without falling back to missing image icon
2334
2335         * gtk/gtktextview.c (gtk_text_view_size_request): request full
2336         size of text, instead of random values
2337
2338         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
2339         size of tree view, instead of random values
2340
2341         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
2342         image in an appropriate size
2343
2344         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
2345         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
2346
2347         Throughout: fix GTK_STOCK_BUTTON_ instances
2348         
2349         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
2350         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
2351         Add a bunch of new stock items/icons
2352
2353         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
2354         new function, convenience for inserting columns with a data func
2355
2356         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
2357         (_gtk_icon_factory_list_ids): use list of all factories to
2358         generate a list of all known IDs
2359
2360         * gtk/gtkstock.c (gtk_stock_list_ids): replace
2361         gtk_stock_list_items() with a function that returns all IDs known
2362         including those for GtkIconFactory.
2363
2364 2001-05-25  Hans Breuer  <hans@breuer.org>
2365
2366         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
2367         work -> check boxes and radio buttons are drawn now, even on win9x.
2368         Improved line settings a bit, still no clue how to get really dotted
2369         lines on win9x, on NT it's PS_ALTERNATE.
2370
2371         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
2372         GDK_HINT_MIN_SIZE as well
2373
2374         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
2375
2376         * gtk/gtk.def : updated
2377
2378         * gtk/gtktreeprivate.h : change column_drop_func to be a function
2379         pointer not a function pointer pointer
2380
2381         * tests/testdnd.c : include <stdlib.h> for putenv prototype
2382
2383         * tests/testsocket.c : made it compile on win32 again
2384
2385         * tests/makefile.msc : one more test-app uses prop-editor.obj
2386
2387 2001-05-22  Havoc Pennington  <hp@pobox.com>
2388
2389         * gtk/gtkbin.c (gtk_bin_get_child): New function
2390
2391 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
2392
2393         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
2394         to ignore when doing compose processing.
2395
2396 2001-05-22  Joe Shaw  <joe@ximian.com>
2397
2398         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
2399         Simplify as suggested by Havoc. Just get the last iter and work
2400         backward to the tag instead of getting a line and working back from
2401         there. Fixes passing in an invalid offset to
2402         iter_init_from_byte_offset().
2403
2404 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
2405
2406         * gtk/gtktreeview*.h: 
2407         * gtk/gtkcell*.h:
2408         * gtk/gtk*store.h:
2409         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
2410         macros to all objects.
2411
2412 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
2413
2414         * gtk/gtkcellrenderertext.c
2415         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
2416         with very large (TM) amounts of text.  May be moved to
2417         GtkCellRenderer in the future, though I'm not sure it wants to be
2418         this accessible.
2419
2420         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
2421         More sanity brought to this class.  I like it.
2422
2423         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
2424         case.  Kids, don't try this at home.
2425
2426         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
2427         convenience function.
2428
2429         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
2430
2431 2001-05-21  Alexander Larsson  <alexl@redhat.com>
2432
2433         * gtk/gtkfontsel.c:
2434         Added properties. Based on patch by Lee Mallabone.
2435
2436         * gtk/gtkruler.c:
2437         * gtk/gtkhruler.c:
2438         * gtk/gtkvruler.c:
2439         * gtk/gtktext.c:
2440         * gtk/gtktextview.c:
2441         Converted GtkArg to GParam. Based on patches by John Margaglione.
2442
2443         * tests/Makefile.am:
2444         * tests/testtext.c:
2445         Add a property editor to testtext.
2446         
2447 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
2448
2449         * gtk/gtk{h,v,}paned.c: Only show the separator if 
2450
2451         * configure.in: Fixed reversed conditional causing all image
2452         libraries to be linked in.
2453
2454 2001-05-21  Joe Shaw  <joe@ximian.com>
2455
2456         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
2457         that top_y needs to be >= 0.
2458
2459 2001-05-11  Havoc Pennington  <hp@pobox.com>
2460         
2461         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
2462         losing connection to the X server.
2463
2464 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
2465
2466         * configure.in: Start checks for X from pangox/pangoxft
2467         CFLAGS to avoid duplicate libraries.
2468
2469         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
2470
2471         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
2472         to include gobject.
2473         
2474 2001-05-18  Alexander Larsson  <alexl@redhat.com>
2475
2476         * gtk/gtkspinbutton.c:
2477         Convert GtkArgs to GParams. Based on patch by John Margaglione.
2478         Also do size request reasonable for MAXDOUBLE. Previously it printed
2479         the limits to a buffer and overran it. Instead do it using log10() and
2480         limit the width to 10 digits.
2481         
2482         * gtk/gtkwidget.c (gtk_widget_get_property):
2483         Correctly handle setting the parent property to NULL.
2484
2485 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
2486
2487         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
2488         style attributes even if the widget isn't realized.
2489
2490         * demos/gtk-demo/main.c: Use a slightly smaller font.
2491
2492 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
2493
2494         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
2495         This is something that only a widget writer would ever want
2496         to change.
2497
2498         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
2499         gtk_signal_emit_by_name().
2500
2501         * gtk/gtkviewport.c: Fix some warnings.
2502
2503         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
2504         allowing the requisitions of multiple widgets to be grouped
2505         together.
2506
2507         * tests/testgtk.c: Add GtkSizeGroup test
2508
2509         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
2510
2511         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
2512         warnings.
2513
2514         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
2515
2516 2001-04-28  Martin Baulig  <baulig@suse.de>
2517
2518         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
2519         to gtk_image_menu_item_set_icon() and made it work if there's already
2520         an image.
2521         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
2522         (gtk_image_menu_item_new_with_label): New function.
2523
2524 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
2525
2526         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
2527         highlighting code!!!!  The result is okay so long as you don't try
2528         to stress it.  It also highlights a bug in the TextView so it's in
2529         an unproportional font right now until it's fixed.
2530
2531         *demos/gtk-demo/*.c: Clean up code a bit to make it
2532         ugly-parser(TM) friendly. (-:
2533
2534 2001-05-17  Joe Shaw  <joe@ximian.com>
2535
2536         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
2537         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
2538         if it is only partially onscreen.
2539
2540 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
2541
2542         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
2543         not by characters.
2544
2545         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
2546         are not zero or one; that is, when graphemes of multiple characters
2547         are involved.
2548
2549         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
2550         FIXME.
2551
2552 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
2553         
2554         * gtk/gtkbbox.c:
2555         Add properties, based on patch by Lee Mallabone.
2556
2557         * gtk/gtknotebook.c:
2558         * gtk/gtktoolbar.c:
2559         Convert from GtkArg to GParam, based on patch by John Margaglione.
2560         
2561         * gtk/gtkhscale.c:
2562         * gtk/gtkvscale.c:
2563         * gtk/gtkhscrollbar.c:
2564         * gtk/gtkvscrollbar.c:
2565         * gtk/gtkrange.c:
2566         Move adjustment property to GtkRange.
2567
2568         * gtk/gtklabel.c:
2569         Setup mnemonics on property changes
2570
2571         * gtk/gtkwidget.c (gtk_widget_get_property):
2572         GdkExtensionMode is an enum, not a flag. Set it with
2573         g_value_set_enum ().
2574
2575         * tests/prop-editor.c:
2576         Better propery editor.
2577
2578         * tests/testgtk.c:
2579         Add new property test. Pass zero to the property editor to
2580         get properties from all derived types.
2581         
2582 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
2583
2584         * autogen.sh (have_automake): Require libtool-1.4,
2585         automake-1.4p1.
2586
2587         * acinclude.m4: Remove libtool macros.
2588
2589         * gdk-pixbuf/Makefile.am: Add dependencies to loade
2590         modules.
2591
2592         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
2593         for libgdk.
2594
2595         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
2596         libgdk.la for libgtk.
2597
2598         * modules/input/Makefile.am: Make modules have full
2599         dependencies.
2600
2601 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
2602
2603         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
2604         #54699 where paths weren't being checked for correctness.
2605
2606 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
2607
2608         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
2609         in any order you wan, whether or not the column is added to the
2610         tree, or the tree is realized.  Yay!
2611
2612         * gtk/gtktreeviewcolumn.c
2613         (gtk_tree_view_column_setup_sort_column_id_callback): handle
2614         sorting columns a lot saner
2615
2616         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
2617         new function to actually set wether or not a column is
2618         reorderable.
2619
2620         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
2621         if we have 'em.
2622
2623         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
2624         Fix nasty bug where we were showing the button just before
2625         realizing it.  As a result, the parent window was
2626         tree_view->window instead of tree_view->priv->header_window.
2627
2628         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
2629         to let you easily reorder a list or tree.
2630
2631 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
2632
2633         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
2634         from args to properties.
2635
2636 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
2637
2638         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
2639         from args to properties. (#51957)
2640
2641         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
2642         calls to after ->set_property call.
2643
2644 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
2645
2646         * tests/prop-editor.c: Block against redundant changes.
2647
2648         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
2649         properties.
2650
2651 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
2652
2653         * gdk/gdkpixmap.h: Remove creative formatting.
2654
2655 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
2656
2657         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
2658         property API. (#51669)
2659
2660         * gtk/gtkscale.c: Patch from John Margaglione converting to
2661         property API. (#51891)
2662
2663         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
2664         to property API. (#50985)
2665
2666 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
2667
2668         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
2669         buffering state across expose event, so we still call end_paint().
2670
2671 2001-05-11  Alexander Larsson  <alexl@redhat.com>
2672
2673         * gtk/gtkhsv.c (paint_triangle):
2674         Expose the ring in the triangle at the correct place when
2675         exposing just a part of the triangle.
2676
2677         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
2678         Return FALSE, or window focusing will not work.
2679
2680 2001-05-11  Havoc Pennington  <hp@pobox.com>
2681
2682         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
2683         #54144
2684
2685         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
2686         bug #54330
2687
2688 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
2689
2690         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
2691         propagate exposes to NULL child.
2692
2693         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
2694         against not having one of the scrollbars.
2695
2696         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
2697         we don't keep a mnemonic window if we have no mnemonic installed.
2698
2699 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
2700
2701         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
2702         it has the _important_ side effect of initializing a class.
2703
2704 2001-05-10  Alexander Larsson  <alexl@redhat.com>
2705
2706         * gdk/linux-fb/gdkprivate-fb.h:
2707         Make sure you can compile out the implementation/wrapper assert
2708         macros.
2709
2710         * gdk/linux-fb/gdkdrawable-fb2.c:
2711         Check implementation/wrappers, initialize type for pixmap dummys.
2712
2713         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
2714         Hide the cursor if reading from the screen.
2715
2716         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
2717         Fix sign bug in tiling code.
2718
2719         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
2720         Handle background pixmaps.
2721
2722 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
2723
2724         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
2725         function to let user control where columns are dragged.
2726
2727         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
2728         Escape is pressed.
2729
2730 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
2731
2732         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
2733         "columns_changed" signal.
2734         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
2735         motion code to draw arrows to the side if indicator is outside the
2736         widget.
2737         (gtk_tree_view_map_expanded_rows): Implement.
2738
2739 2001-05-07  Alexander Larsson  <alexl@redhat.com>
2740
2741         * demos/testpixbuf-save.c: 
2742         * demos/testpixbuf-drawable.c:
2743         Include gdkfb.h on linux-fb.
2744
2745 2001-05-07  Alexander Larsson  <alexl@redhat.com>
2746
2747         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
2748         New function for getting toplevel window at position.
2749         (gdk_drag_find_window): Use get_toplevel_window () instead
2750         of gdk_window_get_pointer(). (gdk_drag_status): Use
2751         correct context for getting window.
2752
2753         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
2754         g_strdup the atom name.
2755
2756         * gdk/linux-fb/gdkwindow-fb.c:
2757         Costmetic fix.
2758
2759         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
2760         Add code for changing cursor on linux-fb backend (same as
2761         win32).
2762
2763 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
2764
2765         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
2766         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
2767         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
2768         report was not for the development branch of GTK+, but it applies
2769         anyways).
2770
2771 2001-05-04  Havoc Pennington  <hp@redhat.com>
2772
2773         * configure.in: fix some shell typos
2774
2775         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
2776
2777         * gtk/gtkimage.c: handle animations
2778
2779         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
2780         border_width * 2, not just border_width
2781
2782         * gtk/gtkscale.c: add "format_value" signal to allow people
2783         to override the way values are drawn.
2784         (gtk_scale_get_value_size): fix width/height mistake,
2785         and compute size from actual displayed text, not 
2786         from made-up text.
2787
2788         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
2789         signal registration
2790
2791         * tests/testtext.c: Add "Remove all tags" menu item for testing
2792
2793         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
2794
2795         * demos/gtk-demo/main.c (main): add hack so we can find modules
2796         without installing gtk
2797
2798         * demos/gtk-demo/textview.c (insert_text): demo font scaling
2799
2800         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
2801         factor)
2802         (gtk_cell_renderer_text_set_property): remove some bogus
2803         g_object_notify
2804
2805         * gtk/gtktexttag.c: add "scale" property which is a font scaling
2806         factor
2807
2808         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
2809         to layout
2810
2811         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
2812         gtk_text_iter_is_first
2813
2814 2001-01-06  Hans Breuer  <hans@breuer.org>
2815
2816         * gdk/gdk.def : updated exports
2817
2818         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
2819         gdk won't compile anymore
2820  
2821         * gdk/win32/gdkevents-win32.c : initialize ret_val when
2822         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
2823         Improved gdk_flush () to not only do pending drawing operations
2824         but also process all currently pending events. This should make
2825         the behaviour more similar to the X11 version.  
2826
2827         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
2828         option needs to be set even if there is no GDK_GC_BACKGROUND.
2829         (gdk_win32_hdc_get) : use predraw_set_background () independent
2830         of value_mask. This allows to draw dashed lines leaving the original
2831         background intact.
2832
2833         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
2834         after processing, because we can't reuse it as the X11 version does.
2835
2836         * gtk/gtk.def : updated exports
2837
2838         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
2839         would like to get rid of this file again, and use straight
2840         makefile.msc again, as the other Gtk+ subdirs do)
2841
2842         * test/makefile.msc (new file) : build the test apps here
2843
2844 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
2845
2846         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
2847         strike-through setting
2848         (gdk_draw_layout_line_with_colors): Render strike-through
2849
2850 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
2851
2852         * Release 1.3.5
2853
2854         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
2855
2856         * NEWS: Updated
2857
2858         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
2859         Makefile breakage.
2860
2861 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
2862
2863         * demos/gtk-demo/images.c (progressive_timeout): Fix
2864         typo in filename.
2865
2866         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
2867         out FIXME warning; just too annoying.
2868
2869 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
2870
2871         * gdk/linux-fb/gdkcolor-fb.c:
2872         Better error messages.
2873
2874         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
2875         Initialize abs_x and abs_y.
2876         
2877         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
2878         Correct handling of stipple offset.
2879
2880         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
2881         Treat directcolor framebuffers as truecolor.
2882         
2883 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
2884
2885         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
2886         dependency on Atk for accessibility support.
2887
2888         * configure.in **/Makefile.am: Major reworking of substituted
2889         variables for CFLAGS/LIBS to make a lot more sane and 
2890         keep the the compile/link lines a bit shorter.
2891
2892         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
2893
2894 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
2895
2896         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
2897         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
2898         use _gtk_boolean_handled_accumulator.
2899
2900 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
2901
2902         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
2903         to fix things so clicking inside selection leaves cursor
2904         at point where clicked. (#50324)
2905
2906         * gtk/gtksettings.c (gtk_settings_class_init): Restore
2907         sane value for default double click time.
2908
2909         * tests/testtext.c (test_init): Really path to input modules.
2910
2911 2001-05-03  Sven Neumann  <sven@convergence.de>
2912
2913         * demos/testpixbuf-save.c: include target-specific headers as
2914         done in testpixbuf-drawable.c
2915
2916 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
2917
2918         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
2919         new_text_length appropriately when we run into the 
2920         size limit for the entry. (#53445, reported by Jeff Franks)
2921
2922         * tests/testgtk.c (create_entry): Remove most of the
2923         property toggle buttons. Replace with a "Props" button
2924         that brings up a property editor.
2925
2926         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
2927         Split the property editor code out for reuse, improve.
2928
2929 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
2930
2931         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
2932         trap errors around calls to XSetInputFocus since we have
2933         no way of knowing reliably whether we are viewable or
2934         not. (#53947)
2935
2936 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
2937
2938         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
2939         fix bug in dropping columns.  Moving columns now basically works
2940         modula some fine tuning.
2941
2942 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
2943
2944         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
2945         autoscroll support.  It mostly works, but could use some fine
2946         tuning.
2947         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
2948         Actually move the column.
2949
2950 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
2951
2952         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
2953           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
2954           New default theme! A slighly improved version of the 2.0 Raleigh
2955           theme, with Windows-esque focus/drawing default. 
2956           (GtkWidget::interior_focus defaults to TRUE.)
2957
2958         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
2959
2960 2001-04-30  Havoc Pennington  <hp@pobox.com>
2961
2962         * tests/testtext.c (line_numbers_expose): fix to work with
2963         gtk_paint_layout change
2964
2965 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
2966
2967         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
2968           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
2969           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
2970           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
2971
2972         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
2973           with GtkWidget::interior_focus = TRUE better.
2974
2975         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
2976         ::default_outside_border for more flexibility.
2977
2978         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
2979         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
2980         change that had to be made with g_object_get.
2981
2982 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
2983
2984         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
2985         (gtk_tree_view_move_column_after): Clean up interface. 
2986
2987 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
2988
2989         * gtk/gtkpacker.h:
2990         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
2991          to gtkenum.h.
2992
2993         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
2994         handled in switch).
2995
2996         * gtk/Makefile.am:
2997         (gtk.defs): generate enum portions with  glib-mkenums.
2998         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
2999         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
3000         
3001         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
3002         addition.
3003
3004         * docs/Changes-2.0.txt: keep a note on signal handlers now
3005         not getting emitted during the emission they were connected within.
3006
3007 2001-04-28  Havoc Pennington  <hp@pobox.com>
3008
3009         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
3010
3011 2001-04-24  Havoc Pennington  <hp@redhat.com>
3012
3013         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
3014         (gtk_text_layout_move_iter_to_next_line): fix these two for
3015         invisible text, lots of other stuff still hosed.
3016
3017         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
3018         new function, replaces the get/set palette stuff. This function 
3019         is intended for use by libgnomeui which should set the hook to a
3020         thing which sets the palette in GConf, and we need the
3021         GConf-to-xsettings proxy which will result in the change being
3022         propagated back to the GTK app.
3023
3024         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
3025         about unusable signals that it may be because the signal has 
3026         parameters.
3027
3028         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
3029         style, otherwise gtkrc.c won't know to create a new GtkStyle for
3030         it.
3031         (gtk_widget_modify_color_component): call
3032         gtk_widget_modify_style() so the rc style will get copied.
3033         (gtk_widget_modify_font): ditto
3034
3035         * gtk/gtkrc.c: make a couple variables static
3036
3037         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
3038         help button by default, since it does nothing
3039
3040         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
3041         around with UI
3042
3043         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
3044         so we can have tooltips
3045
3046         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
3047         can have tooltips
3048
3049         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
3050         GDK_ENABLE_BROKEN, because its memory behavior is completely
3051         hosed.
3052
3053         * gtk/gtknotebook.c: remove key press handler, replace with
3054         binding set, add numeric keypad support
3055
3056         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
3057
3058         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
3059
3060         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
3061         addition to plain Delete
3062
3063         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
3064         GDK_KP_Enter in addition to GDK_Return
3065
3066         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
3067         activate on entry instead of key press
3068         (gtk_font_selection_on_clist_key_press): get
3069         rid of this signal handler, not needed with new font sel.
3070
3071         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
3072         no-longer-needed emit_stop_by_name(), just return TRUE
3073
3074         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
3075         cruft, this widget is no longer focusable.
3076
3077         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
3078         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
3079         move_slider action signal, add binding set for vscale/hscale, in
3080         the process support numeric keypad
3081
3082         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
3083         make GDK_Return and GDK_KP_Enter activate the entry via 
3084         binding set, instead of hardcoded.
3085
3086 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
3087
3088         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
3089         code.  Some documentation added.
3090
3091 2001-04-27  Havoc Pennington  <hp@redhat.com>
3092
3093         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
3094
3095         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
3096
3097         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
3098         line/para separators
3099         (gtk_entry_create_layout): set single paragraph mode on the layout
3100
3101         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
3102         spacing between the image and label; instead, inside a button box 
3103         the button will get extra space that will go there, but if people 
3104         configure button box for 0 chubbiness, then there's no spacing.
3105
3106         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
3107         and min/max size style properties, so people can tune their
3108         chubbiness.
3109
3110         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
3111         functions
3112
3113         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
3114         space_style, and button_relief into style properties, remove
3115         functions for setting them
3116         
3117         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
3118         it back down
3119
3120         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
3121         types from gtk_widget_style_get
3122
3123         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
3124         with a style property.
3125
3126         * gdk/x11/gdkevents-x11.c: namespace the settings
3127
3128         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
3129
3130         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
3131         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
3132         be used. Also, translate doc strings for settings. Also, namespace
3133         the double-click-time property. Also, remove bell properties crap.
3134
3135 2001-04-27  Sven Neumann  <sven@gimp.org>
3136
3137         * Makefile.am: before creating links, check if pkg-config files
3138         exist for the default target. Otherwise link to the pkg-config files
3139         that got installed with this build.
3140
3141 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
3142
3143         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
3144         dragging code.  Revealed some (potential) GdkWindow bugs.
3145
3146         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
3147         _gdk_window_init_position to the end of reparent to fix the case
3148         of reparenting when new_x != old_x and new_y != old_y.
3149
3150 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
3151
3152         * gtk/gtkentry.c (strstr_len): Fix optimization that
3153         was correct for the use here, but completely incorrect
3154         in general.
3155
3156 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
3157
3158         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
3159         until patch adding gtk_window_set_size() is recommitted. 
3160
3161         * **Makefile.am configure.in gdk/x11/gdkim-11.c
3162           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
3163           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
3164           (#10784)
3165
3166 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
3167
3168         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
3169         window == NULL in a number of cases.
3170
3171         * tests/testdnd.c: Set module path for gdk-pixbuf.
3172
3173 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
3174
3175         * gtk/Makefile.am xembed.h: File containing #defines
3176         for XEMBED protocol.
3177
3178         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
3179
3180         - Change protocol from old plug/socket specific protocol
3181           to XEMBED draft
3182         - Various fixes to work with GTK+-2.0
3183
3184         Still quite a bit of work to do here to handle initiation
3185         from the socket side (as specified by XEMBED), to handle
3186         the more advanced features of XEMBED, and to figure out
3187         a good way to handle same-app embedding with less overhead
3188         than using full XEMBED.
3189
3190 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
3191
3192         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
3193         track of whether the toplevel has the focus; only send
3194         focus-in events to the focus widget when the window
3195         actually has the focus.
3196
3197 2001-04-25  Havoc Pennington  <hp@pobox.com>
3198
3199         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
3200         were still in the header
3201
3202 2001-04-24  Alexander Larsson  <alexl@redhat.com>
3203
3204         * gtk/gtkclist.[ch]:
3205         * gtk/gtkctree.c:
3206         When there is a row highlighted for D'n'D it must alse
3207         be painted hightlighted on exposes. Otherwise exposes from
3208         the icon being dragged will mess up the hightlight.
3209
3210         * gtk/gtkfontsel.c:
3211         Don't recenter selected font when exposing the font family
3212         clist. This means you can now actually scroll the font family
3213         list.
3214
3215         * gtk/gtknotebook.c:
3216         Fix focus movement on scrolling tabs that are placed on the left
3217         and right.
3218
3219 2001-04-21  Havoc Pennington  <hp@pobox.com>
3220
3221         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
3222         empty/invisible lines.
3223
3224         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
3225         (gtk_text_iter_set_visible_line_index): new functions to set
3226         indexes excluding invisible text
3227
3228         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
3229         index
3230
3231         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
3232         (gtk_text_iter_get_visible_line_offset): new functions to 
3233         get indexes excluding invisible text
3234
3235         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
3236         bunch of extra padding that served no purpose
3237
3238         * gtk/gtkdialog.c: Make all the spacings configurable via style
3239         properties, for chubbiness configuration in themes
3240
3241         * tests/testtext.c: fix path to the immodules.
3242         
3243 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
3244
3245         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
3246         got munched by #endif.
3247
3248         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
3249
3250         * gtk/gtktreeview.c: Refactored code to clean up a number of
3251         events.
3252
3253         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
3254         values to make consistent with other functions.  Spotted by Jeff
3255         Franks <jcf@tpg.com.au>.
3256
3257         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
3258         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
3259
3260 2001-04-23  Sven Neumann  <sven@gimp.org>
3261
3262         * gtk/Makefile.am
3263         * gtk/gtkplug.c
3264         * gtk/gtksocket.c: on request of Owen, reverted my last change 
3265         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
3266
3267 2001-04-23  Sven Neumann  <sven@gimp.org>
3268
3269         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
3270         compile for non-X11 targets again
3271
3272 2001-04-20  Alexander Larsson  <alexl@redhat.com>
3273
3274         * gtk/gtkcolorsel.[ch]:
3275         API Change. Take GdkColor arguments instead of gdouble *.
3276         Leave the old gtk_color_selection_set_color for compatibility,
3277         but marked deprecated.
3278         Do correct rounding when converting RGB <-> HSV.
3279         
3280         * gtk/gtkcolorseldialog.c:
3281         * tests/testgtk.c:
3282         Use new GtkColorSelection API.
3283
3284         * gtk/gtkhsv.c:
3285         Fix problem selecting colors in triangle when Hue is 330.
3286         Fix some black dots around the HSB triangle.
3287         
3288         * gtk/gtkfilesel.c:
3289         return FALSE from the focus_in_event handler to fix focus problems.
3290
3291 2001-04-18  Havoc Pennington  <hp@redhat.com>
3292
3293         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
3294         set, so keybindings are configurable    
3295         (gtk_window_activate_default): Change to activate the focus widget
3296         instead if there's a focus widget, to be consistent with the
3297         behavior that previously existed in key_press_event
3298
3299 2001-04-18  Havoc Pennington  <hp@redhat.com>
3300
3301         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
3302
3303 2001-04-18  Havoc Pennington  <hp@redhat.com>
3304
3305         Close bug #50615:
3306         
3307         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
3308         the layout
3309
3310         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
3311
3312         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
3313
3314         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
3315         
3316         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
3317         to blue for base, in addition to bg
3318         
3319 2001-04-18  Havoc Pennington  <hp@redhat.com>
3320
3321         * tests/testgtk.c (create_image): allow shrinking the image window
3322         to test that we clip to allocation.
3323
3324         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
3325         #9845
3326
3327         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
3328
3329 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
3330
3331         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
3332         mode on shm segments to 0600. We'll see who complains.
3333
3334         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
3335         _gdk_windowing_window_destroy() AFTER recursing through
3336         children.
3337
3338         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
3339         testsocket_child on X.
3340
3341         * tests/testsocket[_child].c: Fix uses of
3342         gtk_window_get_default_accel_group().
3343
3344         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
3345
3346         * gdk/gdkimage.c: (gdk_image_get):
3347         Deal with the possibility that XGetImage() might return NULL.
3348         Allocate the GdkImagePrivate structure only after XGetImage()
3349         succeeds in order not to dereference a NULL ximage pointer.  This
3350         prevents a core dump when XGetImage() fails - which is unlikely,
3351         but can happen due to race conditions accessing the geometries of
3352         drawables.  An x error will still be triggered, but the gdk image
3353         wrapper at least wont seg fault.
3354         
3355 2001-04-18  Havoc Pennington  <hp@redhat.com>
3356
3357         * gtk/gtkimage.c: fix to properly queue resizes when the image is
3358         set
3359
3360         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
3361         if the insertion point isn't editable
3362
3363         * demos/gtk-demo/images.c: Added a GtkImage demo
3364
3365         * demos/gtk-demo/drawingarea.c: drawing area demo
3366         
3367         * demos/gtk-demo/menus.c (create_menu): cleanups
3368
3369 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
3370
3371         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
3372           gdk/x11/gdkevents-x11.c: Introduce an extra child
3373         of toplevel windows that serves to hold the focus to
3374         avoid events being delivered to embedded windows.
3375
3376         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
3377         some extra variables to clean up code and reduce the
3378         number of casts.
3379
3380         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
3381         guint for 1 bit bit fields, not gboolean.
3382
3383 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
3384
3385         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
3386         not TRUE. (Fixes #52925)
3387
3388 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
3389
3390         * Released 1.3.4
3391
3392         * NEWS: Updated
3393
3394         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
3395         use GTK_TYPE_ENUM.
3396
3397 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
3398
3399         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
3400
3401         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
3402         names to compatibility #defines so docs work.
3403
3404         * gtk/gtkenums.h: Remove GtkMenuFactoryType
3405
3406         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
3407
3408         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
3409
3410         * tests/testgtkrc: No magenta cursors, please.
3411
3412         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
3413
3414         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
3415         
3416 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
3417
3418         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
3419         grabs, since they are no longer necessary.
3420
3421         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
3422         by signal_connect() and call gtk_button_pressed() rather
3423         than signal_connect_after().
3424
3425         * tests/testgtk.c: Restore radio menu items to combos 
3426         since they'll look OK with Raleigh, and it is easier
3427         than finishing the process of removing them that was
3428         started earlier.
3429
3430 2001-04-16  Hans Breuer  <hans@breuer.org>
3431
3432         * gdk/gdk.def :
3433         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
3434
3435         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
3436         we are interested in the functions return value not the function address
3437         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
3438
3439         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
3440
3441 2001-04-14  Hans Breuer  <hans@breuer.org>
3442
3443         * gdk/gdk.def :
3444         * gdk/makefile.msc : updated
3445
3446         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
3447         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
3448         (the testgtk::text backgound pixmap is drawn again)
3449         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
3450         Win32 Pango change
3451         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
3452
3453         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
3454         Not sure if the returned settings have the right unit, because I couldn't
3455         find any docs for the X version ...
3456
3457         * gtk/gtk.def :
3458         * gtk/makefile.msc.in : updated
3459
3460 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
3461
3462         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
3463         wording problems. (Compared to version from Johannes Stezenbach to
3464         check correctness.)
3465
3466 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
3467
3468         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
3469         this to compile.
3470
3471 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
3472
3473         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
3474         not pixbufpos.
3475
3476         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
3477
3478         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
3479         are unsigned insts, therefore use g_value_set_uint.
3480         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
3481
3482 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
3483
3484         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
3485
3486         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
3487         GTK_TYPE_STRING.
3488
3489         * gtk/gtktreeview.c: New functions to allow initial column
3490         dragging work.
3491
3492         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
3493
3494         * tests/testtreefocus.c: give dave some love.
3495
3496         * tests/testtreesort.c: Modify test to check really long samples.
3497
3498 2001-04-11  Alexander Larsson  <alexl@redhat.com>
3499
3500         * gtk-2.0.m4: Pass pkg-config options
3501         before the other args so it works even if
3502         POSIXLY_CORRECT is set.
3503
3504 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
3505
3506         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
3507         0, interface 0).
3508
3509 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
3510
3511         * gtk/gtkcalendar.c (gtk_calendar_button_press):
3512         check for action_func != NULL
3513
3514 2001-04-04  Sven Neumann  <sven@gimp.org>
3515
3516         * tests/testgtk.c (test_init): corrected path to gtk.immodules
3517
3518 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
3519
3520         * Released Gtk+-1.3.3.
3521
3522 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
3523
3524         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
3525
3526 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
3527
3528         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
3529         files to/from source dir. (if we don't stay in builddir, we
3530         can't reach make-inline-pixbuf.
3531
3532         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
3533         deps.
3534
3535         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
3536         ages 0).
3537
3538 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
3539
3540         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
3541         moved to the GtkTreeSortable interface.
3542
3543         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
3544         Make more efficient (fixes #50262).
3545
3546 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
3547
3548         * NEWS: Updated.
3549
3550         * configure.in: Remove support for uninstalled glib.
3551
3552         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
3553         so as not to stop emission.
3554
3555         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
3556         is no longer supported.
3557
3558         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
3559         into tests, change build order to build modules before
3560         gtk/.
3561
3562         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
3563         to here.
3564
3565 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
3566
3567         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
3568         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
3569         GPatternSpec. this is actually unlikely to cause breakage in
3570         third-party apps since except for gle, pretty much ever caller
3571         passes NULL here.
3572
3573         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
3574
3575         * *.c: use g_pattern_*() API.
3576
3577         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
3578
3579         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
3580         directions aren't passed in.
3581
3582         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
3583         functionality to be usable from gtkstyle.c as well, give precedence
3584         for conversion to user-supplied parsers.
3585         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
3586
3587         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
3588         _gtk_settings_parse_convert() for rcporperty value conversion.
3589
3590 2001-04-03  Alexander Larsson  <alexl@redhat.com>
3591
3592         * gdk/linux-fb/gdkevents-fb.c:
3593         Add empty gdk_setting_get().
3594
3595 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
3596
3597         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
3598         variable names.
3599         
3600         * gtk/makeenums.pl: touch this so enum files get remade.
3601
3602 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
3603
3604         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
3605         work again when not sorted.
3606
3607         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
3608         and "expand_row" signal, closing bug 52578.
3609
3610         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
3611         support.
3612
3613         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
3614         support.
3615
3616 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
3617
3618         * gdk/gdkevents.h: Add GdkEventSetting event for notification
3619         of changes to system settings, gdk_setting_get() to retrieve
3620         a single system setting.
3621
3622         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
3623         to the draft XSETTINGS mechanism.
3624
3625         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
3626         XSETTINGS.
3627
3628         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
3629         of GDK settings changes to the GtkSettings object.
3630
3631         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
3632         double-click-timeout property to GDK.
3633
3634         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
3635         Define GDK boxed types here.
3636
3637         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
3638         gdk/gdkenumtypes.[ch] for enum definitions.
3639
3640         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
3641         * gtk/gtk-boxed.defs: Comment out GDK types
3642         * gtk/gtktypeutils.h: Remove GDK types
3643         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
3644
3645 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
3646
3647         * Applied patch from Ron Steinke to add signal accumulators
3648         so that signals with the convention 'TRUE return means
3649         handled' stop emission on a TRUE return.
3650
3651         * gtk/gtkmain.[ch]: Add private accumulator 
3652         _gtk_boolean_handled_accumulator, used throughout GTK+.
3653         
3654         * gtk/gtkspinbutton.c: Add accumulator for ::output.
3655
3656         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
3657         
3658         * gtk/gtkwidget.c: Add accumulators for event signals,
3659         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
3660         for ::mnemonic-activate.
3661
3662         * gtk/gtkwindow.c: Add accumulator for ::frame_event
3663
3664 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
3665
3666         * gtk/gtkwidget.c: Add missing include.
3667
3668 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
3669
3670         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
3671         marshaller.
3672
3673         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
3674         "changed" signal to "range_changed".
3675
3676         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
3677         removing a tree from one model would remove all trees from that
3678         model.
3679         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
3680         changed signal instead.
3681
3682 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
3683
3684         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
3685         chaining up to parent impl, since we have a INPUT_ONLY
3686         window.
3687
3688         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
3689         foreground color for the cursor.
3690
3691 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
3692
3693         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
3694         param spec when caching property values, since we unref it
3695         later when we free the style.
3696
3697         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
3698         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
3699
3700 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
3701
3702         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
3703         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
3704         stupidity.
3705
3706 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
3707
3708         [ First pass at adding style properties. Still needs some definite
3709         fine-tuning. ]
3710
3711         * gtk/gtkbutton.c: Add ::default_spacing style property.
3712          
3713         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
3714         ::indicator_spacing style properties.
3715
3716         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
3717         style properties.
3718
3719         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
3720         rather than a normal property.
3721
3722         * gtk/gtkwidget.c: Add an ::interior_focus style property to
3723         draw focus inside buttons, in the Windows/Java Metal/etc. style.
3724
3725         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
3726         Honor ::interior_focus.
3727         
3728         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
3729         TRUE.
3730
3731         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
3732         Add ::slider_width, ::trough_border, ::stepper_size,
3733         ::stepper_spacing style properties.
3734
3735         * gtk/gtkscale.[ch] Add ::slider-length style property.
3736
3737 2001-04-02 Alexander Larsson   <alexl@redhat.com>
3738
3739         * gdk/linux-fb/gdkwindow-fb.c:
3740         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
3741         warnings that were spewed on startup.
3742
3743         * gtk/gtkwindow-decorate.c:
3744         gtk_window_reposition -> _gtk_window_reposition
3745
3746 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
3747
3748         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
3749         Add boxed type for GtkRequistion. Use it for ::size-request.
3750
3751         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
3752         Add a new GtkBorder structure useful for geometry properties
3753         for widgets. Add corresponding GTK_TYPE_BORDER.
3754         
3755         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
3756         Support automatic parser selection like
3757         gtk_settings_install_property_parser().
3758
3759         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
3760         functionality for use by gtk_widget_class_install_style_property.
3761         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
3762
3763 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
3764
3765         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
3766         g_param_spec_unichar(). 
3767
3768 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
3769
3770         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
3771         _NET window managers.
3772
3773         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
3774
3775 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
3776
3777         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
3778         bad needs to be nuked, not just deprecated.
3779
3780         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
3781         gtk_widget_popup().
3782
3783         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
3784         
3785         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
3786         widget.
3787         
3788         * docs/Changes-2.0.txt: updates.
3789         
3790 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
3791
3792         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
3793         for (i = 0; i < 100; i ++)
3794           g_print ("I will confirm it compile before committing\n");
3795
3796 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
3797
3798         * gtk/gtktreestore.c: Initial work on implementing the
3799         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
3800
3801 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
3802
3803         * gtk/gtkwidget.c: fixed a bunch of notifications, added
3804         reference counts around emissions where the widget is used afterwards.
3805         added freeze/thaws around multiple properties being notified.
3806         (_gtk_widget_get_aux_info): cleanups.
3807         
3808         * gtk/gtksettings.c (gtk_settings_install_property): provide
3809         default parsing functions for gdkcolor, enums and flags.
3810
3811         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
3812         applied by owen.
3813         backed out gtk_window_get_location(), gtk_window_set_location(),
3814         gtk_window_get_size() and gtk_window_set_size(), these
3815         have to be sorted out wrg x/y/width/height/default_with/default_height
3816         properties.
3817         kept a flag in GtkWindowGeometryInfo to handle user
3818         resetting default sizes.
3819         cleaned up ZVT comments.
3820         bunch of assorted bug fixes, notification fixes.
3821         (_gtk_window_reposition): make this a really internal function.
3822         
3823         * gtk/testgtk.c: fixups.
3824         
3825 2001-03-31  Hans Breuer  <hans@breuer.org>
3826
3827         * config.h.win32.in : disable USE_MMX for msvc build cause
3828         the assembler doesn't fit and is out of my scope. Disable
3829         USE_GMODULE for msvc build as wel. The right way to share
3830         binaries on win32 would be to use libtiff.dll etc. To reduce
3831         installation hassles IMO it's better to include all fileformats
3832         builtin to gdk-pixbuf
3833
3834         * gdk-pixbuf/makefile.msc : new file
3835
3836         * gdk/gdk.def : updated
3837
3838         * gdk/win32/gdkevents-win32.c : don't erase the background if
3839         .no_bg is set. It improves the scrolling (e.g. of testgtk main
3840         buttons
3841         * gdk/win32/gdkgeometry-win32.c : added comment about the above
3842
3843         * gdk/win32/gdkwindow-win32.c : added three new functions like
3844         the X version. Only one is implemented, because the other two
3845         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
3846         be default behaviour on win32 anyway ...
3847
3848         * gtk/gtk.def : updated
3849
3850         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
3851         from where it was built and add an additional rule to automagically
3852         build gtkmarshal.[hc]
3853
3854         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
3855         before array access for the current entry isn't finished
3856
3857         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
3858         use g_return_val_if_fail
3859
3860         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
3861         for the static array, but let the compiler calculate it. It
3862         makes me wonder if gcc isn't capable to catch bugs like this ...
3863
3864 2001-03-31  James Henstridge  <james@daa.com.au>
3865
3866         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
3867         constant "-1" in the aux info structure.
3868
3869 2001-03-30  Alexander Larsson  <alexl@redhat.com>
3870
3871         * gtk/gtkbutton.c (gtk_button_get_property):
3872         * gtk/gtklabel.c:
3873         Remove leaks.
3874         
3875         * gtk/gtkcontainer.c:
3876         * gtk/gtkhscale.c:
3877         * gtk/gtkhscrollbar.c:
3878         * gtk/gtklayout.c:
3879         * gtk/gtkmisc.c:
3880         * gtk/gtkprogress.c:
3881         * gtk/gtkprogressbar.c:
3882         * gtk/gtkrange.c:
3883         * gtk/gtktable.c:
3884         * gtk/gtkviewport.c:
3885         * gtk/gtkvscale.c:
3886         * gtk/gtkvscrollbar.c:
3887         * gtk/gtkwidget.c:
3888         Property patches, based on patches from John Margaglione and Lee Mallabone.
3889
3890 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
3891
3892         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
3893         adjustment. Cleaned redundant preconditions (spin != NULL). Added
3894         inline API function docs.
3895         (gtk_spin_button_new_with_range): New convenience constructor.
3896         (gtk_spin_button_set_increments): New adjustment helper.
3897         (gtk_spin_button_set_range): New adjustment helper.
3898
3899         * gtk/testgtk.c : added test of the new convenince constructor and
3900         value_changed signals.
3901
3902 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
3903
3904         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
3905         listen to the reorder signal.
3906
3907 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
3908
3909         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
3910         to get the aux info structure fo the widget.
3911
3912         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
3913         above function.
3914
3915         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
3916
3917         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
3918         to get the size of the window manager frame, basically the same
3919         code that gdk_window_get_root_origin() had
3920         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
3921
3922         * gtk/gtkwindow.c (gtk_window_set_default_size): use
3923         gdk_window_resize() if the window is realized and resizeable
3924
3925         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
3926         typo so that setting gravity works
3927
3928         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
3929         allocation if auto_shrink is on, even if the default size
3930         has not changed.
3931
3932         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
3933         g_return_if_fail
3934
3935 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
3936
3937         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
3938         reordering/sorting work.  Now pretty much works.
3939
3940         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
3941         reorder mostly work.  Still need to get the parity correct.
3942
3943         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
3944         signal, so I can listen for the sort_column_changed signal so I
3945         can change my "sort_indicator" property.  Cool.
3946
3947 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
3948
3949         [ Patch from Havoc Pennington, hp@redhat.com ]
3950
3951         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
3952         Add functions gdk_window_begin_resize_drag/begin_move_drag
3953         to start resizing or moving a toplevel window. This
3954         is done either using the _NET_WM_MOVERESIZE protocol,
3955         or, if that isn't present, by emulation.
3956
3957         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
3958         to export the above to GTK+-land.
3959
3960         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
3961         
3962         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
3963         Move this function into gdkwindow, since we need it
3964         when implementing fallback resizing.
3965
3966         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
3967         Fix typo when setting gravity.
3968
3969         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
3970         Add an optional (but on by default) resize grip for resizing 
3971         the parent window.
3972
3973 01-03-29  Alexander Larsson  <alexl@redhat.com>
3974
3975         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
3976         Don't return TRUE from the event handler, that blocks all
3977         event signals on the tooltip widget. Now you can press buttons
3978         in toolbars again.
3979
3980 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
3981
3982         * gtk/testtext.c (create_buffer): Add missing NULL on
3983         valist.
3984
3985         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
3986         c-n-p problem with INCONSISTENT property.
3987
3988         [ Patch from Havoc Pennington  <hp@redhat.com> ]
3989
3990         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
3991         hook.
3992
3993         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
3994         signal as a hook for extending the default popup menu
3995
3996         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
3997         use radio menu items for the input method menuitems
3998
3999         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
4000         inserted unicode from Ctrl-Shift-hex input method
4001
4002         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
4003         validatation here, already done at GtkTextBuffer level.
4004
4005         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
4006         popup_menu run action signal and Shift+F10 and Menu keybindings.
4007
4008         * gtk/gtkentry.c: implement a default handler for popup_menu
4009
4010         * gtk/gtktextview.c: implement a default handler for popup_menu
4011
4012         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
4013         from a key event
4014         
4015         * gtk/gtklabel.c: remove "trailer" cruft
4016
4017 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
4018
4019         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
4020         handle reordering of trees.  Seems to mostly work w/ the exception
4021         of the parity flag.
4022
4023         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
4024         signal.
4025
4026 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
4027
4028         * gtk/gtkwidget.h: c++ fixes.
4029
4030 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
4031
4032         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
4033         memory.
4034
4035 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
4036
4037         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
4038         Nils Barth fixing event return values. (#51041)
4039
4040         * gtk/gtkwidget.c: Fix some return values for default
4041         functions.
4042
4043         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
4044         return values for trough_keys functions.
4045
4046         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
4047         value for add_accelerator (shoudl have been a void
4048         return.)
4049
4050         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
4051         Fix return type of EVENT.
4052
4053         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
4054         signal return a boolean.
4055
4056 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
4057
4058         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
4059         reordered signal.
4060
4061         * tests/testtreesort.c (main): fix spelling.
4062
4063 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
4064
4065         * gtk/gtkliststore.c: More work on implementing sortable
4066         interface.
4067
4068 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
4069
4070         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
4071         reference the widgets in the resulting list. (#11821)
4072         This makes this consistent with gtk_container_children.
4073
4074         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
4075         uses of gtk_window_list_toplevels.
4076
4077 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
4078
4079         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
4080         a virtual function to set whether the IM context should use 
4081         the preedit string. (#51922)
4082         
4083 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
4084
4085         * gdk/gdkpango.h: Remove stale FIXME comment.
4086
4087 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
4088
4089         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
4090         Fixed bug that returned NULL if a filename was selected.
4091
4092 2001-03-24  Havoc Pennington  <hp@pobox.com>
4093
4094         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
4095         to contain the word "theme"
4096
4097 2001-03-24  Havoc Pennington  <hp@pobox.com>
4098
4099         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
4100         slower but finer-grained
4101         (gtk_hsv_focus): get initial focus on the ring or triangle 
4102         according to tab direction
4103
4104         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
4105
4106 2001-03-23  Havoc Pennington  <hp@pobox.com>
4107
4108         * gtk/gtkhsv.c: make this somewhat key-navigable
4109
4110         * gtk/gtkfontsel.c: mnemonics
4111
4112         * gtk/gtkgamma.c: mnemonics
4113
4114         * gtk/gtkcolorsel.c: add mnemonics to labels
4115
4116 2001-03-22  Havoc Pennington  <hp@pobox.com>
4117
4118         Applied big patch from Seth Lytle to fix event handler return
4119         values, slightly modified.
4120
4121         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
4122         handled.
4123         (gtk_calendar_key_press): return TRUE for GDK_space triggers
4124         select_day
4125
4126         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
4127         (gtk_clist_button_release): return TRUE if handled
4128
4129         * gtk/gtkcolorsel.c (mouse_release):
4130         (palette_activate): 
4131         (palette_press): 
4132         (palette_new): 
4133         (mouse_press): 
4134         (get_screen_color): 
4135         fixed return type (void to gboolean), return TRUE,
4136         added GTK_SIGNAL_FUNC cast
4137
4138         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
4139         (void to gboolean), and return TRUE
4140         (gtk_combo_button_release): changed return value to TRUE after
4141         gtk_grab_add on combo->popwin
4142
4143         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
4144         collapse or expand
4145
4146         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
4147         button/motion
4148
4149         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
4150         press/release and motion that trigger act
4151
4152         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
4153
4154         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
4155         for GDK_Return
4156         
4157         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
4158         (gtk_list_button_release): return TRUE if selection
4159
4160         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
4161         press
4162
4163         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
4164         (gtk_menu_shell_button_release): chain parent_menu_shell retval
4165
4166         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
4167         nothing triggered
4168         (gtk_notebook_button_release): return TRUE if we do anything
4169
4170         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
4171         (gtk_spin_button_button_release): return TRUE or chained retval
4172
4173         * gtk/gtktext.c (gtk_text_button_press): 
4174         (gtk_text_button_release): return TRUE
4175         (gtk_text_key_press): remove redundant retval code
4176         
4177         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
4178         and sensitive
4179         (gtk_tree_item_subtree_button_click): changed type to gint, and return
4180         TRUE if sensitive
4181
4182         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
4183         return TRUE
4184
4185 2001-03-23  Havoc Pennington  <hp@redhat.com>
4186
4187         * gtk/testgtk.c: fix warnings
4188
4189         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
4190
4191         * gtk/gtktextview.c: fix warnings
4192
4193         * gtk/gtktext.c (find_cursor_at_line): fix warning
4194
4195         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
4196
4197         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
4198         of this function
4199
4200         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
4201         fix warning
4202
4203         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
4204
4205         * gtk/gtkfontsel.c: fix warning
4206
4207         * gtk/gtkcolorsel.c: fix warnings
4208
4209 2001-03-23  Havoc Pennington  <hp@redhat.com>
4210
4211         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
4212
4213         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
4214
4215         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
4216         and deprecated gtk_check_menu_item_set_show_toggle().
4217         
4218         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
4219
4220         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
4221
4222         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
4223
4224 2001-03-23  Havoc Pennington  <hp@redhat.com>
4225
4226         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
4227         some docs
4228
4229 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
4230
4231         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
4232         this.
4233
4234         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
4235         set_cell to set_value
4236
4237         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
4238         set_cell to set_value
4239
4240 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
4241
4242         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
4243         fix braino.
4244         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
4245         support.
4246
4247         * gtk/gtktreeview.c: Addition of initial sortable support.
4248
4249         * gtk/gtktreestore.c: Addition of initial sortable support.
4250
4251         * gtk/gtkliststore.c: Addition of initial sortable support.
4252
4253         * gtk/gtkmarshal.list: yet another marshaller.
4254
4255         * gtk/gtktreedatallist.[ch]: shared code between the store models
4256         for handling sorting headers.
4257
4258 2001-03-22  Havoc Pennington  <hp@redhat.com>
4259
4260         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
4261         (gtk_container_unset_focus_chain): Add ability to override the 
4262         focus chain for a container explicitly
4263
4264 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
4265
4266         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
4267         added PROP_MNEMONIC_WIDGET.
4268
4269         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
4270         (gtk_window_remove_mnemonic): 
4271         (gtk_window_add_mnemonic): fixed assertions.
4272         (gtk_window_activate_mnemonic): constrain modifier checks to those
4273         permitted by gtk_accelerator_get_default_mod_mask().
4274         got rid of gtk_window_get_default_accel_group().
4275
4276         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
4277         activatable widgets either by focussing or a warning.
4278         added a signal accumulator to ::activate_mnemonic which stops the
4279         emission once a handler returned TRUE.
4280
4281 2001-03-22  Havoc Pennington  <hp@pobox.com>
4282
4283         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
4284         the stock item label
4285
4286         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
4287
4288         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
4289
4290         * demos/gtk-demo/*.c: Add mnemonics all over the place
4291
4292         * gtk/gtklabel.h: mark parse_uline deprecated
4293
4294 2001-03-21  Alexander Larsson  <alexl@redhat.com>
4295
4296         * gtk/gtkitemfactory.[ch]:
4297         Add support for stock and normal imagemenuitems.
4298         
4299         * gtk/testgtk.c:
4300         Add some tests for mnemonics, stock toolbars, stock
4301         and image menuitems in itemfactory and gdk_window_scroll.
4302
4303 2001-03-21  Alexander Larsson  <alexl@redhat.com>
4304
4305         * gtk/gtkbutton.[ch]:
4306         * gtk/gtkdialog.c:
4307         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
4308         removed accel_group argument. Renamed gtk_button_new_accel() to
4309         gtk_button_new_with_mnemonic() and removed accel_group argument.
4310
4311         * gtk/gtkcheckbutton.[ch]:
4312         New function gtk_check_button_new_with_mnemonic().
4313
4314         * gtk/gtkentry.c:
4315         Override activate_mnemonic and just grab focus.
4316
4317         * gtk/gtkitemfactory.c:
4318         Don't add menu uline accel group, instead use mnemonics support.
4319
4320         * gtk/gtklabel.[ch]:
4321         New support for mnemonics.
4322
4323         * gtk/gtkmarshal.list:
4324         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
4325
4326         * gtk/gtkmenu.[c]:
4327         * gtkmenushell.c:
4328         Use mnemonics instead of accel groups for uline
4329         support in menu items.
4330         Removed gtk_menu_get_uline_accel_group() and
4331         gtk_menu_ensure_uline_accel_group().
4332
4333         * gtk/gtkmenuitem.c:
4334         Override activate_mnemonic to handle switching between
4335         menu items if there are collisions.
4336         
4337         * gtk/gtknotebook.c:
4338         Connect to activate_mnemonic on the tab_label, so that
4339         activating it switches to that notebook page.
4340
4341         * gtk/gtkwidget.[ch]:
4342         Add activate_mnemonic signal. New function
4343         gtk_widget_activate_mnemonic() to emit it.
4344         Default implementation does activate/grab_focus.
4345
4346         * gtk/gtkwindow.[ch]:
4347         Add support for mnemonics in windows.
4348         New functions:
4349         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
4350         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
4351
4352         * gtk/testgtk.c:
4353         Update to function name changes.
4354         
4355 2001-03-21  Alexander Larsson  <alexl@redhat.com>
4356
4357         * gtk/gtkimagemenuitem.[c]:
4358         Add gtk_image_menu_item_new_from_stock()
4359
4360 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
4361
4362         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
4363         Fix buglet in meeting.
4364
4365 2001-03-19  Havoc Pennington  <hp@redhat.com>
4366
4367         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
4368         add a bunch of accessor functions. This is because we have
4369         reasonable expectations of extending what fields it contains in
4370         the future.
4371
4372         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
4373         changes
4374
4375         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
4376         GtkIconSource   
4377
4378 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
4379
4380         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
4381         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
4382
4383         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
4384           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
4385           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
4386           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
4387         Change float to double everywhere with the exception of 0<->1.0 alignment
4388         and GtkCurve.
4389
4390 2001-03-19  Tor Lillqvist  <tml@iki.fi>
4391
4392         * gdk/win32/gdkdrawable-win32.c
4393         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
4394         output.
4395
4396         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
4397         gdkwin32.h.
4398
4399 2001-03-18  Tor Lillqvist  <tml@iki.fi>
4400
4401         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
4402         print_event_state, print_event): Use preprocessor macro to make
4403         code more compact. Print also GDK_WINDOW_STATE events.
4404         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
4405         
4406         * gtk/gtk.def
4407         * gtk/makefile.mingw.in: Update.
4408
4409         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
4410         to catch also Cygwin.
4411
4412 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
4413
4414         * gtk/gtkspinbutton.[hc]: added rc-style argument
4415         GtkSpinButton::shadow_type.
4416         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
4417         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
4418         rc-style settings.
4419
4420         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
4421
4422         * gtk/gtkwidget.c: quark cleanups.
4423
4424         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
4425         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
4426         to create_rc_style() (we don't do cloning in standard OO sense).
4427         added per rc style properties.
4428         
4429         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
4430         property values and for caching those. some cleanups.
4431         
4432         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
4433         
4434         * gtk/gtksettings.[hc]: new file for global rc-file properties
4435         (at least currently, should get extended to support X properties
4436         and other communication mechanisms).
4437         
4438         * gtk/gtkwidget.[hc]: added style property support:
4439         (gtk_widget_class_install_style_property_parser): install style
4440         property pspec with parser function for rc-file values other
4441         than LONG, DOUBLE or STRING.
4442         (gtk_widget_class_install_style_property): same as above without
4443         parser (parsers are going to be needed quite infrequently).
4444         (gtk_widget_style_get_property): retrive style property value.
4445         (gtk_widget_style_get_valist): same as above with varargs support,
4446         has NOCOPY semantics.
4447         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
4448
4449 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
4450
4451         * demos/gtk-demo/main.c (row_activated_cb): modified to use
4452         "row_activated" signal.
4453
4454         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
4455         stupidity.  Lets actually pass in the row with this signal...
4456
4457 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
4458
4459         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
4460
4461         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
4462
4463         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
4464         everything into the ::destroy function, and freed a lot more.
4465
4466 2001-03-16  Havoc Pennington  <hp@redhat.com>
4467
4468         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
4469         instead of gint16, to avoid overflow issues, since sizes > 16-bit
4470         are now allowed.
4471
4472 2001-03-16  Havoc Pennington  <hp@redhat.com>
4473
4474         * Applied patch from Nils Barth (bug # 51041) to 
4475         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
4476         in various places.
4477
4478 2001-03-15  Havoc Pennington  <hp@redhat.com>
4479         
4480         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
4481         for properties to set on the tag.
4482
4483         * gtk/testtext.c: fixups to reflect create_tag change
4484         
4485         * gtk/gtktexttag.c (gtk_text_tag_set_property):
4486         background/foreground stipple are objects, not boxed.
4487
4488         * demos/gtk-demo/textview.c: intellihancing
4489
4490 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
4491
4492         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
4493         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
4494
4495 2001-03-16  Alexander Larsson  <alexl@redhat.com>
4496
4497         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
4498         Fix sign error with queued region translations.
4499
4500 2001-03-15  HideToshi Tajima  <tajima@happy>
4501
4502         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
4503         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
4504         * gtk/gtkentry.c (update_im_cursor_location): 
4505         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
4506         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
4507         set_cursor_pos to set_cursor_location in GtkInputContext class
4508
4509 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
4510
4511         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
4512         the location of the cell relative to its area.
4513         * gtk/gtkcell*: modified for above change
4514         * gtk/gtktreeview.c: modified for above change.
4515
4516 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
4517
4518         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
4519          (gtk_tree_view_finalize): actually unref the model.  Thanks to
4520         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
4521
4522 2001-03-14  Havoc Pennington  <hp@redhat.com>
4523
4524         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
4525         
4526         * gtk/gtk.h: remove gtkdata.h
4527
4528         * gtk/Makefile.am: remove gtkdata
4529         
4530         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
4531         not "disconnect" on the adjustments.
4532         
4533         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
4534         GtkData
4535
4536         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
4537         not GtkData
4538
4539         * configure.in: handle case where X render exists, but Pango lacks
4540         Xft support.
4541
4542 2001-03-15 Alexander Larsson  <alexl@redhat.com>
4543
4544         * gtk/gtktoolbar.[ch]:
4545         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
4546         to add stock items to toolbars.
4547
4548         * gtk/Makefile.am:
4549         Remove ../gdk/gdkim.h from gdk_headers.
4550
4551 2001-03-15  Sven Neumann  <sven@gimp.org>
4552
4553         * gdk/gdkim.h: removed
4554         
4555         * gdk/gdkprivate.h
4556         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
4557
4558 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
4559
4560         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
4561         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
4562         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
4563         set_cursor_pos() virtual method
4564
4565         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
4566         (gtk_im_context_xim_set_cursor_pos): add implementation for
4567         set_cursor_pos() method
4568
4569         * gtk/gtkentry.c (recompute_idle_func): set current cursor
4570         position to input methods
4571
4572 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
4573
4574         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
4575         code a lot.
4576
4577         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
4578         g_mem_chunk.
4579         (_gtk_tree_data_list_alloc): use g_mem_chunk.
4580         (_gtk_tree_data_list_node_to_value): Fix to switch on
4581         G_TYPE_FUNDAMENTAL.
4582         (_gtk_tree_data_list_value_to_node): Fix to switch on
4583         G_TYPE_FUNDAMENTAL.
4584         (_gtk_tree_data_list_node_copy): Fix to switch on
4585         G_TYPE_FUNDAMENTAL.
4586
4587 2001-03-12  Havoc Pennington  <hp@redhat.com>
4588
4589         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
4590         to convert to new property API. Also, change default_width and
4591         default_height get_property to return 0 as the flag value for
4592         "unset"; -1 is not a valid value for these fields.
4593
4594 2001-03-12  Havoc Pennington  <hp@redhat.com>
4595
4596         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
4597         enum with registration for icon sizes, instead of strings.
4598
4599         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
4600         gtkwidget.c: Fix to reflect GtkIconSize
4601         
4602 2001-03-12  Alexander Larsson  <alexl@redhat.com>
4603
4604         Make GtkFB compile and link.
4605         
4606         * gdk/linux-fb/gdkdrawable-fb2.c:
4607         window->mapped to GDK_WINDOW_IS_MAPPED(). 
4608         
4609         * gdk/linux-fb/gdkwindow-fb.c:
4610         window->mapped to GDK_WINDOW_IS_MAPPED(). 
4611         Added gdk_window_shape_combine_region.
4612         Added assorted placeholders for unimplemented new GdkWindow API calls.
4613
4614 2001-03-12  Alexander Larsson  <alexl@redhat.com>
4615
4616         * gtk/gtkfilesel.c:
4617         Add more test when converting filenames from/to utf-8.
4618         Don't allow entering text in the filename entry which isn't allowed in
4619         a filename. Just beep instead.
4620
4621 2001-03-12  Alexander Larsson  <alexl@redhat.com>
4622
4623         * gtk/gtkclist.c:
4624         Scroll using gdk_window_scroll(). Don't wait for exposes.
4625         Move the column headers in an order that makes them flash less.
4626
4627 2001-03-10  Hans Breuer  <hans@breuer.org>
4628
4629         * gdk/gdk.def : updated
4630
4631         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
4632         to offseting the clip_mask at the right place
4633
4634         * gdk/win32/gdkwindow-win32.c : don't create background brushes
4635         for all the gdkClasses, especially not for the input_only case.
4636         Otherwise flickering wont be avoidable, because we don't get
4637         WM_ERASEBKGND message for these windows.
4638
4639         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
4640         and fixed massive redraw problems apparently triggered by Alexanders 
4641         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
4642         but it seems to work quite well :-)
4643
4644         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
4645         prototype
4646
4647 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
4648
4649         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
4650         (gtk_list_store_set_cell): Fix a stupid typo.
4651
4652 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
4653
4654         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
4655         select_all not work if you're in SINGLE mode (it doesn't make that
4656         much sense, anyway.)
4657
4658         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
4659         handle types more sanely.
4660         (_gtk_tree_data_list_value_to_node): handle types more sanely.
4661         (_gtk_tree_data_list_node_copy): handle types more sanely.
4662
4663         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
4664         GValue better. Converts the type as well.
4665
4666         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
4667         GValue better. Converts the type as well.
4668
4669 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
4670
4671         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
4672         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
4673         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
4674         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
4675
4676         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
4677         gdk_im/gdk_ic.
4678
4679 2001-03-09  Hans Breuer  <hans@breuer.org>
4680
4681         * gdk/gdk.def : updated
4682
4683         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
4684         for their palette
4685
4686         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
4687         removing
4688
4689         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
4690         removing and implemented Havoc's GdkWindow state functions; 
4691         stick/unstick only as no-op, cause I don't know how to emulate 
4692         on win32 ...
4693
4694         * gtk/gtk.def : updated
4695
4696         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
4697
4698         * gtk/gtktypeutils.c : #include <string.h>
4699
4700         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
4701
4702 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
4703
4704         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
4705         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
4706         not a boxed.
4707
4708 2001-03-09  Alexander Larsson  <alexl@redhat.com>
4709
4710         * docs/Changes-2.0.txt:
4711         Document expose event->region change and that gtk_widget_event
4712         doesn't allow passing expose events.
4713
4714         * gdk/gdkevents.h:
4715         Add region to expose event.
4716         
4717         * gdk/gdkevents.c:
4718         Handle event->region in gdk_event_copy() and gdk_event_free().
4719
4720         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
4721         Generate expose_event->region when creating expose events.
4722
4723         * gdk/x11/gdkevents-x11.c:
4724         Generate expose events with regions when translating X events.
4725
4726         * gtk/gtkcontainer.[ch]:
4727         Default expose handler that propagates expose events to NO_WINDOW
4728         children. New function gtk_container_propagate_expose()
4729
4730         * gtk/gtkwidget.[ch]:
4731         Moved gtk_widget_event implementation to gtk_widget_event_internal.
4732         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
4733         expose events. New function gtk_widget_send_expose() to send expose
4734         events. New function gtk_widget_region_intersect() to calculate
4735         window/region intersections.
4736         
4737         * gtk/gtkmain.c (gtk_main_do_event):
4738         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
4739         Use gtk_widget_send_expose() to send expose events.
4740         
4741         * gtk/gtkbin.c:
4742         * gtk/gtkbox.c:
4743         * gtk/gtkfixed.c:
4744         * gtk/gtkimagemenuitem.c:
4745         * gtk/gtklist.c:
4746         * gtk/gtkpacker.c:
4747         * gtk/gtktable.c:
4748         * gtk/gtktree.c:
4749         Remove expose handler, using the default container implementation
4750         instead.
4751         
4752         * gtk/gtkbutton.c:
4753         * gtk/gtkcheckbutton.c:
4754         * gtk/gtkeventbox.c:
4755         * gtk/gtkfixed.c:
4756         * gtk/gtkhandlebox.c:
4757         * gtk/gtklayout.c:
4758         * gtk/gtklistitem.c:
4759         * gtk/gtkmenu.c:
4760         * gtk/gtkmenubar.c:
4761         * gtk/gtkmenuitem.c:
4762         * gtk/gtknotebook.c:
4763         * gtk/gtkoptionmenu.c:
4764         * gtk/gtkpaned.c:
4765         * gtk/gtkscrolledwindow.c:
4766         * gtk/gtktogglebutton.c:
4767         * gtk/gtktoolbar.c:
4768         * gtk/gtktreeitem.c:
4769         * gtk/gtkviewport.c:
4770         Chain expose handler to parent class handler. Use
4771         gtk_container_propagate_expose() to propagate exposes.
4772
4773         * gtk/gtkclist.c (check_exposures):
4774         * gtk/gtktext.c (process_exposes):
4775         Use gtk_widget_send_expose instead of gtk_widget_event.
4776
4777 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
4778
4779         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
4780
4781 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
4782
4783         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
4784         unref the nodes.   Fixes bug #50058.
4785
4786         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
4787         "::ref_iter" to "::ref_node".
4788         (gtk_tree_model_unref_node): change "::unref_iter" to
4789         "::unref_node". Fixes bug #50064.
4790
4791 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
4792
4793         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
4794         support for invisible cells.
4795          (gtk_tree_view_bin_expose): ditto
4796
4797 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
4798
4799         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
4800         on gobjects.
4801
4802         * tests/testtreefocus.c (main): New test file.
4803
4804         * tests/testtreeview.c: update to latest glib changes.
4805
4806         * tests/testtreecolumns.c: update to latest glib changes.
4807
4808 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
4809
4810         * gtk/testgtk.c: re-enabled event watcher emission hooks.
4811
4812 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
4813
4814         * *.c: added accumulator data argument to g_signal_newc()
4815         functions.
4816
4817         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
4818         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
4819         * gtk/treestoretest.c (make_window):
4820         s/g_signal_connect/g_signal_connectc/.
4821
4822         * gtk/gtktextbuffer.c: completed signal arg fixups,
4823         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
4824
4825 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
4826
4827         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
4828         G_CONST_RETURN.
4829
4830         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
4831         ::hierarchy-changed signal when a widget changes
4832         from anchored to unanchored or vice versa.
4833         (anchored means 
4834          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
4835         Use a private flag to keep track of this efficiently.
4836
4837 2001-03-07  Havoc Pennington  <hp@redhat.com>
4838
4839         * gtk/testgtk.c (create_spins): uglify so that size request gets
4840         tested.
4841
4842         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
4843         request on values for upper/lower, completes #6152
4844
4845 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
4846
4847         * Makefile.am: Remove gtk-config-2.0 again.
4848         (Grrrr, pkg-config. And stops make loops.)
4849
4850 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
4851
4852         * gtk/gtksignal.[hc]: removed old emission hook API.
4853         
4854         * docs/Changes-2.0.txt: fixed sections.
4855         
4856         * gtk/gtktextbuffer.c: signal arg fixups.
4857
4858 2001-03-07  Havoc Pennington  <hp@redhat.com>
4859
4860         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
4861
4862         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
4863         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
4864         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
4865         validation and the redraw which is higher priority than the
4866         validation.
4867
4868 2001-03-07  Havoc Pennington  <hp@redhat.com>
4869
4870         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
4871         (gtk_entry_set_property): remove trailer
4872
4873         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
4874         (gtk_entry_get_width_chars): new functions, to set size request to 
4875         a given number of characters
4876
4877         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
4878
4879         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
4880         (gtk_dialog_get_has_separator): new function
4881         (run_delete_handler): fix to not emit "response" signal
4882         because we already did in the delete event handler installed
4883         at dialog creation time.
4884         
4885         * gtk/gtkdialog.h: add a has_separator property,
4886         add GTK_DIALOG_NO_SEPARATOR flag
4887
4888 2001-03-07  Havoc Pennington  <hp@redhat.com>
4889
4890         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
4891         off decorations for a window.
4892
4893         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
4894         changes
4895
4896         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
4897         to get location of PangoLayout inside the label, closes #51198
4898
4899         * gtk/testgtk.c (create_bbox): fix up button box usage
4900
4901         * gtk/testcalendar.c (create_calendar): fix up button box usage
4902
4903         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
4904
4905         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
4906
4907         * gtk/gtkhbbox.h: deprecations
4908
4909         * gtk/gtkvbbox.h: deprecations
4910
4911         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
4912         emulate deprecated gtk_button_box_get_spacing
4913
4914         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
4915         the "set global default" functions
4916         (struct _GtkButtonBox): remove "spacing" field, use the one from 
4917         GtkBox base class
4918
4919         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
4920
4921         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
4922         render the icon, return the missing image icon.
4923
4924         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
4925         image icon if the load fails.   
4926
4927         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
4928         when no image is found; should be the Netscape "missing image"
4929         icon eventually but for now is a random image
4930
4931         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
4932         role for the session manager
4933
4934         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
4935
4936         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
4937         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
4938
4939         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
4940
4941 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
4942
4943         * gtk/*.c: marshaller fixes.
4944         
4945         * gtk/gtkmarshal.list: extreme cleanup.
4946
4947         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
4948         param spec for now.
4949
4950         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
4951         where appliable.
4952
4953         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
4954         special cased autogenerated boxed types from gtktypebuiltins_ids.c
4955         which are not reference counted:
4956         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
4957         PangoFontDescription, GtkTreeIter and GtkTreePath.
4958
4959 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
4960
4961         * gtk/gtktreeselection.h: 
4962         * gtk/gtktreemodel.c:
4963         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
4964         file should be included directly, and gobject/gmarshal.h
4965         as well as gtk/gtkmarshal.h even can't be included directly.
4966
4967         * Makefile.am: grr, install gtk-config-2.0.
4968
4969         * gtk/testgtk.c:
4970         * gtk/simple.c:
4971         * gtk/gtkmenu.c:
4972         * gtk/gtkitemfactory.c: use g_object_connect() instead of
4973         passing "*signal*::*" args to gtk_widget_set().
4974         
4975         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
4976         
4977         * gtk/*.c: removed trailer arg from property setters and getters.
4978         macro fixups.
4979
4980 2001-03-07  Alexander Larsson  <alexl@redhat.com>
4981
4982         * gtk/gtklabel.c (set_markup): Removed warning
4983
4984 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
4985
4986         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
4987         field to allow you to hide cell renderers.
4988
4989         * gtk/gtkcellrenderer.c: Add support for invisible cells.
4990
4991         * gtk/gtktreeview.c: Add support for invisible cells.
4992
4993 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
4994
4995         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
4996         Add "clicked" signal back to columns.
4997
4998         * ChangeLog: remove conflict markers.
4999
5000 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
5001
5002         * gtk/gtkbutton.c: Add animation of activation by, on 
5003         activate, pressing the button, and adding a timeout that 
5004         releases the button after 250ms or on key release and
5005         emits ::clicked. (#51501)
5006
5007         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
5008         action area, we connect to ::clicked instead of ::activate
5009         so the dialog stays up through the animation.
5010
5011 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
5012
5013         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
5014         check the ignore_enter flag for the menu shell that
5015         the item is actually a child of, not for attached
5016         submenus. (#51536)
5017
5018 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
5019
5020         * gtk/gtkmain.c (gtk_propagate_event): Only do special
5021         special key-press grab handling for widgets within
5022         GtkWindows. Otherwise, fall through to normal case.
5023
5024         This prevents key events being sent twice to GtkInvisible
5025         widgets, which can cause all sorts of mischief.
5026
5027 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
5028
5029         * gtk/gtkmain.c (gtk_propagate_event): When a grab
5030         widget is in effect, give the grab widget a first
5031         crack at KEY_PRESS/RELEASE events. (#424)
5032
5033 2001-03-06  James Henstridge  <james@daa.com.au>
5034
5035         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
5036         offset for the window_state_event to point at window_state_event
5037         rather than no_expose_event.
5038
5039 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
5040
5041         * gtk/gtkimmodule.h: fix busted /* comment */
5042
5043 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
5044
5045         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
5046         object properties.
5047
5048 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
5049
5050         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
5051         add object properties.
5052
5053         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
5054         to add object properties.
5055
5056         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
5057         object properties.
5058
5059         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
5060         add object properties.
5061
5062         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
5063         object properties.
5064
5065 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
5066
5067         * gtk/gtktreemodel.c: renamed "child_toggled" to
5068         "has_child_toggled".
5069
5070         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
5071         handle new signal name.
5072
5073         * gtk/gtktreestore.c: Updated to handle new signal name.
5074         * gtk/gtklisttore.c: Updated to handle new signal name.
5075         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
5076
5077 2001-03-05  Alexander Larsson  <alexl@redhat.com>
5078
5079         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
5080         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
5081
5082 2001-03-05  Michael Natterer  <mitch@gimp.org>
5083
5084         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
5085         pixbuf-engine coincidentially also failed to make one of it's
5086         parent_class pointers static, causing overwriting of GtkLabel's
5087         parent_class pointer in pixbuf_style_class_init().
5088         (Will commit the fix to the pixbuf-engine too).
5089
5090 2001-03-05  Alexander Larsson  <alexl@redhat.com>
5091
5092         * gdk/gdkwindow.h:
5093         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
5094         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
5095         gdk_window_set_icon_list for net wmspec functionality.
5096
5097         * gdk/x11/gdkwindow-x11.c:
5098         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
5099         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
5100         gdk_window_set_icon_list.
5101         Added gdk_wmspec_change_state helper function and used it in the code.
5102         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
5103
5104         * gtk/gtkdialog.c (gtk_dialog_init):
5105         Set GDK_WINDOW_TYPE_HINT_DIALOG.
5106
5107         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
5108         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
5109
5110         * gtk/gtkwindow.c:
5111         new function gtk_window_set_type_hint.
5112         On realize, set type hint and modal hint.
5113
5114         * gtk/gtkwindow.h:
5115         Added type_hint field and gtk_window_set_type_hint.
5116
5117 2001-03-05  Alexander Larsson  <alexl@redhat.com>
5118
5119         * gtk/gtklabel.[ch]:
5120         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
5121         New function gtk_label_get_accel_keyval () to get the underline accelerator
5122         of the label. Setting the label pattern overrides other attributes.
5123
5124 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
5125
5126         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
5127         Added missing initializers to gtk_rc_style_init().
5128
5129 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
5130
5131         * gtk/gtktextview.c: fixed bug #51097 about setting 
5132         gtk_text_view_set_border_window_size() if the widget is 
5133         already realized.
5134
5135 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
5136
5137         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
5138
5139         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
5140         comment. Won't do to have duplicated doc comments between
5141         the platform subdirs.
5142
5143 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
5144
5145         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
5146           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
5147
5148         Detectable auto-repeat - make a repeating key generate
5149         press/press/press/release instead of press/release pairs.
5150
5151         If we have Xkb and XkbSetDectableAutoRepeat supports
5152         that, we do it that way. Otherwise, when we get
5153         a release event, we check ahead with XPending to see
5154         if the next key is a KeyPress with the same keycode
5155         and timestamp. (Not 100% reliable, but pretty close.)
5156           
5157 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
5158         
5159         * gtk/gtkmain.c (gtk_propagate_event): Only do special
5160         special key-press grab handling for widgets within
5161         GtkWindows. Otherwise, fall through to normal case.
5162  
5163         This prevents key events being sent twice to GtkInvisible
5164         widgets, which can cause all sorts of mischief.
5165  
5166 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
5167  
5168         * gtk/gtkmain.c (gtk_propagate_event): When a grab
5169         widget is in effect, give the grab widget a first
5170         crack at KEY_PRESS/RELEASE events. (#424)
5171  
5172 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
5173
5174         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
5175         to extend the selection. (Roughly based on patch
5176         from Jay Cox, #50939)
5177
5178         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
5179         to properly handle previous GDK_BUTTON_PRESS. 
5180         (Patch from Jay Cox, #50938)
5181
5182         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
5183         '\0' back along with the deleted text. (#51148)
5184
5185 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
5186
5187         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
5188         the group when extracting it from the X keyboard event.
5189
5190         * modules/input/Makefile.am modules/input/imipa.c: 
5191         Simple module for entering IPA. (Do we need a 
5192         gtk-stupid-input-tricks CVS module?)
5193
5194 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
5195
5196         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
5197         const.
5198
5199         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
5200
5201         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
5202         is no focus widget for the dialog currently, grab the focus as well
5203         as the default.
5204
5205         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
5206         the action area's children to iterate through, not the
5207         dialog's children.
5208
5209 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
5210
5211         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
5212         Add plug-socket tests. (Won't work worth a darn until I commit
5213         the rest of the plug-socket changes, but no reason these
5214         can't go into CVS now.)
5215
5216 2001-03-02  Havoc Pennington  <hp@redhat.com>
5217
5218         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
5219         _gdk_region_get_xrectangles()
5220
5221         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
5222
5223         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
5224
5225         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
5226         function, contributed by Ron Steinke    
5227
5228         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
5229         gdk_net_wm_supports
5230
5231         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
5232         New function, contributed by Ron Steinke
5233
5234         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
5235         used to line up the text in the entry when using the entry for
5236         editable sheet cell hacks
5237
5238         * gtk/testgtk.c (create_entry): test the activate_default setting
5239         on GtkEntry
5240
5241         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
5242         cause the entry to activate the default button for a dialog when 
5243         activated
5244         (gtk_entry_get_activates_default): new function
5245
5246 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
5247
5248         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
5249         Hwang to move call to sync_selection() up a few lines
5250         to before the row list is modified, to fix crash when
5251         removing rows in the undo_selection list.
5252
5253         (Test case provided by Daniel Elstner:
5254
5255         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
5256
5257 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
5258
5259         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
5260         of tree->root_tree in parent_set rather than _map(), 
5261         fixing #50892 in a bit better manner.
5262
5263 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
5264
5265         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
5266
5267 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
5268
5269         * gtk/gtkstyle.c : Remove duplicate fwd decl for
5270         gtk_default_draw_shadow.
5271
5272 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
5273
5274         * gdk/gdkimage.c (gdk_image_new): Remove excess 
5275         warning, make warnings more verbose, treat a error
5276         in shmat as permanent, and don't try again.
5277         (#51163, Ed Randall.)
5278
5279 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
5280
5281         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
5282         delay for the first click before starting to scroll.
5283         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
5284
5285         * gtk/gtktext.c: GtkText should have I-beam cursor. 
5286         (based on gtk-enf-990513-1.patch, Eric Fisher.)
5287
5288 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
5289
5290         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
5291         cleanup to remove some references to unused
5292         ->xoffset, ->yoffset.
5293
5294 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
5295
5296         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
5297         mask. (#51039, fix from Martin Maierhofer)
5298
5299 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
5300
5301         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
5302         for unshifted + and shifted = for non-us keyboards.
5303         Make <Control>+ and <Control>- work as well as 
5304         <Control>KP_Plus, <Control>KP_Minus for recursive
5305         open/close.  (#2682, René Seindal)
5306
5307 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
5308
5309         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
5310         the active menu item before deactivating the menu,
5311         so gtk_menu_popdown doesn't change the history. (#50964)
5312         
5313 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
5314
5315         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
5316         draw lines with text_gc rather than black_gc.
5317         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
5318
5319 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
5320
5321         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5322         Move handling of buttons fully in gtktreeviewcolumn.  This code is
5323         less interrelated then it was, but it still requires the
5324         GtkTreeView to map it.
5325
5326         * test/testtreecolumn.c: Now I can add a column to one view,
5327         remove it, add it to the another view, remove it, then re-add it
5328         to the first.  Nifty.
5329
5330 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
5331
5332         * docs/tutorial/gtk-tut.sgml: Minor corrections
5333
5334 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
5335
5336         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
5337         GtkRowReference.
5338
5339 2001-02-28  Havoc Pennington  <hp@redhat.com>
5340
5341         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
5342         draw_default
5343         (gtk_widget_draw_focus): remove this function; we could instead
5344         make it just gtk_widget_draw(), but in most cases I think the
5345         result would be broken user code, so think it's better to have
5346         that code not compile and get fixed
5347         (gtk_widget_draw_default): ditto
5348
5349         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
5350         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
5351         
5352         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
5353         widgets lose/get the default, instead of calling draw_default
5354         
5355         * docs/Changes-2.0.txt: note about all this
5356
5357         Then fixed every widget in GTK, I won't list all the filenames.
5358
5359 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
5360
5361         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
5362         _gtk_tree_row_reference_deleted.
5363         (inserted_callback): Proxy out to
5364         _gtk_tree_row_reference_inserted.
5365         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
5366         get around signal emission ordering problem.
5367
5368         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
5369         fix to work with SINGLE 
5370         (_gtk_tree_selection_internal_select_node): Major sanitization on
5371         selections.  SINGLE now seems to work.
5372
5373         * tests/Makefile.am: add testtreecolumn.c:
5374
5375         * tests/testtreecolumn.c: New test.  Mostly points out selection
5376         bugs currently, but will test columns later.
5377
5378         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
5379         selection bug.  I hate touching this code -- it's scary.
5380
5381 2001-02-26  Havoc Pennington  <hp@redhat.com>
5382
5383         * gtk/testgtk.c: test the window state stuff
5384
5385         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
5386         window come to the user's attention as if it were just created
5387         (gtk_window_iconify): new function
5388         (gtk_window_deiconify): new function
5389         (gtk_window_stick): new function
5390         (gtk_window_unstick): new function
5391         (gtk_window_maximize): new function
5392         (gtk_window_unmaximize): new function
5393
5394         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
5395
5396         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
5397
5398         * gdk/x11/gdkevents-x11.c: create window state events when
5399         appropriate
5400         (gdk_wmspec_supported): new function
5401
5402         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
5403         iconification before showing the window
5404         (gdk_window_deiconify): new function
5405         (gdk_window_stick): new function
5406         (gdk_window_unstick): new function
5407         (gdk_window_maximize): new function
5408         (gdk_window_unmaximize): new function
5409
5410         * gdk/gdkwindow.c: store the window state in the window; 
5411         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
5412         window->mapped.
5413         (gdk_window_get_state): return the current window state
5414
5415         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
5416         (gdk_event_get_state): handle GDK_WINDOW_STATE
5417         (gdk_synthesize_window_state): function to create the window state
5418         events
5419
5420         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
5421         event, for changes to "window state" such as maximized, sticky, 
5422         etc.
5423         
5424         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
5425         focuses a window
5426
5427         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
5428         finds out if we support a given WM spec hint
5429
5430 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
5431
5432         * docs/faq/gtk-faq.sgml: New question re memory leaks.
5433
5434 2001-02-25  Hans Breuer  <hans@breuer.org>
5435
5436         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
5437         cause we want to loose those prototypes only in the latter case
5438
5439         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
5440         GdkPixmapImplWin32 because it itsn't derived from it. Use the
5441         impl member variable instead
5442
5443         * gtk/gtk.def : updated
5444
5445         * gtk/gtklist.c : 
5446         * gtk/gtkmenus.c : include <string.h> for memset ()
5447
5448         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
5449         for everthing built here, but for gtk-x.x.dll only. This solves
5450         problem of indifferent gtk type definitions
5451
5452 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
5453
5454         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
5455
5456 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
5457
5458         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
5459         column that is exposed.
5460
5461         (_gtk_tree_view_update_size): Changed name from set_size, and
5462         changed function to do more work, and not force people calling it
5463         to figure out the size.  Simplifies a lot of code elsewhere.
5464
5465 2001-02-23  Alexander Larsson  <alexl@redhat.com>
5466
5467         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
5468         return solid masks for xpms that have no transparent color.
5469         This makes the ..._create_from_xpm... API backwards
5470         compatible.
5471
5472 2001-02-23  Tor Lillqvist  <tml@iki.fi>
5473
5474         * README.win32: Update. Mention the gtk-1-3-win32-production
5475         branch.
5476
5477         * gdk/win32/bdfcursor.c: New file. A program that generates
5478         xcursors.h. Thanks to Stefan Ondrejicka.
5479
5480         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
5481         compact format.
5482
5483         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
5484
5485         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
5486         function, uses xcursors.h.
5487         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
5488         cursor from inline data instead of using LoadCursor() to generate
5489         it from a resource.
5490
5491         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
5492         event, must check the Windows message for mouse button state, as
5493         the GDK event state might not have been built if it is
5494         undelivered. Remove one goto.
5495
5496         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
5497         SetCursor() if the current cursor as returned by GetCursor() is
5498         the window's previous cursor. The ChildWindowFromPoint() test
5499         apparently didn't work correctly.
5500
5501         * gdk/win32/rc/*.cur: Remove.
5502
5503         * gdk/win32/rc/gdk.rc.in: Remove cursors.
5504
5505         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
5506
5507         * gtk/makefile.{mingw,msc}.in: Updates.
5508
5509 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
5510
5511         * gtk/gtktreemodel.h: add functions for signal emission.
5512
5513         * gtk/gtktreestore.c: move to use above functions instead of
5514         g_signal_emit.
5515
5516         * gtk/gtkliststore.c: ditto
5517
5518 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
5519
5520         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
5521         GObject instead of GtkObject.
5522
5523         * gtk/gtkliststore.c: ditto.
5524
5525         * gtk/gtktreemodelsort.c: ditto.
5526
5527         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
5528         GtkTreeModelIface, instead of in each model.
5529
5530 2001-02-21  Havoc Pennington  <hp@redhat.com>
5531
5532         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
5533         unbreak this function
5534
5535         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
5536         properties
5537
5538         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
5539         properties
5540
5541         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
5542         properties
5543
5544         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
5545         mean unset the max length
5546
5547 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
5548
5549         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
5550         Changed name to be set_cell_data_func to make it clear what
5551         the functino does.  Close bug #51069.
5552
5553 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
5554
5555         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
5556         have memory actually freed.  Keeps box running longer.
5557
5558 2001-02-21  Alexander Larsson  <alexl@redhat.com>
5559         
5560         * gtk/gtkseparatormenuitem.[ch]:
5561         Added new menu separator item. The drawing and size handling
5562         is still done in GtkMenuItem, but the API is a bit more sane.
5563         
5564         * gtk/Makefile.am:
5565         Add gtkseparatormenuitem.[ch].
5566
5567         * gtk/gtk.h:
5568         Add gtkseparatormenuitem.h.
5569         
5570         * gtk/gtkentry.c:
5571         * gtk/gtkmenufactory.c:
5572         * gtk/gtktextview.c:
5573         Use the new API for menu separators.
5574         
5575         * demos/gtk-demo/menus.c (create_menu):
5576         Add some GtkSeparatorMenuItem demo code.
5577
5578 2001-02-20  Havoc Pennington  <hp@redhat.com>
5579
5580         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
5581         Lee Mallabone
5582
5583         * gtk/gtkarrow.c: Convert to new property API, patch from 
5584         Lee Mallabone
5585
5586 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
5587
5588         * tests/testtreeview.c (toggled_callback): fix to reflect change
5589         in GtkTreeModelStore.
5590
5591 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
5592
5593         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
5594         function to create an icon set from a pixbuf.
5595
5596 2001-02-20  Alexander Larsson  <alexl@redhat.com>
5597
5598         * gtk/gtkcellrenderertext.[ch]:
5599         Add a "markup" property.
5600
5601         * gtk/treestoretest.c:
5602         Use the markup property, remove some leftover stuff from
5603         GtkTreeModelMapping.
5604
5605 2001-02-20  Alexander Larsson  <alexl@redhat.com>
5606
5607         * gtk/gtklabel.c (gtk_label_set_selectable):
5608         Queue a redraw if the selectable setting was changed.
5609
5610 2001-02-20  Alexander Larsson  <alexl@redhat.com>
5611
5612         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
5613         Actually copy the whole gc, not just the public parts.
5614         
5615         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
5616         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
5617         labels.
5618
5619 2001-02-19  Havoc Pennington  <hp@pobox.com>
5620
5621         * gdk/gdkwindow.c: docs
5622
5623         * gdk/gdkrgb.c: docs
5624
5625         * gdk/gdkregion-generic.c: docs
5626
5627         * gdk/gdkgc.c (gdk_gc_set_values): docs
5628
5629         * gdk/gdkdraw.c: docs
5630
5631         * gdk/gdkdrawable.h: deprecate drawable get/set data
5632
5633 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
5634
5635         * demos/gtk-demo/dialog.c: Add simple new demo.
5636
5637 2001-02-19  Havoc Pennington  <hp@redhat.com>
5638
5639         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
5640         insert_child_anchor signal, bug #50245
5641
5642         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
5643         from create_child_anchor, so the anchor is passed in
5644
5645         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
5646         (_gtk_widget_segment_new): have the child anchor object passed in, 
5647         instead of creating it.
5648
5649         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
5650         to gtk_text_buffer_get_modified
5651
5652 2001-02-19  Havoc Pennington  <hp@redhat.com>
5653
5654         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
5655         changed GLib without fixing GTK
5656
5657         * gtk/gtkrange.h: Rename all the stupid implementation detail 
5658         functions to have an underscore in front. Most of them should 
5659         probably just go away, but for starters don't export them.
5660         Bug #50482
5661
5662 2001-02-19  Havoc Pennington  <hp@redhat.com>
5663
5664         * gdk/gdkcolor.h: test was backward, so deprecated functions were
5665         excluded by default
5666
5667         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
5668         clean up the old code a bit
5669
5670         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
5671         inconsistent state
5672
5673         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
5674         draw inconsistent state
5675
5676         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
5677         (create_menu): add inconsistent test
5678
5679         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
5680         new function
5681         (gtk_check_menu_item_get_inconsistent): new function
5682         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
5683         state (using etched in for now)
5684
5685         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
5686         draw inconsistent state
5687
5688         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
5689         function, used when the user has selected a range of stuff in
5690         different states
5691         (gtk_toggle_button_get_inconsistent): accessor for that
5692         (gtk_toggle_button_paint): draw inconsistent state (etched in?
5693         don't know what else to do)
5694
5695 2001-02-19  Hans Breuer <hans@breuer.org>
5696
5697         * gtk/gtk.def : updated exported symbols
5698
5699         * gtk/makefile.msc.in : updated
5700
5701         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
5702         a colormap, when invoked from testgtk::entry. I'm not sure where
5703         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
5704         avoids immediate crashing ...
5705
5706         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
5707         any objections ?
5708
5709         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
5710         0 parameter. At least msvc doesn't like macros with var args. 
5711         I simply removed the extra 0, was it a feature or a typo ?
5712
5713         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
5714         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
5715         because the value assignment to the internal struct wasn't working.
5716         I'm not absolutely sure. The problem could have been resolved by
5717         changing the "func" declartion in the struct, but was the pointer
5718         to the function pointer intended ?
5719
5720         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
5721
5722         * gdk/gdk.def : updated exported symbols
5723
5724         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
5725         only use SetDIBitsToDevice if there is a palette at the drawable
5726         and the image is GDK_VISUAL_PSEUDO_COLOR
5727
5728         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
5729
5730         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
5731
5732         * gdk/*/makefile.msc : updated
5733
5734 2001-02-19  Havoc Pennington  <hp@redhat.com>
5735
5736         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
5737         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
5738
5739         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
5740         (gdk_key_repeat_restore): nuke
5741
5742         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
5743         (gdk_init_check): no atexit func
5744
5745         * gdk/gdkrgb.h: mark some stuff deprecated
5746
5747         * gdk/gdkcolor.h: mark some stuff deprecated
5748         
5749         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
5750
5751         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
5752
5753 2001-02-16  Havoc Pennington  <hp@redhat.com>
5754
5755         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
5756         scroll steps.
5757
5758         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
5759         steps, and add Ctrl-arrow shortcuts for paging visually as with
5760         HScale, since Page Up and Page Down move logically.
5761
5762         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
5763         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
5764         
5765         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
5766         steps
5767         (gtk_range_scroll): handle the visual steps
5768
5769         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
5770         scroll steps
5771
5772         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
5773         steps, not the logical ones.
5774
5775         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
5776         (scroll_vertical): handle up/down steps
5777
5778 2001-02-19 Alexander Larsson  <alexl@redhat.com>
5779
5780         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
5781         Copy data and free data with free().
5782
5783         * gdk-pixbuf/gdk-pixbuf.c:
5784         * gdk-pixbuf/io-jpeg.c:
5785         * gdk-pixbuf/io-png.c:
5786         Use g_try_malloc/g_free instead malloc/free.
5787         
5788         * gdk-pixbuf/test-gdk-pixbuf.c:
5789         Must... initialize... gobject...
5790         
5791         * gdk-pixbuf/pixops/timescale.c:
5792         * gtk/gtkcalendar.c:
5793         Use g_malloc instead of malloc.
5794         
5795 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
5796
5797         * gtk/testgtkrc:
5798         Comment out property assignments, these don't work yet.
5799
5800 2001-02-17  Havoc Pennington  <hp@pobox.com>
5801
5802         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
5803         bit.
5804
5805 2001-02-17  Havoc Pennington  <hp@pobox.com>
5806
5807         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
5808         shadowed variables that had broken size request in some cases,
5809         leading to bogus tooltips (#50996)
5810
5811 2001-02-06  Jon K Hellan  <hellan@acm.org>
5812
5813         Implement fast browsing of tooltips, bug #50619
5814         
5815         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
5816         and last_popdown
5817         
5818         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
5819         use_sticky_delay and last_popdown.
5820         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
5821         time of popdown.
5822         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
5823         is NULL.
5824         (gtk_tooltips_recently_shown): New static function.  Return true
5825         if < sticky_delay has elapsed since last popdown.
5826         (gtk_tooltips_event_handler): Display window after sticky_delay
5827         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
5828         since last popdown.
5829         
5830 2001-02-17  Havoc Pennington  <hp@pobox.com>
5831
5832         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
5833         instead of (). #6394
5834
5835         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
5836         G_CONST_RETURN, make it return by reference, #50473
5837         
5838 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
5839
5840         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
5841         generated ENTER_NOTIFY event with 0, otherwise not explicitely
5842         setup fields contain garbage (e.g. subwindow, breaking
5843         gdk_drawable_ref() upon event copy).
5844         (gtk_menu_stop_navigating_submenu_cb): same here.
5845
5846         * gtk/gtklist.c (gtk_list_vertical_timeout): 
5847         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
5848         * gtk/gtkclist.c (vertical_timeout): 
5849         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
5850         default-zero-intialization for unions to memset(,0,), as unions are
5851         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
5852         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
5853
5854         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
5855         g_closure_sink() warning.
5856
5857         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
5858         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
5859         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
5860         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
5861         
5862 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
5863
5864         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
5865         gtk_*_store_get, and moved to GtkTreeModel.
5866
5867         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
5868
5869         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
5870
5871         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
5872
5873         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
5874         set the func.
5875
5876         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
5877         freeze/thaw notify between setting all the properties for a cell.
5878
5879         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
5880
5881 2001-02-15  Havoc Pennington  <hp@redhat.com>
5882
5883         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
5884         the X coordinates so they're with respect to the line, rather than 
5885         with respect to the layout.
5886
5887         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
5888         Mallabone
5889
5890         * gtk/testgtk.c (create_range_controls): add vscale tests, 
5891         and inverted test
5892
5893         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
5894         #50806
5895
5896         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
5897
5898         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
5899         gtk_text_iter_is_end
5900
5901         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
5902         rename gtk_text_buffer_get_end_iter
5903
5904         * gtk/testgtk.c (create_labels): Add test for selectable
5905
5906         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
5907         the selection stuff. This code is kind of broken since it doesn't 
5908         use the theme engine.
5909
5910         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
5911         fix infinite loop and y offset problem
5912         (gdk_draw_layout_line_with_colors): fix foreground color handling
5913
5914         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
5915         that makes the label selectable.
5916         
5917         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
5918         layout when the style is set, since fonts etc. could have changed.      
5919
5920 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
5921
5922         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
5923
5924         * gtk/gtktreemodelsimple.[ch]: removed.
5925
5926 2001-02-16  Alexander Larsson  <alexl@redhat.com>
5927
5928         * gtk/gtktreemodelmapping.[ch]:
5929         New files. Implement GtkTreeModelMapping.
5930         
5931         * gtk/Makefile.am:
5932         Add gtktreemodelmapping.[ch].
5933         
5934         * gtk/gtk.h:
5935         Add gtktreemodelmapping.h
5936
5937         * gtk/treestoretest.c:
5938         Test the GtkTreeModelMapping
5939
5940 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
5941
5942         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
5943         have a demo, we might as well pass in real values.  Thanks to
5944         clahey for pointing this out.
5945
5946 2001-02-14  Havoc Pennington  <hp@pobox.com>
5947
5948         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
5949         "static" to a private function
5950         (gtk_image_menu_item_class_init): remove destroy handler,
5951         add "image" object property
5952
5953 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
5954
5955         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
5956         Add a shortcut if the window and the current clip_region doesn't
5957         overlap. This is needed when there are a lot of windows in a
5958         window. The layout test in testgtk is a good test.
5959
5960         * gdk/linux-fb/gdkwindow-fb.c:
5961         Whitespace fix.
5962
5963 2001-02-13  Sven Neumann  <sven@convergence.de>
5964
5965         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
5966
5967 2001-02-13  Alexander Larsson  <alexl@redhat.com>
5968
5969         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
5970         Don't reference last_cursor if it is null. Fixes crash when rotating
5971         the screen before having moved the mouse.
5972
5973         * gdk/linux-fb/gdkcc-fb.c: Zapp!
5974
5975         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
5976
5977         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
5978         when using 90 or 270 degrees rotation.
5979
5980 2001-02-12  Havoc Pennington  <hp@pobox.com>
5981
5982         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
5983         it always set the foreground, even if we were only using
5984         a stipple.
5985         (gdk_draw_layout_line_with_colors): new function, allow
5986         override colors
5987         (gdk_draw_layout_with_colors): new function, allow override
5988         colors
5989         (gdk_pango_layout_line_get_clip_region): function to get the clip
5990         region for a logical text range
5991         (gdk_pango_layout_get_clip_region): get the clip region for a
5992         logical text range
5993
5994         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
5995         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
5996         the right number of arguments.
5997
5998         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
5999         enhance the function to check that node data corresponds to a 
6000         view still belonging to the tree.
6001
6002         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
6003         GtkTreePath
6004         (gtk_tree_view_inserted): ditto
6005         (gtk_tree_view_child_toggled): ditto
6006
6007         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
6008         simplify this code.
6009
6010         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
6011         a PangoAttrList
6012
6013         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
6014
6015         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
6016
6017         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
6018         size in the size request 
6019         (gtk_menu_bar_size_allocate): consider toggle size here
6020
6021         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
6022         that displays a widget in the toggle slot
6023
6024         * gtk/testgtk.c: test GtkImageMenuItem
6025
6026         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
6027         
6028         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
6029         request and allocation
6030
6031         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
6032
6033         * gtk/gtkcheckmenuitem.c
6034         (gtk_check_menu_item_toggle_size_request): ditto
6035         
6036 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
6037
6038         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
6039         reference.
6040
6041         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
6042         and refuse to initialize GTK+ if they fail.
6043
6044 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
6045
6046         * configure.in: Add check for gtk-doc version.
6047
6048 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
6049
6050         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
6051         where the xpad/ypad was only being used on one side!
6052
6053 2001-02-11  Tor Lillqvist  <tml@iki.fi>
6054
6055         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
6056         function, copied from X11 version.
6057
6058         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
6059         DestroyCursor failures. The reason for the problem (despite the
6060         inconsistent messages from GetLastError()) was that
6061         DestroyCursor() cannot be called while a cursor is set in a
6062         window. Set the new cursor first and then destroy the old one.
6063         Thanks to jpe@archaeopteryx.com.
6064
6065         * gdk/win32/gdkcc-win32.c: Remove.
6066
6067         * gdk/win32/Makefile.am: Remove from here, too.
6068         
6069         * gdk/gdk.def
6070         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
6071
6072         * gtk/gtk.def
6073         * gtk/makefile.mingw.in: Updates.
6074
6075 2001-02-08  Havoc Pennington  <hp@redhat.com>
6076
6077         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
6078         add a widget to a bin that already has a child.
6079
6080         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
6081
6082         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
6083         
6084         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
6085
6086         * gdk/gdk.h: remove gdkcc.h
6087
6088         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
6089
6090         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
6091         GdkPixbuf, since the previous implementation was GdkColorContext
6092         dependent.
6093
6094         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
6095         
6096 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
6097
6098         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
6099         a sane value!
6100
6101 2001-02-08  Havoc Pennington  <hp@redhat.com>
6102
6103         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
6104         lighten them.
6105
6106 2001-02-08  Havoc Pennington  <hp@redhat.com>
6107
6108         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
6109         validation idle
6110
6111         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
6112         cell renderer
6113
6114         * demos/pixbuf-demo.c (timeout): remove deprecated
6115         gtk_widget_draw
6116
6117         * demos/testpixbuf-save.c (main): remove deprecated
6118         gtk_drawing_area_size
6119
6120         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
6121         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
6122         at the start of the allocation.
6123         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
6124         unsetup or NULL model.
6125
6126         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
6127         even/odd/sorted cells in the tree view.
6128
6129         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
6130         bugfixes
6131
6132         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
6133         backgrounds with draw_flat_box using different detail for even/odd
6134         rows.
6135
6136         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
6137         row, so we can draw the alternating colors thing
6138
6139         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
6140         property from a synonym property, notify for the synonym.
6141         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
6142         (gtk_text_tag_get_property): Always return the font, even if
6143         all its fields aren't set
6144
6145         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
6146         store the attr list; it leaves us with no way to change attributes
6147         in _render according to the render flags, and no way to implement
6148         get_property. Instead store all the specific text attributes. 
6149         Separate whether an attribute is enabled from its value. Sync all
6150         properties with GtkTextTag, make them all consistent, etc.
6151
6152         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
6153         renderers can highlight the sort row/column     
6154
6155         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
6156         accessor functions to get values; this has the side effect of
6157         showing up which accessor functions were missing. Added those.
6158
6159         * gtk/gtktreeviewcolumn.h: Replace set_justification with
6160         set_alignment, to be consistent with GtkLabel, GtkMisc
6161
6162         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
6163         arrow.
6164
6165         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
6166
6167         * gtk/gtktreesortable.h: updates in here
6168
6169 2001-02-07  Sven Neumann  <sven@convergence.de>
6170
6171         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
6172         pango dimensions after painting the background. We used to draw
6173         gigantic flat boxes here.
6174
6175 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
6176
6177         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
6178         error introduced with earlier commit) (pointed out by
6179         Ollie Lho)
6180
6181 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
6182
6183         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
6184         which are no longer necessary.
6185
6186 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
6187
6188         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
6189
6190 2001-02-04  Tor Lillqvist  <tml@iki.fi>
6191
6192         * gdk/gdk.def
6193         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
6194         Provide dummy implementations.
6195
6196 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
6197
6198         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
6199
6200         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
6201         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
6202         deprecated this function.
6203
6204         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
6205         argument.
6206
6207 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
6208
6209         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
6210
6211 2001-02-03  Havoc Pennington  <hp@pobox.com>
6212
6213         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
6214         Mikael Hermansson with patch from Mikael (if there was a toggle
6215         start one after the first character in the range, this function
6216         was broken). Bug #50380
6217
6218 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
6219
6220         * configure.in: Remove confusing comment about X11.
6221
6222 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
6223
6224         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
6225         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
6226         
6227 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
6228
6229         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
6230         it breaks things on BSD. If you want to compile GTK+ with
6231         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
6232         when configuring, since GTK+ simply can't be "pure ANSI" 
6233         in the header files it uses. (#8170, Greg Hudson)
6234
6235 2001-02-02  Havoc Pennington  <hp@redhat.com>
6236
6237         * gtk/gtkwindow.c: docs
6238
6239         * gtk/gtkwidget.c: docs
6240         (gtk_widget_set_colormap): add a reference to the colormap
6241         (gtk_widget_get_default_colormap): add a reference to the colormap
6242
6243         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
6244
6245         * gtk/gtktextiter.c: docs
6246
6247         * gtk/gtkmain.c (gtk_propagate_event): docs
6248
6249         * gtk/gtkpaned.c (gtk_paned_get_position): docs
6250         (gtk_paned_set_position): docs
6251
6252         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
6253         sort interface, no implementation yet.
6254
6255         * demos/testpixbuf.c (new_testrgb_window): replace
6256         gtk_drawing_area_size() with gtk_widget_set_usize()
6257
6258         * demos/testpixbuf-drawable.c (main): ditto
6259         
6260         * gtk/testgtk.c: remove use of GtkStatusbarMsg
6261
6262         * gtk/gtktextbuffer.c: docs
6263
6264         * gtk/gtkstock.c: docs
6265
6266         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
6267
6268         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
6269
6270         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
6271         
6272         * gtk/gtkimage.c: add some docs in here
6273         (gtk_image_size_request): change name of
6274         gtk_widget_render_stock_icon
6275         (gtk_image_get_icon_set): don't dup returned string
6276         (gtk_image_get_icon_set): don't dup returned string
6277
6278         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
6279         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
6280         and gtkiconfactory.h functions
6281
6282         * gtk/gtkiconfactory.c: add some docs in here
6283
6284         * gtk/gtkmain.c (gtk_get_default_language): document
6285         (gtk_get_current_event): document
6286         (gtk_get_current_event_state): document
6287         (gtk_get_event_widget): document
6288
6289         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
6290
6291         * gtk/gtkcontainer.c: Add some documentation
6292         (gtk_container_add): give a more explanatory warning on adding an
6293         already-parented widget, this is kind of a FAQ and also a common
6294         typo that's easier to debug with a nice warning 
6295
6296         * gtk/gtkcellrenderertoggle.c
6297         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
6298         adding this, it's useless
6299         (gtk_cell_renderer_toggle_set_active): remove
6300         (gtk_cell_renderer_toggle_get_radio): add
6301
6302         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
6303         the NULL cell renderer, that doesn't make any sense to me. 
6304
6305         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
6306         demo code should never use deprecated features.
6307
6308         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
6309         code should never use deprecated features.
6310
6311         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
6312         gtk_widget_queue_clear_area deprecated
6313
6314         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
6315         deprecated
6316
6317         * gtk/gtklabel.h: mark gtk_label_get() deprecated
6318
6319         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
6320         a GdkImage deprecated, replaced by new consistently-named
6321         functions       
6322
6323         * gtk/gtkmain.h: Mark gtk_exit() deprecated
6324
6325         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
6326
6327         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
6328         deprecated
6329
6330         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
6331         so it won't appear in docs and confuse people.
6332
6333         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
6334
6335         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
6336         macros deprecated. (can't mark the type itself deprecated, since
6337         GtkProgressBar is not deprecated and we need the type decl to use
6338         GtkProgressBar)
6339
6340         * gtk/gtkpixmap.h: Mark deprecated
6341
6342         * gtk/gtkoldeditable.h: Mark deprecated
6343
6344         * gtk/gtklist.h: Mark deprecated
6345
6346         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
6347         for anything anymore.
6348
6349         * gtk/gtkctree.h: Mark deprecated
6350
6351         * gtk/gtkclist.h: Mark deprecated
6352
6353         * gtk/gtkpreview.h: Mark deprecated
6354
6355         * gtk/gtkpacker.h: Mark deprecated
6356
6357         * gtk/gtktipsquery.h: Mark deprecated
6358
6359         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
6360
6361         * gtk/gtkvruler.h: Add comment that it will move out of GTK
6362
6363         * gtk/gtkhruler.h: Add comment that it will move out of GTK
6364
6365         * gtk/gtkruler.h: Add comment that it will move out of GTK
6366
6367         * gtk/gtkgamma.h: Add comment that it will move out of GTK
6368
6369         * gtk/gtkcurve.h: Add comment that it will move out of GTK
6370
6371 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
6372
6373         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
6374         gdk_colormap_sync private since it was never exported
6375         in a header file.
6376
6377         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
6378         colormap->colors[] for StaticGray, StaticColor colormaps.
6379
6380         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
6381         was being used as if it was image->bits_per_pixel.
6382
6383         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
6384         for the image in the GdkImage structure since it isn't
6385         reconstructable, and we need it to handle packed types
6386
6387         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
6388         the assumption that on Win32 image->bits_per_pixel == image->depth,
6389         always.
6390
6391         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
6392
6393         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
6394         warning message if no converter can be found. 
6395
6396 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
6397
6398         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
6399         chars to isupper() / tolower(). (#567)
6400
6401         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
6402         to clear up 64-bit warnings. (#567)
6403
6404 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
6405
6406         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
6407         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
6408
6409         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
6410         since some people set $(libdir) separately. (#1290, David Kaelbling)
6411
6412 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
6413
6414         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
6415         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
6416         MAXPATHLEN, but the code here depends on a fixed value.)
6417         (#4524)
6418
6419 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
6420
6421         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
6422         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
6423
6424 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
6425
6426         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
6427         viewable there is no way that moving the node will cause the 
6428         focus row to become not viewable, so omit check on the visibility
6429         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
6430
6431 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
6432
6433         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
6434         selection before inserting new text.
6435
6436 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
6437
6438         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
6439         Make the sensitivity of the reparented child track that of
6440         the original parent menu item. (#34218, David Hodson)
6441
6442         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
6443         the case where the current item is destroyed properly.
6444
6445         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
6446         some edge cases with child-less menuitems.
6447         
6448 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
6449
6450         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
6451         key pop down window. (#12074, Jon K Hellan)
6452
6453 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
6454
6455         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
6456         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
6457         The solution here isn't perfect - you get an extraneous
6458         emission of "toggle", which could conceivably confuse an app,
6459         but better than the current situation. LXR search seems to
6460         indicate that no apps in GNOME CVS connect to "toggle".
6461
6462 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
6463
6464         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
6465         gtk_public_h_sources to directly here to avoid warning when
6466         building srcdir != builddir. (#9656)
6467
6468 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
6469
6470         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
6471         handlers in gtkrange.c return the proper values (TRUE == handled)
6472         (#10316).
6473
6474         This is just the tip of the iceberg, but gtkrange.c is the
6475         most common place where the propagation is problematical,
6476         and also a place where it is almost certainly safe to change
6477         this in the stable branch.
6478
6479         (You don't want right click popups on a range control or anything...)
6480
6481 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
6482
6483         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
6484         area on focus out, even if a background pixmap isn't set.
6485         (#13941)
6486         
6487 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
6488
6489         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
6490         to deal with setting the shape properly when scrolling arrows are
6491         turned on, but not visible because there is sufficient space.
6492         (#13432)
6493
6494 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
6495
6496         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
6497         items with submenus, destroy the item along with the submenu.
6498         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
6499         properly.
6500
6501         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
6502         later.
6503
6504 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
6505
6506         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
6507         the focus widget sometimes wasn't drawn with the default if there
6508         was no default widget.
6509
6510         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
6511         unreference pixmaps. 
6512
6513         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
6514         for some extra safety.
6515
6516 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
6517
6518         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
6519         the text of a cell to the old pointer value better, by
6520         copying the new text before freeing the old text. Some code
6521         cleanup. (#8079, Karl Nelson)
6522
6523 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
6524
6525         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
6526         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
6527
6528 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
6529
6530         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
6531         item from a menu, check to see if it matches 
6532         menu->old_active_menu_item, and if so, unref and clear
6533         old_active_menu_item (Patch from Pavel Cisler)
6534
6535         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
6536         menu_shell->active_menu_item, if it is the child being
6537         removed. (Patch based on that of Gene Ragan, #50337)
6538
6539 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
6540
6541         * gdk/linux-fb/gdkselection-fb.c: 
6542         * gdk/linux-fb/gdkcolor-fb.c: 
6543         * gdk/linux-fb/gdkdrawable-fb2.c: 
6544         * gdk/linux-fb/gdkfont-fb.c: 
6545         * gdk/linux-fb/gdkim-fb.c: 
6546         * gdk/linux-fb/gdkinput.c: 
6547         * gdk/linux-fb/gdkkeyboard-fb.c: 
6548         * gdk/linux-fb/gdkmain-fb.c: 
6549         * gdk/linux-fb/gdkrender-fb.c: 
6550         A bunch of whitespace cleanup.
6551         
6552 2001-01-30  Havoc Pennington  <hp@pobox.com>
6553
6554         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
6555         #ifdef GTK_ENABLE_BROKEN.
6556
6557         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
6558         GTK_ENABLE_BROKEN just before including the broken headers.
6559         
6560         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
6561         deprecated types registered.
6562
6563         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
6564         we have to test the broken stuff.
6565
6566         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
6567         
6568 2001-01-30  Havoc Pennington  <hp@redhat.com>
6569
6570         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
6571         here where prev pointer was set to the wrong thing
6572
6573         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
6574         (gtk_tree_path_is_descendant): new function
6575
6576         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
6577         cached length
6578         (gtk_list_store_get_iter): don't modify iter if we can't get the
6579         path.
6580
6581         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
6582         
6583         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
6584         GtkTreeDragDest
6585
6586         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
6587         was causing segfault
6588
6589         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
6590         pointer to NULL
6591
6592         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
6593
6594         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
6595         on returning FALSE
6596         (gtk_list_store_iter_children): ditto
6597         (gtk_list_store_iter_nth_child): ditto
6598         (gtk_list_store_iter_nth_child): ditto
6599         (gtk_list_store_iter_parent): ditto
6600
6601         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
6602         on iter->user_data != NULL instead of silently accepting it.
6603         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
6604         we are returning TRUE.
6605         (gtk_tree_store_iter_children): ditto
6606         (gtk_tree_store_iter_nth_child): ditto
6607         (gtk_tree_store_iter_parent): ditto
6608         (gtk_tree_store_insert): remove handling of parent->user_data ==
6609         NULL, replace with parent == NULL       
6610
6611         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
6612         and a comment explaining things
6613
6614         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
6615         interface support to GtkTreeStore.
6616
6617         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
6618         FALSE if no prev, fix
6619
6620         * gtk/gtktreeview.c (set_source_row): use a row reference
6621         (set_dest_row): use a row reference
6622
6623 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
6624
6625         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
6626         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
6627         (gtk_tree_selection_select_iter): The same as above.
6628
6629 2001-01-26  Havoc Pennington  <hp@redhat.com>
6630
6631         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
6632         which holds a handle to a specific row (particular set of values
6633         in the model, i.e. pointer-identity row).
6634
6635         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
6636         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
6637         Still need to use it for the src/dest row saved on the drag context.
6638
6639 2001-01-26  Havoc Pennington  <hp@redhat.com>
6640
6641         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
6642
6643         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
6644         not offset by TREE_VIEW_HEADER_HEIGHT
6645         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
6646         TREE_VIEW_HEADER_HEIGHT
6647
6648         * configure.in (included_loaders): for me, --with-included-loaders
6649         generates the error "the specified loader yes does not exist",
6650         i.e. the arg defaults to "yes", so change test for value ""
6651         to test for value "yes", and include all loaders in that case.
6652
6653         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
6654
6655         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
6656         handle TREE_VIEW_VERTICAL_SEPARATOR
6657         (gtk_tree_view_bin_expose): fix to consider the row offset as
6658         pointing halfway into vertical separator.       
6659         (gtk_tree_view_draw_node_focus_rect): ditto
6660
6661         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
6662         --gtk-debug=updates, which causes gdk_window_set_debug_updates
6663         (TRUE) to be called.
6664
6665         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
6666         debug mode where the invalid region is colored in on invalidate,
6667         so you can see the flicker and know whether your redraw code is 
6668         doing a good job.
6669
6670         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
6671         tree window coordinates (clip rect is in tree window coords)
6672
6673         * gtk/Makefile.am: add gtktreednd.[hc]
6674
6675         * gtk/gtkliststore.c: implement gtktreednd interfaces.
6676
6677         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
6678         drag-and-drop data operations on a model (so we can set up tree
6679         drag-and-drop automatically)
6680
6681         * gtk/testgtk.c: Add a window to change sensitivity in the
6682         GtkLabel test; add a way to change the entry frame in GtkEntry
6683         test
6684
6685         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
6686         (gtk_entry_get_has_frame): new functions to remove the frame
6687         around an entry
6688         (gtk_entry_size_request): shrink requisition if no frame
6689         (gtk_entry_draw_focus): don't draw frame if no frame
6690
6691         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
6692         checks inside a cell renderer
6693         (gtk_default_draw_option): ditto for options
6694
6695         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
6696         children from the alignment, not the button
6697         (gtk_tree_view_column_init): ref/sink the column, to emulate
6698         GObject refcounting.
6699
6700         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
6701         
6702         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
6703         Use theme functions to draw the toggles 
6704
6705         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
6706
6707         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
6708         GdkPangoAttrEmbossed to use in rendering insensitive text
6709
6710         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
6711
6712         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
6713         using new GDK features
6714         
6715 2001-01-24  Alexander Larsson  <alexl@redhat.com>
6716
6717         * gtk/gtkimage.c:
6718         Splitted gtk_image_clear into gtk_image_clear() and
6719         gtk_image_reset(). Call gtk_image_clear() in ::destroy
6720         to avoid leaks.
6721
6722         * gtk/gtklabel.c (set_markup):
6723         Don't leak text.
6724
6725         * gtk/gtktextlayout.c:
6726         Always free display->shaped_objects.
6727
6728         * gtk/testgtk.c (create_clist):
6729         Don't leak custom style.
6730
6731 2001-01-23  Alexander Larsson  <alexl@redhat.com>
6732
6733         * gtk/gtkcolorsel.c (grab_color_at_mouse):
6734         Don't leak image. Simplify using gdk_colormap_query_color().
6735         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
6736
6737         * linux-fb/gdkcolor-fb.c:
6738         Implemented gdk_colormap_query_color.
6739
6740 2001-01-23  Alexander Larsson  <alexl@redhat.com>
6741
6742         * linux-fb/gdkcursor-fb.c:
6743         Don't leak built-in cursors.
6744
6745         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
6746         Don't leak tmp_points.
6747
6748         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
6749         Don't modify desc. Don't leak font if the PangoFont
6750         isn't found.
6751         
6752         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
6753         Free dash_list.
6754
6755         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
6756         Don't leak string.
6757         
6758 2001-01-20  Havoc Pennington  <hp@pobox.com>
6759
6760         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
6761         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
6762         me, matches Pango
6763
6764 2001-01-22  Havoc Pennington  <hp@redhat.com>
6765
6766         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
6767
6768         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
6769
6770         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
6771         Remove, move back to gdk-pixbuf
6772
6773         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
6774         to all the word functions
6775
6776         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
6777         before doing anything on NULL layout or if we don't have the focus
6778
6779         * gtk/testtext.c (fill_example_buffer): "justification"
6780
6781         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
6782         to be called "justification" not "justify"
6783
6784         * demos/gtk-demo/textview.c (create_tags): "justification"
6785         
6786         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
6787
6788 2001-01-22  Alexander Larsson  <alexl@redhat.com>
6789
6790         * gdk/gdkwindow.c (gdk_window_invalidate_region):
6791         Don't leak visible_region. Use visible_region instead of region.
6792         
6793         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
6794         Don't do extra gdk_drawable_ref(). This is not X.
6795         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
6796         gdk_fb_focused_window is ref:ed.
6797         (gdk_fb_window_send_crossing_events): Watch out for destroyed
6798         windows.
6799
6800 2001-01-22  Alexander Larsson  <alexl@redhat.com>
6801
6802         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
6803         Don't leak the PangoFontDescriptor.
6804
6805 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
6806
6807         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
6808         when not realized.
6809         (gtk_tree_view_scroll_to_cell): Make work when not realized.
6810         (gtk_tree_view_realize): add scroll_to support
6811         (gtk_tree_view_finalize): add a finalize method.  Populate.
6812         (gtk_tree_view_insert_column): ref and sink the column.
6813         (gtk_tree_view_append_column): ref and sink the column.
6814         (gtk_tree_view_queue_draw_node): New function to handle redrawing
6815         individual nodes.  Should make the code much more efficient, if
6816         actually used.
6817
6818 2001-01-19  Havoc Pennington  <hp@redhat.com>
6819
6820         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
6821         byte_offset variable was being used to mean both "offset into
6822         layout" and "offset into buffer line" which was no longer true
6823         with addition of preedit string; fix
6824
6825 2001-01-19  Havoc Pennington  <hp@redhat.com>
6826
6827         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
6828
6829         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
6830         function
6831
6832         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
6833         implement
6834
6835         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
6836         scroll_to_cell, matches TextView scroll functions better
6837         (gtk_tree_view_tree_to_widget_coords): new function
6838         (gtk_tree_view_widget_to_tree_coords): new function
6839         (gtk_tree_view_get_visible_rect): new function
6840         (gtk_tree_view_get_path_at_pos): accept negative coordinates
6841         (gtk_tree_view_draw_node_focus_rect): new function moved from
6842         draw_focus, also, use width of bin_window as width of the focus
6843         rect
6844         (gtk_tree_view_expand_row): fix bug where it didn't recognize
6845         already-expanded rows
6846         (gtk_tree_view_get_cell_rect): new function
6847         (gtk_tree_view_get_path_at_pos): return the click position
6848         relative to the passed-in cell
6849         (gtk_tree_view_set_expander_column): new function
6850
6851         * configure.in: remove gtk-config-2.0 chmod
6852
6853         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
6854         and properly handle drags with targets we don't understand
6855         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
6856         scrolling anyway
6857         (gtk_text_view_drag_drop): stop scrolling here though, and set the
6858         mark invisible
6859
6860         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
6861         function
6862         (gtk_drag_dest_get_target_list): new function
6863         (gtk_drag_dest_set_target_list): new function
6864         
6865         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
6866
6867         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
6868         related to drag-and-drop
6869
6870 2001-01-19  Alexander Larsson  <alexl@redhat.com>
6871
6872         * gdk/linux-fb/gdkprivate-fb.h:
6873         Define EMULATE_GDKFONT.
6874         Add extra pango_font stuff to GfkFontPrivate.
6875         
6876         * gdk/linux-fb/gdkdrawable-fb2.c:
6877         * gdk/linux-fb/gdkfont-fb.c:
6878         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
6879         emulation using PangoFont.
6880
6881 2001-01-17  Havoc Pennington  <hp@pobox.com>
6882
6883         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
6884         all the non-deprecated set_foo functions. Added missing object
6885         properties, and added g_object_notify() to setters. 
6886         Wrote docs.
6887         
6888 2001-01-18  Tor Lillqvist  <tml@iki.fi>
6889
6890         * gtk/gtkmain.c
6891         * gtk/gtkrc.c: (Win32) Use the new
6892         g_win32_get_package_installation_(sub)directory() functions.
6893
6894         * config.h.win32.in: New file.
6895         
6896         * config.h.win32: Removed.
6897
6898         * configure.in: Output config.h.win32.
6899
6900         * Makefile.am: Add it to EXTRA_DIST.
6901
6902         * gtk/gtk.def: Update.
6903
6904 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
6905
6906         * gtk/gtklabel.c (gtk_label_size_request): Set the
6907         attributes onto the PangoLayout even if they are newly
6908         created from label->pattern.
6909
6910 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
6911
6912         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
6913
6914         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
6915         structures in functions. Fixes bug where gtk_dataset_*
6916         was accidentally still being used in one place, causing
6917         every dest side event to be treated independently.
6918
6919         * gtk/gtkdnd.c: Remove last vestages of handling
6920         ::draw (fixes warning)
6921         
6922         * gtk/gtkentry.[ch]: Add drag and drop support.
6923
6924         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
6925         new function gtk_check_drag_threshhold() for checking
6926         to check if (dx,dy) has exceeded the threshhold for starting
6927         a drag and use it everywhere.
6928
6929 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
6930
6931         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
6932         add -I{includedir}/gtk-2.0.
6933
6934         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
6935         gdk/gdk-pixbuf.h: Doc fixups.
6936         
6937         * gtk/gtkobject.h: Remove trailing , from enum
6938
6939 2001-01-17 Alexander Larsson <alexl@redhat.com> 
6940
6941         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
6942         Doh! Mixed up x and y.
6943
6944         * gdk/linux-fb/gdkglobals-fb.c:
6945         Removed gdk_fb_pointer_grab_window_events,
6946         added _gdk_fb_pointer_grab_owner_events and
6947         _gdk_fb_keyboard_grab_owner_events.
6948
6949         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
6950         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
6951         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
6952         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
6953         Send crossing events after ungrab finished.
6954         (gdk_keyboard_grab): Set ..._owner_events
6955         (type_masks): Move out of function.
6956         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
6957         gdk_fb_keyboard_event_window): New functions, return the
6958         window an event should be targeted at. Handles grabs and
6959         event propagation. Can return NULL.
6960         (gdk_event_make): Remove event_mask checking. Now always
6961         returns an event.
6962                 
6963         * gdk/linux-fb/gdkkeyboard-fb.c:
6964         * gdk/linux-fb/gdkproperty-fb.c:
6965         * gdk/linux-fb/gdkselection-fb.c:
6966         Use new event_window/gdk_event_make() behaviour.
6967         
6968         * gdk/linux-fb/gdkmouse-fb.c:
6969         Use new event_window/gdk_event_make() behaviour.
6970         Only send motion events if in the same window.
6971         If grabbed, use cursor from window if sibling of grabbed
6972         window, and cursor from grabbed window otherwise.
6973
6974         * gdk/linux-fb/gdkprivate-fb.h:
6975         Update gdk_fb_window_send_crossing_events, gdk_event_make
6976         and grab varaible declarations. Add gdk_fb_*_event_window().
6977
6978         * gdk/linux-fb/gdkwindow-fb.c:
6979         Use new event_window/gdk_event_make() behaviour.
6980         Keep correct track of focus window.
6981         (gdk_window_set_events): Set all specific button motion masks
6982         if GDK_BUTTON_MOTION_MASK set.
6983
6984         * gtk/gtkdnd.c (gtk_drag_update):
6985         Free info->last_event if gdk_drag_motion returned FALSE.
6986
6987 2001-01-16  Tor Lillqvist  <tml@iki.fi>
6988
6989         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
6990         Eliminate redraws when input-only windows are shown or
6991         hidden. Thanks to jpe@archaeopteryx.com.
6992
6993 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
6994
6995         * docs/faq/gtk-faq.sgml: FAQ update:
6996           - Update to bugzilla
6997           - Add GTK+ and security/SUID/SGID
6998           - Add DnD question
6999
7000 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
7001
7002         * gdk/linux-fb/gdkdnd-fb.c:
7003         Some cleanups.
7004         
7005 2001-01-15  Havoc Pennington  <hp@pobox.com>
7006
7007         * tests/testtreeview.c: add test stuff for CellRendererToggle
7008
7009         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
7010         accessor
7011
7012         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
7013         only toggle on button press (would do release like GtkButton, but
7014         we'd need implicit grab code for treeview cells)
7015
7016 2001-01-16  Tor Lillqvist  <tml@iki.fi>
7017
7018         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
7019
7020         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
7021         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
7022
7023         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
7024         to g_{locale,filename}_{to,from}_utf8 to match current API.
7025
7026         * gtk/makefile.msc.in (gtk_OBJECTS)
7027         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
7028
7029         * gtk/gtk.def: Update.
7030
7031 2001-01-15  Tor Lillqvist  <tml@iki.fi>
7032
7033         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
7034         implementaion that more closely mimics the events that an X server
7035         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
7036         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
7037         with nested preview widgets, for instance, more responsive when
7038         you move the mouse quickly into them.
7039         (find_window_for_pointer_event): Make it actually compile.
7040         (gdk_event_translate): Set send_event to the value of
7041         InSendMessage (). This doesn't really mean the same as X11's
7042         send_event flag, but is close enough, says jpe@archaeopteryx.com
7043
7044 2001-01-15  Alexander Larsson  <alexl@redhat.com>
7045
7046         * gdk/linux-fb/gdkdnd-fb.c:
7047         Implemented drag and drop.
7048         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
7049         when it tries to free and then copy the same event (info->last_event).
7050         I am not sure about why this happens, but will continue looking.
7051
7052 2001-01-15  Alexander Larsson  <alexl@redhat.com>
7053
7054         * gdk/linux-fb/gdkwindow-fb.c:
7055         Use gdk_window_invalidate_rect instead of
7056         gdk_window_invalidate_rect_clear to minimise flashing.
7057         When hiding windows you need to clear the root window though.
7058
7059 2001-01-15  Alexander Larsson  <alexl@redhat.com>
7060
7061         * gdk/linux-fb/gdkdrawable-fb2.c:
7062         For optization, add an full_shapes argument to gdk_fb_clip_region.
7063         If this is false, only the cliprects of the shapes are used.
7064
7065         * gdk/linux-fb/gdkprivate-fb.h:
7066         Export gdk_fb_window_peek_shape.
7067         Add full_shapes to gdk_fb_clip_region.
7068
7069         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
7070         When moving a window, don't clear everything under the it, just the
7071         root window. Makes stuff faster and flash less.
7072         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
7073         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
7074         offset of the shape.
7075         
7076
7077 2001-01-12  Havoc Pennington  <hp@redhat.com>
7078
7079         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
7080         current invalid region, fixes redraw bug while scrolling the 
7081         text widget
7082
7083         * gtk/gtktextview.c, gtk/gtktextview.h:
7084         Rearrange the scrolling/validation/etc. code in a major way, 
7085         so it seems to make sense to me. Probably isn't genuinely that
7086         much better, but...
7087
7088         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
7089         notifies
7090
7091         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
7092
7093 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
7094
7095         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
7096         Hide mouse pointer while rotation. Show it afterwards.
7097
7098 2001-01-12  Alexander Larsson  <alexl@redhat.com>
7099
7100         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
7101         windows in consideration when generating clip region.
7102
7103         * gdk/linux-fb/gdkfb.h:
7104         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
7105
7106         * gdk/linux-fb/gdkprivate-fb.h:
7107         Add shape to GdkWindowFBDatat.
7108         exported gdk_fb_window_get_abs_shape().
7109         removed gdk_fb_draw_lines declaration.
7110
7111         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
7112         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
7113         send focus changes when there is a grabbed window.
7114         (gdk_window_get_pointer): Handle shaped windows.
7115         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
7116         (gdk_fb_window_peek_shape): Returns the shape for a window,
7117         handles GDK_FB_USE_CHILD_SHAPE.
7118         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
7119         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
7120         (gdk_window_shape_combine_mask): Implement.
7121
7122         * gtk/gtkwindow-decorate.c:
7123         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
7124         setting the shape of a window makes the window transparent.
7125
7126 2001-01-11  Havoc Pennington  <hp@redhat.com>
7127
7128         * gtk/gtktreemodelsimple.h: Oops, broke some macros
7129
7130 2001-01-10  Havoc Pennington  <hp@redhat.com>
7131
7132         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
7133         add this function, bug 40251
7134
7135         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
7136         of type macro   
7137
7138 2001-01-11  Alexander Larsson  <alexl@redhat.com>
7139
7140         * acconfig.h:
7141         Added ENABLE_SHADOW_FB
7142
7143         * configure.in:
7144         Added --disable-shadowfb
7145
7146         * gdk/linux-fb/gdkcursor-fb.c:
7147         Update shadowfb when updating cursor
7148
7149         * gdk/linux-fb/gdkdrawable-fb2.c:
7150         Added wrappers for shadowfb that calls  the normal drawable
7151         methods, but calls gdk_shadow_fb_update(bounding box) when
7152         GdkWindows are drawed to.
7153         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
7154         which also returns the bounding box.
7155
7156         * gdk/linux-fb/gdkfb.h:
7157         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
7158
7159         * gdk/linux-fb/gdkgeometry-fb.c:
7160         Update shadowfb when scrolling window.
7161
7162         * gdk/linux-fb/gdkglobals-fb.c:
7163         Add _gdk_fb_screen_angle.
7164         
7165         * gdk/linux-fb/gdkkeyboard-fb.c:
7166         Test code for screen rotation. Shift-F2 in the xlate driver
7167         rotates the screen.
7168
7169         * gdk/linux-fb/gdkmain-fb.c:
7170         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
7171
7172         * gdk/linux-fb/gdkmouse-fb.c:
7173         Use fb_width/height instead of modeinfo.xres/yres.
7174
7175         * gdk/linux-fb/gdkprivate-fb.h:
7176         Added fb_men, fb_width, fb_height & fb_stride. When using
7177         shadow fb these can differ from the framebuffer stuff.
7178         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
7179         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
7180         _gdk_fb_screen_angle. Removed CM, RP.
7181
7182         * gdk/linux-fb/gdkrender-fb.c:
7183         Added code for shadowfb handling and screen rotation using
7184         shadowfb.
7185
7186         * gdk/linux-fb/gdkwindow-fb.c:
7187         Use fb_mem, fb_stride, fb_width, fb_height.
7188         Added recompute_rowstride to reset the rowstride of all windows.
7189         Added gdk_fb_recompute_all() which recomputes rootwindow size,
7190         window abs positions and window rowstrides. Usefull when the
7191         rotation has changed.
7192
7193 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
7194
7195         * docs/faq/gtk-faq.sgml: update to make web site updating easier
7196
7197 2001-01-10  Havoc Pennington  <hp@redhat.com>
7198
7199         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
7200         where sibling == iter
7201         (gtk_tree_store_insert_after): handle sibling == iter
7202         (gtk_tree_store_prepend): remove stamp checks
7203         (gtk_tree_store_insert_before): ditto
7204         (gtk_tree_store_append): ditto
7205         (gtk_tree_store_get_path): ditto
7206         (gtk_tree_store_get_value): ditto
7207         (gtk_tree_store_iter_has_child): ditto
7208         (gtk_tree_store_iter_n_children): ditto
7209         (gtk_tree_store_iter_nth_child): ditto
7210         (gtk_tree_store_insert_after): ditto
7211         (gtk_tree_store_is_ancestor): ditto
7212         (gtk_tree_store_iter_depth): ditto
7213         (gtk_tree_store_insert_before): assert that sibling's parent is
7214         the same as the passed-in parent
7215         (gtk_tree_store_insert_after): assert that sibling's parent is
7216         the same as the passed-in parent
7217
7218         
7219         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
7220         function to get the first iterator in a model
7221         
7222         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
7223         conventionally the "root" in this sense is just NULL afaict.
7224
7225         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
7226         where sibling == iter
7227         (gtk_list_store_insert_after): handle case where sibling == iter
7228
7229         * tests/testtreeview.c (run_automated_tests): fairly lame basic
7230         automated tests for ListStore, TreeStore
7231
7232         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
7233         (gtk_list_store_insert): update tail pointer, and fix it to work
7234         (gtk_list_store_insert_before): update tail pointer, and fix it to work
7235         (gtk_list_store_append): use tail to be faster
7236         (gtk_list_store_prepend): fix it, update tail pointer
7237         (gtk_list_store_insert_after): fix it, update tail pointer
7238
7239         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
7240         the list
7241
7242 2001-01-09  Havoc Pennington  <hp@redhat.com>
7243
7244         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
7245         is NULL due to a pending resize
7246
7247         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
7248         column width to values less than 1
7249
7250         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
7251         width to be between min/max width, and still set the width 
7252         even if autosize is turned on, so the tree view can use this 
7253         function in order to autosize.
7254         (gtk_tree_view_column_init): set initial width to 1 not 0
7255
7256         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
7257         setter function to modify column width, so we get notification
7258         (gtk_tree_view_insert_iter_height): ditto
7259         (gtk_tree_view_calc_size): ditto
7260         (gtk_tree_view_check_dirty): ditto
7261
7262         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
7263         properties to change all the interesting attributes of the tree
7264         view column.
7265         (gtk_tree_view_column_set_header_clickable): rename set_clickable
7266         (gtk_tree_view_column_get_clickable): add
7267         (gtk_tree_view_column_set_cell_renderer): don't unset the current
7268         attributes; assume a cell renderer with equivalent object
7269         properties has been swapped in. Do g_object_notify().
7270         (gtk_tree_view_column_set_visible): g_object_notify
7271         (gtk_tree_view_column_get_sizing): rename from get_col_type
7272         (gtk_tree_view_column_set_sizing): g_object_notify
7273         (gtk_tree_view_column_set_width): add g_object_notify
7274         (gtk_tree_view_column_set_min_width): ditto
7275         (gtk_tree_view_column_set_max_width): ditto
7276         (gtk_tree_view_column_set_title): ditto
7277         (gtk_tree_view_column_set_clickable): ditto
7278         (gtk_tree_view_column_set_widget): ditto
7279         (gtk_tree_view_column_set_justification): ditto
7280
7281 2001-01-09  Havoc Pennington  <hp@redhat.com>
7282
7283         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
7284         there are no rows in the model
7285
7286         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
7287         NULL, then return the start of the list
7288
7289         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
7290         if we can't get any rows from an empty model 
7291
7292         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
7293         extraneous * after function pointer typedef usage
7294
7295         * Makefile.am: don't specify full path to cp and rm
7296
7297         * gtk/gtkcellrenderertextpixbuf.c
7298         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
7299         NULL before dereferencing, fixes a segfault that happened from
7300         time to time
7301
7302         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
7303         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
7304         and reindent the function
7305         (gtk_cell_renderer_pixbuf_get_size): indentation
7306
7307         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
7308         we quit it
7309         (gtk_dialog_add_buttons_valist): add g_return_if_fail
7310         (gtk_dialog_set_default_response): New function, to set default
7311         button
7312         (gtk_dialog_set_response_sensitive): New function, to set 
7313         sensitivity of buttons
7314
7315         * gtk/gtkcellrendererpixbuf.c
7316         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
7317         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
7318
7319         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
7320         handle any G_TYPE_OBJECT subclass, not just the base class, and 
7321         also boxed types.
7322         (_gtk_tree_data_list_value_to_node): ditto
7323
7324         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
7325         --gtk-debug=tree
7326
7327         * gtk/gtkmain.c: add GTK_DEBUG_TREE
7328
7329         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
7330
7331 2001-01-09  Tor Lillqvist  <tml@iki.fi>
7332
7333         * gdk/win32/gdkevents-win32.c: Implement better mouse
7334         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
7335         (find_window_for_pointer_event): New function.
7336         (gdk_event_translate): Use it when handling mouse events.
7337
7338 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
7339
7340         * configure.in:
7341         Added --with-included-loaders option
7342
7343         * gdk-pixbuf/Makefile.am:
7344         * gdk-pixbuf/gdk-pixbuf-io.c:
7345         Add support for including selected gdk-pixbuf loaders only.
7346
7347         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
7348         gtk_window_set_has_frame):
7349         Added inline documentation.
7350
7351         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
7352         * docs/reference/gdk/tmpl/windows.sgml:
7353         Added inline documentation.
7354
7355 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
7356
7357         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
7358         realizing buttons that have already been realized.
7359
7360 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
7361
7362         * tests/testtreeview.c (main): Show menu items before adding to
7363         option menu.
7364
7365         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
7366         around if we kill them.
7367
7368         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
7369         Return if we pass in a NULL model.
7370
7371 2001-01-08  Havoc Pennington  <hp@redhat.com>
7372
7373         * tests/testtreeview.c: hack on this some
7374
7375         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
7376         gtk_tree_store_set_valist, v is for arrays, valist for varargs
7377         list
7378         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
7379
7380         * gtk/gtkliststore.h: Add varargs set() and get() convenience
7381         functions
7382
7383 2001-01-08  Alexander Larsson  <alexl@redhat.com>
7384
7385         * gtk/gtkwindow-decorate.[hc]:
7386         * gtk/Makefile.am:
7387         New files. Contains an implementation of a minimal WM for
7388         linux-fb.
7389
7390         * gtk/gtkwindow.h:
7391         Add the possibility for GtkWindows to specify a frame. This
7392         is used for the window decoration code, but could concievably
7393         be used for X programs too (xmms style windows).
7394         GtkWindow->frame is the toplevel window if the window is framed.
7395         The signal frame_event gets all events that are targeted to
7396         GtkWindow->frame.
7397         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
7398         
7399         * gtk/gtkwindow.c:
7400         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
7401         Call out to gtkwindow-decorate.c for WM support in linx-fb.
7402
7403 2001-01-08  Alexander Larsson  <alexl@redhat.com>
7404
7405         * docs/README.linux-fb:
7406         Correct filename ~/.pangoft2_aliases
7407
7408         * gdk/gdkwindow.h:
7409         Added new function gdk_window_get_decorations.
7410
7411         * gdk/linux-fb/gdkfb.h:
7412         Removed _gdk_window_get_decorations declaration.
7413         Renamed _gdk_window_set_child_handler to
7414         gdk_fb_window_set_child_handler.
7415
7416         * gdk/linux-fb/gdkwindow-fb.c:
7417         Renamed _gdk_window_set_child_handler to
7418         gdk_fb_window_set_child_handler.
7419
7420         * gdk/x11/gdkwindow-x11.c:
7421         New function gdk_window_get_mwm_hints().
7422         Implemented gdk_window_get_decorations.
7423
7424         * docs/reference/gdk/tmpl/windows.sgml:
7425         * docs/reference/gdk/gdk-sections.txt:
7426         Added gdk_window_get_decorations docs.
7427         
7428 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
7429
7430         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
7431         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
7432         gdk_fb_window_send_crossing_events):
7433         Possibly send focus events when the mouse moves from one
7434         window to another.
7435
7436 2001-01-07  Tor Lillqvist  <tml@iki.fi>
7437
7438         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
7439         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
7440         to match current API.
7441
7442         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
7443         environment variable is set, don't call g_error when on a
7444         palettized (PseudoColor) display. Some people want to use GTK+ 
7445         in 256-colour mode even though works only partially.
7446
7447         * gdk/gdk.def
7448         * gtk/gtk.def
7449         * gtk/makefile.mingw.in: Update.
7450
7451 2001-01-05  Havoc Pennington  <hp@redhat.com>
7452
7453         * tests/testtreeview.c: hack on this a bit
7454
7455         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
7456         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
7457
7458         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
7459         was spelled incorrectly
7460         (GTK_IS_TREE_MODEL_SIMPLE): ditto
7461
7462         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
7463         from gtk_tree_view_set_headers_active   
7464
7465         * gtk/gtktexttag.c:
7466         (gtk_text_tag_get_property): handle PROP_DIRECTION
7467         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
7468         properties, bug 40235
7469
7470         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
7471         forward_to_line_end
7472
7473 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
7474
7475         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
7476         modules/input/gtkimcontextxim.c: Adapt to new prototypes
7477         for unicode,locale,filename conversion functions.
7478
7479 2001-01-05  Havoc Pennington  <hp@redhat.com>
7480
7481         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
7482         broken if called on the first position in the buffer.
7483
7484         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
7485         forward_to_delimiters to be called only if we aren't already at
7486         the delimiters.
7487
7488 2001-01-05  Havoc Pennington  <hp@redhat.com>
7489
7490         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
7491
7492 2001-01-05  Alexander Larsson  <alexl@redhat.com>
7493
7494         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
7495         colormap in here. Sync from X port.
7496         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
7497         Sync from X port.
7498         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
7499         This happens now and then, and i don't think it is a bug.
7500         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
7501         != endpoint.
7502         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
7503         GDK_LINE_SOLID.
7504
7505         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
7506         some of the fields filled in at least.
7507
7508         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
7509         miLineArcD is no more, remove it from the function definition.
7510
7511 2001-01-04  Havoc Pennington  <hp@redhat.com>
7512
7513         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
7514         this
7515
7516         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
7517         user_data instead of tree_node
7518
7519         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
7520         TREE_VIEW_COLUMN_SIZE
7521
7522         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
7523         "size" field to "width" finishes bug 40061
7524
7525         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
7526         for bitfields, bug 40268
7527
7528 2001-01-04  Havoc Pennington  <hp@redhat.com>
7529
7530         Rename some stuff:
7531         
7532         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
7533
7534         s/GtkModelSimple/GtkTreeModelSimple/g;
7535         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
7536         s/gtk_model_simple/gtk_tree_model_simple/g;
7537         s/gtkmodelsimple/gtktreemodelsimple/g;
7538
7539         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
7540
7541         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
7542         s/column_set_col_type/column_set_sizing/g;
7543
7544         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
7545         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
7546
7547         s/GtkCellRendererType/GtkCellRendererState/g;
7548         
7549         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
7550         (gtk_cell_renderer_toggle_class_init): change "state" property to
7551         "active", to match GtkToggleButton
7552         (gtk_cell_renderer_toggle_get_active): new function, bug
7553         40269
7554         (gtk_cell_renderer_toggle_set_active): new function
7555         (gtk_cell_renderer_toggle_set_property): route changes to toggle
7556         state through gtk_cell_renderer_set_active
7557
7558 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
7559
7560         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
7561         temporarily until they work again.  Brought up to date with
7562         changes in the model.
7563         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
7564         model.
7565
7566 2001-01-04  Havoc Pennington  <hp@redhat.com>
7567
7568         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
7569         equal to the line length, then position iterator before paragraph 
7570         separators. Fixes crash reported by Mikael Hermansson when
7571         pressing left arrow from the start of a line.   
7572
7573         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
7574         about byte indexes off the end
7575         (iter_set_from_char_offset): add g_error about char offsets
7576         off the end
7577
7578 2001-01-03  Havoc Pennington  <hp@redhat.com>
7579
7580         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
7581
7582         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
7583         of private functions; remove inclusion of private headers.
7584
7585         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
7586         function, so we don't need private functions in gtktextdisplay.c
7587
7588         * gtk/gtktextiterprivate.h: underscore-ification
7589
7590         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
7591         to instead say "only useful to implement widgets"
7592
7593         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
7594         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
7595         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
7596
7597         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
7598         This function was completely broken
7599
7600         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
7601
7602         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
7603
7604         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
7605
7606         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
7607
7608         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
7609
7610         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
7611
7612         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
7613         gtk_paint_layout
7614
7615         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
7616         gtk_paint_layout
7617
7618         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
7619         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
7620         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
7621         which were not implemented.     
7622
7623         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
7624         insert_pixbuf signal. Rename delete_text to delete_range since it
7625         also deletes pixbufs and child anchors. This almost closes bug
7626         40245 (still need to deal with child anchors)
7627
7628         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
7629         insert_pixbuf, change signal names as appropriate, change types of
7630         signals taking marks/tags to have the specific type, not just
7631         G_TYPE_OBJECT
7632         
7633         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
7634         closes bug 40051
7635
7636         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
7637         unnecessary remove_contents() call
7638         (gtk_option_menu_class_init): add a "changed" signal, closes
7639         bug 40039
7640         (gtk_option_menu_update_contents): emit "changed" if the 
7641         active menu item changes
7642
7643         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
7644         cast to GtkObject, reported by Jonas Borgstrom
7645         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
7646         we can't do stuff with side effects in finalize. Instead, spew a
7647         warning if the loader isn't closed.
7648
7649         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
7650         colormap in here, non-X ports probably need to sync to this change
7651
7652         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
7653         assertion that colormap != NULL, you can set the colormap to NULL
7654         if you like.
7655         
7656         * Makefile.am: remove gtk-config-2.0
7657
7658         * configure.in: Use pkg-config to locate GLib. Remove
7659         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
7660         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
7661         Use pkg-config to locate Pango. Output correct Pango libs to
7662         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
7663
7664         * Makefile.am (pkgconfig_DATA): install only target-specific pc
7665         files
7666         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
7667         X11 pc files
7668
7669         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
7670         unref from here
7671
7672 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
7673
7674         * configure.in:
7675         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
7676
7677 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
7678
7679         * gtk/gtktextlayout.c
7680         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
7681         variable when moving back onto a single line.
7682
7683 2001-01-01  Havoc Pennington  <hp@redhat.com>
7684
7685         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
7686
7687         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
7688
7689         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
7690         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
7691
7692 2001-01-01  Havoc Pennington  <hp@redhat.com>
7693
7694         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
7695
7696         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
7697         GtkTextAttributes
7698
7699         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
7700         #40246
7701         (gtk_text_attributes_copy_values): rename from 
7702         gtk_text_attributes_copy
7703         (gtk_text_attributes_copy): a more standard GTK copy function, 
7704         which returns a new object
7705
7706 2001-01-01  Havoc Pennington  <hp@redhat.com>
7707
7708         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
7709         
7710         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
7711         don't fill in tree_view->priv->selection, kind of an unexpected
7712         side effect
7713
7714         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
7715         gtkintl.h
7716         
7717         * gtk/gtkcellrenderer.c: Remove definition of _ and include
7718         gtkintl.h
7719         (gtk_cell_renderer_get_property): remove calls to g_value_init
7720
7721         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
7722         gtkintl.h
7723
7724         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
7725         and include gtkintl.h
7726         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
7727         property names
7728
7729         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
7730         GtkTreeSelection
7731         (_gtk_tree_selection_new_from_with_view): rename, return
7732         GtkTreeSelection
7733         (_gtk_tree_selection_set_tree_view): rename with uscore
7734         (gtk_tree_selection_get_selected): fill in the "model" out param
7735         first, so it gets filled in even if we return at the top of the 
7736         function
7737         (gtk_tree_selection_real_select_all): add a comment and an else{}
7738         to clarify this a bit
7739         (gtk_tree_selection_real_unselect_all): add the same else{}
7740
7741         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
7742         set_tree_view to have underscore prefixes, move them to the
7743         private header, fix return type of new_with_tree_view
7744         (struct _GtkTreeSelection): mark struct
7745         fields private  
7746
7747         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
7748         GtkTreeModelFlags, not a guint
7749         (gtk_tree_path_prev): return gboolean not gint
7750         (gtk_tree_path_up): return gboolean not gint
7751
7752         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
7753         return GtkTreeModelFlags, not a guint
7754
7755         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
7756         that child model is non-null before unrefing it
7757         (g_value_int_compare_func): make this a qsort compare func, not 
7758         a boolean predicate
7759
7760         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
7761         (add -umn to the end), and mark it unimplemented
7762         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
7763         I don't see what it's for - doesn't the model always sort itself?
7764         (gtk_tree_model_sort_set_compare): this had the wrong signature
7765
7766         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
7767         Fix the docs to say that it destructively replaces existing
7768         attributes (previously said that it added attributes).
7769         (gtk_tree_view_column_set_visible): canonicalize bool before
7770         equality testing. Also, check for realization before
7771         hiding/showing the tree_column->window; if this window could exist
7772         before realization, then it's busted and needs fixing, we can't 
7773         create GDK resources pre-realization. Also, remove
7774         superfluous queue_resize(), since set_size() does that for us.
7775         (gtk_tree_view_column_set_col_type): check realization before 
7776         using tree_column->window
7777
7778         * gtk/gtktreedatalist.c: fix filename in copyright notice
7779
7780 2000-12-31  Havoc Pennington  <hp@pobox.com>
7781
7782         * gtk/gtktextview.c: Rearrange all the
7783         scroll-while-dragging-or-selecting code to be different, not
7784         necessarily better. ;-)
7785         (gtk_text_view_scroll_to_mark): Change this
7786         function to take within_margin as a fraction instead of a pixel
7787         value, and to take alignment arguments (indicating where to align 
7788         the mark inside the visible area)
7789         
7790         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
7791         to GtkObject
7792
7793         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
7794         behavior so that offsets past the end of the line are not 
7795         allowed, and an offset equal to the line length moves the iterator
7796         to the next line
7797         (gtk_text_iter_set_line_index): make parallel change
7798         (gtk_text_iter_get_bytes_in_line): add this function
7799         
7800         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
7801         of byte indexes off the end of the line; byte index at the end of
7802         the line now returns FALSE and doesn't fill in the requested
7803         values, byte index past the end of the line is an error.  Also,
7804         don't allow -1 offset anymore, since its meaning is unclear.
7805
7806         This change exposes some bug in visual cursor motion, where we
7807         end up with a huge invalid byte index; needs fixing. Symptom of 
7808         bug is a crash when you hit up arrow.
7809         
7810         (_gtk_text_line_char_locate): match the change to byte_locate
7811
7812         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
7813         from start of line properly. fixes bug reported by Mikael
7814         Hermansson where backspace would delete all text before the
7815         cursor.
7816
7817 2000-12-30  Tor Lillqvist  <tml@iki.fi>
7818
7819         * gdk/win32/gdkwindow-win32.c
7820         (gdk_window_impl_win32_get_visible_region): New function, as in
7821         the X11 backend.
7822         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
7823         instead of duplicating the same code here.
7824
7825         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
7826         GDK_COLORMAP macro.
7827
7828         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
7829         destroy function.
7830         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
7831         access that.
7832
7833         * gtk/gtk.def: Update.
7834
7835         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
7836
7837 2000-12-30  Havoc Pennington  <hp@pobox.com>
7838
7839         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
7840         colormap on input only windows, to avoid special cases all over
7841         the code for these windows.
7842
7843 2000-12-26  Tor Lillqvist  <tml@iki.fi>
7844
7845         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
7846         we are on a palettized display ("PseudoColor" in X11), as the code
7847         for that doesn't work anyway, and never has.
7848
7849 2000-12-22  Alexander Larsson  <alexl@redhat.com>
7850
7851         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
7852         Don't use isprint() for chars > 255.
7853
7854 2000-12-21  Havoc Pennington  <hp@redhat.com>
7855
7856         * tests/testtreeview.c: more work
7857
7858 2000-12-21  Alexander Larsson  <alexl@redhat.com>
7859
7860         * docs/README.linux-fb:
7861         Update the docs to the new pangoft2 way.
7862
7863 2000-12-21  Alexander Larsson  <alexl@redhat.com>
7864
7865         * configure.in:
7866         For linux-fb get the pangoft2 cflags and libs. This needs a recent
7867         pango version.
7868         Remove modules/linux-fb/Makefile.
7869
7870         * gdk/linux-fb/gdkdrawable-fb2.c:
7871         Render glyphs using freetype.
7872
7873         * gdk/linux-fb/gdkfb.h:
7874         Add new fb-specific functions needed for managing windows.
7875
7876         * gdk/linux-fb/gdkmain-fb.c:
7877         Remove gdk_font_init/fini() calls.
7878
7879         * gdk/linux-fb/gdkpango-fb.c:
7880         Remove old implementation. Use pangoft2 instead.
7881
7882         * gdk/linux-fb/gdkprivate-fb.h:
7883         Remove PangoFBFont and related stuff.
7884
7885         * gdk/linux-fb/gdkwindow-fb.c:
7886         Implement drawable->get_visible_region.
7887         Implement support for _gdk_window_set_child_handler () and
7888         _gdk_window_get_decorations().
7889
7890         * modules/Makefile.am:
7891         Remove linux-fb subdir.
7892
7893         * modules/linux-fb/*:
7894         Removed all.
7895         
7896 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
7897
7898         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
7899         calls, as they are no longer needed.
7900
7901         * gtk/gtktreemodelsort.c: Fix up the comparison code.
7902         
7903         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
7904         figure out how to emit a signal on an interface.
7905
7906 2000-12-20  Havoc Pennington  <hp@redhat.com>
7907
7908         * tests: new directory to contain tests, gtk/test* should move
7909         here sometime (with appropriate on-cvs-server hackery)
7910
7911         * tests/testtreeview.c, tests/Makefile.am: a test
7912         
7913         * configure.in (AC_OUTPUT): add tests/Makefile
7914
7915         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
7916         and "invisible_set" which were missing
7917
7918         * gtk/gtkrbtree.h: some cheesy indentation fix
7919         
7920 2000-12-20  Alexander Larsson  <alexl@redhat.com>
7921
7922         * gtk/gtkinvisible.c (gtk_invisible_realize):
7923         Attach the style to the window so that the style it is not
7924         leaked when unrealizing the window.
7925
7926 2000-12-18  Havoc Pennington  <hp@redhat.com>
7927
7928         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
7929         begin/end user action where appropriate
7930         (gtk_text_view_commit_handler): add begin/end user action
7931
7932         * gtk/gtktextbuffer.c: add begin/end user action signals, and
7933         bracket interactive operations with begin/end user action pair.
7934         
7935         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
7936         "interactive" arg from insert_text and delete_text signals.
7937         Add begin_user_action, end_user_action signals
7938         (gtk_text_buffer_begin_user_action): 
7939         (gtk_text_buffer_end_user_action): New functions to delimit 
7940         a user-visible action
7941
7942         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
7943         signals.
7944         
7945 2000-12-18  Havoc Pennington  <hp@redhat.com>
7946
7947         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
7948         was pretty non-working.
7949
7950         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
7951         by passing the length to g_utf8_validate().
7952
7953 2000-12-16  Havoc Pennington  <hp@pobox.com>
7954
7955         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
7956         Port to GObject, can go back in gdk-pixbuf after setting up 
7957         a gdk-pixbuf-marshal.h header over there.
7958
7959         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
7960         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
7961         args
7962         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
7963         set
7964         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
7965         here, do it when we create the buttons later
7966         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
7967         (gtk_tree_view_map): paranoia checks that column->button is shown 
7968         and unmapped
7969         (gtk_tree_view_size_request): only request visible children.
7970         Move header size calculation in here, for cleanliness, and 
7971         to maintain invariants for child widgets if we eventually 
7972         let users set different children inside the buttons
7973         (gtk_tree_view_map_buttons): factor out code to map buttons,
7974         since it was being called several times
7975         (gtk_tree_view_size_allocate_buttons): move_resize the drag
7976         windows instead of just moving them; their height may change 
7977         if we allow random widgets in there, or the theme changes.
7978         (gtk_tree_view_size_allocate): move button size allocation 
7979         above emitting the scroll signals, to ensure a sane state when we
7980         hit user code
7981         (gtk_tree_view_button_release): remove queue_resize after
7982         tree_view_set_size(), set_size() will handle any resize queuing
7983         that's needed
7984         (gtk_tree_view_focus_in): just queue a draw, don't fool with
7985         draw_focus goo
7986         (gtk_tree_view_focus): use gtk_get_current_event() and
7987         gdk_event_get_state()
7988         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
7989         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
7990         semicolon
7991         (gtk_tree_view_create_button): show the button here
7992         (gtk_tree_view_button_clicked): actually emit the clicked signal
7993         on the column
7994         (_gtk_tree_view_set_size): return right away if the size is
7995         unchanged, as a cheesy optimization
7996         (gtk_tree_view_setup_model): rename set_model_realized to 
7997         setup_model to match the flag that indicates whether we've 
7998         called it
7999         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
8000         exist, because set_scroll_adjustment does that and it shouldn't
8001         matter what order you call these in
8002         (gtk_tree_view_get_vadjustment): ditto
8003         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
8004         for paranoia
8005         (gtk_tree_view_set_headers_visible): call
8006         gtk_tree_view_map_buttons() instead of using cut-and-paste code
8007         (gtk_tree_view_append_column): clarify whether the return value
8008         is the count of columns before or after, and do the increment 
8009         separately from the return statement so you can tell from the code.
8010         (gtk_tree_view_remove_column): ditto
8011         (gtk_tree_view_insert_column): ditto
8012         (gtk_tree_view_get_column): remove g_return_if_fail for columns
8013         outside the existing range, the docs say that outside-range
8014         columns are allowed, so we handle them as documented. (Presumably
8015         this allows a nice loop with column != NULL as test.)
8016         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
8017         mean (left/right/center etc.).
8018         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
8019         (gtk_tree_view_expand_row): add docs
8020         (gtk_tree_view_collapse_row): add docs
8021
8022         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
8023         function to emit the clicked signal on a column
8024         
8025         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
8026         state of an event
8027         (gdk_event_get_time): don't treat GDK_SCROLL 
8028         as a button event, remove default case from switch so gcc 
8029         will whine if we don't explicitly handle all event types
8030
8031         * gtk/gtktreeselection.h: added some FIXME 
8032         
8033         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
8034         "columns" to "n_columns" and "column" to "columns" for clarity
8035
8036 2000-12-16  Havoc Pennington  <hp@pobox.com>
8037         
8038         * gtk/gtktextiter.c: General cleanup of the log attr iteration
8039         stuff. This should make e.g. the delete key work again in the
8040         text widget...
8041         (gtk_text_iter_forward_cursor_positions): handle negative count
8042         (gtk_text_iter_backward_cursor_positions): handle negative count
8043         (gtk_text_iter_forward_word_ends): handle negative count
8044         (gtk_text_iter_backward_word_starts): handle negative count
8045
8046         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
8047         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
8048         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
8049         GObject. No doubt will cause breakage.
8050
8051         * demos/gtk-demo/textview.c: remove hacks around
8052         non-GObject-ification of the text objects
8053
8054         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
8055         the text tag
8056         
8057 2000-12-14  Havoc Pennington  <hp@pobox.com>
8058
8059         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
8060         that we have Xrender
8061
8062 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
8063
8064         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
8065         Add two virtualized functions gdk_drawable_get_clip_region - to
8066         get the clip region when drawing.
8067         
8068         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
8069         use invalidate_region.
8070
8071         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
8072         region.
8073
8074         * acconfig.h configure.in: Check for Xft. For now, assume
8075         that if Xft is found, Pango was compiled with Xft support
8076         as well.
8077
8078         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
8079         gdk_colormap_query_color().
8080         
8081         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
8082         with Xft if appropriate.
8083
8084         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
8085         a pangoxft context if we have XFT and the environment
8086         variable GD_USE_XFT is set.
8087         
8088         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
8089         and also possibly an XftDraw structure.
8090
8091         * gtk/gtkfontsel.c: Handle the case where the font from the
8092         style doesn't match any of the fonts a bit better.
8093         
8094         * gtk/testgtk.c: Add tabs between directional segments for
8095         hebrew/arabic test. (Not really necessary, just a little
8096         prettier.)
8097
8098 2000-12-14  Havoc Pennington  <hp@redhat.com>
8099
8100         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
8101         reading a file
8102
8103 2000-12-14  Havoc Pennington  <hp@redhat.com>
8104
8105         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
8106         unused call to get_last_line()
8107
8108         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
8109         here until boxed is working (and maybe after that - we should
8110         really not gratuitously break old code)
8111
8112         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
8113         specific types for font_desc and tabs args, move them to
8114         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
8115         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
8116
8117         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
8118         use GTK_TYPE_POINTER for signal signatures as a hack-around
8119
8120         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
8121         PangoTabArray
8122
8123         * gtk/gtktextlayout.c (line_display_iter_to_index): 
8124         make static
8125         (line_display_index_to_iter): make static
8126
8127         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
8128         to marshal a string not a boxed
8129
8130         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
8131
8132         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
8133         since the UTF-8 isn't validated yet
8134
8135         * gtk/gtktextsegment.c (char_segment_check_func): don't require
8136         lines to end in '\n'
8137         
8138         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
8139         forward_to_delimiters, and grapheme boundaries
8140         (gtk_text_view_delete_from_cursor): properly handle non-newline
8141         delimiters, and grapheme boundaries
8142
8143         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
8144         to gtk_text_iter_forward_to_delimiters, and make it work properly
8145         if empty lines end with a character other than '\n'
8146
8147         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
8148         position
8149
8150 2000-12-15  Tor Lillqvist  <tml@iki.fi>
8151
8152         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
8153
8154         * gtk/gtk.def
8155         * gdk/gdk.def: Update.
8156
8157         * gdk/win32/gdkmain-win32.c
8158         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
8159         gdkmain-win32.c here.
8160
8161         * gdk/win32/makefile.mingw.in (all): No need to make
8162         gdk-win32res.o here, the makefile one step up will call us to make
8163         it.
8164
8165         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
8166         gdkkeys-win32.
8167
8168         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
8169
8170         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
8171         call to g_source_add().
8172
8173         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
8174         leak. Thanks to Andreas Kemnade.
8175
8176 2000-12-13  Havoc Pennington  <hp@pobox.com>
8177
8178         * gtk/gtktextbtree.h: Remove double _ in front of some functions
8179
8180         * gtk/gtktext*.[hc]: update accordingly
8181         
8182 2000-12-13  Havoc Pennington  <hp@pobox.com>
8183
8184         * gtk/gtktextbtree.h: Put _ in front of every function in this 
8185         header file
8186
8187         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
8188
8189 2000-12-13  Alex Larsson  <alexl@redhat.com>
8190
8191         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
8192         Add support for ps2 intellimouse.
8193
8194         * gdkkeyboard-fb.c:
8195         Move shift-F1 repaint handling to xlate handler only.
8196         
8197         * docs/README.linux-fb:
8198         Add imps2 to docs.
8199         Document the new refresh keys.
8200         
8201 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
8202
8203         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
8204
8205         * gtk/gtkbox.c: change property types from (u)long to (u)int for
8206         ::position and ::padding.
8207
8208         * gtk/gtkcontainer.c: make ::border_width an INT property.
8209
8210         * gtk/gtkpacker.c: make ::position an INT property.
8211
8212         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
8213         guard against NULL h/v scrollbars, since this is used at construction
8214         time.
8215
8216         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
8217         internal gtk_clist_constructor().
8218
8219         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
8220         gtk_ctree_constructor().
8221
8222         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
8223         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
8224
8225         * docs/reference/Makefile.am: fun stuff, disabled docs generation
8226         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
8227
8228         * gtk/gtkwidget.[hc]:
8229         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
8230         and gtk_widget_get().
8231         (gtk_widget_new): use g_object_new_valist().
8232         (gtk_widget_set): use g_object_set_valist().
8233
8234         * gtk/gtkobject.[hc]:
8235         removed gtk_object_arg_get_info(), gtk_object_getv(),
8236         gtk_object_query_args(), gtk_object_newv(),
8237         gtk_object_class_add_signals(),
8238         gtk_object_class_user_signal_new(),
8239         gtk_object_class_user_signal_newv(),
8240         gtk_object_arg_set(), gtk_object_arg_get(),
8241         gtk_object_args_collect(),
8242         gtk_object_default_construct(),
8243         gtk_object_constructed(),
8244         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
8245         removed nsignals, signals and n_args members from GtkObjectClass.
8246         (gtk_object_new): use g_object_new_valist().
8247         (gtk_object_set): use g_object_set_valist().
8248         (gtk_object_get): use g_object_get_valist().
8249         
8250         * gtk/gtkcompat.h: define gtk_object_default_construct().
8251         
8252         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
8253         g_object_new().
8254
8255         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
8256         fucntions, cleaned up method assignments (make sure your structures
8257         are setup properly before calling out). removed all GTK_CONSTRUCTED
8258         hacks ;)
8259
8260 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
8261
8262         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
8263         off-by-one error in checks. (Dave Lambert)
8264
8265 2000-12-12  Alexander Larsson  <alexl@redhat.com>
8266
8267         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
8268         Don't free gdk_fb_keyboard twice.
8269
8270 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
8271
8272         * gtk/testgtk.c:
8273         (create_tooltips): 
8274         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
8275         use GObject swapped_signal:: properties instead.
8276
8277         * gtk/gtkcellrenderertoggle.c: 
8278         * gtk/gtkcellrenderertextpixbuf.c: 
8279         * gtk/gtkcellrenderertext.c: 
8280         * gtk/gtkcellrendererpixbuf.c: 
8281         * gtk/gtkcellrenderer.c:
8282         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
8283         missing warnings for invalid property ids, install properties
8284         with g_object_class_install_property() now.
8285         
8286         * gtk/gtksignal.c:
8287         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
8288         
8289 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
8290         
8291         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
8292         to determine if a window is the focus widget within
8293         its toplevel.
8294
8295         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
8296         to be boolean.
8297
8298         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
8299         of the case where the container CAN_FOCUS to here instead
8300         of having it in each individual move-the-focus place.
8301
8302         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
8303         focusing to be geometric in a much more obvious sense. Arrowing
8304         around is still non-intuitive because it isn't perfect and
8305         because entries, etc, grab the arrow keys, but it at least
8306         usually will do what you expect now.
8307         
8308         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
8309         file.
8310
8311         * gtk/gtknotebook.c: Change tabs to be a single item in
8312         the focus chain. Make movement of focus on tabs with arrow
8313         keys wrap around.
8314         
8315         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
8316         CHECK_FIND_CHILD macro to give informative error messages
8317         instead of silent returns.
8318
8319         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
8320         flag since we handle GdkReturn on the tabs.
8321
8322         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
8323         windows rather than sending expose events directly.
8324
8325         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
8326         definition for GtkNotebookPage into .c file, since it is private.
8327
8328         * gtk/testgtk.c (create_notebook): Add option for 
8329         testing borderless notebook.
8330
8331         * gtk/testgtk.c (page_switch): Removed egregious poking
8332         around in GTK+ internals.
8333
8334         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
8335
8336         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
8337         properly through gtk_clist_focus. Make the title headers a
8338         single item in the tab-focus chain, and make left-right wrap
8339         around.
8340
8341         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
8342         focus method so that wrapping around works properly.
8343
8344         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
8345         that is handled for the widget now. 
8346
8347 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
8348
8349         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
8350         widgets as TOPLEVEL.
8351
8352         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
8353         TOPLEVEL widgets are containers.
8354
8355         * gtk/gtkinvisible.h: Remove useless include.
8356
8357 2000-12-11  Havoc Pennington  <hp@redhat.com>
8358
8359         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
8360         Handle chopping off \r\n and 0x2029 in addition to \n before
8361         passing to PangoLayout
8362
8363         * gtk/gtkimcontextsimple.c
8364         (gtk_im_context_simple_get_preedit_string): 
8365         return an empty string if no match is pending
8366
8367         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
8368         assertion that the returned preedit string was sane
8369
8370         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
8371         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
8372         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
8373
8374 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
8375
8376         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
8377         Fix up finalizer to chain to its parent.
8378
8379 2000-12-11  Alexander Larsson  <alexl@redhat.com>
8380
8381         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
8382         Clearified the difference between the keyboard types. Wrote a note
8383         about the magic sysrq key to get out of raw mode.
8384
8385 2000-12-09  James Henstridge  <james@daa.com.au>
8386
8387         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
8388         member to hold masks for detecting the start of a protocol packet.
8389         (mouse_devs): add packet start masks for ps2 and ms device types.
8390         Left the mask for fidmour blank, as I have no idea what it should
8391         be.
8392         (handle_mouse_io): skip bytes until we get to the start of a
8393         packet.  My Logitech mouse seems to be passing an extra NULL pad
8394         byte, and GPM does a similar thing here.
8395         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
8396         this is the ms mouse driver.
8397         (gdk_fb_mouse_ms_packet): fix up button handling, which was
8398         completely broken except for button1.  It was checking the wrong
8399         bit in the packet for the status of the right mouse button, and
8400         wrongly assuming right == button2 rather than 3.  I fixed that and
8401         also added support for middle button (button2).
8402
8403 2000-12-08  Havoc Pennington  <hp@redhat.com>
8404
8405         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
8406         that cause a segfault on text insertion
8407
8408         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
8409         warning
8410
8411         * gtk/gtktextiter.c (test_log_attrs): use
8412         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
8413
8414         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
8415         Get log attrs for a line, using a cache stored on the buffer
8416         
8417         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
8418         reported by Jeff Franks
8419
8420 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
8421
8422         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
8423         /dev/ttyS0 -> /dev/mouse
8424
8425 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
8426
8427         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
8428         Added dummy gdk_fontset_load.
8429
8430 2000-12-08  Alexander Larsson  <alexl@redhat.com>
8431
8432         * docs/README.linux-fb:
8433         * docs/Makefile.am:
8434         Initial GtkFB docs.
8435         
8436         * gdk/linux-fb/Makefile.am:
8437         Define GDK_DATA_PREFIX.
8438
8439         * gdk/linux-fb/gdkmain-fb.c:
8440         Fix typo.
8441         Change default display to /dev/fb0.
8442
8443         * gdk/linux-fb/gdkpango-fb.c:
8444         Add $(prefix)/share/fonts/ to font path.
8445         
8446 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
8447
8448         * gdk/linux-fb/gdkkeyboard-fb.c:
8449         New file containing the abstracted keyboard driver. Most code
8450         taken from gdkinput-ps2.c
8451
8452         * gdk/linux-fb/gdkinput-ps2.c:
8453         Removed file.
8454         
8455         * gdk/linux-fb/Makefile.am:
8456         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
8457
8458         * gdk/linux-fb/gdkcolor-fb.c:
8459         display->fb was renamed to display->fb_fd.
8460
8461         * gdk/linux-fb/gdkcursor-fb.c:
8462         gdk_mouse_get_info -> gdk_fb_mouse_get_info
8463
8464         * gdk/linux-fb/gdkinput.c:
8465         Moved gdk_input_init here from gdkinput-ps2.c
8466
8467         * gdk/linux-fb/gdkmain-fb.c:
8468         display->fb was renamed to display->fb_fd.
8469         Now the tty and the console is opened here instead
8470         of in the keyboard driver. Also check GDK_VT to see what
8471         tty to open.
8472         Move gdk_beep () here from gdkinput-ps2.c
8473         gdk_mouse_get_info -> gdk_fb_mouse_get_info
8474
8475         * gdk/linux-fb/gdkmouse-fb.c:
8476         Add header.
8477         gdk_mouse_get_info -> gdk_fb_mouse_get_info
8478         Return correct keyboard modifiers.
8479         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
8480
8481         * gdk/linux-fb/gdkprivate-fb.h:
8482         Add tty and vt info to display.
8483         Add orignal modeinfo storage to display
8484         Update global functions
8485
8486         * gdk/linux-fb/gdkwindow-fb.c:
8487         Added gdk_fb_window_find_focus().
8488         gdk_mouse_get_info -> gdk_fb_mouse_get_info
8489
8490 2000-12-07  Havoc Pennington  <hp@pobox.com>
8491
8492         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
8493         function, noticed by Alex
8494
8495 2000-12-06  Elliot Lee  <sopwith@redhat.com>
8496
8497         * configure.in: Detect freetype properly
8498
8499         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
8500         above.
8501
8502 2000-12-06  Alexander Larsson  <alexl@redhat.com>
8503
8504         * gdk/linux-fb/Makefile.am:
8505         Add gdkmouse-fb.c
8506         
8507         * gdk/linux-fb/gdkmouse-fb.c:
8508         New file. Abstracted the mouse drivers a bit.
8509
8510         * gdk/linux-fb/gdkcursor-fb.c:
8511         The cursor hide/show functions was moved here from gdkinput-ps2.c.
8512
8513         * gdk/linux-fb/gdkinput-ps2.c:
8514         Removed old mouse handling code. Moved cursor handling code
8515         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
8516         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
8517         gdk_mouse_get_info.
8518
8519         * gdk/linux-fb/gdkmain-fb.c:
8520         Pass NULL pointers for x,y in gdk_mouse_get_info call.
8521
8522         * gdk/linux-fb/gdkprivate-fb.h:
8523         Removed public gdk_fb_find_common_ancestor, added and renamed
8524         functions for the new mouse handling code.
8525
8526         * gdk/linux-fb/gdkwindow-fb.c:
8527         Moved gdk_fb_window_send_crossing_events here. added global
8528         variable gdk_fb_window_containing_pointer. made
8529         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
8530         renamed to gdk_mouse_get_info.
8531
8532 2000-12-06  Alexander Larsson  <alexl@redhat.com>
8533
8534         * gdk/linux-fb/gdkevents-fb.c:
8535         Update to match latest gmain/gsource changes.
8536
8537         * gdk/linux-fb/gdkinput-ps2.c:
8538         Bogus gdk_keymap_get_entries_for_keycode implementation so that
8539         it links. Will be implemented later.
8540
8541 2000-12-03  Havoc Pennington  <hp@pobox.com>
8542
8543         * gdk/Makefile.am: add gdkkeys.[hc]
8544
8545         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
8546         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
8547
8548         * acconfig.h, configure.in: add checks and command line options
8549         for XKB
8550
8551         * gdk/x11/gdkkeys-x11.c: Implement the above functions
8552         
8553         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
8554         and group in the key event
8555
8556         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
8557         field with the low-level hardware key code, and a group
8558         field with the keyboard group
8559
8560         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
8561         and declare a couple globals used for keymap handling
8562         
8563         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
8564         hold down Shift-Control and type a hex number to get a Unicode 
8565         character corresponding to the hex number
8566         (gtk_im_context_simple_get_preedit_string): Fix cursor position
8567         (return bytes not chars)
8568
8569 2000-12-05  Elliot Lee  <sopwith@redhat.com>
8570
8571         * gdk/gdkcolor.h: Make GdkColor specify element sizes
8572         to avoid waste on 64-bit platforms.
8573
8574 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
8575
8576         * INSTALL: Fix link to PNG home, remove reference
8577         to fribidi.
8578
8579         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
8580         
8581         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
8582         tested.)
8583
8584         * gtk/gtkcheckmenuitem.c: Permanently turn on
8585         always_show_toggle.
8586
8587         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
8588         be NULL. (Vladimir Klebanov, #26545)
8589
8590         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
8591         some signed/unsigned comparison problems. (#6510,
8592         David Kaelbling)
8593
8594         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
8595         return type to boolean (Oskar Liljeblad, #18648)
8596
8597 2000-12-05  Alexander Larsson  <alexl@redhat.com>
8598
8599         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
8600         Remove bogus colormap setting.
8601
8602 2000-12-05  Alexander Larsson  <alexl@redhat.com>
8603
8604         * gdk/linux-fb/gdkcolor-fb.c:
8605         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
8606
8607         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
8608         Must set colormap.
8609         
8610 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
8611
8612         * docs/tutorial/gtk-tut.sgml: DND updates
8613
8614 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
8615
8616         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
8617         Remove old debug g_warning().
8618         (gdk_fb_draw_drawable): The src argument can be either a wrapper
8619         or an implementation, just pass the implementation to draw_drawable_2.
8620         
8621         * gdk/linux-fb/gdkprivate-fb.h:
8622         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
8623
8624         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
8625         clear and invalidate area when window is destroyed.
8626         (send_map_events): Remove old commented out code.
8627
8628 2000-12-05  Alexander Larsson  <alexl@redhat.com>
8629
8630         * gdk/linux-fb/gdkpango-fb.c:
8631         Use italic instead of oblique in font aliases.
8632         
8633         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
8634         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
8635         other unsupported functions.
8636
8637 2000-12-04  Havoc Pennington  <hp@redhat.com>
8638
8639         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
8640
8641         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
8642
8643         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
8644
8645         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
8646         hack to avoid infinite loops (synthetic expose event) - 
8647         Owen has more appropriate fixes in a branch he'll check in later.
8648
8649         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
8650         separator, CR, and CRLF as line ends
8651
8652         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
8653         into lines using pango_find_paragraph_boundary(); other bits of
8654         the widget are still going to be broken if the boundary isn't '\n'
8655         though
8656
8657 2000-12-04  Alexander Larsson  <alexl@redhat.com>
8658
8659         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
8660         multiply.
8661
8662         * gdk/linux-fb/gdkpango-fb.c:
8663         Copied some 26.6 scaling macros from pango to clean up the rounding.
8664         (pango_fb_font_get_glyph_info): Correct sign on x value.
8665
8666         * gdk/linux-fb/gdkprivate-fb.h:
8667         Removed unreferenced external functions.
8668
8669         * modules/linux-fb/Makefile.am: Use ` instead of '.
8670
8671         * modules/linux-fb/basic.c:
8672         Remove dead code. In particular the dummy lang engine which broke all
8673         pango layouts in GtkFB. Don't include tables-big.i anymore.
8674
8675         * modules/linux-fb/tables-big.i:
8676         Upgrade to latest version from pango. Left for reference, basic_ranges
8677         moved to basic.c.
8678         
8679 2000-12-04  Havoc Pennington  <hp@redhat.com>
8680
8681         Fix bugs Alex found:
8682         
8683         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
8684         to "draw"
8685
8686         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
8687
8688         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
8689
8690         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
8691         implementation in here, apparently the expose() implementation was
8692         dead code.
8693
8694 2000-12-04  Alexander Larsson  <alexl@redhat.com>
8695
8696         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
8697         Return positive descent.
8698
8699 2000-12-02  Havoc Pennington  <hp@pobox.com>
8700
8701         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
8702         method and signal
8703         
8704         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
8705         calls gdk_window_process_updates() to push the exposes through
8706         (gtk_widget_class_init): No more draw signal, no
8707         gtk_widget_real_draw()  
8708         
8709         * gtk/gtkbin.c (gtk_bin_draw): remove
8710
8711         * gtk/gtkbox.c (gtk_box_draw): remove
8712
8713         * gtk/gtkbutton.c (gtk_button_draw): remove
8714
8715         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
8716
8717         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
8718
8719         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
8720
8721         * gtk/gtkclist.c (gtk_clist_draw): remove
8722
8723         * gtk/gtkentry.c (gtk_entry_draw): remove
8724
8725         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
8726
8727         * gtk/gtkfixed.c (gtk_fixed_draw): remove
8728
8729         * gtk/gtkframe.c (gtk_frame_draw): remove
8730
8731         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
8732
8733         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
8734
8735         * gtk/gtklayout.c (gtk_layout_draw): remove
8736
8737         * gtk/gtklist.c (gtk_list_draw): remove
8738
8739         * gtk/gtklistitem.c (gtk_list_item_draw): remove
8740
8741         * gtk/gtkmenu.c (gtk_menu_draw): remove
8742
8743         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
8744
8745         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
8746
8747         * gtk/gtknotebook.c (gtk_notebook_draw): remove
8748
8749         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
8750
8751         * gtk/gtkpacker.c (gtk_packer_draw): remove
8752
8753         * gtk/gtkrange.c (gtk_range_draw): remove
8754
8755         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
8756
8757         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
8758
8759         * gtk/gtktable.c (gtk_table_draw): remove
8760
8761         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
8762
8763         * gtk/gtktext.c (gtk_text_draw): remove
8764
8765         * gtk/gtktextview.c (gtk_text_view_draw): remove
8766
8767         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
8768
8769         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
8770
8771         * gtk/gtktree.c (gtk_tree_draw): remove
8772
8773         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
8774
8775         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
8776
8777         * gtk/gtkviewport.c (gtk_viewport_draw): remove
8778
8779         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
8780
8781         * gtk/gtkvscale.c (gtk_vscale_draw): remove
8782
8783         * gtk/gtkwindow.c (gtk_window_draw): remove
8784
8785 2000-20-01  Anders Carlsson  <andersca@gnu.org>
8786
8787         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
8788         a GtkToggleButton is both insensitive and active, it was being
8789         drawn by the GtkButton draw handler which doesn't check the
8790         state. Now it's calling gtk_toggle_button_paint instead.
8791         
8792 2000-12-01  Havoc Pennington  <hp@redhat.com>
8793
8794         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
8795         dangling pointers to the appearance attributes from the 
8796         line display
8797
8798         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
8799         width/height to mean "full width/height of drawable"
8800
8801         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
8802         click to select word/line
8803         
8804         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
8805         when getting log attrs. Get a slice, so that pixmaps and stuff
8806         are properly handled.
8807
8808         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
8809         paste into the selection (replaces selection now, previously
8810         crashed or added to selection). Reveals longstanding btree bug -
8811         select multiple lines, middle-click on the selection, boom. This
8812         isn't related to my changes though.
8813
8814         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
8815         PangoLogAttrs changes
8816         (gtk_entry_move_backward_word): ditto
8817
8818         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
8819         functions return bool whether the iter moved onto a
8820         dereferenceable position.
8821  
8822         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
8823         functions for motion in terms of display lines.
8824
8825         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
8826         get the buffer a mark is inside
8827         
8828 2000-12-01  Alexander Larsson  <alexl@redhat.com>
8829
8830         * gdk/linux-fb/Makefile.am:
8831         * modules/linux-fb/Makefile.am:
8832         Freetype 2 final uses freetype-config
8833
8834         * gdk/linux-fb/gdkpango-fb.c:
8835         Upgrade to use Freetype 2 final.
8836         More flexible support for font aliases, this also fixes a bug with
8837         GtkFontSelector, as the aliases must be visible in the font/family list,
8838         or GtkFontSelector reads uninitialized memory.
8839
8840 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
8841
8842         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
8843         XGetIMValues to properly terminate variable argument list, and do
8844         NULL return check for ic_values and xim_styles.
8845
8846         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
8847         Restore preedit state after XmbResetIC().
8848         
8849         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
8850         XvaCreateNestedList() should take XvaNestedList, but not
8851         XvaNestedList*.
8852
8853         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
8854         preedit_draw_callback, preedit_caret_callback): Match
8855         "preedit-changed" signal name to "preedit_changed" to be
8856         consistent to the spec.
8857
8858         * gtk/gtkimcontextsimple.c (check_table):
8859         Match "preedit-changed" to "preedit_changed" to be consistent
8860         to the spec.
8861
8862 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
8863
8864         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
8865         gc->clip_region == NULL>
8866
8867 2000-11-30  Tor Lillqvist  <tml@iki.fi>
8868
8869         Changes by Hans Breuer:
8870         
8871         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
8872         Dont't use negative width and height as max_hints. This fixes
8873         Owen's recent testgtk changes for win32.
8874
8875         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
8876         gdk_win32_hdc_release): These are exported and may be called with
8877         other drawable types than our GdkDrawableImplWin32 (?).
8878
8879         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
8880         so always #define USE_BACKING_STORE.
8881
8882         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
8883         of printf for debugging output.
8884
8885         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
8886         
8887         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
8888
8889         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
8890         declaration.
8891
8892         * gtk/gtktexttypes.h: Ditto.
8893
8894         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
8895         (GDK_VoidSymbol) also if in case of arg check failure.
8896
8897         * gtk/gtkimcontextsimple.c
8898         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
8899         position to the pointer, but to the variable it points to.
8900
8901         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
8902
8903         * gtk/gtk.def: Updates.
8904
8905 2000-11-29  Elliot Lee  <sopwith@redhat.com>
8906
8907         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
8908         GTK_TYPE_TREE_MODEL.
8909
8910 2000-11-29  Alexander Larsson  <alexl@redhat.com>
8911
8912         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
8913         Set the size of the font from the description.
8914         (gdk_text_width): Gross hack that calculates the width
8915         of text by text_length * size/2. This is necessary because
8916         GtkLabel does some ugly gtk_string_width call to calculate
8917         an good size.
8918         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
8919
8920 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
8921
8922         * docs/tutorial/gtk-tut.sgml: DND updates
8923
8924 2000-11-29  Alexander Larsson  <alexl@redhat.com>
8925
8926         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
8927         If you pass width or height == 0 to gdk_window_clear_area they
8928         should be calculated from the window size.
8929
8930 2000-11-29  Alexander Larsson  <alexl@redhat.com>
8931
8932         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
8933         a grab, but no grab-cursor, use the cursor from the grabbed
8934         window. (gdk_fb_window_send_crossing_events): Send normal
8935         enter/leave notifications if grab and owner_events == TRUE.
8936
8937 2000-11-29  Alexander Larsson  <alexl@redhat.com>
8938
8939         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
8940         Do implicit button grabs, even if the window doesn't
8941         want the event.
8942         (gdk_fb_window_send_crossing_events): If there is a
8943         grab, only the grabbed window gets normal enter/leave
8944         notifications. On ungrab go from grabbed window to current.
8945         Don't send any notification to b when propagating from c -> b.
8946         If setting a grab on window, don't set prev_window.
8947         (handle_mouse_input): Send enter/leave events to the window the
8948         mouse is over, not the grabbed one.
8949         
8950 2000-11-28  Elliot Lee  <sopwith@redhat.com>
8951
8952         * gdk/gdkregion-generic.c: Zap warning.
8953         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
8954         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
8955
8956 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
8957
8958         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
8959         The cursor should be hidden if it is part of either the
8960         source or destination region. Not only if it is in both.
8961         (gdk_window_set_transient_for): Silence warnings.
8962
8963 2000-11-28  Alexander Larsson  <alexl@redhat.com>
8964
8965         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
8966         The default mode in X is Pie Arcs, therefore that is
8967         what Gtk+ uses.
8968
8969 2000-11-28  Alexander Larsson  <alexl@redhat.com>
8970
8971         * gdk/linux-fb/gdkinput-ps2.c:
8972         Implement correct EnterNotify/LeaveNotify:
8973         (gdk_fb_window_send_crossing_events): New function that sends
8974         all GdkCrossingEvents from the last mouse-window to the specified
8975         destination.
8976         (gdk_fb_window_visibility_crossing): Removed function.
8977         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
8978         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
8979         instead of gdk_window_get_pointer() for better readability.
8980
8981         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
8982         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
8983
8984         * gdk/linux-fb/gdkprivate-fb.h:
8985         removed gdk_fb_window_visibility_crossing, added
8986         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
8987
8988         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
8989         New function that finds the least common ancestor of two windows.
8990         (gdk_window_show, gdk_window_hide):
8991         Use gdk_fb_window_send_crossing_events.
8992         (gdk_fb_window_move_resize): Send configure events to toplevel
8993         windows. Use gdk_fb_window_send_crossing_events.
8994
8995 2000-11-27  Havoc Pennington  <hp@redhat.com>
8996
8997         * gtk/gtkprivate.h (enum): Remove a trailing comma
8998
8999 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
9000
9001         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
9002         the "changed" callback of the adjustment.  We need to redraw the
9003         spin button's arrows when the adjustment's range changes.
9004         (adjustment_changed_cb): Draw the arrows.
9005         (gtk_spin_button_value_changed): Draw the arrows.
9006
9007 2000-11-23  Alexander Larsson  <alexl@redhat.com>
9008
9009         * gdk/linux-fb/gdkselection-fb.c:
9010         Initial selection implementation.
9011
9012         * gtk/gtkselection.c:
9013         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
9014         requestor in gtk_selection_request.
9015         
9016         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
9017         Added gdk_selection_property atom.
9018
9019         * gdk/linux-fb/gdkprivate-fb.h:
9020         Export _gdk_selection_window_destroyed.
9021         Removed mask_off_x/y from GdkCursorPrivateFB.
9022         Removed hbearing, added top, left to PangoFBGlyphInfo.
9023
9024         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
9025         Call _gdk_selection_window_destroyed
9026         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
9027         the root window has been created.
9028         (static_dx_hack, static_dy_hack, compare_draw_rects,
9029         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
9030         in region. They are already sorted. Instead just traverse them in
9031         reverse if draw_direction < 0.
9032         
9033         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
9034         Double-clicks must be sent after the normal button_press.
9035         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
9036         
9037         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
9038         Pass _gdk_fb_screen_gc instead of NULL.
9039
9040         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
9041         Initialize gdk_selection_property.
9042         (gdk_event_make): Remove unused code.
9043
9044         * gdk/linux-fb/gdkcursor-fb.c:
9045         Make the pixmap for the cursor the same size as the mask. Also remove
9046         the mask_off_x/y fields in GdkCursorPrivateFB and combine
9047         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
9048         Now the whole cursor is visible.
9049
9050         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
9051         Fix bug where xdest+height instead of ydest+height was used
9052         to calculate if the source and dest overlapped. This fixes the
9053         redraw bug when the main window in testgtk was scrolled when
9054         partially covered by a tall window.
9055         Copy rectangles in region in order depending on draw_direction.
9056         Also moved the draw_direction flipping of start_y and end_y into
9057         the gc functions, as this might not be what all of them want.
9058         (gdk_fb_draw_lines): Support dashed lines.
9059         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
9060         so that the text is positioned correctly (was 1 pixel high).
9061
9062         gdk/linux-fb/gdkgc-fb.c:
9063         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
9064         all lines were drawn a pixel to short. Also checked the default of
9065         the rest of the values, and they're the same as X now.
9066
9067         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
9068         Clean up pixel positioning of the glyphs. Just use bgy->top and
9069         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
9070         to all divisions to get correct rounding behaviour.
9071
9072         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
9073         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
9074         Moved start_y/end_y flip into draw_drawable implementations.
9075         Flip also x rendering when draw_direction < 0.
9076         Remove unneccesary multiply with draw_direction.
9077
9078 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
9079
9080         * docs/tutorial/gtk-tut.sgml:
9081           - get rid of gtk_toggle_button_toggled FUD
9082           - start DND section - needs work - based on:
9083                 http://wolfpack.twu.net/docs/gtkdnd/
9084
9085 2000-11-22  Alexander Larsson  <alexl@redhat.com>
9086
9087         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
9088         Correct calculation of font metrics. Now GtkEntrys have sane
9089         size.
9090
9091 2000-11-22  Alexander Larsson  <alexl@redhat.com>
9092
9093         * gdk/gdktypes.h:
9094         Add new type GdkSpan
9095         
9096         * docs/reference/gdk/gdk-sections.txt,
9097         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
9098         gdk/gdkregion.h:
9099         Implement and document gdk_region_spans_intersect_foreach.
9100
9101         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
9102         Add new file gdkrender-fb.c which contains all core
9103         rendering code.
9104         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
9105         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
9106         (optimized rectangle fillers).
9107
9108         * gdk/linux-fb/gdkdrawable-fb2.c:
9109         Move all rendering code to gdkrender-fb.c.
9110         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
9111         Use the new span intersection functions in gdk_fb_fill_spans.
9112         gdk_fb_draw_rectangle() clips filled rectangles and calls
9113         gc->fill_rectangle with the result.
9114         gdk_fb_fill_spans() gets extra argument "sorted".
9115
9116         * gdk/linux-fb/gdkevents-fb.c:
9117         Remove unused includes and defines.
9118         New function gdk_fb_get_time() to get correct time for events.
9119
9120         * gdk/linux-fb/gdkinput-ps2.c:
9121         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
9122         Make sure to set the time of all events.
9123
9124         * gdk/linux-fb/gdkmain-fb.c:
9125         Use gdk_fb_get_time ().
9126
9127         * gdk/linux-fb/gdkprivate-fb.h:
9128         New virtual GC calls: fill_span & fill_rectangle.
9129         Export gdk_fb_get_time().
9130         gdk_fb_fill_spans() gets extra argument "sorted".
9131
9132         * gdk/linux-fb/mi*.c:
9133         Use GdkSpan instead of GdkRectangle.
9134         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
9135         from XFree 4 source)
9136         
9137 2000-11-22    <jrb@redhat.com>
9138
9139         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
9140         reversing the order in an if statement will do.  Doing so managed
9141         to make the treemodelsort half work.  Other half will follow after
9142         I get the insert function fully fixed.
9143
9144 2000-11-21  Elliot Lee  <sopwith@redhat.com>
9145         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
9146         more than 2 bits. Besides, I need to implement an evil hack. :)
9147
9148 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
9149
9150         * docs/tutorial/gtk-tut.sgml: minor corrections
9151
9152 2000-11-20  Jonathan Blandford <jrb@redhat.com>
9153         * gtk/gtktreemodelsort.h: Add convertion functions to let you
9154           convert to and from relative path's and iters.
9155
9156         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
9157           testing sorting functions a bit better.  Currently broken -- will
9158           fix in morning.
9159
9160 2000-11-20  Havoc Pennington  <hp@redhat.com>
9161
9162         * gtk/gtkwidget.c: Documented a bunch of functions in here
9163         (gtk_widget_realize): Warn if you try to realize
9164         a widget with no parent that isn't a toplevel
9165         (gtk_widget_intersect): return a gboolean
9166
9167 2000-11-20  Havoc Pennington  <hp@redhat.com>
9168
9169         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
9170         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
9171         scrolling to be implemented in GDK to finish. Also, right now
9172         we just size_allocate all children on every layout change,
9173         which is pretty lame. Test commented out of testtext.c, 
9174         until it works better.
9175
9176 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
9177
9178         * gdk/linux-fb/gdkdrawable-fb2.c:
9179         Removed unused arguments from gdk_fb_drawable_get_pixel().
9180
9181         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
9182         Renamed fidur specific mouse packet data in MouseDevice to
9183         generic. Used it in ps2 mouse handling code to avoid blocking
9184         reads.
9185
9186 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
9187
9188         * demos/gtk-demo/main.c: Changed to have the list become
9189         non-italic when the demo window is destroyed through an external
9190         event (like a close button).  Doing so found three bugs in the
9191         widget.
9192
9193         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
9194
9195         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
9196         we actually set the cell.
9197
9198         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
9199
9200         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
9201         free a leaked path.  Thanks memprof.
9202
9203 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
9204
9205         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
9206         off-by-one error when destroying allocated segments
9207         on failure. (Elliot)
9208
9209 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
9210
9211         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
9212         memleaks found by Evan Martin.
9213
9214 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
9215
9216         * Released 1.3.2
9217         
9218         * NEWS: Updates for 1.3.2
9219
9220 2000-11-17  Tor Lillqvist  <tml@iki.fi>
9221
9222         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
9223         but in general for window system specific events.
9224
9225         * gtk/gtk.def
9226         * gtk/makefile.mingw.in
9227         * gtk/makefile.msc.in: Update.
9228         
9229         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
9230
9231 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
9232
9233         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
9234         distribute gtk.immodules.
9235
9236         * gtk/Makefile.am (install-data-local): Don't install the
9237         gtk.immodules file created for the uninstalled modules;
9238         instead run gtk-query-immodules after install
9239
9240 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
9241
9242         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
9243         -rpath to the right install location.
9244
9245         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
9246         -export-dynamic.
9247
9248         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
9249         properly.
9250
9251 2000-11-15  Havoc Pennington  <hp@pobox.com>
9252
9253         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
9254         patch from Mikael Hermansson to temporarily stop blinking while
9255         the user is using the keyboard to type or navigate. 
9256
9257         Also, when blinking, stay on for longer than we stay off. Also,
9258         return from start_cursor_blink if !cursor_visible, to save
9259         checking that flag all over the place before we call
9260         start_cursor_blink.
9261
9262 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
9263
9264         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
9265         only contain a "fontset" line, which is now ignored.
9266
9267         * gtk/gtkentry.c (gtk_entry_button_release): Make 
9268         double-click-to-select-word work.
9269         
9270 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
9271
9272         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
9273         Don't move back one char when we are actually at the end of the 
9274         paragraph.
9275
9276 2000-11-15  Robert Brady  <robert@suse.co.uk>
9277
9278         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
9279         'o' < 'p'.
9280         
9281         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
9282         bind_textdomain_codeset.
9283
9284         (gtk_init_check): Make the warning about translating default:LTR
9285         sterner.
9286         
9287 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
9288
9289         * **/Makefile.am : remove unecessary rules for win32-specific
9290         config-substituted targets. If you want these rules, use
9291         --enable-maintainer-mode (called automatically by autogen.sh).
9292         Stops a lot of unneccessary make-time warnings.
9293
9294         * gtk/gtktext{layout,display}.c: Factor in total width as
9295         well as screen when figuring alignment for word-wrap as well as
9296         no wrap; this is necessary to handle lines that cannot be wrapped
9297         at all.
9298
9299 2000-11-15  Havoc Pennington  <hp@redhat.com>
9300
9301         * gtk/testtext.c: Implement essential color cycling feature
9302
9303 2000-11-15  Havoc Pennington  <hp@redhat.com>
9304
9305         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
9306         when we invalidate the main window.
9307
9308         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
9309         GtkTextView will now invalidate the side windows for us when text
9310         changes.
9311
9312 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
9313
9314         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
9315         unconditionally, since we may need to update the horizontal
9316         scrollbars even if the height didn't change.
9317
9318         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
9319         the extra attrs, since some of them affect size.
9320
9321         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
9322         x_offset correctly.
9323
9324 2000-11-15  Havoc Pennington  <hp@redhat.com>
9325
9326         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
9327         don't move the first line out into the margin, instead move the
9328         whole paragraph in order to make space for the first line within 
9329         the margin
9330
9331 2000-11-15  Havoc Pennington  <hp@redhat.com>
9332
9333         * gtk/gtktextview.c (changed_handler): offset redraw rect by
9334         xoffset in addition to yoffset, so horizontal scrolling doesn't
9335         break redraws
9336
9337 2000-11-15  Havoc Pennington  <hp@redhat.com>
9338
9339         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
9340         from the cursor
9341         (render_layout_line): fix reversed test that caused weird
9342         underlines to get drawn
9343
9344 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
9345
9346         * gdk/linux-fb/gdkprivate-fb.h:
9347         Fix debug macros.
9348         
9349 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
9350
9351         * gdk/linux-fb/gdkprivate-fb.h:
9352         Added virtual functions set_pixel, get_color,
9353         fill_span and draw_drawable to the GC.
9354         Added global _gdk_fb_screen_gc to use instead of
9355         NULL when drawing to the screen.
9356         Added _gdk_fb_gc_calc_state() prototype.
9357
9358         * gdk/linux-fb/gdkgc-fb.c:
9359         Call _gdk_fb_gc_calc_state() on any gc state change.
9360
9361         * gdk/linux-fb/gdkglobals-fb.c:
9362         Add _gdk_fb_screen_gc
9363                 
9364         * gdk/linux-fb/gdkdrawable-fb2.c:
9365         _gdk_fb_gc_calc_state() calculates best functions
9366         for the GC state and depth.
9367         Moved bpp specialized code to separate functions.
9368         Added optimized 24 bpp AA draw_drawable.
9369
9370         * gdk/linux-fb/gdkevents-fb.c:
9371         Silence gcc warning.
9372
9373         * gdk/linux-fb/gdkimage-fb.c:
9374         Use _gdk_fb_screen_gc
9375
9376         * gdk/linux-fb/gdkwindow-fb.c:
9377         Init and use _gdk_fb_screen_gc
9378
9379         * gdk/linux-fb/mitypes.h:
9380         Remove unused types.
9381
9382 2000-11-14  Havoc Pennington  <hp@pobox.com>
9383
9384         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
9385         to pixels
9386
9387 2000-11-14  Havoc Pennington  <hp@pobox.com>
9388
9389         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
9390
9391         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
9392         unknown char, no real reason we were using a variable. 
9393         Remove gtk_text_unknown_char variable. Fix all the text widget
9394         files accordingly.
9395
9396         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
9397         since the Unicode spec seems to prefer that character for our
9398         purposes.
9399
9400 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
9401
9402         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
9403         value of g_getenv() isn't freeable, so g_strdup it.
9404
9405         * modules/input/inuktitut.c: Inuktitut input method.
9406
9407         * modules/input/Makefile.am: Build this.
9408         
9409 2000-11-14  Elliot Lee  <sopwith@redhat.com>
9410
9411         * gtk/Makefile.am: Install gtk.immodules, needed for operation
9412         of gtk programs.
9413
9414 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
9415
9416         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
9417         reversed > that was causing Home to go to end of previous line.
9418
9419         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
9420         modified-keypresses (leave for bindings.)
9421
9422         * modules/input/Makefile.am: Remove useless -export-dynamic
9423         from module LDFLAGS.
9424
9425 2000-11-14  Havoc Pennington  <hp@redhat.com>
9426
9427         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
9428         higher.
9429
9430         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
9431         account. Also, render rise, underline, background, etc. for
9432         pixbufs as well as text. Also, draw underlines one pixel higher.
9433
9434         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
9435         PangoAttribute for the rise, so it gets drawn properly. Also,
9436         add the GtkTextAppearance attribute for pixbuf/widget segments
9437         as well; we should go ahead and have rise, underline, background,
9438         stipple work for those
9439
9440         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
9441         Pango
9442
9443 2000-11-15  Tor Lillqvist  <tml@iki.fi>
9444
9445         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
9446
9447         * gtk/gtk.def: Update.
9448
9449         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
9450         included.
9451         (gtk_rc_get_im_module_file): Use run-time installation directory
9452         on Win32.
9453
9454         * gdk/win32/rc/gdk.rc: Remove.
9455         * gdk/win32/rc/gdk.rc.in: New file.
9456         * gdk/win32/rc/Makefile.am: New file
9457         * gdk/win32/Makefile.am: Corresponding changes.
9458
9459         * gtk/gtk.rc: Remove.
9460         * gtk/gtk-win32.rc.in: New file.
9461         * gtk/Makefile.am: Corresponding changes.
9462
9463         * configure.in: Corresponding changes.
9464
9465         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
9466         has a built gtkcompat.h. Developers using CVS code on Win32 can
9467         hand-edit it from gtkcompat.h.in.
9468
9469         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
9470         gtkcompat.h from gtkcompat.h.win32.
9471
9472 2000-11-14  Havoc Pennington  <hp@redhat.com>
9473
9474         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
9475         to default to GDK_ACTION_MOVE if the drag is within a single
9476         widget. Defaults to GDK_ACTION_COPY between widgets.
9477
9478 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
9479
9480         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
9481
9482         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
9483
9484         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
9485         srcdir != builddir
9486
9487         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
9488
9489         * configure.in (GTK_VERSION): Up to 1.3.2
9490
9491         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
9492         gtkimcontextxim.h
9493
9494         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
9495         missing doc comment.
9496
9497 2000-11-14  Alexander Larsson  <alexl@redhat.com>
9498
9499         * modules/linux-fb/basic.c:
9500         Use the glib iconv wrappers.
9501
9502 2000-11-13  Havoc Pennington  <hp@pobox.com>
9503
9504         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
9505         still more bugs.
9506
9507         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
9508         scroll the GdkWindows before realization.
9509
9510 2000-11-13  Havoc Pennington  <hp@redhat.com>
9511
9512         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
9513         where GC didn't always get updated properly
9514
9515         * demos/gtk-demo/textview.c (create_tags): Use subattributes
9516         of fonts instead of setting the entire font
9517
9518         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
9519         setting entire font
9520
9521         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
9522
9523         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
9524         a bunch of individually-settable font attributes. You can still 
9525         use the "font" and "font_desc" args, they just set all the font
9526         attributes at once.
9527
9528 2000-11-13 Elliot Lee <sopwith@redhat.com>
9529
9530         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
9531
9532 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
9533
9534         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
9535         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
9536
9537         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
9538         work better.
9539
9540 2000-11-13  Havoc Pennington  <hp@redhat.com>
9541
9542         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
9543         the module file.
9544
9545         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
9546         dest->language
9547
9548         * gtk/testtext.c: Test pixels above/below/inside paragraphs
9549         settings
9550
9551         * gtk/gtktextview.c: Implement object args and setters/getters for
9552         all the aspects of the GtkTextAttributes that are not set from
9553         GtkWidget attributes. This is spacing, justification, margins,
9554         etc.
9555
9556         (gtk_text_view_set_arg)
9557         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
9558         args
9559         (gtk_text_view_class_init): Add args for justify, left_margin,
9560         right_margin, indent, and tabs
9561         
9562
9563         * gtk/gtktextlayout.c (set_para_values): fix to display indent
9564         attribute properly
9565
9566         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
9567         replace with indent attribute
9568
9569         * gtk/gtktextlayout.c (set_para_values): multiply indent by
9570         PANGO_SCALE
9571
9572         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
9573         rearranging code to do that
9574         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
9575         i.e. don't subtract the top_margin first, just to keep
9576         all margin-futzing in one place.
9577
9578         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
9579
9580         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
9581         special case of last line, Pango now handles this itself.
9582         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
9583         Y coordinate
9584         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
9585         (find_display_line_above): wasn't moving the byte index as it
9586         iterated over lines, so always returned byte 0. Also, port to use
9587         PangoLayoutIter.
9588         (find_display_line_below): same problem as
9589         find_display_line_above. Also, port to use PangoLayoutIter.
9590
9591 2000-11-13  Alexander Larsson  <alexl@redhat.com>
9592
9593         * gdk/linux-fb/*.[ch]:
9594         Massive reindent to gtk+ standard. My hands hurt.
9595
9596         * gdk/linux-fb/gdkcolor-fb.c:
9597         Move GdkColorPrivateFB from inherited to windowing_data
9598
9599         * gdk/linux-fb/gdkcursor-fb.c:
9600         _gdk_cursor_new_from_pixmap made static
9601
9602         * gdk/linux-fb/gdkdnd-fb.c:
9603         GdkDragContextPrivate moved to windowing_data
9604
9605         * gdk/linux-fb/gdkdrawable-fb2.c:
9606         Removed endian.h, use glib endianness macros instead
9607         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
9608         and GDK_DRAWABLE_IMPL_FBDATA
9609
9610         * gdk/linux-fb/gdkfont-fb.c:
9611         Add empty gdk_font_load(). Needed for linking of Gtk+.
9612
9613         * gdk/linux-fb/gdkimage-fb.c:
9614         Removed endian.h, use glib endianness macros instead
9615         Moved GdkImagePrivateFB to windowing_data
9616         gdk_image_new_bitmap didn't always allocate enough
9617         memory.
9618
9619         * gdk/linux-fb/gdkinput-ps2.c:
9620         Added semi-working support for MS serial mice.
9621
9622         * gdk/linux-fb/gdkprivate-fb.h:
9623         s/GdkWindowPrivate/GdkWindowObject/
9624         Removed GdkWindowPrivate typedef
9625         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
9626         Removed GDK_DRAWABLE_P
9627         Move GdkColorPrivateFB from inherited to windowing_data
9628         Moved GdkImagePrivateFB to windowing_data
9629
9630         * gdk/linux-fb/gdkvisual-fb.c:
9631         Removed some unused debug code.
9632
9633         * gdk/linux-fb/gdkwindow-fb.c:
9634         Use stock cursors instead of including X headers.
9635         s/GdkWindowPrivate/GdkWindowObject/
9636
9637         * gdk/linux-fb/mitypes.h:
9638         Removed unused types.
9639
9640         * modules/linux-fb/basic.c:
9641         Use the pango fribidi wrappers.
9642
9643 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
9644
9645         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
9646         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
9647         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
9648         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
9649         GEqualFunc where applicable.
9650         
9651         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
9652         pango_font_description_equal as changed in pango.
9653         
9654         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
9655
9656         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
9657
9658         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
9659
9660         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
9661
9662         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
9663
9664         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
9665
9666         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
9667         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
9668
9669         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
9670         gtk_rc_styles_compare -> gtk_rc_styles_equal.
9671
9672 2000-11-12  Havoc Pennington  <hp@pobox.com>
9673
9674         * demos/gtk-demo/Makefile.am (democodedir): change demo install
9675         dir to datadir/gtk+-2.0/demo
9676
9677         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
9678         sorts of text widget and Pango font bugs. Urgh.
9679
9680         * demos/gtk-demo/Makefile.am (demos): Add textview.c
9681
9682         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
9683         tree that you should double click to see the demo. Fix 
9684         types of variables to reflect changed return values from 
9685         GtkTreeStore and GtkTreeViewColumn constructors.
9686
9687         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
9688         newly-created buffer to prepare for GObject semantics
9689
9690         * gtk/testtext.c: don't leak the buffer with GObject semantics
9691
9692         * gtk/testtextbuffer.c: ditto
9693         
9694 2000-11-12  Havoc Pennington  <hp@pobox.com>
9695
9696         Rename this testgtk to gtk-demo to avoid confusion, and 
9697         install it so people can use it as a supplement to 
9698         the documentation.
9699         
9700         * demos/gtk-demo: Moved from demos/testgtk
9701
9702         * demos/testgtk: Removed
9703
9704         * configure.in: make Makefile in gtk-demo
9705         
9706         * demos/gtk-demo/Makefile.am: Install sample source to 
9707         datadir/gtk-demo (maybe there's a better place?), and 
9708         rename the binary to gtk-demo
9709         
9710         * demos/gtk-demo/main.c (load_file): Load installed sample
9711         source if source isn't found in pwd.
9712
9713 2000-11-09  Havoc Pennington  <hp@pobox.com>
9714
9715         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
9716         argument to set the char displayed when visibility == FALSE
9717         (gtk_entry_create_layout): If !entry->visible, replace 
9718         all chars with the "invisible char"
9719
9720         * gtk/testgtk.c: Test the invisible_char deal
9721         
9722 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
9723
9724         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
9725         can't get a native font in the right encoding.
9726
9727 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
9728
9729         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
9730         respectively.
9731
9732 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
9733
9734         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
9735         Fix warning when moving between paragraphs.
9736
9737         * gtk/gtkentry.[ch]: Change move => move_cursor, 
9738         delete => delete_from_cursor, insert => insert_at_cursor
9739
9740 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
9741
9742         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
9743
9744         * modules/input/imthai-broken.c: A Thai input method for use if
9745         Thai keys are really generating Latin1 keysyms.
9746
9747         * modules/input/Makefile.am: Build these.
9748
9749 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
9750
9751         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
9752         g_filename_{to,from}_utf8 now takes an extra parameter.
9753
9754         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
9755         strftime into UTF-8.
9756
9757         (column_from_x, gtk_calendar_paint_day_names): Support RTL
9758         calendars.
9759
9760         (gtk_calendar_paint_day_names): Draw day names in the right 
9761         place.
9762         
9763 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
9764
9765         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
9766         problem with using result of g_get_charset() backwards -
9767         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
9768
9769         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
9770         negative min_width/height and max_width/height to
9771         mean "requisition"; this allows setting a window
9772         to be user-resizable in only one direction easily.
9773
9774         * gtk/testgtk.c (create_main_window): Remove hard-coded
9775         usize - set a default size in the vertical direction.
9776
9777 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
9778
9779         * gtk/gtkrange.c: Add some missing casts. Support 
9780         2 and 3 button clicks on the arrows to mean 
9781         "move by pages" and "jump to end". (Like gtkspinbutton)
9782
9783 2000-11-12 Hans Breuer <Hans@Breuer.Org>
9784
9785         * gdk/win32/makefile.msc : reflect build module changes
9786
9787         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
9788         from GdkPixmap*, cast implementation member instead.
9789
9790         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
9791         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
9792         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
9793         more Gdi functions return value checking. 
9794         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
9795         GdkImagePrivateWin32 *.
9796
9797         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
9798         menus useable again. Add #pragma message to keep reminded on this issue.
9799         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
9800         windows. This allows to enable backing store on Win32!
9801
9802         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
9803         in drawable is of impl type. Correct specific type checks appropriate.
9804  
9805         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
9806         GDK_WINDOW_DESTROYED before allocating new resources.
9807
9808         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
9809
9810         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
9811         (gdk_window_foreign_new) initialize parent handle.
9812         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
9813
9814         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
9815         Let the GDI invalidate the window on MoveWindow call to fix scrolling
9816         problems (e.g. main buttons in testgtk). 
9817
9818 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
9819
9820         * gtk/gtkentry.c (gtk_entry_key_press): Call 
9821         gtk_widget_activate for GDK_Return.
9822
9823         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
9824         of preedit cursor position.
9825
9826 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
9827
9828         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
9829         static.
9830
9831 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
9832
9833         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
9834         out support for multiple locales; that simple doesn't
9835         work reliably with current Xlib
9836
9837         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
9838         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
9839         Add support for positioning the cursor within the preedit string.
9840
9841 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
9842
9843         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
9844         at XIM input method module.
9845
9846         * gtk/gtktextview.c: Check for bindings after passing
9847         events to im context filter.
9848
9849 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
9850
9851         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
9852         empty attribute lists properly.
9853
9854 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
9855
9856         * gtk/queryimmodules.c (main): Return non-zero exit
9857         status if errors were encountered querying any
9858         modules.
9859
9860         * modules/input/Makefile.am (moduledir): remove
9861         leftover bin program target.
9862
9863         * docs/make-todo: Fix typo in error message.
9864
9865 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
9866
9867         * configure.in: Add modules/input/Makefile
9868
9869 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
9870
9871         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
9872         don't include gtkthemes.h.
9873
9874         * gtk/testgtk.c gtk/testtext.c: Set environment variables
9875         to point
9876
9877         * gtk/Makefile.am: Add new .c and .h files, build 
9878         gtk-query-immodules and use it to create a gtk.immodules
9879         file for use of test programs.
9880
9881         * gtk/gtkpreview.c: remove extra blank line.
9882
9883 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
9884
9885         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
9886         Add the ability to add extra tables beyond the default
9887         one, and also the ability to have compose sequences 
9888         that are prefixes of other compose sequences. 
9889
9890         * gtk/gtkimcontextsimple.c: Export a preedit string which
9891         consists of possible candidates for keystrokes that have
9892         been entered but not yet committed.
9893
9894         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
9895         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
9896
9897         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
9898         Add a function to add input-method switching menu items
9899         to a menu.
9900
9901         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
9902         when switching input methods.
9903
9904         * gtk/gtkimcontextsimple.[ch]: Change the format of
9905         the compose table to allow compose tables of different
9906         lengths / sequence.
9907
9908 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
9909
9910         * gtk/gtkimmodule.[ch]: Support routines for loading
9911         GtkIMContext implementations dynamically at runtime.
9912
9913         * modules/input/imcyrillic-translit.c: A sample input
9914         method (based on GtkIMContextSimple with an extra table),
9915         which demonstrates preedit strings and the module
9916         system for input modules
9917
9918         * gtk/queryimmodules.c: Program to query the available
9919         input modules and write the results into a file.
9920          
9921         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
9922         extra config options "im_module_file" (cache file for
9923         input method modules), and "im_module_path" - path
9924         to look for modules when generating cache file.
9925
9926         This doesn't scale.
9927
9928 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
9929
9930         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
9931         generic code from gtkthemes into a new abstraction
9932         GtkModule which has the logic for implementing
9933         a loadable module which implements a number of 
9934         GObject types.
9935
9936 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
9937
9938         * gtk/gtkeditable.[ch]: Convert GtkEditable from
9939         a class into an interface  
9940         
9941         * gtk/gtkoldeditable.[ch]: Move the old editable
9942         implementation into here, so legacy widgets can
9943         still rely on the implemenation. GtkOldEditable
9944         exports GtkEditable. Make selection handling
9945         code use new text conversion functions (and
9946         handle UTF-8 as a side-effect). Use GtkClipboard
9947         for CLIPBOARD.
9948
9949         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
9950         Adopt to match above changes.
9951
9952         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
9953         avoid GtkOldEditable implementation. Restructure
9954         to reduce number of places that modify state directly.
9955         Move to GtkBindingSet. Display the preedit string.
9956         Queue recomputation of PangoLayout and scroll position
9957         to improve effiency of doing complex changes naively.
9958         Add a menu with cut/copy/paste and input method selection.
9959
9960 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
9961
9962         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
9963         to set preedit string and attributes; display preedit string by
9964         inserting string and attributes at cursor when creating the
9965         GtkTextLineDisplay.
9966
9967         * gtk/gtktextlayout.c: Move all conversions between byte
9968         positions in PangoLayout and GtkTextIter into new functions
9969         line_display_iter_to_index/index_to_iter that properly
9970         handle the preedit string.
9971
9972         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
9973         it to return const char * (eventually will end up
9974         as GCONST char *, most likely.)
9975
9976         * gtk/gtktextview.[ch]: Handle the preedit string, call
9977         gtk_im_context_reset() as necessary, add a menu to switch
9978         input methods.
9979         
9980         * gtk/gtktextlayout.[ch]: Remove useless
9981         gtk_text_layout_get_log_attrs() function.
9982
9983 2000-11-11  Tor Lillqvist  <tml@iki.fi>
9984
9985         * gdk/gdk.def
9986         * gtk/gtk.def: Update.
9987
9988         * gdk/win32/*.c: Add last argument to g_type_register_static()
9989         calls.
9990
9991         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
9992
9993         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
9994         generated by older wheel mouse drivers. Get the correct y
9995         coordinate from WM_MOUSEWHEEL messages.
9996
9997         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
9998         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
9999         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
10000         Debugging functions.
10001
10002         * gdk/win32/gdkprivate-win32.h: Declare them.
10003
10004         * gdk/win32/gdkinput-win32.h: Add declaration for
10005         gdk_input_window_destroy().
10006
10007         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
10008
10009 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
10010
10011         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
10012         function to help handle keeping things in sync.
10013
10014 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
10015
10016         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
10017         BOXED marshallers.
10018
10019         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
10020         (gtk_list_store_class_init): use the new BOXED marshallers.
10021
10022         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
10023         new_with_values to new_with_types.
10024         (gtk_tree_store_get_column_type): add this.
10025         (gtk_tree_store_class_init): use the new BOXED marshallers.
10026
10027         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
10028         mirror some POINTER marshallers.
10029
10030 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
10031
10032         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
10033         allow more interesting iterators.  Also, made the lifecycle of
10034         iterators more explicit.
10035
10036         * gtk/gtktreemodelsort.[ch]: New model for sorting.
10037
10038         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
10039         types.
10040
10041 2000-11-09  Alexander Larsson  <alexl@redhat.com>
10042
10043         * demos/testgtk/menus.c:
10044         Changes to make the new testgtk compile after
10045         gtk_menu_append was removed.
10046
10047         * gdk/linux-fb/gdkdrawable-fb2.c
10048         (gdk_fb_get_depth, gdk_fb_get_visual,
10049         gdk_drawable_impl_fb_class_init): Implement
10050         these drawable functions. Now GtkImages work again.
10051
10052         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
10053
10054         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
10055         
10056         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
10057         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
10058         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
10059         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
10060
10061 2000-11-08  Havoc Pennington  <hp@pobox.com>
10062
10063         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
10064         visible_set args, don't know where these had gone, I thought they
10065         used to be there
10066
10067         * gtk/testtext.c: Add a menu item to apply invisibility tag;
10068         now we can test the feature and see that it's totally broken.
10069
10070 2000-11-08  Havoc Pennington  <hp@pobox.com>
10071
10072         Make DND copy pixbufs and tags when source and target share a 
10073         tag table.
10074         
10075         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
10076         in-process GTK_TEXT_BUFFER_CONTENTS target
10077         (gtk_text_view_drag_data_received): Paste from
10078         GTK_TEXT_BUFFER_CONTENTS if we receive it.
10079
10080 2000-11-08  Alexander Larsson  <alexl@redhat.com>
10081
10082         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
10083         API changes.
10084
10085         * gtk/gtkmenu.c: Add support for scrolling menus.
10086         Remove gtk_menu_append/prepend/insert, these have been moved to
10087         gtkcompat.h as #defines.
10088
10089         * gtk/gtkcompat.h.in:
10090         Add compatibility #defines for gtk_menu_append/prepend/insert
10091
10092         * gtk/gtkmenu.h: Add data needed for scrolling menus.
10093         GtkMenuPositionFunc gets an extra argument push_in.
10094         gtk_menu_append/prepend/insert removed.
10095         
10096         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
10097         positioning behaviour to fit to scrolling menus.
10098
10099         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
10100         into menuitem->submeny. That is wrong, and broke torn
10101         off submenus of torn off menus, since they were unrealized
10102         when the first menu was unrealized.
10103
10104         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
10105         gtk_menu_shell_select_item() since these need to be overridden in
10106         GtkMenu.
10107
10108         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
10109         positioning behaviour to fit to scrolling menus.
10110         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
10111         the current item so that it is prelighted when the menu pops up.
10112         This is a workaround to the fact that the menu doesn't get the
10113         initial enter event (due to grabs).
10114
10115         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
10116         s/gtk_menu_append/gtk_menu_shell_append/
10117
10118         * gtk/gtknotebook.c:
10119         s/gtk_menu_insert/gtk_menu_shell_insert/
10120
10121         * gtk/testgtk.c (create_menu, create_menus):
10122         Create the first menu with 50 items so that menu scrolling
10123         can be tested.
10124         
10125         
10126         Patch from Jonathan Blandford  <jrb@redhat.com>
10127
10128         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
10129         system to handle size requests.  First, we ask what the size of
10130         the toggle is.  Then, when allocating the size, we allocate the
10131         toggle_size first.  This way we can have multiple menu-item
10132         classes w/o needing a seperate class for each.
10133
10134         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
10135         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
10136
10137         * gtk/gtkcheckmenuitem.c
10138         (gtk_check_menu_item_toggle_size_request): New function to handle
10139         the toggle size-request.
10140
10141 2000-11-07  Havoc Pennington  <hp@redhat.com>
10142
10143         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
10144         Half-ass somewhat fix this function, so that scrolling to the
10145         insertion point works. Pango hacking is in the future to really
10146         fix it.
10147
10148         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
10149         length of data, no longer used.
10150
10151         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
10152         method contents in here, get rid of destroy method
10153         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
10154         that were backward. Remove debug spew.
10155         (cut_or_copy): Make the clipboard work with insert_range to
10156         preserve tags and pixbufs, not just the primary selection.
10157
10158 2000-11-07  Havoc Pennington  <hp@redhat.com>
10159
10160         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
10161         to gtk_text_mark_get_visible
10162
10163         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
10164         bug that was generating an invalid iterator
10165
10166         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
10167         ensure_char_offsets() in front of code placing the iter in an
10168         invalid state.
10169
10170         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
10171         make override_location arg const
10172         (paste): Replace the selection if we paste into the 
10173         current selection
10174
10175         * gtk/gtkselection.h: Remove "GtkSelectioData"
10176         (struct _GtkSelectionData): move the definition here.
10177
10178         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
10179         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
10180
10181         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
10182
10183         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
10184         (gtk_text_buffer_insert_range_interactive): implement
10185         (gtk_text_buffer_get_tags): Remove, replaced by
10186         gtk_text_iter_get_tags()
10187
10188         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
10189         limit parameter, to avoid infinite linear scan.
10190         (gtk_text_iter_backward_search): Add search limit
10191         (gtk_text_iter_forward_find_char): Add search limit
10192         (gtk_text_iter_backward_find_char): Add search limit
10193
10194 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
10195
10196         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
10197         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
10198         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
10199         gdk/linux-fb/gdkwindow-fb.c:
10200         use g_object_new() instead of g_type_create_instance() which
10201         is a private function for fundamental type implementations.
10202
10203         * gdk/linux-fb/gdkinput-ps2.c:
10204         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
10205         instead just store the current modifier state. Add a (somewhat broken)
10206         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
10207         Rename exported function gdk_input_ps2_get_mouseinfo to
10208         gdk_input_get_mouseinfo.
10209
10210         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
10211         gdk/linux-fb/gdkwindow-fb.c:
10212         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
10213         
10214
10215 2000-11-02  Havoc Pennington  <hp@redhat.com>
10216
10217         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
10218         use stock buttons. Should be 100% source compatible, appropriate
10219         filesel fields now point to dialog->vbox and dialog->action_area.
10220         On the bizarre side, dialog->action_area and filesel->action_area
10221         are not the same widget.
10222         (gtk_file_selection_init): Put some padding around the selection
10223         entry, so it isn't touching the GtkDialog separator.    
10224
10225         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
10226         use stock buttons, etc. Should also be source compatible.
10227         Set the dialog default title in _init not _new().
10228         
10229         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
10230         Use stock buttons; don't put a button box inside the existing
10231         dialog button box. Don't bother with push/pop colormap anymore.
10232
10233         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
10234         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
10235         for message dialog, and necessary for the font selection and color
10236         selection with help and apply buttons.
10237         
10238         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
10239         to the created button widget. Set GTK_CAN_DEFAULT on the button.
10240         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
10241         between buttons, put less padding around the action area.
10242         (gtk_dialog_run): Exit on unmap rather than on destroy. 
10243         This will also exit the loop if the widget is hidden.
10244         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
10245         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
10246         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
10247         special-case delete event.
10248
10249         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
10250         formatting
10251         
10252 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
10253
10254         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
10255         button to temporarily disable position recording in the
10256         "saved position" test.
10257
10258 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
10259
10260         * gtk/gtkthemes.c: added compat code that temporarily implements
10261         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
10262         going to be revamped by owen's upcoming GtkModule patches, but
10263         untill then people want gtk to build, right? ;)
10264
10265 2000-11-04  Havoc Pennington  <hp@pobox.com>
10266
10267         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
10268         list
10269
10270         * docs/Changes-2.0.txt: Add note about
10271         gtk_container_get_toplevels()
10272
10273         * gtk/gtktextview.h: formatting
10274         
10275         * gtk/gtktextview.c: don't start descriptions with "Returns",
10276         confuses gtk-doc
10277
10278 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
10279
10280         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
10281         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
10282
10283 2000-11-03  Havoc Pennington  <hp@redhat.com>
10284
10285         * gtk/gtktexttagtable.c: Docs
10286         (gtk_text_tag_table_size): return a signed int
10287
10288         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
10289         (gtk_text_tag_event): make the event_object a GObject
10290
10291         * gtk/gtktextview.c: Write API docs for all functions.
10292
10293         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
10294         for gtk_text_view_get_window_type() called on one of the private
10295         windows.
10296
10297         * gtk/gtktextview.c: Instead of accessing text_view->buffer
10298         directly, call get_buffer() which demand-creates a default
10299         buffer. So gtk_text_view_new() can be used to create a view with a
10300         default buffer in it, if you just want an empty text box users can
10301         put data in. Useful for GUI builders also.
10302
10303 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
10304
10305         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
10306         the charset encodign portion MUST be in lowercase.
10307         * gtk/gtkrc.az: added file for Azeri language
10308
10309 2000-11-03  Havoc Pennington  <hp@redhat.com>
10310
10311         Get widgets working on the btree/buffer side. Display of them 
10312         still doesn't work.
10313         
10314         * gtk/gtktextview.c: start implementing child widget stuff
10315
10316         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
10317
10318         * gtk/gtktextlayout.c: handle embedded widgets
10319
10320         * gtk/gtktextdisplay.c: handle embedded widgets
10321
10322         * gtk/gtktextchild.c: Implement all the child anchor goo
10323
10324         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
10325         function
10326
10327         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
10328         (insert_pixbuf_or_widget_segment): abstract out common portions of 
10329         creating a child anchor or a pixbuf segment.
10330         (gtk_text_btree_create_child_anchor): new function
10331         (gtk_text_btree_unregister_child_anchor): new function
10332
10333         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
10334         allocate_child signal on GtkTextLayout
10335
10336         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
10337         values
10338         (gtk_text_iter_get_child_anchor): new function
10339
10340         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
10341         default handler for the changed signal, which calls
10342         gtk_text_buffer_set_modified(), instead of just always emitting
10343         changed then calling set_modified() manually. I guess this is
10344         maybe more flexible. It seems logical.
10345
10346 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
10347
10348         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
10349         now.
10350
10351         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
10352
10353 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
10354
10355         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
10356         been marked static.
10357
10358 2000-11-02  Havoc Pennington  <hp@redhat.com>
10359
10360         * gtk/testgtk.c (create_labels): had a test backward
10361
10362         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
10363         fields, so the dest GC ends up with the correct clip origin, 
10364         etc. Fixes a bug where colored labels didn't redraw 
10365         properly.
10366
10367 2000-11-02  Alexander Larsson  <alexl@redhat.com>
10368
10369         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
10370         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
10371         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
10372         Add last argument to t_type_register_static call.
10373         
10374         * gdk/linux-fb/gdkdrawable-fb2.c:
10375         Add last argument to t_type_register_static call.
10376         export the get_image drawable virtual function.
10377
10378         * gdk/linux-fb/gdkimage-fb.c:
10379         Add last argument to t_type_register_static call.
10380         rename gtk_image_get to _gdk_fb_get_image and
10381         export it for use by gdkdrawable-fb2.
10382
10383         * gdk/linux-fb/gdkprivate-fb.h:
10384         export _gdk_fb_get_image.
10385
10386         * gdk/linux-fb/gdkselection-fb.c:
10387         Add new api call stubs.
10388
10389         * gtk/Makefile.am:
10390         Missing ( in linux-fb part.
10391
10392         * modules/linux-fb/Makefile.am:
10393         Must link with gdk_pixbuf or get unresolved symbol.
10394
10395 2000-11-01  Havoc Pennington  <hp@pobox.com>
10396
10397         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
10398         GTK_TYPE_TEXT_ITER and BOXED marshallers
10399
10400         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
10401
10402         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
10403         
10404         * gtk/gtk-boxed.defs: add GtkTextIter
10405
10406         * gtk/gtkmarshal.list: Add marshallers for text widget that 
10407         properly use OBJECT and BOXED
10408
10409 2000-11-01  Havoc Pennington  <hp@redhat.com>
10410
10411         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
10412
10413         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
10414         before returning it. 
10415         
10416 2000-11-01  Havoc Pennington  <hp@redhat.com>
10417
10418         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
10419         Clip the rectangle to be rendered to the drawable, since
10420         get_from_drawable() requires a region within the drawable
10421
10422 2000-11-01  Havoc Pennington  <hp@redhat.com>
10423
10424         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
10425         from coordinates.
10426
10427 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
10428
10429         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
10430         it isn't NULL.
10431
10432 2000-11-01  Havoc Pennington  <hp@pobox.com>
10433
10434         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
10435         on a label
10436         (gtk_label_finalize): unref the attr list if any.
10437
10438         * gtk/testgtk.c (create_get_image): close test on second click
10439         (make_message_dialog): close dialog if it exists
10440
10441         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
10442
10443         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
10444         gdk-pixbuf
10445
10446         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
10447         from Pango markup format
10448         (gtk_label_set_markup_with_accel): ditto but with accelerator
10449         parsing
10450
10451         * gtk/gtkimage.c (gtk_image_expose): reformatting.
10452
10453         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
10454         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
10455         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
10456         call gdk_window_get_origin().
10457
10458         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
10459         implement GDK_PIXBUF_ALPHA_FULL
10460         
10461 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
10462
10463         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
10464         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
10465         g_signal_handlers_disconnect_matched to block/unblock and disconnect
10466         multiple handlers respectively, instead of only treating the
10467         first handler found (bug reported by owen).
10468
10469 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
10470
10471         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
10472
10473         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
10474
10475         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
10476         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
10477         gtk/gtktreeviewcolumn.h: Fixed inline docs.
10478
10479         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
10480         widget.  Needs writing someday.
10481
10482         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
10483         the docs.
10484
10485 2000-10-30  Havoc Pennington  <hp@redhat.com>
10486
10487         * gtk/gtktextview.h, gtk/gtktextview.c:
10488         Rename delete_at_cursor delete_from_cursor, and 
10489         move to move_cursor.
10490
10491 2000-10-30  Havoc Pennington  <hp@redhat.com>
10492
10493         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
10494         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
10495         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
10496         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
10497         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
10498         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
10499         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
10500         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
10501         gtktexttypes.h, gtktextview.c, gtktextview.h:
10502
10503         Massive reindentation and reformatting. Arg alignment and comments
10504         still need fixing in various places.
10505
10506 2000-10-30  Havoc Pennington  <hp@redhat.com>
10507
10508         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
10509         to be named insert_at_cursor and delete_at_cursor so C++ can
10510         handle them.
10511
10512 2000-10-28  Tor Lillqvist  <tml@iki.fi>
10513
10514         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
10515         to get a double directory separator in case the home directory
10516         ends with one. This would cause trouble especially on Windows,
10517         where the path will be confused with the syntax for an an UNC
10518         (network share) path \\server\share\path.
10519         (gtk_rc_add_initial_default_files): Ditto.
10520
10521 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
10522
10523         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
10524
10525         * gtk/gtktextview.c: Use correct marshallers.
10526
10527 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
10528
10529         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
10530         use new iter stuff, and added all the appropriate signals et al.
10531
10532         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
10533         code is internal to gtk only.
10534
10535 2000-10-28  Tor Lillqvist  <tml@iki.fi>
10536
10537         * gtk/gtk.def
10538         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
10539         glib-genmarshal etc.
10540
10541 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
10542
10543         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
10544         parallel builds.
10545
10546 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
10547
10548         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
10549
10550 2000-10-27  Robert Brady  <robert@suse.co.uk>
10551
10552         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
10553         en_GB (British), ia (Interlingua).
10554
10555 2000-10-26  Havoc Pennington  <hp@redhat.com>
10556
10557         * gtk/gtktextiter.c (my_strrstr): fix constness warning
10558
10559         Fixed output of:
10560         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
10561         
10562         * gtk/gtktextsegment.c (char_segment_new): rename
10563         (_char_segment_new_from_two_strings): rename
10564         (_toggle_segment_new): rename
10565         
10566         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
10567         (make_clipboard_widget): make it static
10568         (text_get_func): static
10569         (text_clear_func): static
10570
10571         * gtk/gtkcolorsel.c (adjustment_changed): make this function
10572         static
10573         (hex_changed): make it static
10574         (hsv_changed): make it static
10575         (opacity_entry_changed): make it static
10576
10577         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
10578         (toggle_segment_check_func): rename with _gtk
10579
10580         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
10581         (_widget_segment_new): rename
10582         (_widget_segment_add): rename
10583         (_widget_segment_remove): rename
10584         (_widget_segment_ref): rename
10585         (_widget_segment_unref): rename
10586
10587         * gtk/gtktextmark.c (_mark_segment_new): Rename
10588         _gtk_mark_segment_new   
10589
10590 2000-10-26  Havoc Pennington  <hp@redhat.com>
10591
10592         * gtk/gtkmarshal.list: add new marshallers used by the text widget
10593         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
10594         types
10595
10596         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
10597         marshaller types
10598
10599         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
10600         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
10601         license on these files.
10602
10603         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
10604         work.
10605
10606         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
10607         runtime random number different for each tree, instead of 
10608         a constant I made up.
10609
10610 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
10611
10612         * gtk/Makefile.am: buncha cleanups, kludged build sources
10613         dependencies with a Makefile: oldest-source-stamp dependancy
10614         for the moment. automake is really fighting us here, with
10615         intentionally not allowing user-defined rules or dependancies
10616         prior to it's -include $(DEP_FILES) statement. sucks rocks!
10617
10618         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
10619         to public headers. tehy have a comment stating that they are
10620         "semi-public" aren't included by gtk.h and if enums popup there,
10621         they can be /*< skip >*/-ed.
10622
10623         * gtk/gtktextlayout.h: 
10624         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
10625         added LGPL... <SIGH>
10626
10627 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
10628
10629         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
10630         GtkTreeIter.  Added iterators everywhere.
10631
10632         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
10633
10634         * gtk/gtktreeviewselection.c: Changed to use the iterators.
10635
10636         * gtk/gtktreestore.c: Changed to use the iterators.
10637
10638         * gtk/gtkliststore.c: Commented out the code.  Will convert to
10639         iterators tomorrow.
10640
10641         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
10642         iterators tomorrow.
10643
10644         * gtk/treestoretest.c: Changed to use iterators.
10645
10646         * demos/testgtk/main.c: Moved to use the new iterator system.
10647
10648 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
10649
10650         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
10651         localization misbehaviour.
10652
10653         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
10654         a useless type without copy/free.
10655
10656         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
10657         of GTK_TYPE_CTREE_NODE.
10658
10659 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
10660
10661         * gtk/gtksignal.c:
10662         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
10663         applicable.
10664
10665         * gtk/gtk-boxed.defs (GtkSelectionData): specify
10666         gtk_selection_data_copy and gtk_selection_data_free
10667         do GtkSelectionData work as params in signals.
10668
10669 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
10670
10671         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
10672         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
10673         couldn't they at least give it a non-standard name?
10674         
10675         * gtk/gtktextlayout.c: arg! yet another implementation of
10676         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
10677
10678         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
10679         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
10680         home. now i know this _is_ a conspiracy.
10681
10682         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
10683         ::state-changed.
10684
10685         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
10686         (gtk_accel_group_create_add): marshaller signature fixups.
10687
10688         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
10689         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
10690
10691         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
10692         anymore.
10693
10694 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
10695
10696         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
10697         due to the signal system changes, it wouldn't build currently. to
10698         be fixed soon.
10699
10700         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
10701
10702         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
10703         so it needs gtk_marshal_VOID__ENUM() instead of
10704         gtk_marshal_NONE__UINT().
10705
10706         * gdk/gdk*.c: adapted type registration functions.
10707
10708         * gtk/gtkbindings.c:
10709         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
10710         gone.
10711
10712         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
10713
10714         * gtk/gtkobject.c:
10715         (gtk_object_destroy):
10716         (gtk_object_shutdown): fixed recursion guards. basically we have to
10717         catch the case where any of GObject.shutdown() or gtk_object_destroy()
10718         is called during ::destroy, and avoid recursion there.
10719
10720         * gtk/gtktypeutils.c:
10721         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
10722         boxed_copy/boxed_free. this needs a more general solution based on a
10723         publically installed code-generator utility.
10724
10725         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
10726         glib's gobject has support for that now.
10727         define GtkSignalMarshaller in terms of GSignalCMarshaller.
10728
10729 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
10730
10731         * gtk/gtksignal.[hc]:
10732         * gtk/gtkmarshal.[hc]:
10733         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
10734         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
10735         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
10736         care of that.
10737
10738         * *.c: marshaller name fixups.
10739
10740         * gtk/gtkmarshal.list: added a comment briefing the format.
10741
10742 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
10743
10744         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
10745         compatibility macros here now. more specifically, most of
10746         the API is preserved (yes, _most_, nonwithstanding the
10747         following exceptions listed, the API is stil lHUGE ;)
10748         things that got removed completely:
10749         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
10750         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
10751         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
10752         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
10753         gtk_signal_remove_emission_hook().
10754         non-functional functions variants:
10755         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
10756         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
10757         not supported anymore.
10758         (gtk_signal_compat_matched): new internal function to aid
10759         implementation of the compatibility macros, it  provides
10760         functionality to block/unblock/disconnect handlers based
10761         on func/data.
10762
10763         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
10764
10765         * *.c: adaptions to new type registration API signatures.
10766
10767 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
10768
10769         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
10770
10771 2000-10-25  Robert Brady  <robert@suse.co.uk>
10772
10773         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
10774         gdk_property_delete): If window == NULL, assume the root window.
10775         (restoring the behaviour that was in 1.2).
10776         
10777         * gtk/testtext.c (save_buffer): Allow creation of new files when
10778         saving.
10779
10780         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
10781         calls to read().
10782
10783 2000-10-25  Tor Lillqvist  <tml@iki.fi>
10784
10785         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
10786
10787         * gdk/win32/gdkdrawable-win32.c
10788         * gdk/win32/gdkimage-win32.c
10789         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
10790         X11 backend.
10791
10792         * gdk/win32/gdkcc-win32.c
10793         * gdk/win32/gdkcolor-win32.c
10794         * gdk/win32/gdkfont-win32.c
10795         * gdk/win32/gdkinput-win32.c
10796         * gdk/win32/gdkmain-win32.c
10797         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
10798
10799 2000-10-24  Havoc Pennington  <hp@redhat.com>
10800
10801         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
10802         it a static function
10803
10804         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
10805         redraw text when a tag is applied to it.
10806
10807         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
10808         (gtk_text_tag_affects_nonsize_appearance): private functions to
10809         see if a tag requires various kinds of redraw/layout to be queued
10810         up.
10811
10812         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
10813
10814         * gtk/testtext.c (fill_example_buffer): Put the cursor 
10815         at the start of the buffer, so search works by default
10816
10817         * gtk/gtktextiter.c (lines_match): init match_start always
10818
10819         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
10820         function, get iter at a line + a byte index
10821
10822         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
10823         to set byte position within a line
10824         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
10825
10826 2000-10-23  Havoc Pennington  <hp@redhat.com>
10827
10828         * gtk/testtext.c: Re-enable the "find" dialog
10829
10830         * gtk/testgtk.c: Add test for gdk_drawable_get_image
10831         
10832         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
10833         the arguments to gdk_draw_drawable were in the wrong order
10834         (gdk_window_paint_init_bg): This function was ignoring the
10835         init_region, instead of clipping to it, so the entire backing
10836         pixmap was cleared on every begin_paint()
10837         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
10838         was in here again, the loop kept using the same GtkWindowPaint
10839         over and over.
10840         (gdk_window_begin_paint_region): Fix a bug where we had two
10841         x_offset instead of x_offset and y_offset
10842
10843         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
10844         before we get the image.
10845         (gdk_draw_drawable): get the composite before we draw the drawable.
10846         (gdk_drawable_real_get_composite_drawable): default
10847         get_composite_drawable implementation that returns the drawable 
10848         itself
10849
10850         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
10851         get_composite_drawable virtual function
10852
10853         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
10854         list-walking bug
10855
10856         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
10857         make this work if the source drawable is a GdkDrawableImplX11
10858         instead of a public drawable type. This is really broken; the
10859         problem is that GdkDrawable needs a virtual method get_xid(), but
10860         of course that doesn't work in practice. Enter RTTI.
10861
10862         Also, improve mismatched depth message.
10863
10864         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
10865         GdkPixmap
10866
10867         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
10868         install _gdk_x11_get_image as our implementation of get_image
10869         
10870         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
10871         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
10872
10873         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
10874         gdk_drawable_get_image
10875
10876         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
10877
10878         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
10879         get_image
10880
10881         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
10882         trailing semicolon after for loop
10883
10884 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
10885
10886         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
10887         where font_desc for widget's context lagged widget's font_desc by
10888         one step.
10889
10890 2000-10-22  Tor Lillqvist  <tml@iki.fi>
10891
10892         * gdk/win32/gdkgc-win32.c
10893         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
10894
10895         * gtk/makefile.mingw.in
10896         * gtk/gtk.def: Updates.
10897
10898         * gtk/testgtk.c: sleep() is called _sleep in MS's C
10899         library.
10900
10901         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
10902
10903         * gtk/makefile.msc: Remove
10904
10905         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
10906
10907         * gtk/Makefile.am: Add it.
10908
10909         * configure.in: Generate it.
10910
10911         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
10912         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
10913         something even if not implemented, to satisfy picky MSVC.
10914
10915         Patches by Hans Breuer:
10916         
10917         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
10918         SetBkMode() and SetTextAlign() before calling
10919         pango_win32_render().
10920
10921         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
10922         Set hcliprgn to NULL after destroying it.
10923         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
10924
10925         * gdk/win32/gdkgeometry-win32.c
10926         (_gdk_windowing_window_queue_antiexpose): More effective
10927         implementation.
10928
10929         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
10930         depth as default, not the visual's.
10931
10932         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
10933         against empty title.
10934
10935         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
10936         IMAGE_PRIVATE_DATA.
10937
10938         * gdk/win32/gdkimage-win32.c: Use it.
10939
10940 2000-10-22  Robert Brady  <robert@suse.co.uk>
10941
10942         * configure.in: Check for bind_textdomain_codeset
10943
10944         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
10945         present, make use of it.
10946
10947         Add a translatable string "default:LTR" which, if translated
10948         to "default:RTL", will cause the default direction to be
10949         Right-to-Left.
10950
10951         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
10952         direction if marked as flippable.
10953
10954         * gtk/gtkhscale.c: Mark widget as flippable.
10955         
10956 2000-10-04  Havoc Pennington  <hp@redhat.com>
10957
10958         * gtk/testgtk.c (create_buttons): create some stock buttons
10959         with the default accel group
10960         (create_image): test some new GtkImage features
10961         (make_message_dialog): test GtkMessageDialog
10962         (create_modal_window): fix someone's bizzarro indentation
10963
10964         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
10965         GTK_WIN_POS_CENTER_ON_PARENT. 
10966         Add "destroy with parent" setting, which means the window goes
10967         away with its transient parent.
10968         (gtk_window_get_default_accel_group): get the default accel group
10969         for the window.
10970         (gtk_window_set_destroy_with_parent): set/unset destroy with
10971         parent flag
10972         (gtk_window_read_rcfiles): invalidate icon set caches
10973         after reloading rcfiles 
10974
10975         * gtk/gtkenums.h (GtkWindowPosition): add
10976         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
10977         on its parent window when the dialog is mapped for the first time.
10978
10979         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
10980         a simple message dialog class
10981         
10982         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
10983         handler to emit response signal, and maybe later it would
10984         honor a hide_on_delete flag - though that isn't there yet.
10985         Set border width on the vbox to 2, so we get some padding.      
10986         Use a button box for the action area.
10987         (gtk_dialog_key_press): synthesize a delete event if Esc
10988         is pressed and the GtkWidget key press handler didn't 
10989         handle the escape key.
10990         (gtk_dialog_new_with_buttons): new function creates a dialog
10991         with some default buttons in it.
10992         (gtk_dialog_add_action_widget): add an activatable widget
10993         as a button in the dialog - you can also add a non-activatable
10994         widget by accessing the action area directly.
10995         (gtk_dialog_add_button): add a simple button - stock ID or 
10996         label - to the action area
10997         (gtk_dialog_response): emit response signal
10998         (gtk_dialog_run): block waiting for the dialog, return 
10999         the response. Override normal delete_event behavior, so that 
11000         delete_event does nothing inside gtk_dialog_run().
11001
11002         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
11003         emitted when an action widget is clicked or the dialog gets
11004         delete_event
11005
11006         * gtk/gtk.h: add gtkmessagedialog.h
11007
11008         * gtk/Makefile.am: add gtkmessagedialog.[hc]
11009
11010 2000-10-18  Havoc Pennington  <hp@redhat.com>
11011
11012         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
11013         where any number of empty lines would get skipped
11014
11015         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
11016         edge.
11017
11018         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
11019         warning about invalid iterators (explain more thoroughly)
11020         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
11021
11022         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
11023         big
11024
11025         * demos/*.c: Add error handling
11026
11027         * gtk/gtktextbuffer.c: don't modify const iterators
11028
11029         * gtk/gdk-pixbuf-loader.c: Add full error handling here
11030
11031         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
11032         on file load
11033
11034         * gtk/gtkiconfactory.c: Update to reflect addition of error
11035         handling to gdk-pixbuf loaders
11036
11037 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
11038
11039         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
11040         move to new modularized testgtk.
11041
11042 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
11043
11044         * gtk/gtktreeview.c: Draw the arrows correctly.
11045
11046         * gtk/gtktreemodel.c: Added user docs.
11047
11048         * gtk/gtk.h: remove gtktreedatalist.h.
11049
11050         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
11051         parent when generating my type.
11052
11053         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
11054         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
11055
11056 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
11057
11058         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
11059         GtkTreeModel from object to interface.
11060
11061 2000-10-16  Havoc Pennington  <hp@redhat.com>
11062
11063         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
11064         compilation
11065
11066 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
11067
11068         * gtk/gtktreeselection.c: Add API documentation to all public
11069         functions.
11070
11071         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
11072         functions.
11073
11074 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
11075
11076         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
11077         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
11078         docs to all public functions.
11079
11080         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
11081         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
11082         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
11083         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
11084         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
11085         issue.
11086
11087 2000-10-14  Robert Brady  <robert@suse.co.uk>
11088
11089         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
11090
11091 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
11092
11093         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
11094         values other then G_TYPE_STRING.
11095         * gtk/gtktreeselection.c: Minor commenting updates.
11096         * gtk/gtktreeview.c: Format updates.
11097
11098 2000-10-09  Tor Lillqvist  <tml@iki.fi>
11099
11100         * README.win32: Update.
11101
11102         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
11103         lines that had been deleted by mistake (?).
11104
11105         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
11106         also the case fg==white and bg==black (but still not randomly
11107         coloured cursors). Thanks to Wolfgang Sourdeau.
11108
11109         * gdk/win32/*.c: Silence gcc -Wall.
11110
11111         * gtk/gtk.def: Add missing entry points.
11112
11113         Fixes by Hans Breuer:
11114
11115         * gdk/makefile.msc
11116         * gdk/win32/makefile.msc: Update.
11117
11118         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
11119         some MSVC thing, presumably), cause breakpoint on failures. Add
11120         GDK_NOR case. Call g_log_set_always_fatal.
11121
11122         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
11123         should be pased by reference.
11124         
11125         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
11126         
11127         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
11128
11129         * gdk/win32/gdkevents-win32.c
11130         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
11131
11132         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
11133         implementation object.
11134
11135         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
11136         not just windows.
11137         
11138         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
11139         Use the wrapper object.
11140         
11141 2000-10-06  Havoc Pennington  <hp@redhat.com>
11142
11143         * Makefile.am (SRC_SUBDIRS): contrib subdir
11144
11145         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
11146         so it can be used in Xlib version
11147
11148         * demos/testpixbuf.c (update_timeout): error checking from 1.0
11149         tree
11150
11151         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
11152         change from 1.0 tree that returns first frame of animation
11153         if the loaded file is an animation.
11154
11155         * contrib: add new directory to hold stuff that comes with GTK+
11156         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
11157         
11158         * configure.in: add contrib/*
11159
11160 2000-10-05  Havoc Pennington  <hp@redhat.com>
11161
11162         * demos/testpixbuf-save.c: add pixbuf save test
11163
11164         * demos/Makefile.am: add testpixbuf-save.c
11165
11166 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
11167
11168         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
11169         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
11170         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
11171         * gtk/gtktreeselection.[ch]: Replaced
11172         "node_selected"/"node_unselected" signal with "selection_changed"
11173         signal.
11174
11175 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
11176
11177         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
11178         tree widget.
11179
11180 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
11181
11182         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
11183         drawing.
11184
11185 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
11186
11187         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
11188         Move list pointer forwards before removing item from
11189         list. (Crash reported by Salmaso Raffaele)
11190
11191         * gdk/gdkwindow.h: Remove spurious trailing ,
11192
11193         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
11194         dependencies on uninstalled libraries, sorry folks.
11195
11196 2000-10-04  Havoc Pennington  <hp@redhat.com>
11197
11198         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
11199         gtk/gtkiconfactory.c: Fix copyrights    
11200
11201         * demos/testpixbuf.c: add inline pixbuf test
11202         
11203 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
11204
11205         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
11206         Add gdk_window_iconify.
11207
11208         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
11209         (gdk_window_set_geometry_hints): Add win_gravity
11210         to geometry structure.
11211
11212         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
11213         Implement _NET_WM_PING.
11214
11215         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
11216         Set _NET_WM_PID on the client leader.
11217
11218         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
11219         Handle UTF-8 better.
11220
11221         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
11222         UTF-8 better, set _NET_WM_NAME as well. Only set
11223         icon name if it hasn't previously been explicitely 
11224         set.
11225
11226 2000-10-03  Havoc Pennington  <hp@redhat.com>
11227
11228         * gtk/testtextbuffer.c: clean up trailing whitespace,
11229         add extensive tests for tag toggle iteration.
11230         
11231         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
11232         distance
11233
11234         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
11235         optimize case where the tag root is on level 1
11236         (gtk_text_line_previous_could_contain_tag): attempt to implement
11237         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
11238         functionality
11239
11240         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
11241         Implement this, though not very efficiently.
11242
11243         * gtk/gtktextiterprivate.h: reformat
11244
11245         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
11246         iterator
11247
11248         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
11249         this to properly revalidate the iterators.
11250
11251         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
11252         properly at the end of the line (and therefore on empty lines)
11253
11254         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
11255         maybe we should return a value...
11256
11257 2000-10-03  Tor Lillqvist  <tml@iki.fi>
11258
11259         * config.h.win32: Guard definition of alloca(). glib.h now handles
11260         that.
11261
11262         * gdk/gdk.def
11263         * gtk/gtk.def: Add new entry points.
11264
11265         Changes just to make GTK+ build without errors on Win32. No hope
11266         of it working in its current state, though...:
11267         
11268         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
11269         some functions from the X11 backend, just to make GTK+ build.
11270
11271         * gdk/makefile.mingw.in
11272         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
11273         number. Add new object files.
11274
11275         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
11276         GetMessageTime to get timestamp (where on X11 uses
11277         gdk_x11_get_server_time()).
11278
11279 2000-10-02  Havoc Pennington  <hp@pobox.com>
11280
11281         * gtk/gtktextview.c: text_window_* weren't static and should have
11282         been.
11283         Start work on child widgets; not yet complete, syncing to 
11284         office computer.
11285
11286         * gtk/gtktextchild.h: change this to contain a public interface,
11287         starting work on child interfaces.
11288         * gtk/gtktextchildprivate.h: move private interfaces here
11289
11290         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
11291
11292         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
11293         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
11294         gtk/gtktextmark.c: copyright notices
11295
11296         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
11297         internal functions      
11298
11299         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
11300         internal function
11301
11302         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
11303         Reformatting    
11304
11305 2000-09-30  Havoc Pennington  <hp@pobox.com>
11306
11307         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
11308         NULL start/end pointers
11309
11310         * gtk/gtktextbuffer.c: Write some docs
11311         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
11312         NULL, so you can just check whether there's a selection.        
11313
11314         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
11315         cleanup_line or segments_changed ourselves, it gets done 
11316         in unlink_segment
11317
11318         * gtk/gtktextmark.h:
11319         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
11320         
11321         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
11322
11323         * gtk/gtktextmark.c: delete some more old Tk cruft
11324
11325         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
11326         mark before removing it, so we can emit MARK_DELETED with a valid
11327         pointer.
11328         (gtk_text_buffer_mark_set): hold ref across signal emission
11329
11330         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
11331         whining about attempts to delete special marks
11332
11333         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
11334         underscore, since it's internal.
11335
11336         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
11337         now implemented in terms of iterators in gtktextiter.h
11338
11339         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
11340         New function, destructively sets contents of buffer. Also 
11341         a convenient way to clear the buffer by setting text to ""
11342
11343         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
11344         multiline string literal
11345
11346         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
11347         text changes.
11348
11349         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
11350         is not dereferenceable
11351         (gtk_text_iter_forward_lines): fix return value
11352
11353 2000-09-29  Havoc Pennington  <hp@redhat.com>
11354
11355         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
11356
11357         * gtk/gtktextview.c: Implement drag thresholding; change functions 
11358         that set border window size to have nicer name
11359         (gtk_text_view_mark_set_handler):  Fix this to have the 
11360         right signature.
11361
11362         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
11363
11364         * gtk/testtext.c: Update with API changes, put line numbers on 
11365         both sides.
11366         
11367         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
11368         with this
11369
11370         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
11371         pixbuf; delete a big block of #if 0 Tk code
11372
11373         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
11374         insert_pixmap with insert_pixbuf
11375
11376 2000-09-29  Martin Baulig  <baulig@suse.de>
11377
11378         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
11379         confusion with the GdkPixbuf of the GNOME 1.x platform.
11380
11381 2000-09-29  Havoc Pennington  <hp@pobox.com>
11382
11383         * gtk/gtktextview.c: Implement the side windows.
11384
11385         * gtk/testtext.c: Implement simple line numbering in the 
11386         left side window; seems to make scrolling sloooow. Oops.
11387         Also, cursor blink is for some reason causing redraws
11388         of the line numbers. Should investigate...
11389
11390 2000-09-28  Havoc Pennington  <hp@redhat.com>
11391
11392         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
11393         scrolling child windows, and draw focus rectangle properly.
11394         
11395         (gtk_text_view_buffer_to_window_coords):
11396         Coordinate transformation to deal with all these freaking windows
11397         and offsets
11398         (gtk_text_view_window_to_buffer_coords): transform the other way
11399
11400         * gtk/testtext.c (create_buffer): Update to match Pango API change
11401
11402         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
11403         anonymous tags
11404         (foreach_unref): don't emit remove signal from finalize, just
11405         set tag's parent to NULL
11406
11407 2000-09-26  Havoc Pennington  <hp@redhat.com>
11408
11409         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
11410         Fix some warnings       
11411
11412 2000-09-26  Havoc Pennington  <hp@redhat.com>
11413
11414         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
11415         headers into the private header list
11416
11417         * Makefile.am (pkgconfig_DATA): install pkg-config files
11418
11419         * configure.in: add pkg-config files
11420
11421         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
11422
11423         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
11424         outstanding icon caches on theme change.
11425
11426         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
11427         important types:
11428
11429         (GtkIconSource): Specification for creating a pixbuf 
11430         appropriate for a direction/state/size triplet from 
11431         a source pixbuf or filename
11432
11433         (GtkIconSet): List of GtkIconSource objects that are used to
11434         create the "same" icon (e.g. an OK button icon), and cache for
11435         rendered icons
11436
11437         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
11438         up the icon set for a given stock ID.  GTK maintains a stack of
11439         GtkIconFactory to search, and applications or libraries can add
11440         additional icon factories on top of the stack
11441         
11442         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
11443         the set of GtkIconSource specified for a given stock ID into 
11444         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
11445         RcStyle, under the specified stock ID.
11446
11447         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
11448         render_icon used to derive a GdkPixbuf from a GtkIconSource.
11449         This allows people to theme how prelight, insensitive, etc. are
11450         done.
11451
11452         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
11453         icon factories for a style, and return the resulting 
11454         icon set if any.
11455
11456         (gtk_style_render_icon): Render an icon using the render_icon 
11457         method in the GtkStyleClass.
11458
11459         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
11460         Use the style for a given widget to look up a stock ID, get the
11461         icon set, and render an icon using the render_icon method 
11462         of the style
11463
11464         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
11465         (contains information about a stock item), the built-in stock item
11466         IDs, and functions to add/lookup stock items.
11467
11468         * gtk/stock-icons/*: Stock icons that come with GTK
11469
11470         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
11471         a button based on a GtkStockItem
11472         (gtk_button_new_accel): Takes a uline string and accel group, and
11473         installs the accelerator.
11474
11475         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
11476         image-display widget.
11477
11478 2000-09-25  Havoc Pennington  <hp@redhat.com>
11479
11480         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
11481
11482         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
11483         Fix a bug when removing node data, we didn't properly 
11484         re-splice the linked list after removing the data.
11485
11486         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
11487         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
11488
11489         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
11490
11491         * gtk/gtktextlayout.c (set_para_values): Set tab array 
11492         for the layout from the GtkTextTag.
11493
11494         * gtk/gtktexttypes.h: delete tab and search cruft, 
11495         remove g_convert() in favor of GLib version
11496
11497         * gtk/gtktexttypes.c: remove tab implementation from here,
11498         move to Pango
11499
11500         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
11501         tab stuff using new PangoTabArray from Pango
11502
11503         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
11504         unused border_width stuff
11505
11506 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
11507
11508         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
11509         glib) and now useless utf_to_latin1() latin1_to_utf()
11510
11511         * gtk/gtktextview.[ch]: Change ::move_insert and
11512         ::delete_text action signals to ::move and ::delete;
11513         create the signals with the right enumeration type,
11514         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
11515         C-v bindings, change Home, End to move to beginning/end
11516         of line, Add C-Home C-End to move to beginning/end
11517         of buffer. Change ::cut_text to ::cut_clipboard, etc;
11518         combine ::scroll_text into ::move; use new GtkSelectionData
11519         functions to simplify DND text handling.
11520         
11521         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
11522         deletion enumerations here, rename enumeration values to 
11523         be consistently plural.
11524
11525         * gtk/gtktextbuffer.c: Use new clipboard interfaces
11526         for cut/copy/paste and primary selection.
11527
11528         * gtk/gtktextbuffer.[ch]: Remove excess time and
11529         'interactive' arguments from cut/copy/paste;
11530         rename cut to cut_clipboard, etc; remove
11531         gtk_text_buffer_get_clipboard_contents().
11532
11533         * gtk/gtktextlayout.[ch]: Add 
11534         gtk_text_layout_move_iter_to_line_end() to move the iter to 
11535         line ends.
11536
11537         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
11538         Functions to set or get a UTF-8 string on the selection
11539         data.
11540
11541         * gtk/gtkclipboard.[ch]: New, simplified selection handling
11542         interfaces.
11543
11544         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
11545         created widgets - one of these is useless if we don't.
11546
11547         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
11548         a public function clear all targets registered for the
11549         widget.
11550
11551         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
11552         Never call gtk_widget_realize() - that was just asking
11553         for bizarre side-effects.
11554
11555         * gtk/gtkselection.c (gtk_selection_owner_set): Call
11556         gdk_selection_owner_set even if the widget is the
11557         same so that we reliably update the timestamp on
11558         the server.
11559
11560         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
11561         gdk_x11_get_server_time() function.
11562         
11563         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
11564         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
11565         Add some tricky filtering on serial numbers for
11566         selection clear events to fix up long-standard
11567         race condition FIXME's in gtkselection.c.
11568
11569         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
11570         routines to convert from utf8 to compound text or
11571         STRING and from a text property to UTF-8.
11572
11573         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
11574         a convenience function gdk_get_current_event_time().
11575
11576         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
11577         and free selection_data->data properly
11578
11579 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
11580
11581         * gtk/gtkthemes.c: Remove some unecessary includes.
11582
11583 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
11584
11585         * gtk/gtktextdisplay.c
11586         * gtk/gtktextlayout.c
11587         * gtk/gtktexttag.c
11588         * gtk/gtktexttag.h
11589         * gtk/testtext.c: Change the overstrike property to strikethrough,
11590         to closer match pango.
11591
11592 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
11593
11594         * gtk/gtktextview.c: Fix up visibility so that focus,
11595         cursor_visible and blink interact properly.  Reenable cursor blink
11596         which had been roughly disabled. Make blink and focus
11597         properly per-view.
11598
11599         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
11600         Add a flag for whether to display insertion cursor and
11601         a function to set the flag.
11602
11603         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
11604         get_line_y() to get_line_yrange(), to be a bit more generally
11605         useful.
11606
11607 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
11608
11609         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
11610           do stop_navigating_submenu, to clear last timeout properly.
11611           Also in gtk_menu_motion_notify move ignore_enter above
11612           the conditional to make it always happen as suggested by Owen
11613
11614 2000-09-07  Tor Lillqvist  <tml@iki.fi>
11615
11616         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
11617
11618         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
11619         w32api headers.
11620
11621         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
11622         declarations.
11623
11624         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
11625         (gdk_win32_get_colormap): A line had been deleted by mistake.
11626
11627         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
11628         (gdk_event_translate): Handle more virtual keycodes to be able to
11629         generate GDK events for Control-comma, Control-period, etc.
11630
11631         * gtk/gtk.def: Add some missing entry points.
11632
11633 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
11634
11635         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
11636         Doc comment fixing. (Mostly non-matching parameter names.)
11637
11638         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
11639         comments a little to avoid looking like a doc comment.
11640
11641         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
11642         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
11643         conversions be changed to GError?)
11644
11645         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
11646         Move private #defines into .c file.
11647
11648         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
11649         order of argument addition, remove duplicates.
11650
11651         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
11652         parent class is FrameClass, not BinClass.
11653
11654         * gtk/gtk.h: Add gtkinvisible, which was missing.
11655         (It's occasionalyl useful for client apps, if seldom.)
11656
11657         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
11658         #define.
11659
11660 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
11661
11662         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
11663         coordinates when creating window, instead of GDK-space
11664         coordinates. (Avoid BadValue on too large windows.)
11665
11666 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
11667
11668         * configure.in (use_mmx_asm): Remove conftest* after use along the
11669         lines of AC_TRY_COMPILE.        
11670         
11671         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
11672         of g_dirname, which is deprecated.
11673         (gtk_rc_parse_any): Removed calls to
11674         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
11675
11676         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
11677         Removed calls to g_hash_table_{freeze,thaw}, as they are
11678         deprecated now.
11679
11680         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
11681         instead of g_basename.
11682         
11683 2000-09-04 Elliot Lee <sopwith@redhat.com>
11684         
11685         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
11686         ANSI warning.
11687
11688 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
11689
11690         * gtk/gtkwidget.h:  Add some documenting comments about 
11691           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
11692           just as owen said on irc.
11693
11694         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
11695           set HAS_DEFAULT.  Only set it if there isn't another window
11696           holding it (a focus window which RECEIVES_DEFAULT) and only unset
11697           it if the widget is not the focused window with RECEIVES_DEFAULT.
11698           This fixes weird double default bugs in dialogs which has things
11699           call gtk_window_set_default at times.
11700
11701 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
11702
11703         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
11704         Nils Barth and David Santiago to improve submenu
11705         navigation. The patch does this by creating a triangular
11706         region from the point where the pointer leaves the
11707         menu to the submenu.  While the pointer is in
11708         that region and a timeout has not expired, events 
11709         that would cause the active submenu to change are
11710         ignored.
11711
11712 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
11713
11714         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
11715         moving a toplevel window immediately after sizing it would
11716         result in it being sized back to the old size since 
11717         impl->width, impl->height aren't updated until we hear
11718         back from the server. There is still a (longstanding) bug
11719         here that gdk_window_get_size() will give the wrong size
11720         until we do hear back.
11721
11722 2000-08-31  Havoc Pennington  <hp@redhat.com>
11723
11724         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
11725         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
11726         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
11727         Rename GtkTextStyleValues to GtkTextAttributes
11728
11729 2000-08-31  Havoc Pennington  <hp@pobox.com>
11730
11731         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
11732         for rapid testing whether an iterator is the end iterator
11733         (gtk_text_btree_new): init end line cache
11734         (gtk_text_line_is_last): use fast cached line to 
11735         see if we're the last line.
11736         (get_last_line): use cached line here too, should 
11737         speed up some random unrelated code.
11738         
11739 2000-08-30  Havoc Pennington  <hp@pobox.com>
11740
11741         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
11742         signals.
11743
11744         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
11745         delete_text signals. This allows the signals to be used for
11746         implementing undo.
11747
11748         * gtk/gtktextbuffer.c: Change signal handler signatures; 
11749         provide "interactive" argument when emitting insert_text or
11750         delete_text signal.
11751         
11752 2000-08-30  Havoc Pennington  <hp@pobox.com>
11753
11754         * gtk/gtktextbuffer.c: Docs
11755
11756 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
11757
11758         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
11759         from switch statements, since Tor removed the enumeration
11760         value.
11761         
11762         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
11763         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
11764
11765 2000-08-29 Elliot Lee <sopwith@redhat.com>
11766         * */*.h: Use G_GNUC_CONST.
11767
11768 2000-08-27  Havoc Pennington  <hp@pobox.com>
11769
11770         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
11771         minor indentation fixes, inserted some FIXME about stuff I
11772         realized was broken while documenting it.
11773         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
11774         GTK convention  
11775
11776 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
11777
11778         * gtk/testgtk.c (create_styles): Fix double free of
11779         font desc.
11780
11781 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
11782
11783         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
11784         
11785         * gtk/testgtk.c (create_styles): Add a test for modifying
11786         the style through gtk_widget_modify_*.
11787
11788         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
11789         a function to get the current modifier style.
11790
11791         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
11792         of the passed in GtkRcStyle instead of ref'ing it.
11793
11794         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
11795
11796 2000-08-20  Tor Lillqvist  <tml@iki.fi>
11797
11798         * gdk/gdkimage.h
11799         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
11800         shared memory image+pixmap GdkImage type, or
11801         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
11802         I am dropping that.
11803
11804         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
11805         actually call gtk_init_abi_check(), passing also
11806         sizeof(GtkWindow). Ditto for gtk_init_check(). 
11807
11808         * gtk/gtk.def
11809         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
11810         New functions, used to check that the GTK+-using code has been
11811         compiled using the correct compiler and switches. In particular,
11812         with gcc one has to use the -fnative-struct switch as GTK+ is
11813         compiled with that.
11814
11815 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
11816
11817         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
11818         ->prev fields when merging lists. (Found simultaneously
11819         by Pawel Salek and Jakub Jelinek)
11820
11821 2000-08-12  Tor Lillqvist  <tml@iki.fi>
11822
11823         * gdk/gdk.def
11824         * gtk/gtk.def: Add missing entries.
11825
11826         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
11827         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
11828
11829         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
11830         function. Dummy implementation at this point.
11831
11832         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
11833         rules. Undefine GTK_COMPILATION when compiling the test programs.
11834         
11835         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
11836
11837 2000-08-11  Tor Lillqvist  <tml@iki.fi>
11838
11839         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
11840         to convert back and forth from UTF-8 and the "system" (or "current
11841         locale") charset when necessary. Indentation/spacing cleanup.
11842
11843 2000-08-10  Havoc Pennington  <hp@redhat.com>
11844
11845         * Makefile.am (snapshot): Change the format of the snapshot
11846         version to match glib
11847
11848         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
11849         from EXTRA_DIST since it doesn't seem to exist
11850
11851 2000-08-10  Tor Lillqvist  <tml@iki.fi>
11852
11853         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
11854         version of the directory name (not the UTF-8 one) when building
11855         the path name to stat().
11856
11857 2000-08-03  Elliot Lee  <sopwith@redhat.com>
11858
11859         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
11860         PANGO_ATTR_SHAPE set.
11861
11862 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
11863
11864         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
11865         Peter Osterlund to simplify the code while keeping the
11866         functionality the same.
11867
11868 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
11869
11870         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
11871         is_viewable() test further inside the function, since removing the 
11872         window from the redraw list without clearing ->update_area
11873         was also very broken.
11874
11875 2000-08-02  Tor Lillqvist  <tml@iki.fi>
11876
11877         * configure.in: Check for <unistd.h>.
11878
11879 2000-08-01  Martin Baulig  <baulig@suse.de>
11880
11881         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
11882         to display the message that this is a development version of GTK+.
11883
11884 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
11885
11886         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
11887         was depending on widget->allocation instead of the width of text_area,
11888         which was incorrect for subclasses like GtkSpinButton.
11889
11890         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
11891         with width == 1 tests that should be width == -1.
11892
11893 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
11894
11895         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
11896         (broken, Elliot, every single window blank on X) custom code with call
11897         to gdk_window_is_viewable() which a) prevents code duplicate and
11898         b) works. 
11899
11900 2000-07-31  Elliot Lee  <sopwith@redhat.com>
11901
11902         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
11903         to get the GDK_PARENT_ROOT() macro to work.
11904         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
11905         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
11906         of, windows that aren't shown.
11907         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
11908         pointer grab stuff.
11909
11910 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
11911
11912         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
11913           s/gtk_main_iteration/g_main_iteration/
11914
11915           Did this already in change:
11916                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
11917           don't know how it got reverted.
11918
11919 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
11920
11921         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
11922         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
11923
11924         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
11925         not gdk_pixbuf.
11926
11927 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
11928
11929         * configure.in,po/{sp,sr}.po: Added Serbian files
11930
11931 2000-07-30  Tor Lillqvist  <tml@iki.fi>
11932
11933         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
11934
11935         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
11936         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
11937         GIOChannel implementation.
11938
11939         * gdk/win32/gdkinput.c
11940         * gdk/win32/gdkpango-win32.c: Update license name here, too.
11941
11942         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
11943         definition to match prototype.
11944
11945         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
11946
11947 2000-07-27  Elliot Lee  <sopwith@redhat.com>
11948
11949         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
11950         function, to allow handling image formats that cannot be detected
11951         by looking at content alone.
11952
11953 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
11954
11955         * docs/tutorial/*.gif *.jpg *.eps
11956           Update these to the same look-n-feel.
11957           Why does including images in DocBook suck so badly?
11958
11959 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
11960
11961         * gtk/gtktable.c: applied patch from Phil Thompson
11962         <phil@river-bank.demon.co.uk> that enables space settings for
11963         the last row/columns as well.
11964
11965 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
11966
11967         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
11968         updates the license headers to the GNU Lesser General Public License,
11969         as well as updating the copyright year to 2000.
11970
11971 2000-07-26  Robert Brady  <rwb197@zepler.org>
11972
11973         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
11974           and po/Makefile, was installing and looking for them under gtk20
11975           and gtk2 respectively.
11976
11977 2000-07-25  Havoc Pennington  <hp@redhat.com>
11978
11979         * gtk/testtext.c: Comment out some stuff that depends on the rest
11980         of my patches.
11981
11982 2000-07-25  Havoc Pennington  <hp@redhat.com>
11983
11984         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
11985         buffer
11986
11987 2000-07-25  Havoc Pennington  <hp@redhat.com>
11988
11989         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
11990         widget changes.
11991
11992         * gtk/gtktextview.h: To be consistent with usage of "line"
11993         throughout the API to mean "newline-terminated thingy", change
11994         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
11995         to MOVEMENT_LINE.
11996
11997         (GtkTextView): Add flags for default editability, and whether to
11998         show the cursor. Add functions to get/set that. Add 
11999
12000         (gtk_text_view_get_iter_location): new function
12001
12002         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
12003         gtktextlayout.h
12004         (g_convert): Add g_convert temporarily, will go in glib in a bit
12005         
12006         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
12007         GtkTextTagTableForeach instead of brokenly using GHFunc.
12008         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
12009
12010         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
12011         moved to public header.
12012
12013         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
12014         "invisible", since "elide" was a bad name.
12015         (gtk_text_tag_get_priority): Added
12016
12017         (GtkTextStyleValues): put this in public header, along with
12018         functions to use it.
12019
12020         * gtk/gtktextmarkprivate.h: Include more headers, since we no
12021         longer include gtktextbtree.h.
12022
12023         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
12024         gtk_text_mark_deleted
12025
12026         * gtk/gtktextlayout.h: Don't include the "really private" headers,
12027         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
12028         to make this possible. Now we only need to install
12029         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
12030         (However the Makefile.am isn't changed yet because of the
12031         logistics of merging gtk-hp-patches piecemeal)
12032
12033         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
12034         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
12035         gtk_text_iter_get_line is now used in the public API for a
12036         different purpose.
12037
12038         * gtk/gtktextiter.h: Clean up function names to be more
12039         consistent. Always call char offset "offset" and byte index
12040         "index". A "line" is always a line number. 
12041
12042         (gtk_text_iter_is_last): new function, more efficient than 
12043         the existing way to check
12044         (gtk_text_iter_is_first): new function, also more efficient
12045
12046         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
12047
12048         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
12049         gtk_text_iter_forward_char, etc.
12050
12051         (gtk_text_iter_forward_to_tag_toggle): Renamed from
12052         forward_find_tag_toggle, since this isn't a linear search
12053
12054         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
12055
12056         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
12057         New functions, search for a buffer substring.
12058
12059         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
12060         interactive and default editable (since we need to store that info
12061         until we receive the selection data).
12062
12063         Remove all the _at_char and at_line etc. versions of functions;
12064         only have iterator versions.
12065
12066         Add _interactive() versions of functions, that consider the
12067         editability of text. (FIXME add interactive flag to the 
12068         insert/delete signals per Darin's suggestion)
12069
12070         (gtk_text_buffer_get_tag_table): new function, demand-creates the
12071         tag table if necessary
12072
12073         Remove declaration of gtk_text_buffer_get_iter_from_string
12074
12075         (_gtk_text_buffer_get_btree): private/internal function, added.
12076         
12077
12078         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
12079         (gtk_text_line_is_last): new function
12080
12081 2000-07-25  Havoc Pennington  <hp@redhat.com>
12082
12083         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
12084         using GtkProgressBar. See Changes-2.0.txt for details.
12085
12086         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
12087         "pulse_step" which are the equivalent of
12088         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
12089         Implement new API.
12090         
12091         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
12092         (use_text_format) to mark whether text set on the progress bar is
12093         a format string. Deprecate entire GtkProgress interface.
12094
12095         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
12096         (gtk_progress_build_string): make this a no-op if use_text_format
12097         is FALSE
12098
12099         * docs/Changes-2.0.txt: Describe progress bar changes.
12100
12101 2000-07-25  Tor Lillqvist  <tml@iki.fi>
12102
12103         * Makefile.am: Include the build directory.
12104
12105         * configure.in: Generate build/Makefile, build/win32/Makefile,
12106         gdk/, gdk/win32/, and gtk/makefile.mingw.
12107
12108         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
12109         Add GETTEXT_PACKAGE.
12110         
12111         * gdk/gdk.def
12112         * gtk/gtk.def: Updates.
12113
12114         * gdk/gdkfont.h
12115         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
12116         need them any longer.
12117
12118         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
12119
12120         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
12121         PANGOWIN32_LIBS and gdk_pixbuf.
12122
12123         * gdk/win32: Compiles, but no doubt doesn't work at all.
12124
12125         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
12126
12127         * gdk/win32/gdkinput.c: New file, temporarily.
12128         
12129         * gdk/win32/gdkinput-win32.h: New file
12130
12131         * gdk/win32/gdkinputprivate.h: Remove.
12132
12133         * gdk/win32/gdkpango-win32.c: New file.
12134
12135         * gtk/makefile.mingw.in: New file
12136
12137         * gtk/makefile.cygwin: Removed
12138         
12139         * gtk/Makefile.am: Update accordingly.
12140
12141         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
12142         made externally visible.
12143
12144         * gtk/gtkmain.c: Use it.
12145         
12146         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
12147         is enough.
12148
12149         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
12150
12151 2000-07-24 Elliot Lee <sopwith@redhat.com>
12152         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
12153         individual backends already.
12154         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
12155         again. Yes, there really is a good reason for this, if you are using the gdkregion
12156         internals, and if you're not, why do you care?
12157         * gdk/gdkwindow.c: Fix inverted condition
12158         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
12159         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
12160         * gtk/gtkrange.c: Redraw trough when moving.
12161         * gtk/gtktypeutils.c: Fix warning by adding const cast.
12162         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
12163
12164 2000-07-23  Tor Lillqvist  <tml@iki.fi>
12165
12166         * configure.in: Check for mkstemp and sigsetjmp. Output
12167         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
12168
12169         More work on GDK for Win32. Still in an intermediate state.
12170
12171         * gdk/makefile.cygwin
12172         * gdk/win32/makefile.cygwin: Removed.
12173         
12174         * gdk/makefile.mingw.in
12175         * gdk/win32/makefile.mingw.in: New files.
12176
12177         * gdk/Makefile.am
12178         * gdk/win32/Makefile.am: Generate and distribute them.
12179
12180         * gdk/win32/gdkwindow-win32.h
12181         * gdk/win32/gdkdrawable-win32.h
12182         * gdk/win32/gdkpixmap-win32.h: New files.
12183
12184         * gdk/win32/gdkcolor-win32.c
12185         * gdk/win32/gdkcursor-win32.c
12186         * gdk/win32/gdkdrawable-win32.c
12187         * gdk/win32/gdkgc-win32.c
12188         * gdk/win32/gdkimage-win32.c
12189         * gdk/win32/gdkprivate-win32.h
12190         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
12191         Rename fields and variables called xcursor, xid, etc (these names
12192         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
12193
12194 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
12195
12196         * gtk/gtkentry.[ch]: Fix some problems with vertical
12197         alignment.
12198
12199         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
12200         char/byte confusion.
12201
12202 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
12203
12204         * gtk/gtktextview.c (changed_handler): Fix bug where
12205         redraw wasn't being done properly when height of
12206         dirty region changed.
12207
12208         * demos/Makefile.am: Remove various references to
12209         -lgmodule
12210
12211 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
12212
12213         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
12214         PangoAttrShape to reserve space for pixmaps, add 
12215         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
12216         in the display functions.
12217         
12218         * gtk/testgtk.c (create_layout): Set some more exotic
12219         scrolled window options
12220
12221         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
12222         Add function to set the shadow type of a window, to allow
12223         putting a shadow around widgets such as GtkLayout or GnomeCanvas
12224         which don't draw their own frame.
12225
12226 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
12227
12228         * docs/tutorial/package-db-tutorial.sh: New file for
12229           packaging DocBook format tutorial
12230
12231 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
12232
12233         * docs/tutorial/gtk-tut.sgml: Minor updates
12234
12235         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
12236
12237 2000-07-19  Tor Lillqvist  <tml@iki.fi>
12238
12239         * gtk/gtksignal.c: Fix C++ comment.
12240
12241         * gtk/gtkimmulticontext.c
12242         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
12243         don't return value from void functions.
12244
12245         * gtk/gtk.def: Add gtk_rc_style_unref.
12246
12247 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
12248
12249         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
12250         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
12251         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
12252         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
12253         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
12254         gtk/gtktypeutils.h: Include files outside of the extern "C"
12255         block. Makes some C++ compiler happy. Reported by Denis Vakatov
12256         <vakatov@peony.nlm.nih.gov>.
12257
12258 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
12259
12260         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
12261           Completes first pass. Hurrah!
12262
12263 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
12264
12265         * docs/tutorial/gtk-tut.sgml: More clean ups.
12266
12267 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
12268
12269         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
12270         paint the background of the text area which was accidentally
12271         removed at some point.
12272
12273         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
12274           
12275          - Move most of the functionality from the theme vtable
12276            into GtkRcStyleClass and GtkStyleClass. The moved
12277            vtable functions were changed a bit in the move to
12278            work better in their new home.
12279
12280          - Get rid of the engine and engine_data fields from
12281            GtkRcStyle and GtkStyle; instead the theme
12282            engine derives theme-specific subclasses of GtkRcStyle
12283            and GtkStyle
12284
12285          - Add extra dlsym() found entry point to themes,
12286            theme_create_rc_style().
12287
12288         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
12289         in gtk_style_real_copy.
12290
12291         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
12292         to register a type associated with an engine. (The engine
12293         won't be unloaded as there is an instance of the type.)
12294
12295
12296 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
12297
12298         * docs/tutorial/gtk-tut.sgml: Clean ups.
12299
12300 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
12301
12302         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
12303           of cleaning up to do.
12304
12305 2000-07-15  Tor Lillqvist  <tml@iki.fi>
12306
12307         * gdk/testgdk.c: New file, quick hack to test backends for
12308         pixel-by-pixel correctness of the most simple graphic operations.
12309
12310 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
12311
12312         * Really release 1.3.1
12313         
12314         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
12315         include structure.
12316
12317 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
12318
12319         * Released 1.3.1
12320
12321 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
12322
12323         * gtk/gtktextlayout.c: use FALSE for size_only most
12324         of the time when calling gtk_text_layout_get_line_display()
12325         to avoid causing double reshapes when a redraw follows
12326         immediately after.
12327
12328 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
12329
12330         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
12331         appropriate region and gdk_window_process_updates() so trough
12332         updating doesn't lag behind the window being scrolled.
12333
12334         * gdk/gdkgc.c: Make parent_class pointer static.
12335          
12336 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
12337
12338         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
12339         include <string.h>.
12340          
12341         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
12342         cut-and-paste error in computing memory offset for 4 channels.
12343
12344 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
12345
12346         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
12347         gtk_rc_append_default_pixmap_path(), since it wasn't
12348         adding an interesting path and we don't have a meaningful
12349         default for this value.
12350
12351 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
12352
12353         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
12354         gtk-config to gtk-config-2.0 move gtk_.m4 to
12355         gtk-2.0.m4
12356
12357         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
12358         gdk/Makefile.am demos/Makefile.am: Change 
12359         library names to libgtk-1.3.la, etc, so that we
12360         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
12361
12362         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
12363         gdk/Makefile.am gdk/x11/Makfile.am
12364         Move include files into /usr/include/gtk-2.0, 
12365         /usr/lib/gtk-2.0/include/
12366          
12367         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
12368         gtk/gtkintl.h: Change package for gettext from 
12369         gtk+ to gtk20. Put hack in autogen.sh to modify
12370         po/Makefile.in.in after gettextize to make this
12371         possible.
12372
12373         * gtk+.spec: Some updates, not tested.
12374
12375         * gdk-pixbuf/Makefile.am: Move loaders into
12376         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
12377
12378         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
12379         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
12380         to THEMENAME/gtk-2.0/. Move engine directory  to
12381         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
12382         
12383 2000-07-12  Tor Lillqvist  <tml@iki.fi>
12384
12385         Win32 changes, still doesn't build though.
12386
12387         * gdk/makefile.cygwin
12388         * gdk/win32/makefile.cygwin
12389         * gtk/makefile.cygwin: Updates.
12390
12391         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
12392         default values for fg and bg pixel as X11 does (0 and 1), not
12393         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
12394         Use 0 for pen width by default (treated as 1 anyway later, but for
12395         apps that might check the value in the GdkGC).
12396         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
12397         interface to gdk_gc_predraw and _postdraw.
12398
12399         * gdk/win32/gdkwin32.h
12400         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
12401
12402         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
12403         extraneous semicolon.
12404
12405         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
12406
12407         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
12408         not the Win32 bitspixel value.
12409
12410         * gdk/win32/gdkcc-win32.c:
12411         * gdk/win32/gdkcolor-win32.c 
12412         * gdk/win32/gdkprivate-win32.h
12413         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
12414         GDK object structure.
12415
12416 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
12417
12418         * docs/tutorial/gtk_tut_12.es.sgml (name): 
12419         * docs/tutorial/gtk_tut_it.sgml (name): 
12420         * docs/tutorial/gtk_tut_fr.sgml (name): 
12421         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
12422         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
12423
12424 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
12425
12426         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
12427           small changes.
12428
12429 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
12430
12431         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
12432         a bug here, never been here and never fixed anything ;(
12433         (don't segfault if tree->root_tree is NULL, which happens prior
12434         to widget realization, but puke instead).
12435
12436 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
12437
12438         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
12439         add the necessary tokens.
12440
12441         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
12442         (gtk_rc_style_to_style): copy thicknesses.
12443         (gtk_rc_init_style): apply thicknesses.
12444         (gtk_rc_parse_style): parse xthickness and ythickness.
12445
12446         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
12447
12448         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
12449         (gdk_window_new): 
12450         (_gdk_windowing_window_init): 
12451         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
12452         (gdk_pixmap_create_from_data): 
12453         (gdk_bitmap_create_from_data): 
12454         (gdk_pixmap_new): 
12455         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
12456         (gdk_image_new): 
12457         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
12458         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
12459         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
12460         (gdk_colormap_get_system): 
12461         (gdk_colormap_new): 
12462         * gdk/gdkwindow.c (gdk_window_init): 
12463         * gtk/gtkstyle.c (gtk_style_new):
12464         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
12465         * gdk/gdkpixmap.c (gdk_pixmap_init): 
12466         * gtk/gtkrc.c (gtk_rc_style_new):
12467         use g_object_new() instead of g_type_create_instance() which
12468         is a private function for fundamental type implementations.
12469
12470 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
12471
12472         * configure.in: Add check for db2html
12473
12474 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
12475
12476         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
12477         hack to set glib_debug_objects based on gtk_debug_flags.
12478
12479 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
12480
12481         * INSTALL.in: Update the Prerequisites section.
12482
12483         * Makefile.am demos/Makefile.am docs/Makefile.am
12484         docs/tutorial/Makefile.am gdk/x11/Makefile.am
12485         gdk/linux-fb/Makefile.am: Dist fixes
12486
12487 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
12488
12489         * NEWS: 10,000 foot view of 1.3.1 changes.
12490
12491 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
12492
12493         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
12494         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
12495         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
12496         gdk/x11/gdkmain-x11.c: 
12497
12498         Patch from George Lebl to add a GdkGrabStatus enumeration to use
12499         as a return value of gdk_*_grab(). Previously, we just
12500         returned the X11 values directly.
12501
12502 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
12503
12504         * gdk/x11/Makefile.am: Patch from George Lebl to 
12505         install all the headers in the right place.
12506
12507 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
12508
12509         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
12510           initial conversion to DocBook.
12511
12512 2000-07-04  Tor Lillqvist  <tml@iki.fi>
12513
12514         * README.win32: Improve a bit.
12515
12516         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
12517         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
12518         Alt+0nnn on the numpad (used to enter characters by numeric code
12519         from current DOS or ANSI codepage) working correctly, as in other
12520         Windows apps.
12521
12522         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
12523         same argument validity tests as in X11 version.
12524         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
12525
12526         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
12527         definitions in case missing from headers.
12528
12529         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
12530         destroy the window-specific cursor.
12531         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
12532         calling GetModuleHandle(NULL).
12533         (gdk_window_set_cursor): Reworked to always copy the passed cursor
12534         with CopyCursor before setting it as the window-specific
12535         cursor. It is OK for the caller to destroy the GdkCursor (and thus
12536         also its Windows cursor) after calling this function. Destroy any
12537         previous window-specific cursor.
12538
12539 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
12540
12541         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
12542         font charset is iso8859-1, not iso-8859-1.
12543
12544 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
12545
12546         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
12547         Use g_get_charset() instead of g_get_codeset().
12548
12549         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
12550         Comment out some strdup'ing functions to keep timj
12551         happy until we finish fighting this out.
12552
12553 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
12554
12555         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
12556         <= width or height.
12557
12558         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
12559         from 1.2 for parent/child states.
12560
12561         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
12562         of typos.
12563
12564         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
12565         event structures, replace with a generic axes field. Replace 
12566         deviceid/sourec with GdkDevice *device.
12567
12568         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
12569         to extract particular axis use value from event. (Also
12570         can be used for normal X/Y.)
12571
12572         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
12573         allow for arbitrary number of axes, namespace everything
12574         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
12575         everywhere.
12576
12577         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
12578         Get rid of the gdk_input_vtable setup if favor of simply
12579         defining the functions in gdkinput-none/gxi/xfree.c in
12580         a similar fashion to the way that the port structure is 
12581         done.
12582
12583         * gtk/gtkdnd.c: Fix fields of synthesized button press event
12584         for new event structures. 
12585
12586         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
12587         new device interfaces.
12588
12589 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
12590
12591         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
12592         set the initial text.
12593
12594         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
12595         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
12596         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
12597         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
12598
12599         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
12600         pango_layout_set_font_description to simplify.
12601
12602 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
12603
12604         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
12605         pango_layout_set_font_description to simplify.
12606
12607 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
12608
12609         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
12610         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
12611         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
12612
12613         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
12614         PANGO_PIXELS() macro.
12615
12616 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
12617
12618         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
12619         that returns a PangoContext owned by the widget and updated to
12620         match future changes in the widget. Also, make 
12621         gtk_widget_create_pango_layout() use this context. If we ever
12622         add a ::changed signal to PangoContext, this will make things
12623         much more convenient. 
12624
12625         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
12626         in the appropriate places instead of destroying the layouts and
12627         creating new ones.
12628
12629         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
12630         in a few strategic places.
12631
12632 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
12633
12634         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
12635         gtk_widget_size_request() on reparented child, if one. Otherwise,
12636         queue_resize() on the child never results in it getting size-requested
12637         at all.
12638
12639         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
12640         in option menus, so that (with luck) people won't copy it into
12641         their apps in the future.
12642
12643         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
12644         to gtk_option_menu_calc_size. This isn't perfect, but should fix
12645         a lot of problems with changing the size of the menu's menu
12646         items after adding it to the option menu.
12647
12648         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
12649
12650         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
12651         the text direction for a widget changes.
12652
12653         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
12654         ::direction_changed to get rid of various hacks.
12655
12656 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
12657
12658         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
12659         name.
12660
12661 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
12662
12663         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
12664         flag to the structure. Do not call XFreePixmap on pixmaps created
12665         by gdk_pixmap_foreign_new().
12666
12667 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
12668
12669         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
12670         value using GdkRGB functionality given GdkColormap and GdkColor.
12671         (name not final, waiting for inspiration.)
12672         
12673         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
12674         set the foreground/background of a GC using the GC's colormap
12675         and GdkRGB. (name not final, waiting for inspiration.)
12676
12677         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
12678         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
12679
12680         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
12681         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
12682         purely a function of the corresponding colormap. Make
12683         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
12684
12685         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
12686         gdk_pixbuf_*create_from_xpm_* in terms of
12687         gdk_pixbuf_new_from_xpm_data(), move into platform independent
12688         code.
12689
12690         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
12691         advantage of the new draw_rgb_32_image_dithalign.
12692
12693         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
12694
12695         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
12696         on each created GC.
12697
12698         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
12699
12700         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
12701         which we initialize from the drawable when the GC is created,
12702         if the drawable has a colormap.
12703
12704         * gdk/x11/gdkgc-x11.c: include string.h for memset.
12705
12706         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
12707
12708         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
12709
12710 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
12711
12712         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
12713         actually returning expose events, make sure to set
12714         the count field properly.
12715
12716         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
12717         accidentally reintroced bug which always cleared
12718         the graphics_exposures value. 
12719
12720 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
12721
12722         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
12723
12724 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
12725
12726         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
12727
12728 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
12729
12730         * docs/faq/gtk-faq.sgml: Start of Section 6.
12731
12732 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
12733
12734         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
12735         
12736         (Fixes problem with drawing childless frames. Pointed out
12737         by and a first patch from Anders)
12738         
12739         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
12740         compute a child_allocation, even if we don't have a child.
12741
12742         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
12743         Always chain to the parent's impl, even if we don't have a child.
12744
12745 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
12746
12747         * gdk/gdkrgb.c: If possible, create only a single shm segment and
12748         use multiple parts of it instead of creating a bunch of separate
12749         segments, since the maximum number of segments per system is not
12750         large. (This might be worth backporting to GTK+-1.2.x if we make a
12751         new release )
12752
12753         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
12754         structure in preparation for per-colormap GdkRGB.
12755
12756         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
12757         to False when we get EINVAL from shmget so that the caller of
12758         gdk_image_new can retry with a smaller segment size.
12759
12760 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
12761
12762         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
12763
12764 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
12765
12766         * configure.in: make the current version number 1.3.1 (binary age 0,
12767         interface age 0).
12768         
12769         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
12770         gtkcompat.h is all we want.
12771
12772         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
12773         GLib primitive types. fixed g_type_register_fundamental() argument
12774         ordering.
12775
12776         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
12777         compiles.
12778
12779         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
12780         object code cleanup, comment trigraph fixes, etc...
12781
12782 2000-06-23  Havoc Pennington  <hp@redhat.com>
12783
12784         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
12785         instead of making up a bogus name for first_para_mark
12786
12787         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
12788         0 as a context ID
12789
12790 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
12791
12792         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
12793
12794 2000-06-21  Havoc Pennington  <hp@pobox.com>
12795
12796         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
12797         we didn't check window->bg_pixmap != GDK_NO_BG.
12798
12799         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
12800         gdk-pixbuf
12801
12802 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
12803
12804         * docs/faq/gtk-faq.sgm: Move file to here.
12805           TODO: Update Makfile.am 
12806
12807 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
12808
12809         * docs/gtk-faq.sgm: Add Section 2
12810
12811 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
12812
12813         * docs/gtk-faq.sgm: New file. Start of DocBook
12814           version of the FAQ.
12815
12816 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
12817
12818         * configure.in (GDK_PIXBUF_MAJOR): Define version
12819         numbers for GDK_PIXBUF_*, as they get substituted
12820         into a header file. Need to consider versioning
12821         for gdk-pixbuf more carefully later.
12822
12823 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
12824
12825         Work with srcdir != builddir.   
12826         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
12827         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
12828         * demos/testpixbuf.c: Likewise.
12829         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
12830         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
12831         <gdk/x11/gdkx.h>.
12832         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
12833         "gdk-pixbuf.h".
12834         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
12835
12836 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
12837
12838         * TODO.xml: Change 1.4 version numbers to 2.0.
12839
12840 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
12841
12842         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
12843         fixups to GTK+ standard.
12844
12845 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
12846
12847         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
12848         gdk-pixbuf.
12849
12850         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
12851         fixups for GObject.
12852
12853         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
12854         gdk-pixbuf with GDK dependencies moved into GDK.
12855         
12856         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
12857         move gdk-pixbuf-loader here until GObject has signals.
12858
12859         * demos/: New directory of demos. Move demos from
12860         gdk-pixbuf here.
12861
12862         * demos/pixbuf-init.c: Small bit of code to check for
12863         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
12864         set GDK_PIXBUF_MODULEDIR appropriately.
12865
12866         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
12867         define which no longer makes sense.
12868
12869 2000-06-21  Havoc Pennington  <hp@redhat.com>
12870
12871         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
12872         gtk_get_default_language
12873
12874         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
12875         new function to get the default language
12876
12877         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
12878         s/gtk_text_view_style_values/gtk_text_style_values/
12879
12880         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
12881         Add a "language" field to tags.
12882
12883         (gtk_text_tag_set_arg): Fix bug in setting
12884         "bg_full_height_set" tag.
12885
12886 2000-06-21  Havoc Pennington  <hp@redhat.com>
12887
12888         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
12889         in the interfaces
12890
12891         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
12892         stuff instead when possible.
12893
12894         * gtk/gtktexttypes.h: Delete some unused constants
12895
12896         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
12897         testtextbuffer.c: use glib instead of custom unicode routines
12898
12899 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
12900
12901         * docs/es/: Removed mistakenly added generated sgml
12902
12903         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
12904         Remove outdated info files.
12905
12906         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
12907         Moved tutorial files into subdir
12908
12909         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
12910         subdir.
12911
12912         * docs/man/gtk_button.pod: Remove. (contents will be
12913         integrated into gtk-reference button page.)
12914
12915         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
12916         docs/faq/Makefile.am: Adjust for new organization
12917
12918 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
12919
12920         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
12921         not $(MKINSTALLDIRS)
12922
12923 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
12924
12925         * gtk/testgtk.c (create_text): Finish the job Elliot started
12926         of removing font setting test for text widget. (Since text widget
12927         and GdkFont are not deprecated, and cause portability problems.)
12928
12929 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
12930
12931         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
12932         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
12933         Remove use of libunicode in favor of new GLib functions.
12934
12935         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
12936         nano-x, framebuffer. The X11 include is just a hack until we get
12937         the necessary functions in gdkcolor.h, so there is no reason to
12938         add other includes of platforms.
12939
12940         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
12941         window bigger than the screen change.
12942
12943         * gtk/testgtk.c: Revert some random changes from Elliot
12944         that had no particular point and were causing testgtkrc
12945         not to function correctly.
12946         
12947         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
12948         because GdkSegment and GdkRegionBox have the same fields,
12949         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
12950         results in clearer code.
12951
12952         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
12953         gdk_input_translate_coordinates): Fix missed GdkObjectification
12954
12955 2000-06-18  Elliot Lee  <sopwith@redhat.com>
12956
12957         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
12958         * gtk/gtk{plug,socket}.h: Missed commits from previous.
12959
12960 2000-06-20  Havoc Pennington  <hp@redhat.com>
12961
12962         * modules/linux-fb/Makefile.am: Make this compile
12963         without framebuffer enabled
12964
12965         * gdk/linux-fb/Makefile.am: Add conditional to not build
12966         framebuffer unless specified in configure
12967
12968         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
12969         the size of the target instead of source if -1 was passed for
12970         width/height
12971
12972         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
12973         width/height confusion.
12974
12975 2000-06-19  Havoc Pennington  <hp@redhat.com>
12976
12977         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
12978         GDK_DRAWABLE_XID. In the future, we probably want to make it
12979         faster with G_DISABLE_CHECKS turned on.
12980
12981 2000-06-14  Havoc Pennington  <hp@redhat.com>
12982
12983         * gdk/Makefile.am: add gdkpixmap.c
12984
12985         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
12986         s/gdk_image_init/_gdk_windowing_image_init
12987
12988         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
12989         ref/unref
12990
12991         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
12992
12993         * gdk/gdkcompat.h: remove GdkWindowType compat, since
12994         GdkWindowType is now non-deprecated; 
12995         change gdk_window_get_type() compat to be
12996         gdk_window_get_window_type().
12997
12998         * gdk/gdkdnd.h: make GdkDragContext a GObject.
12999
13000         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
13001         virtual GObject. Make all functions call into the vtable.
13002         Move gdk_image_put() guts in here. Remove GdkDrawableType
13003         and gdk_drawable_get_type(), these are now GdkWindow-specific.
13004         draw_image, get_depth, get_size, set_colormap, get_colormap,
13005         get_visual added to the vtable.
13006         
13007         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
13008         GObject. Virtualize everything. 
13009         (gdk_gc_new_with_values): remove check for destroyed window,
13010         because now GdkWindow::create_gc will check this.
13011         (gdk_gc_set_values): New function to set GC values, this 
13012         was already implemented but wasn't in the header
13013
13014         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
13015
13016         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
13017         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
13018         remove _gdk_window_class; add _gdk_window_impl_get_type() and
13019         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
13020         _gdk_windowing_window_init, rename gdk_image_init to
13021         _gdk_windowing_image_init.
13022         
13023         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
13024         (gdk_draw_layout): Remove check for destroyed window, 
13025         because all the drawable methods already check it.
13026         
13027         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
13028         Add gdkpixmap.c which contains implementation of GdkDrawable
13029         virtual table (by chaining to a platform-specific implementation
13030         object).
13031         
13032         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
13033         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
13034         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
13035         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
13036         GdkColormapPrivate. 
13037
13038         * gdk/gdktypes.h: #include <glib-object.h>
13039
13040         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
13041         Move most functionality to platform-specific implementation
13042         object. GdkWindow itself now handles the backing store, then
13043         chains to the platform-specific implementation.
13044         (gdk_window_get_window_type): return GdkWindowType of the window.
13045         (gdk_window_peek_children): New routine, returns the children of 
13046         a GdkWindow
13047         (gdk_window_get_children): Was in X11-specific code and did 
13048         XQueryTree. Changed to simply return a copy of window->children; 
13049         so it can go in cross-platform code.
13050         
13051         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
13052
13053         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
13054         GdkColormap; just changed to use the new private data instead
13055         of casting to GdkColormapPrivate.
13056
13057         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
13058         gdk_cursor_new().
13059
13060         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
13061         (private data member in the GObject). 
13062         (xdnd_manager_source_filter): Function had broken 
13063         error handling, fix it (use gdk_error_trap_push).
13064
13065         * gdk/x11/gdkdrawable-x11.c: This file now implements
13066         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
13067         base class is purely for the convenience of the X port,
13068         and not part of the interface to cross-platform GDK.
13069
13070         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
13071         
13072         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
13073         specific to X, and returned by the create_gc virtual method
13074         of GdkDrawableImplX11. 
13075         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
13076         rather than gchar, this was also changed in the GdkGC vtable.
13077         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
13078         mask is 0, return immediately, instead of checking every flag.
13079         This is faster, and keeps us from segfaulting if values is NULL
13080         and the mask contains some nonzero flags.
13081
13082         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
13083         GdkWindow.
13084
13085         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
13086         GdkWindowPrivate is gone.
13087
13088         * gdk/x11/gdkim-x11.c: rename things that got renamed.
13089
13090         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
13091         remove the image_put stuff that got transferred to GdkDrawable.
13092         
13093         * gdk/x11/gdkinput.c: renamings
13094
13095         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
13096
13097         * gdk/x11/gdkpixmap-x11.c: GObject conversion
13098
13099         * gdk/x11/gdkprivate-x11.h: indentation fixes
13100
13101         * gdk/x11/gdkproperty-x11.c: renamings
13102
13103         * gdk/x11/gdkselection-x11.c: renamings
13104
13105         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
13106         implements the platform-specific "impl" object.
13107         Moved gdk_window_get_children to gdk/gdkwindow.c
13108
13109         * gdk/x11/gdkx.h: Remove all the private structs and private datas
13110         that no longer exist. Add declaration of GdkGCX11 object here.
13111         Fix all the macros to still work. 
13112
13113         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
13114         GdkDragContext from the boxed types since they are now GObjects.
13115
13116         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
13117         moved xthickness/ythickness into the instance. GtkStyleClass
13118         functions are now in the standard vtable for GtkStyle, so you have
13119         to create a GObject subclass to write a theme engine.
13120         (gtk_style_copy): fixed a leaked PangoFontDescription
13121         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
13122         can be the standard GObject function.
13123         
13124         * Throughout GTK:
13125         s/style->klass->[xy]thickness/style->[xy]thickness
13126         s/pango_layout_unref/g_object_unref/
13127
13128         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
13129         
13130         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
13131         accessing GDK internals.
13132
13133         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
13134         accessing GDK internals.
13135
13136 2000-06-18  Elliot Lee  <sopwith@redhat.com>
13137
13138         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
13139
13140         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
13141         problem by calculating event position relative to the trough
13142         rather than the slider.
13143         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
13144
13145         * gdk/gdkgc.h: Add GDK_NOR.
13146
13147         * configure.in, Makefile.am: Add modules top level dir
13148         * configure.in: Only use pangox library if building x11 target.
13149         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
13150
13151 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
13152
13153         * gtk/gtkcolorsel.c: Change private class member to be named
13154         private_data throughout the file.
13155
13156         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
13157         private_data to avoid clashing with keyword.
13158
13159 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
13160
13161         * gdk/gdkdnd.h: Add comment to remove warning.
13162
13163 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
13164
13165         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
13166         Byelorussian language; changed the Makefile and file names 
13167         to reflect that.
13168
13169 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
13170
13171         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
13172         rather than gdk_window_hide; this makes things work
13173         correctly if the window is programmatically hidden while
13174         iconified.
13175
13176 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
13177
13178         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
13179         cut and paste typo where wrong pixmap was being
13180         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
13181
13182 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
13183
13184         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
13185         Add helper function to compute format / bytes 
13186         relationship. Use in a couple places to fix up
13187         errors which assume 8 * format.
13188
13189         * gtk/gtkselection.c (gtk_selection_request): Use 32
13190         rather than 8 * sizeof (GdkAtom), to work correctly
13191         on Alpha.
13192
13193 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
13194
13195         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
13196         libgtk.la
13197         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
13198         versions
13199
13200         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
13201         checking macros return NULL since the function has a return value.
13202
13203 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
13204
13205         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
13206         GTK+ from building at all.
13207
13208         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
13209
13210 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
13211
13212         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
13213         gtk/Makefile.am: make it possible to configure gtk for different
13214         targets on the same platform. The library name is now 
13215         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
13216         flag. Only the x11 target compiles right now.
13217         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
13218         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
13219         * gdk/nanox/gdk*generic*: delete generic region code.
13220         * gdk/linux-fb/gdk*generic*: delete generic region code.
13221         * README.nanox: update information.
13222         
13223 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
13224
13225         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
13226         prepend not append. (Pointed out by Brett Hall.)
13227
13228 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
13229
13230         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
13231
13232 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
13233
13234         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
13235         need this later, and this makes sure that the atexit for
13236         glib gets called after that for GDK, so atexits are
13237         properly ordered for object leak checking.
13238
13239         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
13240
13241         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
13242         pango_x_shutdown_display()
13243
13244         * gtk/simple.c (main): Close window on destroy.
13245
13246 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
13247
13248         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
13249         to treat initial creation different from setting with 
13250         regards to the graphics-exposures parameter, so add a parameter
13251         indicating whether this is initial or not.
13252
13253 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
13254
13255         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
13256         to sort of work by adding an extra return_exposes arg
13257         to gdk_event_translate() - it might be better to simply
13258         deprecate the function altogether and force people to rewrite
13259         without it. gdk_window_scroll() handles most of it, and where
13260         gdk_window_scroll() doesn't work, simply redrawing more does.
13261
13262         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
13263         assertion.
13264
13265         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
13266
13267         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
13268         bunch of pretty much useless /* Print debugging info */ comments 
13269         which had drifted away from the code they were commenting.
13270
13271 2000-06-02  Havoc Pennington  <hp@pobox.com>
13272
13273         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
13274         is in working order.
13275         
13276         * gtk/testtext.c: Change to reflect anonymous mark API
13277
13278         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
13279
13280         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
13281         field, which was unused.
13282
13283         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
13284         saves some typing.
13285
13286         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
13287
13288         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
13289         flag on the insertion point and selection bound
13290
13291         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
13292         make mark-manipulation functions take a GtkTextMark* instead of a
13293         mark name.
13294         
13295         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
13296         GtkTextMarkBody; will be used to detect attempts to delete
13297         the permanent marks (insert and selection bound)
13298
13299         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
13300
13301 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
13302
13303         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
13304         flag to on.
13305
13306         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
13307         Honor DOUBLE_BUFFRED_FLAG
13308
13309         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
13310         function to set the DOUBLE_BUFFERED flag.
13311
13312         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
13313         or not exposes done on the widget should be double-buffered.
13314
13315         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
13316         to be what would be expected. (Fixes problem with a
13317         g_return_if_fail() validating a TextDirection enumeration)
13318
13319 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
13320
13321         * gtk/gtkwidget.c: Remove all references to 
13322         offscreen flag which was no longer used.
13323
13324         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
13325
13326         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
13327         for non-null label_widget->parent.
13328
13329         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
13330         which no longer was used.
13331
13332         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
13333
13334         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
13335         for null arguments.
13336
13337         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
13338         check for destroyed windows.
13339
13340 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
13341
13342         * gtk/gtkimmulticontext.c: Add a finalize method and unref
13343         the slave context there.
13344
13345         * gtk/gtkinvisible.[ch]: Make reference counting behavior
13346         identical to GtkWindow.
13347
13348 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
13349
13350         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
13351         pangox to here, so we can write them independent of rendering
13352         system, using GDK primitives.
13353
13354         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
13355         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
13356         since we have a rendering-system independent implementation in
13357         terms of draw_glyphs().
13358         
13359         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
13360         function to render a single line.
13361
13362         * gdk/x11/gdkpango.c: Move the guts of this file mostly
13363         into ../gdkpango.c, which simplifies things, since we
13364         don't have to deal with raw X gc's.
13365
13366 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
13367
13368         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
13369         get the logical attributes for a given GtkTextLine.
13370
13371 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
13372
13373         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
13374         g_locale_get_codeset() to g_get_codeset() change.
13375
13376 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
13377
13378         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
13379         descriptions.
13380
13381         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
13382         the entry.
13383
13384         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
13385         redoing (vastly simplifying) for Pango. Still needs quite
13386         a bit of work. (Size selection is currently poor. List of 
13387         predefined sizes is not a good idea, since all of these
13388         sizes won't necessarily be distinct.)
13389
13390 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
13391
13392         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
13393         CODESET results for LANG=C.
13394
13395 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
13396
13397         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
13398         which takes a stringized pango font description;
13399         ignore the older 'font' and 'fontset' declarations.
13400
13401         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
13402         field with a GdkFont derived via gdk_font_from_description(),
13403         for compatibility. (Should we just remove it entirely?
13404         Probably too much compatibility breakage, but people
13405         should be migrating to the new Pango stuff as quickly
13406         as possible.)
13407
13408 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
13409
13410         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
13411
13412 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
13413
13414         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
13415         redoing; there are some bugs in size allocation right
13416         now, the semi-existant distinction between header / day
13417         fonts was removed, but, with Pango, could actually
13418         be made functional in a nice way.
13419         
13420         * gtk/testcalender: Move calender from examples into this
13421         directory as a test program. (We really need to restrcture
13422         testgtk into a whole directory full of tests for every
13423         widget or functionality group, separated into multiple .c
13424         files.)
13425
13426 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
13427
13428         * gtk/testgtk.c (file_exists): Fix stupid typo that
13429         was keeping RC file from being loaded.
13430
13431         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
13432         RC file font code.
13433
13434 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
13435
13436         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
13437         Add function to load a GdkFont from a PangoFontDescription.
13438
13439 2000-05-29  Tor Lillqvist  <tml@iki.fi>
13440
13441         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
13442         variable should be of type GdkEventPrivate.
13443
13444 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
13445
13446         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
13447         to have any widget for the label, use a GtkLabel widget
13448         to display the text. (Based partially on a patch from
13449         Anders Carlson.)
13450
13451         (Quite a bit of code reorganization - strip 90% of the
13452         guts out of gtkaspectframe and add a single virtual
13453         func to GtkFrameClass - compute_child_allocation.)
13454
13455 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
13456
13457         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
13458         (Removed clist->row_center_offset field because caching
13459         it wasn't saving time or code, added private function
13460         _gtk_clist_create_cell_layout()).
13461
13462 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
13463
13464         * gtk/gtkaccellabel.c: Pangoized.
13465
13466         * gtk/[hv]ruler.c: Pangoized
13467
13468 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
13469
13470         * gtk/gtkfilesel.c (gtk_file_selection_init):
13471         Use gtk_clist_set_column_auto_resize() to remove need
13472         need for manual column width computations.
13473
13474 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
13475
13476         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
13477         ensuring Pango correctness, and considerably simplifying the
13478         code.
13479         
13480         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
13481
13482         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
13483         getting of numbers of lines.
13484
13485         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
13486         to the actual requested width of the lable, not to the wrap
13487         width we set.
13488
13489         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
13490
13491         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
13492           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
13493
13494         * gtk/gtktextview.c: Fix structure inheritance.
13495
13496         * gtk/gtkprogressbar.c: Pangoize.
13497
13498 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
13499
13500         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
13501         in a function.
13502
13503         * gtk/gtktextlayout.c (find_display_line_above): Fixed
13504         bug with computing line tops.
13505
13506         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
13507
13508 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
13509
13510         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
13511         and y_offset coordinates to do what we need now. (The offset between
13512         buffer and layout coordinates has been reintroduced, but is a 
13513         bit different than before.)
13514
13515         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
13516         handle the adjustments ourselves, and scroll as necessary using
13517         the new gdk_window_scroll().
13518         
13519         The advantage of this is that when we are incrementally revalidating,
13520         we are essentially rearranging things around the visible portion
13521         of the screen. With the old setup, the visible portion of the
13522         screen was moved around in the layout, so scrolling and redrawing
13523         to track that caused jumping of the display. Since we now
13524         control the scrolling ourselves, we can suppress this and
13525         only redraw when things actually change.
13526
13527 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
13528
13529         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
13530         the region not just redisplay it after-all, since we store the
13531         cursors in the LineDisplay. (Ugly interactions here between
13532         GtkLayout and GtkTextBTree here.)
13533         
13534         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
13535
13536 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
13537
13538         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
13539         Added function to scroll contents of a window while keeping the
13540         window constant. Works by XCopyArea or guffaw-scrolling depending
13541         on the details of how the window is set up. (guffaw-scrolling
13542         still needs to be filled in.)
13543
13544 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
13545
13546         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
13547         move the debugging that was tied to a global variable
13548         to that.
13549
13550         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
13551
13552         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
13553         validated flag, in line data instead of setting height/width to
13554         -1. This allows us to perform operations with partially invalid
13555         buffer (using the old size for invalid lines) and thus to do
13556         incremental vaidation. Keep height/width aggregates up to date
13557         when deleting text and rebalancing the tree.
13558
13559         * gtk/gtktextbtree.[ch]: Add functions validate a line
13560         (gtk_text_btree_validate_line), and to validate up
13561         to a number of pixels (gtk_text_btree_validate).
13562
13563         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
13564         that indicates that something is changed and a revalidation
13565         pass is needed. Change ::need_repaint to ::changed, and
13566         make it take old and new yranges instead of a rectangle.
13567
13568         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
13569         the line_data_destroy() function from 
13570         gtk_text_btree_add_view() to a virtual function in 
13571         GtkTextLayout
13572
13573         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
13574         since we are handling partial repaints in a different fashion
13575         now.
13576
13577         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
13578         of the selection instead of queueing a repaint on the
13579         entire widget.
13580
13581         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
13582         get_selection_bounds() down to btree, make the function
13583         in buffer a wrapper around the btree function.
13584
13585         * gtk/gtktextlayout.[ch]: Add functions to check if the
13586         layout is valid and to recompute either a range of pixels
13587         aroudn a line or a certain total number of pixels.
13588
13589         * gtk/gtktextlayout.[ch]: Cache a single line display;
13590         now that we only redraw the needed portions, the hit rate
13591         for this cache is quite high.
13592         
13593         * gtk/gtktextview.[ch]: Keep track of the first paragraph
13594         on the screen so that when re-laying-out the buffer, we can
13595         keep the same place. This requires connecting to ::value_changed
13596         on the adjustments
13597
13598         * gtk/gtktextview.[ch]: Add idle functions to revalidate
13599         the buffer after we receive an ::invalidated signal.
13600         
13601 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
13602
13603         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
13604         to max of allocation and layout size, not just to the
13605         layout size.
13606
13607         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
13608         Invalidate window so it gets redrawn properly.
13609
13610         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
13611         to mean the entire window.
13612
13613         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
13614         into public header.
13615
13616 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
13617
13618         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
13619         to get the name of a mark.
13620
13621         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
13622         to find the paragraph from a y position.
13623
13624 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
13625
13626         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
13627         nodes have width/height >= 0, not > 0.
13628
13629 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
13630
13631         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
13632         Add a size_only flag, so when we only need the size, we don't create
13633         useless appearance attributes.
13634
13635         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
13636         duplicate setting of font description.
13637
13638         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
13639
13640 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
13641
13642         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
13643         EXTRA_DIST. It does not work well when the file that
13644         everything depends on is not in the tarball.
13645
13646 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
13647
13648         * gtk/testgtk.c: Some hacks and fixes so that it basically
13649         works when not sitting in the GTK+ build tree.
13650
13651 2000-05-03  Havoc Pennington  <hp@redhat.com>
13652
13653         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
13654         Properly determine the ordering of the tag root and the current
13655         line within the tree. Previous algorithm only worked if the tag
13656         root's immediate parent was the common root of both the current
13657         line and the tag root.
13658
13659 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
13660
13661         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
13662         alignment.
13663
13664         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
13665         the widget text directional dynamically.
13666
13667         * gtk/gtktextview.[ch]: Added functions to get and set default
13668         wrap mode.
13669
13670 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
13671
13672         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
13673         in cursor location computation.
13674
13675 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
13676
13677         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
13678         vadjusment values properly when layout gets smaller.
13679
13680         * gtk/gtktextview.c (need_repaint_handler): Areas being
13681         passed in are far completely inaccurate, and sometimes
13682         too small, so, for now, just queue a redraw on the
13683         whole visible region.
13684
13685 2000-04-25  Havoc Pennington  <hp@redhat.com>
13686
13687         * gtk/gtktextbtree.c (summary_destroy): new function to 
13688         destroy tag summary nodes
13689         (gtk_text_line_next_could_contain_tag): this function was 
13690         totally broken if the line passed in wasn't below the tag
13691         root. Fix it.
13692         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
13693         "wildcard" case, we have to do a linear scan. Blah.
13694         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
13695         we have to do the linear scan
13696         (tag_removed_cb): When a tag is removed from the tag table, 
13697         remove the GtkTextTagInfo node from the btree.
13698         (gtk_text_btree_spew): Implement the spew function, for 
13699         our debugging pleasure.
13700
13701 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
13702
13703         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
13704         a problem with referring to the wrong buffer.
13705
13706         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
13707
13708         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
13709         font description to gtk_style_new() - otherwise things
13710         don't work without a .gtkrc file.
13711
13712         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
13713         tags table if we create it ourself, too.
13714
13715         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
13716         it was conflicting with XKB modifiers.
13717
13718         * gtk/gtktextview.[ch]: Add simple support for 
13719         GtkIMContext.
13720
13721 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
13722
13723         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
13724         with deletion from last commit.
13725
13726 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
13727
13728         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
13729         in the context from the current locale.
13730         
13731         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
13732         context, not hardcoded value.
13733
13734         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
13735         not logical.
13736
13737 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
13738
13739         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
13740         attributes - that doesn't handle partial-glyph selection
13741         properly. Instead use new pango_layout_line_get_x_ranges()
13742         functionality to draw the selection.
13743
13744         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
13745         now properly handles out-of-range coordinates.
13746
13747         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
13748
13749         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
13750         public.
13751
13752         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
13753         for paragraphs opposite to the base direction of the widget.
13754
13755         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
13756
13757         * gtk/gtktextlayout.c: Don't split segments on marks, since that
13758         causes Arabic words to reshape as you cursor through.
13759
13760         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
13761         cursor position when moving vertically with the arrow keys and
13762         scrolling with page-up/page-down. (Arrow keys save only the X,
13763         scrolling saves both X and Y.)
13764
13765         This means you can line-up / line-down or page-up / page-down
13766         without losing your place, and also that moving vertically
13767         with the cursor keys keeps the same X position, not the same
13768         character count:
13769
13770         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
13771         arrow keys move by display lines, not paragraphs.
13772
13773 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
13774
13775         * gtk/gtklayout.c: Make sure that the bin window is at least
13776         as big as the allocation. (Should we also make sure that the
13777         bin window is big enough to completely cover widget->window?)
13778
13779         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
13780         function to get the onscreen rectangle.
13781
13782         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
13783         for offsets in window coordinates.
13784
13785 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
13786
13787         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
13788         confusion.
13789
13790         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
13791         from the widget direction.
13792
13793         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
13794         Add a "direction" attribute.
13795
13796         * gtk/gtktextview.c: global s/tkxt/text_view/.
13797
13798         * gtk/testtext.c: Added long block of text in Arabic, to test out
13799         the direction attributes. (Some problems with the shaping system
13800         for arabic become obvious - like the fact the cursor splits words
13801         into unjoined pieces.)
13802
13803 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
13804
13805         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
13806
13807         * gtk/gtktextlayout.c: Fix up alignment.
13808
13809         * gtk/testtext.c: Add some tests for centering, wrapping.
13810
13811 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
13812
13813         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
13814         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
13815         If we wrote GTK+-specific layout-render function this could just replace
13816         the draw_layout() operation in the vtable.
13817
13818         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
13819         pango_layout_get_cursor_pos() and use that function.
13820
13821         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
13822         is a non-static symbol.
13823
13824         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
13825         with gtk_text_btree_find_line_by_y()
13826
13827         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
13828         renderer that handles GtkTextAppearance attributes.
13829
13830         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
13831
13832           - Move the values in the style that don't affect geometry into a
13833             GtkTextAppearance structure.
13834           - Change underline to take a PangoUnderline and "font" a string
13835             representation of a font description
13836           - Add a "font_desc" attribute which takes a FontDescription structure.
13837
13838         * gtk/gtktextlayout.[ch]:
13839
13840           - Get rid of the display-line list per each line. Instead, we
13841             generate, on demand, a GtkTextLineDisplay structure which]
13842             contains a PangoLayout * and other necesary information
13843             (offsets, cursor locations) for displaying a paragraph.
13844           - Get rid of the code to wrap lines, create display chunks,
13845             etc. Instead, we just go through a paragraph and convert
13846             it into the necessary inputs to a PangoLayout.
13847           - Implement a new attribute type, GtkTextAttrAppearance. This
13848             holds a GtkTextAppearance, and is used to pass colors, 
13849             stipple, etc, through from the layout to the display without
13850             having to use lots and lots of individual attributes.
13851           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
13852             in terms of PangoLayout functions.
13853         
13854         * gtk/gtktextview.c: 
13855          
13856           - Handle passing the necessary PangoContext to the layout
13857           - Some fixups in painting to deal with the automatic backing store
13858             and offsetting of GTK+-1.4
13859           - Add a style_set handler so that the default style reacts
13860             properly to theme changes.
13861         
13862         * gtk/gtktext?*.[ch]: Random code-style fixes.
13863
13864         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
13865
13866 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
13867
13868         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
13869         in original form preparatory to Pango-ization and gdkimcontext-ization.
13870
13871 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
13872
13873         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
13874         so that we can derive from gtkimcontext in language bindings properly.
13875
13876 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
13877
13878         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
13879         Add a compose table including (almost) all the compose combinations
13880         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
13881         data in the XIM implementation.
13882
13883         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
13884         Moved functions to convert keyvalues from and to unicode here from
13885         the win32 port and made them public.
13886
13887 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
13888
13889         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
13890
13891 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
13892
13893         * gtk/gtkimcontext.[ch]: Base class for new input context system
13894
13895         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
13896         the real input context implementation to be loaded from modules
13897         and switched on the fly.
13898
13899         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
13900         context that just does direct keysymbol => unicode translation.
13901
13902         * gtk/gtkentry.[ch]: Start switching editing over to using
13903         GtkInputContext. (No handling of preedit yet.)
13904
13905 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
13906
13907         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
13908         many substitutions. (klass should not be subsituted.)
13909
13910 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
13911
13912         * configure.in: Add checks for Pango
13913
13914         * configure.in docs/Makefile.am: Add test for sgml2html
13915         and allow 'make dist' without building html, but print out
13916         warnings in that case. (For making snapshots)
13917
13918         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
13919         Add Pango libraries and C flags
13920
13921         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
13922         Add function (gdk_draw_layout) to draw a pango layout.
13923
13924         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
13925         for getting Pango contexts for GDK.
13926
13927         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
13928
13929         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
13930         editing.
13931
13932         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
13933         keysym => unicode translations. More languages can be added
13934         here, but real input-method support is needed.
13935
13936         * docs/Changes-1.4.txt: Added note about entry behavior.
13937         
13938         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
13939         to set the reading direction for a widget and the global direction.
13940         Add test which allows toggling the global direction. Two private
13941         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
13942
13943         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
13944           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
13945
13946         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
13947
13948         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
13949         underlining now handled by Pango.
13950
13951         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
13952         to RCStyle and Style. (Having both this and the old font name and GdkFont 
13953         is temporary.)
13954
13955         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
13956         convenience functions for creating contexts and layouts for widgets.
13957
13958         * gtk/testgtk.c: Enhance label tests with multilingual labels.
13959
13960 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
13961
13962         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
13963         titles to be active, even if they aren't visible.
13964         (gtk_clist_column_titles_passive):  Ditto.
13965
13966 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
13967
13968         * gtkmenu.c:
13969         * gtkmenu.h:
13970         * gtktypeutils.h: Spelling/grammar fixes in comments.
13971
13972 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
13973
13974         * gdk/nanox/*.h: add missing header files.
13975
13976 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
13977
13978         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
13979         send_event to TRUE.
13980         (gtk_drawing_area_size): queue a resize.
13981
13982 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
13983
13984         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
13985         the handlers, also invalidate them. bug nailed down by Karl Nelson
13986         <kenelson@ece.ucdavis.edu>.
13987
13988 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
13989
13990         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
13991         "(nil)" foundries, patch from Grigorios Magklis.
13992
13993         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
13994         on non-available fonts, based on a patch by Grigorios Magklis
13995         <maglis@cs.rochester.edu>.
13996
13997 2000-05-18  Elliot Lee  <sopwith@redhat.com>
13998
13999         * gdk/x11/gdkregion-generic.c: If a region does not have any
14000         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
14001         instead of GDK_OVERLAP_RECTANGLE_IN.
14002
14003 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
14004
14005         * gtk/gtklayout.c (gtk_layout_map): Remove references to
14006         OFFSCREEN, as it is no longer necessary.
14007
14008 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
14009
14010         * gtk/gtkcolorsel.c: Patch from David Santiago
14011         <mrcooger@cyberverse.com> to change things so that the 
14012         indicator of the active palette entry is done independently,
14013         not via the focus, since it should always be visible.
14014
14015 2000-05-17  Tor Lillqvist  <tml@iki.fi>
14016
14017         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
14018         refcount leaks as in the X11 backend.
14019
14020         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
14021         cosmetics.
14022
14023         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
14024         backend. Add _gdk_windowing_window_destroy().
14025
14026         * gtk/gtkcolorsel.c: Include correct backend-specific header.
14027         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
14028         either, but these probably do exist on nanox?)
14029         
14030         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
14031         which isn't necessarily defined by <math.h>.
14032
14033         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
14034         ancestry past GtkObject.
14035
14036         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
14037         from DLL on Win32.
14038
14039         * gtk/gtk.def: Update corresponding to recent changes.
14040
14041         * gtk/makefile.{cygwin,msc}: Updates.
14042
14043 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
14044
14045         * docs/Changes-1.4.txt: A bit of editing.
14046
14047         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
14048         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
14049         to clear the update area for the window, and clear it
14050         when hiding a window.
14051
14052         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
14053         if window destroyed.
14054
14055         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
14056
14057         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
14058         gdk_window_destroy() to the generic code, since there was a lot of 
14059         window-system-independent logic it in. Add a function:
14060         
14061          _gdk_window_destroy() 
14062
14063         to the internal API to destroy a window without unreferencing it.
14064         Add a function:
14065
14066          _gdk_windowing_window_destroy()
14067
14068         That does the windowing-system-dependent part of destroying 
14069         the window.
14070
14071 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
14072
14073         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
14074
14075 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
14076
14077         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
14078         Make gtk_widget_shape_combine_mask() keep a reference count on
14079         the pixmap since it keeps it around.
14080
14081 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
14082
14083         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
14084         leak.
14085
14086         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
14087         leak with event filters.
14088
14089 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
14090
14091         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
14092         signal handlers with the right data arguments. (Fixes
14093         some warnings when a widget was repeatedly set as a drag
14094         destination.)
14095
14096         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
14097         window so we can avoid avoid setting the DND properties on the
14098         toplevel window repeatedly.
14099
14100 2000-05-13  Tor Lillqvist  <tml@iki.fi>
14101
14102         * gdk/win32/gdkwin32.h: Define more message types missing from
14103         mingw headers.
14104
14105         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
14106         call gdk_window_destroy_notify(). It was never called. This
14107         probably meant that the GdkWindow was never freed. Thanks Owen for
14108         noticing (!).
14109
14110         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
14111         window as destroyed before calling DestroyWindow(). DestroyWindow()
14112         causes a call to the window procedure (gdk_WindowProc), which
14113         calls gdk_event_translate(), which calls
14114         gdk_window_destroy_notify(), which gets confused unless the window
14115         is set as destroyed.
14116
14117         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
14118         this function to indicate it's win32 only. Put inside #ifdef
14119         G_ENABLE_DEBUG.
14120
14121         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
14122         debugging function. (gdk_event_translate:) Add a default branch
14123         that uses the above function to print debug messages with all
14124         Windows messages symbolically.
14125
14126         * gdk/win32/gdkprivate-win32.h: Declare it, and
14127         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
14128
14129 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
14130
14131         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
14132         public header file.
14133
14134 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
14135
14136         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
14137
14138         * gtk/gtktext.c: made the adjustments no-construct args, simply
14139         provide default adjustments.
14140         (gtk_text_destroy): release adjustments.
14141
14142         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
14143         adjustment argument non-construct.
14144
14145         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
14146         instead of in finalize.
14147         (gtk_progress_get_text_from_value): 
14148         (gtk_progress_get_current_text): 
14149         (gtk_progress_set_value): 
14150         (gtk_progress_get_percentage_from_value): 
14151         (gtk_progress_get_current_percentage): 
14152         (gtk_progress_set_percentage): 
14153         (gtk_progress_configure): ensure an adjustment is present.
14154
14155 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
14156
14157         * gtk/gtkcolorsel.[hc]:
14158         * gtk/gtkcolorseldialog.[hc]:
14159         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
14160         their parent implementation, use bit fields for boolean values, don't
14161         create unused widgets, usage of glib types, braces go on their own
14162         lines, function argument alignment, #include directives etc. etc. etc..
14163
14164         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
14165
14166 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
14167
14168         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
14169
14170         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
14171         of NULL.
14172
14173         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
14174         to freed data.
14175         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
14176
14177         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
14178         to NULL when the toplevel is getting destroyed.
14179         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
14180         (gtk_menu_destroy): 
14181         (gtk_menu_init): store the information of whether we have to
14182         readd the initial child ref_count during destruction in a new
14183         GtkMenu field needs_destruction_ref_count.
14184
14185         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
14186         here, those reading: learn from my mistake! ;)
14187         in order for set_?adjustment to support a default adjustemnt if
14188         invoked with an adjustment pointer of NULL, the code read (pseudo):
14189         if (v->adjustment) unref (v->adjustment);
14190         if (!adjustment) adjustment = adjustment_new ();
14191         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
14192         now imagine the first unref to actually free the old adjustment and
14193         adjustment_new() creating a new adjustment from the very same memory
14194         portion. here, the latter comparision will unintendedly fail, and
14195         all hell breaks loose.
14196         (gtk_viewport_set_hadjustment):
14197         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
14198         after unreferencing it.
14199
14200         * gtk/gtkcontainer.[hc]: removed toplevel registration
14201         functions: gtk_container_register_toplevel(),
14202         gtk_container_unregister_toplevel() and
14203         gtk_container_get_toplevels() which had wrong semantics
14204         anyways: it didn't reference and copy the list.
14205
14206         * gtk/gtkwindow.c: we take over the container toplevel registration
14207         bussiness now. windows are registered across multiple destructions,
14208         untill they are finalized. the initial implicit reference count
14209         users are holding on windows is removed with the first destruction
14210         though.
14211         (gtk_window_init): ref & sink and set has_user_ref_count, got
14212         rid of gtk_container_register_toplevel() call. add window to
14213         toplevel_list.
14214         (gtk_window_destroy): unref the window if has_user_ref_count
14215         is still set, got rid of call to
14216         gtk_container_unregister_toplevel().
14217         (gtk_window_finalize): remove window from toplevel list.
14218         (gtk_window_list_toplevels): new function to return a newly
14219         created list with referenced toplevels.
14220         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
14221
14222         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
14223         adjustment a non-construct arg.
14224         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
14225         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
14226         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
14227
14228         * gtk/gtkrange.c: added some realized checks.
14229         (gtk_range_destroy): get rid of the h/v adjustments in the
14230         destroy handler instead of finalize. remove timer.
14231         (gtk_range_get_adjustment): demand create adjustment.
14232
14233         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
14234         we simply create them on demand now and get rid of them in
14235         the destroy handler.
14236         (gtk_viewport_destroy): get rid of the h/v adjustments in the
14237         destroy handler instead of finalize.
14238         (gtk_viewport_get_hadjustment): 
14239         (gtk_viewport_get_vadjustment): 
14240         (gtk_viewport_size_allocate): demand create h/v adjustment
14241         if required.
14242
14243         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
14244         gtk_widget_real_destroy () functionality.
14245         (gtk_widget_real_destroy): reinitialize with a new style, instead
14246         of setting widget->style to NULL.
14247
14248 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
14249
14250         * gtk/gtkcalendar.c:
14251         * gtk/gtkbutton.c: ported _get_type() implementation over to
14252         GType, either to preserve memchunks allocation facilities,
14253         or because Gtk+ 1.0 GtkTypeInfo was still being used.
14254
14255         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
14256         over. prepare for ::destroy to be emitted multiple times.
14257         removed reference tracer magic. chain into GObjectClass.shutdown()
14258         to emit ::destroy signal.
14259
14260         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
14261         fundamental.
14262
14263         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
14264         cludge.
14265
14266         * gtk/gtksocket.c:
14267         * gtk/gtkplug.c:
14268         * gtk/gtklayout.c:
14269         * gtk/gtklabel.c:
14270         * gtk/gtkargcollector.c:
14271         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
14272         not being a fundamental anymore, and to work with the new
14273         type system (nuked fundamental type varargs clutter).
14274
14275         * gtk/*.c: install finalize handlers in the GObjectClass
14276         part of the class structure.
14277         changed direct GTK_OBJECT()->klass accesses to
14278         GTK_*_GET_CLASS().
14279         changed direct object_class->type accesses to GTK_CLASS_TYPE().
14280
14281         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
14282         GType. made most of the GTK_*() type macros and Gtk* typedefs
14283         simple wrappers around macros and types provided by GType.
14284         most notably, a significant portion of the old API vanished:
14285         GTK_TYPE_MAKE(),
14286         GTK_TYPE_SEQNO(),
14287         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
14288         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
14289         GTK_TYPE_ARGS,
14290         GTK_TYPE_CALLBACK,
14291         GTK_TYPE_C_CALLBACK,
14292         GTK_TYPE_FOREIGN,
14293         GtkTypeQuery,
14294         gtk_type_query(),
14295         gtk_type_set_varargs_type(),
14296         gtk_type_get_varargs_type(),
14297         gtk_type_check_object_cast(),
14298         gtk_type_check_class_cast(),
14299         gtk_type_describe_tree(),
14300         gtk_type_describe_heritage(),
14301         gtk_type_free(),
14302         gtk_type_children_types(),
14303         gtk_type_set_chunk_alloc(),
14304         gtk_type_register_enum(),
14305         gtk_type_register_flags(),
14306         gtk_type_parent_class().
14307         replacements, where available are described in ../docs/Changes-1.4.txt.
14308         implemented compatibility functions for the remaining API.
14309
14310         * configure.in: depend on glib 1.3.1, use gobject module.
14311
14312 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
14313
14314         * TODO.xml: Various updates to current status.
14315
14316 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
14317
14318         * gtk.m4: Print out version when test succeeds.
14319
14320 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
14321
14322         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
14323         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
14324         
14325         (Original triangle color selector from Simon Budig
14326         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
14327         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
14328         Santiago <mrcooger@cyberverse.com>)
14329
14330         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
14331         out into a separate widget.
14332
14333         * gtk/testgtk.c: Add some checkbuttons for toggling palette
14334         and opacity controls.
14335
14336 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
14337
14338         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
14339         snuck in prematurely.
14340
14341 2000-05-07  Tor Lillqvist  <tml@iki.fi>
14342
14343         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
14344         had deleted a ! operator by mistake, which caused
14345         GDK_SELECTION_CLEAR events never to be generated, which caused
14346         only the first copy to the clipboard from an gtkeditable to
14347         actually cause a copy to the Windows clipboard.
14348
14349 2000-05-06  Tor Lillqvist  <tml@iki.fi>
14350
14351         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
14352         compilation, too. Current mingw gcc distributions include the
14353         necessary headers. Also the necessary IIDs are now in mingw
14354         headers/libraries, and own definitions unnecessary.
14355
14356         More hacking on OLE2 DND, still doesn't work though, and thus
14357         ifdeffed out.
14358
14359         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
14360         here, too.
14361
14362 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
14363
14364         * gdk/nanox/*: nano-X port work in progress.
14365         * gdk/simple.c: simple test for Gdk.
14366         * README.nanox: notes about the port: read this first!
14367         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
14368         with nano-X.
14369
14370 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
14371
14372         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
14373         gdk_window_clear() into common code, implement in terms of
14374         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
14375         not redirected to the backing rectangle.
14376
14377 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
14378
14379         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
14380         EXTRA_DIST. It does not work well when the file that
14381         everything depends on is not in the tarball.
14382
14383 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
14384
14385         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
14386         with recursion where process_updates() is called from
14387         an expose handler. (GtkTextView is highly broken in
14388         doing this, but it should work, so it is a nice test
14389         case.)
14390
14391 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
14392
14393         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
14394         handle the case where updates are queued during processing of
14395         updates.
14396
14397 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
14398
14399         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
14400         window is on gdk_display - use that instead of segfaulting.
14401
14402 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
14403
14404         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
14405         broken and require an empty arg, give it to them.
14406
14407 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
14408
14409         * gtk/gtklabel.h: indentation fixes.
14410
14411 2000-05-02  Tor Lillqvist  <tml@iki.fi>
14412
14413         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
14414         draw too narrow or too low arcs, they seem to fail, at least with
14415         some display drivers.
14416
14417         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
14418
14419         Large changes to the Win32 backend, partially made necessary by
14420         the changes to the backend-independent internal
14421         structures. Attempts to implement similar backing store stuff as
14422         on X11. The current (CVS) version of the Win32 backend is *not* as
14423         stable as it was before the no-flicker branch was merged. A
14424         zipfile with that version is available from
14425         http://www.gimp.org/win32/. That should be use by "production"
14426         code until this CVS version is usable. (But note, the Win32
14427         backend has never been claimed to be "production quality".)
14428
14429         * README.win32: Add the above comment about versions.
14430
14431         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
14432
14433         * gdk/gdk.def: Update.
14434
14435         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
14436         presumably be replaced by some more better mechanism as 1.4 gets
14437         closer to release shape.
14438
14439         * gdk/makefile.{cygwin,msc}: Update.
14440
14441         * gdk/win32/*.c: Correct inclusions of the backend-specific and
14442         internal headers. Change code according to changes in these. Use
14443         gdk_drawable_*, not gdk_window_* where necessary.
14444
14445         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
14446         our old DND.
14447
14448         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
14449         to interpret single characters as UTF-8. Thanks to Hans Breuer.
14450         Use correct function name in warning messages.
14451
14452         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
14453         GSourceFuncs gdk_event_prepare and gdk_event_check.
14454         (gdk_event_get_graphics_expose): Do implement, use
14455         PeekMessage. Thanks to Hans Breuer.
14456         (event_mask_string): Debugging function to print an GdkEventMask.
14457         (gdk_pointer_grab): Use it.
14458
14459         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
14460         (old) book I used claimed was Hangul actually is CJK Unified
14461         Ideographs Extension A. Also, Hangul Syllables were missing.
14462         Improve logging.
14463
14464         * gdk/win32/gdkgc-win32.c: Largish changes.
14465
14466         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
14467         g_win32_getlocale() from GLib, and not setlocale() to get current
14468         locale name.
14469
14470         * gdk/win32/gdkprivate-win32.h
14471         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
14472         gdkwin32.h, similarily as in the X11 backend.
14473
14474         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
14475         assignment was used instead of equals in if test. Thanks to Hans
14476         Breuer.
14477
14478         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
14479         the X11 version.
14480
14481         * gdk/win32/makefile.{cygwin,msc}
14482         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
14483         path to the Win32 headers that works also with the mingw compiler.
14484
14485         * gtk/gtkstyle.c: Include <string.h>.
14486
14487 2000-04-26  Havoc Pennington  <hp@redhat.com>
14488
14489         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
14490         replacing the broken gtk_label_get ()
14491
14492 2000-04-15  Havoc Pennington  <hp@pobox.com>
14493
14494         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
14495         this keeps scanner scripts from getting confused.
14496
14497         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
14498         data, rather than void
14499
14500 2000-04-15  Tor Lillqvist  <tml@iki.fi>
14501
14502         * gtk/gtkclist.c (gtk_clist_motion)
14503         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
14504         with is_hint FALSE, get x and y from the event. They used to be
14505         used uninitialised. The Win32 backend never sends motion events
14506         marked as hints. This for instance fixes the annoying file and
14507         font selector behaviour in the Win32 version.
14508
14509 2000-04-14  Tor Lillqvist  <tml@iki.fi>
14510
14511         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
14512         gtk_private_n_signals variables, they are used by some software,
14513         sigh.
14514
14515         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
14516         installation directory from the Registry, where the installer
14517         should have put it.
14518
14519 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
14520
14521         * gdk/x11/Makefile.am: Fix problem with installation directory for
14522         gdkx.h
14523
14524         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
14525         <mrcooger@cyberverse.com> so that when selecting menus with the
14526         mouse, the first item will not be selected, but when selecting
14527         with an accelerator, or navigating left-right on a menubar with
14528         the menus popped up, the first item will be selected.
14529
14530 2000-04-05  Dan Damian  <dand@dnttm.ro>
14531
14532         * configure.in: Added "ro" to ALL_LINGUAS.
14533
14534 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
14535
14536         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
14537         indentation.
14538
14539         * Makefile.am (EXTRA_DIST): Fix typo.
14540
14541         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
14542         to catch gdkconfig.h
14543
14544         * gtk/gtkitemfactory.c: Added FIXME.
14545
14546 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
14547
14548         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
14549         s/return_if_fail/return_val_if_fail/g and add a return value.
14550
14551 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
14552
14553         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
14554         merge slipup.
14555
14556         * gdk/gdkinput.h: Fix missing line from merge.
14557
14558 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
14559
14560         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
14561         instead of gdkprivate.h.
14562
14563 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
14564
14565         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
14566         parent class to correctly be GtkDialogClass.
14567
14568 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
14569
14570         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
14571         toplevel windows and their immediate children by their parents,
14572         since the size of toplevel windows is out of our immediate
14573         control and we don't get any real benefit from trying to track
14574         this size for clipping.
14575
14576         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
14577         for input_only windows.
14578
14579         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
14580         to fix some hacks and make sure that we don't try to set the
14581         background of input only windows.
14582
14583 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
14584
14585         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
14586         the _really_ internal stuff, and leave gdkprivate.h for the fake private
14587         stuff that we've traditionally exposed.
14588
14589         * gdk/**.c: Use gdkinternals.h where appropriate.
14590
14591         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
14592         not include gdkprivate-x11.h, move all stuff of conceivable public
14593         interest into gdkx.h; keep all really private stuff in
14594         uninstalled header gdkprivate-x11.h.
14595
14596         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
14597         image->image_put on windows through a new function _gdk_window_draw_image()
14598         to allow us to do backing store for images. (Sort of ugly)
14599
14600         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
14601         contexts locally so that we can offset them properly when drawing 
14602         onto backing pixmaps.
14603
14604         * gdk/gdkinput.h: Reindented
14605
14606         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
14607         pixmap or color for the window, so we can properly initialize
14608         our double-buffer pixmaps, and also so that we temporarily set
14609         a background of None while scrolling.
14610
14611         * gdk/gdkregion.h: Revise region boolean operators to have an
14612         interface that is actually convenient - switch from creating new
14613         regions on every op, to "methods" that modify existing regions
14614         (A = A OP B). 3 argument forms which allow dest == src, would also
14615         be possible, but the current interfaces seem to map nicely
14616         onto what needs to be done. (There is quite a lot of region
14617         code in GDK now.)
14618
14619         * gdk/gdkregion.h: Add constructor from rectangle and a copy
14620         operator.
14621
14622         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
14623         gdkpoly-generic.h: Copy region code from Xlib, switch it over
14624         to 32 bit coordinates, modify it to be mostly GTK+ style
14625         and to have interfaces that match gdkregion.h.
14626
14627         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
14628         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
14629         create a backing pixmap and redirect all drawing to
14630         that backing pixmap until a matching gdk_window_end_paint().
14631
14632         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
14633         Create a special drawable class for GtkWindow's that 
14634         redirects the drawing to the backing pixmap as necessary
14635         and then calls the real operations in _gdk_windowing_window_class.
14636
14637         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
14638         Store invalid region for each window. Generate expose events for invalid
14639         region in an idle. This replaces both the expose compression
14640         and the redrawing queuing in GTK+. It is both more efficient and
14641         simpler than either one individually and far more so then the
14642         combination.
14643
14644         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
14645         Emulate 32 bit coordinates for windows with 16 bit coordinates
14646         by offsetting drawing, guffaw scrolling techniques and
14647         mapping/unmapping child windows as necessary.
14648
14649         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
14650         where, when invalid regions are processed, the region is stored,
14651         and if expose events come in that are detectably duplicate
14652         the processed exposes (by comparison of event serial numbers),
14653         the stored region is subtracted out of those exposes.
14654
14655         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
14656         regions newly exposed when scrolling or resizing windows.
14657         This, combined with forcing processesing of queued invalidated
14658         regions, gives nice flicker-free scrolling.
14659
14660         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
14661         invalidated regions after every scroll.
14662
14663         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
14664         emulation in GDK. Its, for all practical purposes just a
14665         GtkViewport/GtkFixed hybrid now.
14666
14667         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
14668         (16-bit) structures as necessary instead of just casting.
14669
14670         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
14671         in terms of the structures from gdkregion-generic.c, using appropriate
14672         offsets from GDK to X11 coordinates. Cache clip mask and
14673         origin and ts origin locally and only flush to the server
14674         when drawing, to avoid constantly setting and resetting these
14675         values when offsetting GC's for scrolling and backing pixmaps.
14676
14677         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
14678
14679         * gtk/gtkcontainer.c: Call process_all_updates at end
14680         of resizing to reduce flicker. (Avoids having redraw
14681         lag arbitrarily behind resize under some circumstances)
14682
14683         * gtk/gtkentry.c: Remove old backing store code, and simply take
14684         advantage of the new backing store capabilities of GDK.
14685
14686         * gtk/gtkmain.c: Simple implementation of widget backing
14687         store - simply push a paint while handling each expose.
14688         (Should really be configurable widget for widget.)
14689         
14690         * gtk/gtkwidget.c: Remove all the old complicated redraw
14691         code, and simply invalidate the GDK windows from
14692         gdk_window_queue_clear(), etc. (Sigh, so much carefully
14693         debugged complexity ... gone to the winds.)
14694
14695         Remove all the code for suppressing expose events while
14696         resizes are pending; this isn't needed since the invalid
14697         areas won't be processed until after the resizes are
14698         processed, since they are in a lower priority idle.
14699
14700 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
14701
14702         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
14703         and height of dest rectangle for non-intersecting rectangles.
14704
14705 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
14706
14707         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
14708         for GdkRectangle.
14709
14710 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
14711
14712         * gdk/gdk{events,image,private,types,window}.h
14713          gdk/x11/gdkinputprivate.h: Change all coordinates
14714          from int16 to int. Also, Change width and height from
14715          unsigned to signed to avoid all the stupid C 
14716          signedness bugs.
14717
14718 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
14719
14720         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
14721         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
14722         Add some more detailed checking.
14723
14724         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
14725         New function to retrieve the depth of a drawable.
14726
14727         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
14728         field, reorder fields to save memory. 
14729
14730 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
14731
14732         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
14733         of the background image instead of scaling the background down to
14734         a line.
14735
14736         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
14737         which temporarily set slider to wrong size.
14738
14739         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
14740         queue_clear().
14741
14742 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
14743
14744 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
14745
14746         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
14747
14748 2000-03-17  Tor Lillqvist  <tml@iki.fi>
14749
14750         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
14751         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
14752
14753         * gdk/win32/gdkfont-win32.c
14754         * gdk/win32/gdkproperty-win32.c
14755         * gdk/win32/gdkselection-win32.c
14756         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
14757         now declared such.
14758
14759 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
14760
14761         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
14762
14763 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
14764
14765         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
14766         is called without trapping X errors.
14767
14768 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
14769
14770         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
14771         way into the fontset lists.
14772
14773 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
14774
14775         * gtk/gtkthemes.h: add extern "C" scope.
14776
14777 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
14778
14779         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
14780         to make appends to the list constant. (gtk-guy-990901-0.patch)
14781
14782 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
14783
14784         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
14785         for the typename hash table.
14786
14787 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
14788
14789         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
14790         to make sure we never divide by zero. 
14791         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
14792
14793 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
14794
14795         * gtk/gtkfontsel.c: Apply patch from
14796         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
14797         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
14798
14799         Also, some cleanups in atom handling.
14800
14801 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
14802
14803         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
14804         not GtkWidget.
14805
14806 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
14807
14808         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
14809         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
14810         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
14811         more guint wrap-around bugs before going to bed.
14812
14813 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
14814
14815         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
14816         guint wrap arounds in allocation.width.
14817
14818         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
14819         process untill we fit the allocation given.
14820
14821 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
14822
14823         * gtk/gtkwidget.c:
14824         (gtk_widget_unrealize): guard widget access with ref/unref
14825         around signal emission.
14826         (gtk_widget_hide): same here, but also check its destroyed
14827         state before queueing a resize.
14828
14829 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
14830
14831         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
14832         of gtk_default_insensitive_bg as insensitive base color.
14833
14834         * gtk/gtktext.c (gtk_text_style_set): set the background color according
14835         to the widget's state.
14836         (gtk_text_realize): same here.
14837         (gtk_text_state_changed): same here.
14838         (draw_bg_rect): compare background color against base[] from
14839         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
14840
14841 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
14842
14843         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
14844         grabs are active, unless a delete event is send to the toplevel
14845         of the currently grab holding widget.
14846
14847 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
14848
14849         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
14850         debugging g_print's.
14851
14852 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
14853
14854         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
14855         ever make the scrolled-window requisition ever depend on the 
14856         visibility state of the scrollbars for the AUTOMATIC policy. 
14857         This breaks the GTK+ requisition model, and causes loops.
14858
14859 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
14860
14861         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
14862         the default font to avoid problems with XFree86-4.0 where the
14863         default charset is iso10646-1, not iso8859-1.
14864
14865 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
14866
14867         * acinclude.m4
14868         * config.guess
14869         * config.sub
14870         * ltconfig
14871         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
14872
14873         * gtk/Makefile.am: minor cosmetic consistency tweak
14874
14875 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
14876
14877         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
14878         the activate_time to 0, so that we handle a quick
14879         press/release press/release properly and don't suppress
14880         the second release. (Red Hat bug #7545)
14881
14882 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
14883
14884         * gtk/gtkctree.c (row_delete):
14885         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
14886         bugs with destruction notifier, *always* update internal
14887         structures *before* calling user code.
14888
14889 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
14890
14891         A few more fixes for bug #5487, #2051, #2677.
14892         * gtk/gtkclist.c : 
14893         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
14894         not GDK_BUTTON_PRESS.
14895         (resync_selection): resync only if selection_mode is
14896         GTK_SELECTION_EXTENDED
14897         * gtk/gtkctree.c (resync_selection): same here
14898
14899 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
14900
14901         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
14902         gdk_drag_get_selection() and gtk_menu_detach().
14903
14904         [ From Jeroen Ruigrok/Asmodai ]
14905
14906 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
14907
14908         * gtk/gtknotebook.c (gtk_notebook_size_request): 
14909         page->tab_label can be NULL.
14910
14911 2000-01-25  Havoc Pennington  <hp@pobox.com>
14912         
14913         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
14914         arg is boolean
14915
14916         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
14917
14918         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
14919
14920         * gdk/gdkproperty.c (gdk_property_get): return boolean
14921
14922         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
14923
14924         * gdk/gdkim.c (gdk_im_ready): return boolean
14925
14926         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
14927
14928         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
14929         glib clash, should fix glib)
14930
14931         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
14932         (gdk_get_show_events): return gboolean, and canonicalize 
14933         to TRUE/FALSE
14934
14935         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
14936         colormap is private
14937         (gdk_colors_alloc): gboolean whether to be contiguous
14938         (gdk_color_equal): return gboolean since we are a predicate
14939         and not a qsort() (this looks semi-wrong due to glib breakage,
14940         IMO glib should be fixed)
14941         
14942         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
14943         (gdk_get_use_xshm): return gboolean
14944         (gdk_pointer_is_grabbed): return gboolean
14945
14946         * gdk/gdk.h: Change prototypes to match all the above changes,
14947         and re-run egtk-format-protos as required.
14948
14949 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
14950
14951         * gtk/gtkctree.c (resync_selection): 
14952         * gtk/gtkclist.c (resync_selection):
14953
14954         Return immediately if clist->drag_pos < 0. This is a workaround
14955         for the corrupt state that the clist gets into when a
14956         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
14957
14958         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
14959         
14960         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
14961         variable from recent commit.
14962
14963 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
14964
14965         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
14966
14967 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
14968
14969         * gtk/Makefile.am: prefix all autogenerated source that get build in
14970         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
14971         in builddir. since we subsequently cd into srcdir for autogeneration,
14972         the paths have to be stripped from the target file names, thusly we
14973         use $(@F) as target names now.
14974         put a comment about configure.in's --disable-rebuilds option,
14975         which can be used for non-writable source directories, for development
14976         setups though, srcdir has to be *writable*.
14977
14978 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
14979
14980         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
14981           Finish the job of allowing event to be NULL.
14982           (Fixes bug #4283, reported by Chris Blizzard)
14983
14984         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
14985           things so that the cursor appears on screen, properly
14986           take into account INNER_BORDER.
14987           (Fixes bug #4754, reported by Antonio Campos)
14988
14989 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
14990
14991         * gtk/gtknotebook.c (gtk_notebook_map): Don't
14992           show the tab_label unless it itself is visible.
14993
14994           gtk/gtknotebook.c (gtk_notebook_size_request):
14995           Do a better job of making sure that the visibility
14996           of the tab label corresponds to whether it should
14997           be mapped or not.
14998
14999 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
15000
15001         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
15002           Use the requisition, not the allocation, since the
15003           allocation has not necessarily been computed yet.
15004           (Pointed out by Eugene Osintsev)
15005
15006 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
15007
15008         * gtk/gtkstyle.c (gtk_style_new): Dont' set
15009           style/base[GTK_STATE_INSENSITIVE] both to
15010           gtk_default_insensitive_bg!
15011           (Bug #2187, reported by Jonathan Blandford)
15012
15013         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
15014           Add Alt_L, Alt_R to list of invalid accelerators.
15015           (Bug #3736, reported by Vlad Harchev)
15016
15017 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
15018
15019         * gtk/gtkfilesel.c (open_ref_dir): Fix several
15020         bugs which occured after an attempt to open 
15021         invalid home directory left cmpl_state->reference_dir == NULL.
15022
15023          - completion on files in home directory didn't work
15024          - completion on an empty string caused  segfault
15025
15026          (Bug #3678, reported by Steve Ratcliffe)
15027
15028         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
15029         cut and paste error that was causing scales to
15030         be incorrectly positioned.
15031         (Bug #2956,
15032          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
15033
15034 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
15035
15036         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
15037         when checking for dcgettext, if we've found we needed
15038         it for dgettext.
15039 +
15040 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
15041
15042         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
15043         queue_clear on NO_WINDOW widgets during a reparent,
15044         since at that point the window and widget heirarchies
15045         are out of sync. This stops crashing in some cases
15046         (the scrolled window reparent test, for instance), and
15047         _probably_ won't cause drawing errors.
15048
15049         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
15050         test do what it was supposed to do and be robust against
15051         window closings, etc. (Bug #2443)
15052
15053 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
15054
15055         * gtk/gtkentry.c: Fix return values on mouse events.
15056         (Bug #2686, Sky <seb_sky@yahoo.com>)
15057
15058         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
15059         (pointed out by George Lebl)
15060
15061         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
15062         (From Ettore Perazzoli  <ettore@helixcode.com>)
15063  
15064 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
15065
15066         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
15067         clicks between rows or outside calender area correctly.
15068         (Patch from Damon Chaplin)
15069
15070         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
15071         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
15072           Call destroy function when overwriting existing data. 
15073           (Pointed out by Damon Chaplin)
15074
15075 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
15076
15077         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
15078           which was causing problems on various systems with Xmu.
15079           This hasn't been needed for a very long time.
15080           (Fixes #1185 3167)
15081
15082 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
15083
15084         * gdk/gdki18n.h: Include <ctype.h> when defining
15085           gdk_isw* in terms of is* as a fallback.
15086           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
15087
15088 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
15089
15090         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
15091           realize the widget when it is size allocated!
15092           (old, old bug)
15093
15094         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
15095           Removed unused call to gdk_window_get_size() that
15096           showed up when the above was fixed.
15097
15098 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
15099
15100         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
15101           fix up widget->window when the widget is a
15102           NO_WINDOW container widget.
15103
15104 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
15105
15106         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
15107           to account for the fact that feof() does _not_ 
15108           return TRUE on errors, and thus avoid infinite loops
15109           when trying to use gdk_pixmap_create_from_xpm()
15110           on unreadable values.
15111
15112 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
15113
15114         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
15115
15116 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
15117
15118         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
15119           gdk_gc_set_dashes to take gint8 instead of gchar to
15120           make it clearer that it is _not_ a NULL terminated string.
15121
15122         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
15123           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
15124           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
15125           arguments.
15126
15127 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
15128
15129         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
15130         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
15131         background size relative to our allocation, guard against small
15132         allocations, we may have not yet been size allocated.
15133
15134 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
15135
15136         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
15137         not just version == 3. We implement all 3 + most of 4 - 
15138         (we don't support matching text/plain;charset=iso-8859-1
15139         to a dest that expects text/plain). We'll still advertise
15140         3 to be safe, but any client implementing version >= 3
15141         must interoperate with 3.
15142         
15143 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
15144
15145         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
15146         background and gc members, add a warning in gtk_tooltips_set_color()
15147         indicating that this function is deprecated.
15148
15149 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
15150
15151         * docs/gtkfaq.sgml: FAQ Update:
15152           - Minor cleanups (Emmanuel, me)
15153           - New questions:
15154                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
15155                 How can I retrieve the text from a GtkMenuItem? (timj)
15156                 How do I validate/limit/filter the input to a GtkEntry? (me)
15157                 Memory does not seem to be released when I free the list
15158                         nodes I've allocated (timj)
15159
15160 2000-03-07  Tor Lillqvist  <tml@iki.fi>
15161
15162         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
15163         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
15164         for which it is no use to call GetLastError onWin9x.
15165         (gdk_other_api_failed) New function, for general error
15166         reporting without calling GetLastError.
15167         (gdk_win32_api_failed) OTOH, this function always calls
15168         GetLastError. (gdk_win32_last_error_string) Remove this function,
15169         GLib has the equivalent now.
15170
15171         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
15172         call them with function name, file name and line number in the
15173         arguments.
15174
15175         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
15176         functions.
15177         
15178         * gtk/gtk.def: Add some missing entry points.
15179
15180         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
15181         gtk_paned_set_gutter_size, which don't exist any longer, as void.
15182         
15183         Fixes by Hans Breuer:
15184
15185         * gdk/makefile.msc: Update for debugging.
15186
15187         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
15188         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
15189         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
15190         in the dash_list.
15191
15192         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
15193         the x11 backend.
15194
15195         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
15196
15197         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
15198
15199 2000-03-04  Tor Lillqvist  <tml@iki.fi>
15200
15201         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
15202         just pixel value of background colour.
15203
15204         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
15205         containing code snippet previously duplicated in a couple of
15206         places.
15207         
15208         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
15209         gdk_colormap_color.
15210
15211         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
15212         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
15213         events for autorepeated Shift, Control and Alt keys. Use
15214         gdk_colormap_color.
15215
15216         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
15217         pointer is inside the window the cursor of which we are setting,
15218         call SetCursor immediately.
15219
15220         * gdk/win32/makefile.cygwin
15221         * gtk/makefile.cygwin: If we don't have the build number stamp
15222         file, use zero.
15223
15224         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
15225         gtk_paned_set_gutter_size as empty.
15226
15227         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
15228         
15229 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
15230
15231         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
15232           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
15233           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
15234           docs/gtk_tut.sgml docs/gtk.texi TODO:
15235
15236           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
15237
15238 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
15239
15240         * gtk/gtkcalendar.c: Implement num_marked_dates,
15241           and don't emit mutiple day_selected signals on
15242           month_prev.
15243
15244 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
15245
15246         * docs/make-todo (lineno): let title and logo be configurable so
15247         that GNOME can use this script too.
15248
15249         * TODO.xml: added logourl and a title
15250
15251 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
15252
15253         * TODO.xml: Added some UI items, and an explanatory
15254         comment at the top of the file.
15255
15256 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
15257
15258         * TODO.xml: some updates, added abunch of new entries.
15259         a note for those fiddeling with this file, when done
15260         with it, invoke:
15261         $ ./docs/make-todo TODO.xml >/dev/null
15262         and correct output errors before comitting changes.
15263
15264 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
15265
15266         * TODO.xml: Added XML-structured TODO file.
15267         * docs/make-todo: python script to turn TODO.xml into
15268           pretty XML output. 
15269
15270 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
15271
15272         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
15273         the function to let it draw the seven dots, instead of the old,
15274         much maligned, method.
15275         (draw_dot): New function to draw a dot.
15276
15277         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
15278         to draw the handle inside the border width as opposed to outside.
15279         Use paint function instead of gdk_draw_point.
15280
15281         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
15282         to draw the handle inside the border width as opposed to outside.
15283         Use paint function instead of gdk_draw_point.
15284
15285         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
15286         Change indenting to be more GTK like.
15287
15288 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
15289
15290         * docs/gtk_tut.sgml: New section on GtkCalendar
15291         * examples/calendar: Update example code
15292
15293 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
15294
15295         * docs/gtkfaq.sgml: FAQ Update
15296
15297 2000-02-19  Anders Carlsson  <andersca@gnu.org>
15298
15299         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
15300         to prevent the scroll event to be propagated upwards.
15301
15302 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
15303
15304         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
15305         OwnerGrabButtonMask from button entries for
15306         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
15307
15308         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
15309         to the event mask (which will result in button/press release
15310         being added to the event mask on Unix) so scrolling works
15311         for layouts in scroll windows.
15312
15313         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
15314
15315         Patch from Anders Carlsson  <andersca@gnu.org> to add
15316         a scroll event.
15317
15318         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
15319         scrolling to the "Test Scrolling" part of testgtk.
15320  
15321         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
15322  
15323         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
15324         it against GDK_SCROLL.
15325  
15326         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
15327         way of mouse wheel scrolling.
15328  
15329         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
15330  
15331         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
15332  
15333         * gtk/gtkmain.c: Removed previous mouse wheel hack.
15334  
15335         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
15336         gdk_event_mask_table.
15337  
15338         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
15339         GdkEventScroll handler.
15340  
15341         * gdk/gdkevents.h: Added GdkEventScroll structure.
15342  
15343 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
15344
15345         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
15346         and Anders Carlsson to change the Paned widgets so that they
15347         can be dragged from anywhere along the length. Also change
15348         the way that this is drawn to make this apparent.
15349
15350         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
15351         from George Lebl to check that option_menu->menu is present
15352         before getting history.
15353
15354 2000-02-14  Tor Lillqvist  <tml@iki.fi>
15355
15356         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
15357         before the assertion for non-NULL segment list.
15358
15359         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
15360         Seems that pattern brushes *must* be 8x8 pixels! At least on my
15361         machine, but it might be display driver dependent. Sigh, so make
15362         sure the stipple is that size. Does Windows suck or what?
15363
15364         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
15365         places.
15366
15367 2000-02-13  Havoc Pennington  <hp@pobox.com>
15368
15369         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
15370         refcount to 1
15371         (gdk_cursor_new): init refcount to 1
15372
15373         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
15374
15375 2000-02-13  Tor Lillqvist  <tml@iki.fi>
15376
15377         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
15378         so that we don't have to do unnecessary settings to the HDC.
15379
15380         * gdk/win32/gdkdrawable-win32.c
15381         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
15382         gdk_gc_predraw.
15383
15384         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
15385         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
15386         GDI paths, call WidenPath to get the outline of the stroken path,
15387         and then fill the outline (with the brush that was built from the
15388         stipple).
15389
15390         * gdk/win32/gdkgc-win32.c: Factor out common code from
15391         _gdk_win32_gc_new and gdk_win32_gc_set_values into
15392         gdk_win32_gc_values_to_win32values. Use correct colour for
15393         SetBkColor() (Until now the code actually used a random colour in
15394         the call to SetBkColor()... but that didn't show up as not many
15395         GDI APIs use the background colour. Pattern (opaque stippled)
15396         brushes do.)
15397
15398         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
15399         gdk_win32_api_failed): New functions for error logging.
15400
15401         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
15402         WIN32_API_FAILED to call them, passing function or file name and
15403         line number.
15404
15405         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
15406
15407         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
15408         GdkColor for foreground and background in GdkGCWin32Data.
15409
15410         * gdk/makefile.cygwin: Link in the resource object separately.
15411
15412         * gdk/win32/rc/gdk.rc
15413         * gtk/gtk.rc (New file)
15414         * gdk/win32/makefile.cygwin
15415         * gtk/makefile.cygwin: Update build number in DLLs automatically,
15416         as in GLib.
15417
15418 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
15419
15420         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
15421         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
15422         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
15423         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
15424         parameters given and cursor->ref_count. coding style fixups.
15425
15426         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
15427         not GtkWidget.
15428         
15429         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
15430         fix up widget macros and add _GET_CLASS() variant.
15431         
15432         * gtk/*.c: some GtkType fixups.
15433
15434 2000-02-09  Tor Lillqvist  <tml@iki.fi>
15435
15436         * gdk/win32/gdkproperty-win32.c
15437         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
15438         were reversed.
15439
15440 2000-02-04  Tor Lillqvist  <tml@iki.fi>
15441
15442         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
15443         g_filename_to_utf8 to convert the font names Windows gives us from
15444         whatever is the default codepage to UTF-8.
15445         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
15446         in the other direction.
15447
15448         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
15449         error in debugging output.
15450
15451 2000-02-02  Tor Lillqvist  <tml@iki.fi>
15452
15453         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
15454         and height parameters to gdk_window_clear_area(). Not minus one.
15455
15456 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
15457
15458         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
15459         checks if the widget passed to gtk_drag_get_data() was not the
15460         dest widget.
15461
15462 2000-02-01  Tor Lillqvist  <tml@iki.fi>
15463
15464         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
15465         g_filename_from_utf8 functions (which were added a moment ago to
15466         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
15467         size buffers.
15468
15469         gtk_file_selection_get_filename returns the filename in the C
15470         runtime encoding. It calls g_filename_from_utf8, but copies the
15471         returned string to a static buffer, which is returned. I think
15472         this is better than returning the result from g_filename_from_utf8
15473         directly, which would mean all apps that use it would have to free
15474         the return value. Or should this function care about this issue at
15475         all? Maybe a new function with clearly defined semantics.
15476
15477         * gtk/gtkfilesel.h: Add comment about
15478         gtk_file_selection_get_filename returning the filename in the C
15479         runtime's encoding.
15480
15481         * README.win32
15482         * gdk/gdk.def
15483         * gdk/makefile.{cygwin,msc}
15484         * gtk/gtk.def: Updates.
15485
15486         * gdk/gdkcursor-win32.c: Initialise refcount.
15487
15488 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
15489
15490         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
15491
15492 2000-01-30  Havoc Pennington  <hp@pobox.com>
15493
15494         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
15495         destroy
15496
15497         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
15498
15499         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
15500         implemented in platform-specific code
15501
15502         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
15503
15504         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
15505         underscore in front
15506
15507         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
15508         put an underscore in front
15509
15510         * gdk/gdkcursor.c: new file, implements
15511         gdk_cursor_ref/gdk_cursor_unref
15512
15513         * gdk/gdkcursor.h: Refcount GdkCursor
15514
15515         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
15516
15517 2000-01-29  Tor Lillqvist  <tml@iki.fi>
15518
15519         * gdk/gdkwindow.h
15520         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
15521
15522 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
15523
15524         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
15525         structures to properly inherit from GtkWidget not GtkBin.
15526
15527 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
15528
15529         * gtk+.spec.in: Added lib/gtk+/include/* to %files
15530         (bug #5178 - Peter Wainright)
15531         
15532         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
15533         so that it will be installed.
15534         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
15535
15536 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
15537
15538         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
15539         for the GtkStyleClass vtable const.
15540
15541         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
15542         take a const string argument like GtkTranslateFunc. This will
15543         require changes in use code.
15544
15545 2000-01-19  Tor Lillqvist  <tml@iki.fi>
15546
15547         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
15548         semantics (to mimic the X11 backend, which just calls XClearArea)
15549         is to check for zero width (and height), and in that case use the
15550         window's width minus x (height minus y). This fixes for instance
15551         some redraw problems with gtkclist, which were easily noticeable
15552         in the gtk file selection widget.
15553
15554         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
15555         windows.
15556
15557 2000-01-13  Tor Lillqvist  <tml@iki.fi>
15558
15559         * configure.in
15560         * gdk/Makefile.am
15561         * gdk/x11/Makefile.am
15562         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
15563         (bug #5177).
15564         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
15565         out later.
15566
15567 2000-01-09  Tor Lillqvist  <tml@iki.fi>
15568
15569         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
15570         WM_MOVE for iconified or invisible windows. This fixes various
15571         problems when minimising windows. Thanks to Bernd Herd.
15572
15573 2000-01-05  Tor Lillqvist  <tml@iki.fi>
15574
15575         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
15576         backend's draw_lines method, not draw_points.
15577
15578 2000-01-02  Tor Lillqvist  <tml@iki.fi>
15579
15580         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
15581         before Owen's reorganisation: Don't have queued_events and
15582         queued_tail statics in this file, but use gdk_queued_events and
15583         gdk_queued_tail. This makes exposure event compression work again.
15584
15585         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
15586         seem to be needed?
15587
15588 1999-12-30  Tor Lillqvist  <tml@iki.fi>
15589
15590         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
15591         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
15592         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
15593         doesn't do anything.
15594
15595         * gdk/gdk.def: Add gdk_xid_table_insert.
15596
15597         * gdk/win32/gdkprivate-win32.h
15598         * gdk/win32/gdkevents-win32.c
15599         * gdk/win32/gdkinput-win32.c
15600         
15601         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
15602         extension_events field in the GdkWindowWin32Data struct. Use only
15603         the extension_events field in GdkWindowPrivate. Previously one was
15604         set, and the other one tested, which broke tablet
15605         functionality. Thanks to Keishi Suenaga for pointing this out.
15606
15607 1999-12-18  Tor Lillqvist  <tml@iki.fi>
15608
15609         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
15610         When handling a single character (text length == 1), don't handle
15611         it as if it was UTF-8.
15612
15613 1999-12-11  Tor Lillqvist  <tml@iki.fi>
15614
15615         * Makefile.am: Distribute README.win32.
15616         
15617         * gdk/Makefile.am
15618         * gdk/win32/Makefile.am: Distribute Win32 files.
15619
15620         * gdk/makefile.msc: New file.
15621
15622         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
15623         after label).
15624
15625         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
15626         gdk_error_code as GDKVAR, as they are referred outside GDK.
15627
15628         * gdk/win32/makefile.msc: Update.
15629
15630         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
15631         tweaks. Check only if at least one of those Unicode subrange bits
15632         we care for is set. If no code page bits are set, guess (wildly)
15633         based on the charset.
15634
15635         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
15636
15637         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
15638         non-NULL.
15639
15640         * gtk/gtkdnd.c
15641         * gtk/gtklayout.c
15642         * gtk/gtkplug.c
15643         * gtk/gtkselection.c
15644         * gtk/gtksocket.c
15645         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
15646         appropriate. There must be a cleaner way to handle this?
15647
15648         * gtk/gtkrc.c: Must include windows.h on Win32.
15649
15650         * gtk/testgtk.c: No need to include gdkx.h.
15651
15652         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
15653
15654 1999-12-07  Tor Lillqvist  <tml@iki.fi>
15655
15656         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
15657         the rbearing is set to the same as the width, but this should be
15658         fixed.
15659
15660 1999-12-06  Tor Lillqvist  <tml@iki.fi>
15661
15662         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
15663         function. If Windows doesn't tell us what Unicode subranges a font
15664         covers, guesstimate based on the codepages it covers. This will
15665         hopefully help those Windows versions or fonts that don't give us
15666         any useful Unicode subrange information with GetTextCharsetInfo.
15667         Call this function in gdk_font_load_internal.
15668
15669         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
15670         minor changes.
15671
15672 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
15673
15674         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
15675         New function, long needed.
15676
15677 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
15678
15679         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
15680         only_if_exists argument of gdk_atom_intern to
15681         bool.
15682
15683 1999-11-25  Tor Lillqvist  <tml@iki.fi>
15684
15685         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
15686         Fix two copy&paste errors.
15687
15688         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
15689         win32 has changed.
15690
15691         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
15692         GdkWin32SingleFont struct.
15693
15694         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
15695         subranges of loaded fonts. Clear font signature first, in case
15696         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
15697         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
15698
15699         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
15700         Unoffset clip region.
15701
15702 1999-11-23  Tor Lillqvist  <tml@iki.fi>
15703
15704         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
15705         event->any.window before calling filter functions.
15706
15707 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
15708
15709         * gtk/gtkgamma.h: Adapt cast macros to standard.
15710
15711 [ Merges from 1.2 ]
15712
15713 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
15714
15715         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
15716         If translation does not include a '/', use entire
15717         translation instead of crashing.
15718
15719 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
15720
15721         * docs/gtk_tut.sgml:
15722         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
15723
15724 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
15725
15726         * gtk/gtkselection.c (gtk_target_list_remove): Use
15727         g_list_remove_link, not g_list_remove.
15728
15729         [ From Geert Bevin <gbevin@thunderstorms.org> ]
15730         
15731 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
15732
15733         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
15734         statement upon unselection (how the heck did that slip in?).
15735
15736 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
15737
15738         * gtk/gtktext.c (gtk_text_freeze): 
15739         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
15740         in frozen state (and aparently crashes). patch provided by Anders
15741         Melchiorsen <and@kampsax.dtu.dk>.
15742
15743 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
15744
15745         * fix insensitive default/focus widget activation,
15746         reported by Matt Goodall <mgg@isotek.co.uk>.
15747
15748         * gtk/gtkwindow.c (gtk_window_key_press_event): 
15749         (gtk_window_activate_default):
15750         (gtk_window_activate_focus):
15751         return handled=FALSE for actiavtion of insensitive default
15752         widgets. return handled=TRUE for activation of insensitive
15753         focus widgets. don't activate in either case.
15754
15755 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
15756
15757         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
15758         and $glib_cflags to match library order and in the
15759         theory that an old version of GLib is more likely to
15760         be in the include directory for X then vice-versa.
15761         (Bug #2776)
15762
15763 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
15764
15765         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
15766         to determine the locale for fontsets, not LC_MESSAGES;
15767         the user may want English messages with a handling
15768         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
15769         will still be broken) (Bug #2891)
15770
15771 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
15772
15773         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
15774
15775 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
15776
15777         * gtk/gtkrc.ko: Changed the Korean default fontset.
15778
15779 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
15780
15781         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
15782         where when scrolling to the left or top double exposes
15783         were done, causing major slowdowns.
15784
15785 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
15786
15787         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
15788         names to lowercase and alphanumeric, before looking
15789         them up.
15790
15791         * gtk/Makefile.am: Install codeset variant gtkrc files
15792         with normalized names.
15793
15794 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
15795
15796         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
15797         popup menus when the menu is already visible, but its parent
15798         is still hidden, (happens after tornoff window got hidden).
15799
15800 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
15801
15802         * gtk/Makefile.am (install-data-local): Fix
15803         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
15804         deleted, causing error messages on install.
15805
15806 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
15807
15808         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
15809         the handle as well, since we now sometimes ignore
15810         exposes on the handle while resizing.
15811
15812 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
15813
15814         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
15815         extra g_free introduced in one of the last one or two 
15816         commits.
15817
15818 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
15819
15820         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
15821         consistent, put each style that a gtkrc.* file creates
15822         in a unique namespace, remove old files before installing.
15823
15824 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
15825
15826         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
15827         gtk_rc_init is called multiple times. (Yes, people who
15828         do that have bugs in their code.)
15829
15830 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
15831
15832         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
15833         Remove it since it's generated by the Makefile anyway
15834
15835 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
15836
15837         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
15838         device->info.axes for core pointer.
15839
15840 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
15841
15842         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
15843         idle_id, to deal with obsolete, broken C libraries.
15844
15845 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
15846
15847         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
15848         allocation->x/y twice!
15849
15850         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
15851         consistent with gtk_vscale_pos_trough().
15852
15853 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
15854
15855         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
15856         be queueing a resize on a toplevel container between
15857         the time we show it and when we map it. So, we need
15858         to test GTK_WIDGET_VISIBLE() for toplevels, and only
15859         use GTK_WIDGET_DRAWABLE() for child windows.
15860
15861 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
15862
15863         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
15864         (fixes bug #2144)
15865
15866 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
15867
15868         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
15869         container DRAWABLE (instead of VISIBLE), so we don't queue
15870         resizes on non-toplevel containers.
15871
15872 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
15873
15874         * gtk/gtkselection.[ch]: Make the data argument
15875         const guchar *.
15876
15877 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
15878
15879         * gtk/gtkwindow.c: Try to behave sensibly if 
15880         the focus widget is the window itself. (Should
15881         we allow this at all?)
15882
15883 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
15884
15885         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
15886         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
15887         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
15888         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
15889         in prototypes and implementations consistent (Tomas Ogren).
15890
15891         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
15892         before the widget is unparented (reported by damon).
15893
15894         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
15895         since we provide unsigned data anyways.
15896
15897 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
15898
15899         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
15900         the call to gtk_tooltips_layout_text() until later.
15901
15902         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
15903         Call gtk_widget_ensure_style() before using the style.
15904
15905 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
15906
15907         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
15908         for old widgets that don't propagate draws to all
15909         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
15910
15911 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
15912
15913         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
15914         for a redraw but just the widget that requested the resize.
15915
15916 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
15917
15918         * gtk/gtkcontainer.c: added new widget level method
15919         gtk_container_set_reallocate_redraws() and a GtkContainer flag
15920         reallocate_redraws : 1 to reflect the setting, exported this through
15921         the argument system as a boolean ::reallocate_redraws.
15922
15923         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
15924         on the widget because the allocation changes, do so as well for
15925         widget->parent if the parent has reallocate_redraws set to TRUE.
15926         with that containers requesting reallocation redraws get automatically
15927         redrawn if their children changed allocation (this unfortunately
15928         affects also other children that didn't change allocation, but we
15929         cannot work around that before 1.3).
15930
15931 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
15932
15933         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
15934         _and_ height are >0 (not _or_).
15935
15936         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
15937         instead of gtk_container_queue_resize(), which is a core gtk internal
15938         function (must have been on crack when i queued that).
15939
15940         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
15941         we can check more reliably if we want to discard expose events.
15942         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
15943         flag.
15944         
15945         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
15946         we simply trust these events. for deciding whether to discard exposes,
15947         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
15948         
15949 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
15950
15951         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
15952         queues of areas that are completely off screen.
15953
15954         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
15955         logic for handleboxes.
15956
15957         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
15958         check on width/height.
15959
15960 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
15961
15962         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
15963         we are fine with using $@ the way we do (if we actually encounter
15964         brokeness with $@ in VPATH builds because of additional path prefixes,
15965         we need to use $(@F) actually).
15966
15967 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
15968
15969         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
15970         short lived bugs, that would allow language bindings to do surgeries
15971         to our guts.
15972
15973 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
15974
15975         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
15976         where comparison was being done against an uninitialized
15977         value causing intermittant results depending on
15978         compiler flags. Also make it clearer that we aren't
15979         ever initializing the child as 0x0 (though this will
15980         be caught in gtk_widget_size_allocate())
15981
15982 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
15983
15984         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
15985         gtk_window_unset_transient_for() call after we do checks
15986         involving the old transient parent.
15987         [ From Lance Capser <lmc@cyberhighway.net> ]
15988
15989 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
15990
15991         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
15992         an empty file.
15993
15994 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
15995
15996         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
15997         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
15998
15999 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
16000
16001         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
16002         `$@' is valid only in the build dir, not after we've done 
16003         `cd $srcdir'.  Also use `test -f' instead of less portable
16004         `test -e'.
16005
16006 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
16007
16008         * gtk/gtktext.c (correct_cache_insert): Rewrite
16009          for simplicity, and hopefully correctness.
16010          (Fixes bug #1322, which was a segfault when
16011           on some insertions with the properties around
16012           the insertion set up just wrong.)
16013
16014         * gtk/gtktext.c (gtk_text_adjustment): When we receive
16015          a "changed" signal, clamp the new value to the adjustment
16016          bounds to avoid segfaulting if someone tries to change
16017          the adjustment to a bogus value. (Bug #1795)
16018
16019 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
16020
16021         * gtk/gtkmain.c: Ignore unexpected destroy notifies
16022         for children, for toplevel windows handle them
16023         like delete_event.
16024
16025         * gtk/gtkplug.c: Add an unrealize handler so that
16026         we unref plug->socket_window when we are done
16027         with it.
16028
16029 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
16030
16031         * gtk/gtktext.c (clear_area): Fix stupid signedness
16032          problem that was causing background to sometimes
16033          be misaligned.
16034
16035 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
16036
16037         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
16038         
16039         * gtk/gtkmenu.c (gtk_menu_position): Make
16040          sure we never position menus with negative x, y,
16041          since gtk_widget_set_uposition() can't handle that.
16042
16043         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
16044          Modify the positioning code a bit so that we always
16045          put the top-left corner onscreen. (This is for
16046          UI reasons, gtk_menu_position() now takes care of
16047          gtk_widet_set_uposition() brokeness.)
16048
16049 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
16050
16051         * gtk/Makefile.am: fixed up things for -jx, x > 1.
16052
16053 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
16054
16055         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
16056           RC style that is passed in. The lack of the ref
16057           before was a bug. If people worked around this
16058           bug, this will introduce a slight memory leak
16059           in their code. The code should typically look like:
16060
16061             rc_style = gtk_rc_style_new ();
16062             [...]
16063             gtk_widget_modify_style (widget, rc_style);
16064             gtk_rc_style_unref (rc_style);
16065
16066         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
16067           the style if it was already set.
16068
16069         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
16070           style if it was set before.
16071
16072 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
16073
16074         * gtk/testgtk.c (main): Add a check to see if we
16075           are being run from the correct directory and
16076           to quit nicely if we are not.
16077
16078         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
16079           static.
16080
16081 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
16082
16083         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
16084
16085         * gtk/gtkwindow.c:
16086         queue resizes unconditionally (gtk_widget_queue_resize will figure
16087         what to do if the window is not realized).
16088         (gtk_window_move_resize): only recenter the window
16089         for GTK_WIN_POS_CENTER_ALWAYS.
16090         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
16091         the same way as GTK_WIN_POS_CENTER.
16092
16093 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
16094
16095         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
16096         with (!(info->last_flags & GDK_HINT_POS)) instead of
16097         (!info->last_flags & GDK_HINT_POS).
16098
16099         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
16100         new_height unconditionally, because we use these values even if
16101         !default_size_changed && !hints_changed.
16102         comented the (default_size_changed || hints_changed) case with
16103         respect to resize rejects from the window manager.
16104
16105         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
16106         in the zvt condition hack, since this includes the window hints, set
16107         the hints after the handling_resize case.
16108
16109         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
16110         window is initially shown with to the geometry.
16111
16112 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
16113
16114         * gtk/gtkwindow.c (gtk_window_move_resize):
16115         s/size_changed/default_size_changed/g so i know what's
16116         really going on (frying brain on smaller flame now).
16117
16118 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
16119
16120         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
16121         we have size_changed upon handling_resize. this is a gross
16122         workaround for the broken zvt widget and should be removed in
16123         1.3 again (search for FIXME).
16124         Owen provided an accurate comment for this:
16125
16126         /* We could be here for two reasons
16127          *  1) We coincidentally got a resize while handling
16128          *     another resize.
16129          *  2) Our computation of size_changed was completely
16130          *     screwed up, probably because one of our children
16131          *     is broken. It's probably a zvt widget.
16132          *
16133          * For 1), we could just go ahead and ask for the
16134          * new size right now, but doing that for 2)
16135          * might well be fighting the user (and can even
16136          * trigger a loop). Since we really don't want to
16137          * do that, we requeue a resize in hopes that
16138          * by the time it gets handled, the child has seen
16139          * the light and is willing to go along with the
16140          * new size. (this happens for the zvt widget, since
16141          * the size_allocate() above will have stored the
16142          * requisition corresponding to the new size in the
16143          * zvt widget)
16144          *
16145          * This doesn't buy us anything for 1), but it shouldn't
16146          * hurt us too badly, since it is what would have
16147          * happened if we had gotten the configure event before
16148          * the new size had been set.
16149          */
16150
16151 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
16152
16153         * gtk/gtkrc.c: deal properly with the fact that RC
16154           style lists may include rc styles more than once.
16155
16156         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
16157           unused static function.
16158
16159         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
16160           stack of directories of RC files currently being
16161           parsed and implicitely add them to pixmap path.
16162           
16163           This fixes a bug where the directory would get
16164           appended then overwritten by pixmap_path declarations.
16165
16166           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
16167
16168         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
16169           theme's exit function. (Patch from Peter Wainwright,
16170           bug #1454)
16171
16172         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
16173           Add a destroy() handler to take care of removing
16174           group for menu item. (Fixes bug #1197)
16175
16176         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
16177           in warning message.
16178
16179 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
16180
16181         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
16182         roundtrip to figure window's width and height, since we know that
16183         anyways from widget->allocation.
16184
16185 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
16186
16187         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
16188           the hints after we request the new size.
16189
16190 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
16191
16192         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
16193           GTK_WIDGET_REALIZED() assertion - we can compute the
16194           hints before we are realized.
16195
16196         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
16197           hint changing so that we have a value of hints_changed
16198           when we decide whether to constrain the window size.
16199
16200         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
16201
16202         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
16203         change back to G_MAXINT.
16204
16205 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
16206
16207         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
16208         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
16209         contain uncluttered values.
16210         (gtk_window_compute_hints): simply assert that window is realized
16211         and that geometry_info is valid, since we rely on this anyways.
16212         (gtk_window_constrain_size): major cleanups to the code.
16213         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
16214         for the base size, instead of the minimums. use 32767 as max width
16215         and height (like in gtkwindow.c) instead of G_MAXINT.
16216
16217 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
16218
16219         * cleaned up the GtkContainer.need_resize flag handling mess, we
16220         only need to force resize requests when we were prematurely
16221         realized, or our widget tree was modified when we were temporarily
16222         hidden. handling these cases directly upon showing the window (i.e.
16223         while the GdkWindow is still unmapped) avoids the need to wait for
16224         a configure event response and therefore makes the GUI more snappier
16225         and avoids blank windows during the roundtrip.
16226
16227         * gtk/gtkwidget.c:
16228         (gtk_widget_hide): 
16229         (gtk_widget_show): don't queue resizes on toplevels, they know how
16230         to deal with matters.
16231
16232         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
16233         flag directly for not visible resize containers and spare us unecessary
16234         signal emissions.
16235
16236         * gtk/gtkwindow.c:
16237         (gtk_window_realize): if we need to enforce premature size allocation,
16238         queue a container resize so we are correctly resized later on.
16239         (gtk_window_init):
16240         (gtk_window_size_request):
16241         don't freak around with the ->need_resize flag,
16242         gtk_container_queue_resize() will care about that.
16243         (gtk_window_show):
16244         handle initial resizing issues here, we can handle matters better in
16245         this place, especially since we know that our GdkWindow is still
16246         unmapped.
16247         (gtk_window_move_resize):
16248         don't care about ->need_resize at all.
16249         handle size changes properly that occoured while we waited for a
16250         configure event.
16251
16252 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
16253
16254         * gtk/gtkwidget.c (gtk_widget_set_uposition):
16255         * gtk/gtkwindow.[hc] (gtk_window_reposition):
16256         Move the hint setting code from gtk_widget_set_uposition
16257         to here; set the hints so that we respect any previously
16258         set geometry hints.
16259
16260         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
16261         change the window hints here or move the window here,
16262         let that happen in gtk_window_move_resize().
16263
16264 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
16265
16266         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
16267         to already queued resizes (and therefore redraws) on a widget, check
16268         its anchestry as well.
16269
16270         * gtk/gtkcontainer.c:
16271         (gtk_container_queue_resize): clear resize widgets for resize
16272         containers before aborting prematurely. this is especially important
16273         for toplevels which may need imemdiate processing or their resize
16274         handler to be queued.
16275         (gtk_container_dequeue_resize_handler): added new internal function for
16276         gtkwindow.c.
16277
16278         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
16279         configure event, take possible changes in window position into account
16280         as well.
16281         if we request a new window size, queue up a resize handler that will
16282         last until the configure event response arrives.
16283         combined the ->need_resize case (initial show) with the general size
16284         (hints) changed case and added even more comments.
16285         if !auto_shrink, only revert to the old allocation if the new size
16286         is smaller than the current allocation.
16287
16288 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
16289
16290         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
16291                            gtk_window_set_geometry_hints
16292                            gtk_window_set_default_size):
16293         When hints are set, queue a resize so that the hints will
16294         be eventually reset on the toplevel.
16295
16296         * gtk/gtkwindow.c (gtk_window_show): Use
16297         gtk_window_compute_default_size(). Clear the need_resize flag
16298         on the initail map so that we don't unnecessarily trigger the
16299         resize code.
16300
16301         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
16302         into separate functions. Compare the hints we are setting
16303         with what we set last time so that we can accurately
16304         tell when we need to reset the hints.
16305
16306         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
16307         function to figure out the size from requisition
16308         and default_size.
16309
16310         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
16311         from fvwm to constrain a size to the geometry hints.
16312
16313         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
16314         to compare two sets of geometry hints.
16315
16316         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
16317         from gtk_window_set_hints(), just compute the hints,
16318         don't set them.
16319
16320         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
16321         code from gtk_window_move_resize() to separate function,
16322         rationalize a bit.
16323
16324 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
16325
16326         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
16327         structure into a new private structure.
16328
16329         * gtkrc.c: Split GtkRcStyle into public/private.
16330         In the private part, add a list of pointers to the
16331         RcStyle lists this RcStyle participates in.
16332
16333         * gtkrc.c: When a RcStyle is free, remove all
16334         lists referencing it from the 
16335         realized_style_ht hash, and free those lists.
16336         
16337         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
16338         gtk_rc_init(), since that adds the default styles
16339         to the list of parsed RC files again.
16340
16341         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
16342         
16343 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
16344
16345         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
16346         checks that ensure that a widget's allocation is at least 1 in width
16347         and height. (GNOME note: this doesn't affect old panel code anymore,
16348         because GtkSocket will request width and height of at least 1 since
16349         Fri Jul 23).
16350
16351         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
16352         allocated yet (happens if the user realizes the window prematurely),
16353         size request and allocate it.
16354         (gtk_window_size_allocate): guard against guint underflows.
16355
16356 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
16357
16358         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
16359         in gtk_built_sources, so gtk.defs gets built prior to all other
16360         sources.
16361
16362 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
16363
16364         * gtk/Makefile.am:
16365         invoke indent on gtkmarshal.*. 
16366         rewrote source generation rules, use COPYING as oldest source tag for
16367         a piggyback rule to generate all sources from (don't touch it ;).
16368         major cleanups, strip spaces on build rules for GNU Make.
16369
16370         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
16371         source and target files from commandline arguments. don't invoke indent.
16372
16373 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
16374
16375         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
16376         notebook after switch to avoid drawing problems.
16377         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
16378         
16379         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
16380         show them instead. 
16381         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
16382
16383 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
16384
16385         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
16386         notebook after switch to avoid drawing problems.
16387         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
16388         
16389         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
16390         show them instead. 
16391         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
16392
16393 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
16394
16395         * gtk/gtkwindow.c:
16396         we use window->need_resize from configure_event now, to indicate that
16397         the gtkwindow should keep its allocation (e.g. because the user resized
16398         the window through window manager handles). resize_count is now reliably
16399         used to figure whether we got the allocation we requested from the
16400         window manager.
16401         configure events get queued as resizes now, the real stuff (size
16402         computation and allocation) now only goes on in gtk_window_move_resize().
16403         GtkWindow's requisition now contains its *real* requisition (like all
16404         other widgets), *not* taking usize into account.
16405         geometry_info->last_{width|height} is now updated from set_hints() only
16406         so it always contains the last hints we set for the window manager.
16407         made some event handlers return TRUE instead of FALSE.
16408         the overall code should be much more straight forward now, and the
16409         significant code portions are accompanied by comments now.
16410         (gtk_window_set_hints):
16411         removed requisition argument and made it
16412         fetch the requisition through gtk_widget_get_child_requisition.
16413         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
16414         does that now.
16415         (gtk_window_show):
16416         ensure that the widget is realized before calling 
16417         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
16418         ensure that we got properly size requested and allocated before
16419         realization.
16420         (gtk_window_configure_event):
16421         ignore plain window moves, or reallocate the widget tree through the
16422         resize queue otherwise.
16423         (gtk_window_move_resize):
16424         mostly rewrote this function to figure window manager hints more
16425         reliably, coalesce window moves and resizes to reduce configure events
16426         and do actuall size allocations.
16427
16428 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
16429
16430         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
16431         that have a resize pending, because a redraw is already queued for them.
16432
16433         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
16434         hack to clear resize_widgets.
16435
16436         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
16437         for resize containers prior to size allocation. (this is also a bit
16438         ugly, but avoids side effects for stopped emissions and is thus more
16439         reliable).
16440         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
16441
16442         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
16443         function from gtk_tooltips_expose, as we connect to ::expose_event
16444         *and* ::draw now.
16445
16446 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
16447
16448         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
16449         checks.
16450         (gtk_target_list_unref): Likewise.
16451
16452         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
16453
16454 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
16455
16456         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
16457         guard against division by zero. (Fixes bug #1339)
16458
16459 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
16460
16461         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
16462         Prevent the trivial leak of information of allowing
16463         word motion when the entry is not visible.
16464
16465 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
16466
16467         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
16468         modality to error dialog as well as confirmation dialogs.
16469         (Bug #1803, reported by Rosanna Wing Sze Yuen)
16470
16471 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
16472
16473         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
16474         tree->view_lines.
16475         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
16476
16477         * gtk/Makefile.am (install-data-local): Solaris apparently
16478         has various troubles with ln -f; use rm first instead.
16479         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
16480
16481 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
16482
16483         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
16484         use `cp' followed by `rm' (the `rm' was already there).
16485
16486 July 30, 1999 Elliot Lee <sopwith@redhat.com>
16487         
16488         * configure.in: Fix autoconf warnings about cross compilation by
16489         trying to provide sane defaults for AC_TRY_RUN.
16490         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
16491         put them into $(srcdir) when generated. Also add a dependency of
16492         gtksignal.h on gtkmarshal.h for -j builds. 
16493         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
16494
16495 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
16496
16497         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
16498         GDK_THREADS_{LEAVE,ENTER} pair.
16499         (From Paul Fisher <pnfisher@redhat.com>)
16500
16501 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
16502
16503         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
16504         width and height are always >0 (owen).
16505
16506 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
16507
16508         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
16509         change that assured that a widget's allocated with and height are
16510         always >1, since this breaks *buggy* panel code. unfortunately this
16511         back-breaks the gimp's color selector.
16512
16513         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
16514         allocation is always >0 in width and height, before sending the
16515         configure event; this is a *gross* hack to get the gimp back to work.
16516         
16517         * marked both cases with TODO-1.3
16518
16519 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
16520
16521         * gtk/gtktext.c: Don't display wrap indicators when
16522         text is not editable and word wrap is on.
16523
16524 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
16525
16526         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
16527         option menus here as they are not derived from menu shell, assure that
16528         the option menu has a menu we can add items to.
16529
16530 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
16531
16532         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
16533         width/height to (gint) before calculations and check against < 0 to
16534         avoid guint wraparounds.
16535
16536 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
16537
16538         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
16539         width and height is never zero. sanity check both dimensions against
16540         32767 and issue a warning if the allocation is greater than that.
16541
16542 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
16543
16544         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
16545         to g_main_pending() as well.
16546
16547 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
16548
16549         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
16550         call to g_main_iteration() - since that will regrab
16551         GTK+ lock to process events.
16552
16553 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
16554
16555         * gtk/gtkwindow.c
16556         - Regularize with the rest of GTK+ by making widget->requisition
16557           not reflect the set_usize()
16558         - Always recompute geometry hints, then check if they
16559           changed before sending them to the X server. The
16560           previous checks for changes would fail in a number
16561           of circumstances. 
16562
16563 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
16564
16565         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
16566
16567 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
16568
16569         * gtk/gtkdnd.c:
16570         - Code cleanups
16571         - Instantaneously update on modifier key presses
16572         - Allow cancellation of the drag with Escape.
16573
16574 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
16575
16576         * gtk/testgtk.c (create_handle_box): Set the policy
16577         to auto_shrink - otherwise the appearance is rather
16578         strange when flipping between horizontal and vertical.
16579
16580 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
16581
16582         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
16583         (gtk_window_set_default_size): don't change a value if it's < 0.
16584         queue a resize.
16585
16586 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
16587
16588         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
16589
16590 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
16591
16592         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
16593         add an extra "/" when concating "/" + filename.
16594         (From Matt Grossman <mattg@oz.net>)
16595
16596 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
16597
16598         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
16599         for fg_gc if we set it for drawing pixmap.
16600
16601 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
16602
16603         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
16604         
16605         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
16606         already set, call old engine's destroy function and
16607         unref the old engine.
16608
16609 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
16610
16611         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
16612
16613 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
16614
16615         * gtk/gtkaccelgroup.h: mark certain functions as internal.
16616
16617 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
16618
16619         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
16620         expand behaviour changed.
16621
16622         * gtk/gtklabel.c (gtk_label_set_pattern):
16623         (gtk_label_set_justify):
16624         (gtk_label_set_line_wrap):
16625         don't bother invoking queue_clear, the reallocation does
16626         that for us, always free_words so the upcoming resize will
16627         relayout the label's contents.
16628
16629 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
16630
16631         * applied argument implementation patches from Elena Devdariani
16632         <elena@cogent.ca>.
16633
16634         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
16635         ::space_style, ::relief
16636         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
16637         * gtk/gtkpreview.c: ::expand
16638         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
16639         * gtk/gtknotebook.c: ::homogeneous
16640         * gtk/gtklabel.c: ::wrap
16641         * gtk/gtklist.c: ::selection_mode
16642         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
16643         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
16644         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
16645         * gtk/gtkclist.c: ::sort_type
16646         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
16647         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
16648
16649 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
16650
16651         * gtk/gtkstyle.c: Removed ill-thought-out part of last
16652         comment.
16653
16654 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
16655
16656         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
16657         counting right when we have to attach a new style
16658         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
16659
16660         * gtk/gtkstyle.c: Documented the refcounting
16661         peculularities of gtk_style_attach.
16662
16663 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
16664
16665         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
16666         window types.
16667
16668         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
16669         of GTK_TOPLEVEL for creating the window.
16670
16671 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
16672
16673         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
16674         the last argument (reported by Per Winkvist).
16675         
16676 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
16677
16678         Fixes for invisible XOR lines (Frank Loemker
16679         <floemker@TechFak.Uni-Bielefeld.DE>)
16680         
16681         * gtk/gtkclist.c (gtk_clist_realize): Always use
16682         a non-zero pixel for GDK_XOR.
16683
16684         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
16685         Use GDK_INVERT instead of GDK_XOR.
16686
16687 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
16688
16689         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
16690         signals if h/voffsets differ from adjustment values.
16691         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
16692
16693 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
16694
16695         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
16696         ::selection-done emissions up to the topmost menu shell.
16697
16698 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
16699
16700         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
16701         the user data on the window before destroying it.
16702
16703         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
16704         unrealize handler to take care of destroying 
16705         notebook->panel properly. 
16706         (Bug #1198 - Morten Welinder <terra@diku.dk>)
16707
16708         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
16709         of g_new and g_realloc to stop memory leak. (Actually,
16710         we could just use g_realloc(), but I'm not 100% sure
16711         that is portable).
16712         (Bug #1196 - Morten Welinder <terra@diku.dk>)
16713
16714 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
16715
16716         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
16717
16718         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
16719         for fontsets.
16720
16721         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
16722         with bin/button confusion.
16723
16724 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
16725
16726         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
16727         and show how preselection of radio items is done.
16728
16729 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
16730
16731         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
16732         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
16733         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
16734         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
16735         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
16736         * gtk/gtktable.c (gtk_table_attach): 
16737         * gtk/gtklist.c (gtk_list_insert_items): 
16738         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
16739         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
16740         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
16741         * gtk/gtkbin.c (gtk_bin_add): 
16742         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
16743         * gtk/gtkfixed.c (gtk_fixed_put): 
16744         * gtk/gtklayout.c (gtk_layout_put):
16745         general fixups to container_add logic. always realize child if
16746         child->parent is realized, only map the child and queue a resize
16747         if child and child->parent are both visible.
16748
16749 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
16750
16751         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
16752         instead of gtk_container_foreach to walk and unrealize children, so
16753         composite children get also unrealized.
16754         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
16755         (gtk_widget_map): assert that the widget is visible (basic constrain).
16756         (gtk_widget_real_map): assert that the widget is realized (basic
16757         constrain).
16758
16759 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
16760
16761         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
16762
16763 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
16764
16765         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
16766         file for iso-8859-2 locales.
16767
16768         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
16769
16770 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
16771
16772         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
16773          (Pointed out by andy@rz.uni-karlsruhe.de and others).
16774          Remove some suspicious and useless lines. 
16775
16776 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
16777
16778         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
16779         width,height = 0, 0 to mean - here to edge of window,
16780         instead of -1, -1, since the former is all we support.
16781
16782 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
16783
16784         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
16785         when removing from quit_functions list.
16786
16787 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
16788
16789         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
16790
16791 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
16792
16793         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
16794          When redrawing characters on non-visible entry, use appropriate
16795          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
16796
16797 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
16798
16799         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
16800         from drag coordinates.
16801         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
16802         use drag_dest_cell.
16803
16804         * gtk/gtktree (drag_dest_cell)
16805         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
16806         (Bug #1129)
16807
16808 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
16809
16810         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
16811         translate_* fields.
16812         (gtk_item_factory_finalize): invoke translate_notify independant from
16813         translate_data.
16814         (gtk_item_factory_set_translate_func): likewise.
16815         (gtk_item_factory_destroy): only remove ifactory pointer from those
16816         widgets that belong to us (stupid me).
16817
16818 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
16819
16820         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
16821         rc_style list when lookup succeeeds.
16822
16823 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
16824
16825         * gtk/gtkctree.c (resync_selection): 
16826         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
16827         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
16828         bug.
16829
16830 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
16831
16832         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
16833         Add some missing GDK_THREADS_ENTER()/LEAVE around
16834         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
16835
16836 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
16837
16838         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
16839         rather than emit_by_name.
16840
16841         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
16842         on the widget across multiple signal emissions.
16843         (gtk_editable_delete_text): same here.
16844         (gtk_editable_class_init): set widget_class->activate_signal after
16845         editable_signals[ACTIVATE] has been created.
16846
16847 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
16848
16849         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
16850         position here prematurely -- we might not have the
16851         right ->min_position and ->max_position yet.
16852
16853 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
16854
16855         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
16856         Add error traps so if the other end of the connection
16857         dies, we survive.
16858
16859         * gtk/gtkselection.c (gtk_selection_notify): Clean
16860         up properly when selection property retrieval fails.
16861         
16862         * gtk/gtkselection.c (gtk_selection_request): Correctly
16863         reject SelectionRequest notifies where the handler
16864         returns no data.
16865
16866 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
16867
16868         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
16869         when we've previously highlighted.
16870
16871         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
16872         emit two "drag_leave" signals for Motif drops.
16873
16874         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
16875         back the correct status messages when dropping from
16876         Motif onto a proxy window that is rejecting the
16877         drop.
16878
16879 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
16880
16881         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
16882         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
16883         to compare two argument values. added gtk_arg_to_valueloc() to set a
16884         variable from an arg through its location (pointer).
16885
16886         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
16887         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
16888         as gfloat*, uchars are collected as guchar*, ints are collected as
16889         gint*, etc...
16890
16891 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
16892
16893         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
16894         Include <string.h> instead of <strings.h>.
16895
16896         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
16897         (actually, a lot more duplicate includes occur if
16898          you trace through the sequence of #include's)
16899         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
16900         
16901 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
16902
16903         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
16904         gtk-a-higuti-990322-[0-3]
16905
16906         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
16907         that was causing -DX_LOCALE not to work.
16908
16909         * gtk/gtkrc.c (gtk_rc_init):
16910         X_LOCALE will never have LC_MESSAGES defined
16911
16912 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
16913
16914         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
16915         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
16916
16917         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
16918         left/right as well (gtk-michael-980726-0.patch.gz).
16919
16920         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
16921         for pointer values, use gchar instead of char. fixed uline allocation
16922         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
16923         chunks instead of G_ALLOC_ONLY.
16924         (gtk_label_size_request): always alter requisition as passed and leave
16925         widget->requisition alone.
16926         (gtk_label_set_text): allow NULL strings.
16927         (gtk_label_new): likewise.
16928
16929 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
16930
16931         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
16932
16933 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
16934
16935         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
16936         *and* mapped (i.e. drawable).
16937         (gtk_bin_expose): only send exposes to drawable children.
16938
16939         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
16940         (gtk_box_expose): only send exposes to drawable children.
16941
16942         * gtk/gtkhscale.c (gtk_hscale_draw): 
16943         * gtk/gtkvscale.c (gtk_vscale_draw):
16944         hm, this is an ugly one. we first compute the size of our trough area
16945         here (window relative) and then check intersection with the draw_area
16946         which is parent relative because we're a NO_WINDOW widget, so we need
16947         to offset the trough area by allocation.x and allocation.y before the
16948         check. (this must not be done for the background area though, since
16949         that's already computed parent relative).
16950
16951 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
16952
16953         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
16954         unrealize title buttons.
16955
16956 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
16957
16958         * gtk/gtkclist.c (gtk_clist_column_title_passive)
16959         (gtk_clist_column_title_active): 
16960         only connect/disconnect to GtkWidgetClass::event to block mouse events.
16961
16962         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
16963         zero initialize event, removed superfluous gdk_window_get_pointer call
16964
16965         * gtk/gtklist.c (gtk_list_vertical_timeout)
16966         (gtk_list_horizontal_timeout): removed superfluous
16967         gdk_window_get_pointer call
16968
16969 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
16970
16971         * plugging problems reported by "Bruce Mitchener, Jr."
16972         <bruce@puremagic.com> due to a purify session.
16973
16974         * gtk/gtkstyle.c:
16975         (gtk_style_ref): 
16976         (gtk_style_unref): assert ref_count to be > 0.
16977
16978         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
16979         the requisition.
16980         (gtk_clist_set_shift): likewise.
16981
16982         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
16983         adjustments.
16984
16985         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
16986         event before sending it and set send_event to TRUE (which needs to
16987         be done for *all* synthesized events).
16988         (gtk_list_vertical_timeout): likewise.
16989
16990         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
16991         leaks.
16992
16993         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
16994         to TRUE when synthesizing events.
16995
16996 [ *** end of merges from 1.2 *** ]      
16997         
16998 1999-11-21  Tor Lillqvist  <tml@iki.fi>
16999
17000         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
17001         (or copied from gdkconfig.h.win32 on Win32, sigh).
17002
17003         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
17004
17005         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
17006
17007         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
17008
17009         * gdk/gdkconfig.h.win32: New file.
17010
17011         * gdk/win32/makefile.cygwin: Build just a static archive here.
17012
17013         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
17014         for the DLL from the static archive built above.
17015
17016         * gdk/gdk.def: Moved here from the win32 subdirectory.
17017
17018         * gdk/win32/*: Adapt for the changed private struct organisation.
17019
17020         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
17021
17022 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
17023
17024         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
17025         for wheel mice (buttons 4 and 5).
17026
17027 1999-11-18  Tor Lillqvist  <tml@iki.fi>
17028
17029         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
17030         drawables use just the pixel field in the foreground and
17031         background GdkColor of the GdkGC.
17032
17033         gdk_gc_set_{fore,back}ground() are called in the GIMP with
17034         GdkColors containing uninitialized (red,green,blue) fields, and
17035         just the pixel field filled in, and furthermore in the
17036         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
17037         It thus turns out that we really don't need to have the full
17038         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
17039         it later to have just the pixel values.
17040
17041 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
17042
17043         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
17044
17045 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
17046
17047         * docs/gtkfaq.sgml: threads example from Erik Mouw.
17048         New question on GtkLabel background colors.
17049
17050         * docs/gtk_tut.sgml:
17051           - Correct the example code callback
17052             function definitions.
17053           - Update the gtkdial example code, from Frans van Schaik.
17054           - Update setselection.c to current API.
17055
17056         * examples/Makefile examples/*/*.c: Update to code
17057         listed in tutorial.
17058
17059 1999-11-10  Tor Lillqvist  <tml@iki.fi>
17060
17061         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
17062         subrange table (from the "Developing International Software for
17063         WIndows 95 and Windows NT" book) was missing the Hangul syllable
17064         block... Get the loaded font's charset correctly.
17065
17066         (Note that this, and the other *-win32.c files, still really are
17067         the old ones, the win32 subdirectory is not ready for compilation
17068         yet after the reorg.)
17069
17070 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
17071
17072         * gtk/gtkclist.c: Fix off-by-one bug in parameter
17073         check.
17074
17075 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
17076
17077         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
17078         on results of XQueryDeviceState().
17079
17080 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
17081
17082         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
17083         we need to accesss only ->children. We need an accessor
17084         for the children.
17085
17086         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
17087         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
17088         to get rid of gdkx.h include.
17089         
17090         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
17091         and random references to 'None'.
17092
17093         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
17094         Get rid of unused #include <gdk/gdkx.h>
17095
17096         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
17097         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
17098         gdkconfig.h.
17099
17100 1999-11-08  Tor Lillqvist  <tml@iki.fi>
17101
17102         * gdk/win32/gdkdraw.c
17103         * gdk/win32/gdkfont.c
17104         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
17105         following yesterday's changes. (Unrelated to Owen's reorg.)
17106
17107 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
17108
17109         * gdk/x11/gdkinput-gxi.c: Add missing include,
17110           fix GdkWindowPrivate => GdkDrawablePrivate.
17111
17112         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
17113
17114         * gdk/x11/Makefile.am (xinput_sources): Add missing
17115         backslash to fix building with --with-xinput=none
17116
17117 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
17118
17119         Move all X specific code into the x11/ directory.
17120         Aside from shuffling things around, did the following:
17121
17122        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
17123          gdk_arg_context_* - a simple argument parsing system
17124          in the style of popt.
17125
17126        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
17127          gdk/x11/gdkprivate-x11.h:
17128          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
17129          add ->klass and ->klass_data fields. The klass_data
17130          field points to an auxilliary structure that is
17131          windowing system dependent.
17132
17133        * gdk/gdkfont.c: Make most of the measurement functions
17134          simply wrappers around gdk_text_extents().
17135
17136        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
17137          _gdk_font_strlen() function that hides the weird
17138          behavior in gtk+-1.[02] where a string is interpreted
17139          differently for 8-bit and 16-bit fonts.
17140
17141        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
17142          to store common code for synthesizing double/triple
17143          press events.
17144         
17145        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
17146          Make all the function that modify an existing GC
17147          simply wrappers around gdk_gc_set_values().
17148          
17149        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
17150          for throwing out later.
17151
17152        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
17153          GdkImagePrivate and GdkColormapPrivate to have a
17154          windowing system dependent part (GdkFontPrivateX etc.)
17155          that "derives" from the system-independent part.
17156
17157        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
17158          Got rid of the included-source-files for XInput in
17159          favor of automake conditionals. (Which didn't exist
17160          when XInput support was originally added.)
17161
17162        * gdk/gdkrgb.c: Remove the visual id from the debugging
17163          statements since that is X11 specific; print out
17164          type/depth info instead.
17165          
17166
17167 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
17168
17169         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
17170         loading duplicates of hashed fonts.
17171
17172         * gdk/gdk.c (gdk_keysym_convert_case): rename
17173         gdk_XConvertCase to gdk_keysym_convert_case, allow
17174         results to be NULL in the GTK+ style.
17175
17176         * gdk/gdkcompat.h: Started compatibility header
17177         for renames.
17178
17179 1999-11-07  Tor Lillqvist  <tml@iki.fi>
17180
17181         * gdk/win32/gdkprivate.h: New font private structures, related to
17182         fontsets.
17183
17184         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
17185         gdk_font_list_free(). On X11, will just be wrappers to
17186         XListFonts() and XFreeFontNames(). On Win32, the code previously
17187         in gtkfontsel.c is now here.
17188
17189         New function gdk_font_xlfd_create(). On X11 will get the FONT
17190         property of the font (for GDK_FONT_FONTs), or call
17191         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
17192         builds a XLFD style name from the font information in the LOGFONT
17193         struct(s).
17194
17195         New function gdk_font_xlfd_free(), which correspondingly frees the
17196         string returned by gdk_font_xlfd_create().
17197
17198         Implement fontsets on Win32. Add a function that iterates over a
17199         wide char string and calls a callback function for each substring
17200         of wide chars from the same Unicode subrange (and thus probably
17201         available in the same real font).
17202
17203         Improve the XLFD emulation a bit.
17204
17205         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
17206
17207         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
17208         Beta3, WM_IME_CHAR messages don't seem to contain the composed
17209         multi-byte char as with the Active IMM on Win9x. Oh well, handle
17210         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
17211         ImmGetCompositionStringW() to get the composed Unicode chars.
17212
17213         * gdk/win32/gdkgc.c
17214         * gdk/win32/gdkdraw.c: Changes needed because of the font private
17215         struct changes.
17216
17217         * gdk/win32/gdk.def: Add the new functions.
17218
17219 1999-11-04  Tor Lillqvist  <tml@iki.fi>
17220
17221         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
17222         get the Platform SDK to get <dimm.h>.
17223
17224         * gdk/win32/gdkevents.c: More event handling fixes and
17225         simplification. Never generate motion events with is_hint true. We
17226         used to do that on bogus grounds earlier. Windows sends
17227         WM_MOUSEMOVE messages on button events even if the mouse hasn't
17228         moved, ignore these.
17229
17230         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
17231
17232         * gdk/win32/gdkglobals.c
17233         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
17234         the TrackMouseEvent function, and use it.
17235
17236         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
17237         char before calling WideCharToMultiByte in order to get a string
17238         for the window title.
17239
17240         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
17241
17242         * gdk/win32/gdk.def: Remove obsolete functions.
17243
17244         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
17245         /nodefaultlib and /defaultlib switches.
17246
17247         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
17248
17249 1999-10-31  Tor Lillqvist  <tml@iki.fi>
17250
17251         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
17252         EuroSign).
17253
17254         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
17255         same type as GdkWChar, especially on Win32.
17256
17257         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
17258
17259         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
17260         before passing to Windows GDI for drawing etc. Convert to the
17261         system default codepage before passing to Windows as window
17262         titles.
17263
17264         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
17265         support changing input locale on the fly.
17266
17267         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
17268         on-the-fly changes. Convert incoming characters from the current
17269         codepage to Unicode (and then to a UTF-8 multi-byte string) based
17270         on the current input language. Use keysym<->Unicode mapping tables
17271         and functions borrowed from xterm sources.
17272
17273         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
17274         editions of Win9x, use the ActiveX-based Active IMM (Input Method
17275         Manager) if available. IMEs and the Active IMM are available under
17276         the disguise of Chinese, Korean and Japanese support for IE and
17277         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
17278         support is present in all editions (as long as you install it).
17279
17280         Call DispatchMessage from gdk_events_queue() (and thus
17281         gdk_WindowProc()), instead of duplicating the code in
17282         gdk_WindowProc().
17283
17284         Reworked the grab handling and propagation code, factored out
17285         duplicated code snippets into separate functions. Other cleanups,
17286         too.
17287
17288         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
17289         the <dimm.h> header describing the Active IMM.
17290
17291         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
17292         just do the same as for "single" fonts.
17293
17294         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
17295         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
17296         the new keysyms from gdkkeysyms.h.
17297
17298         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
17299         fontset, so that gtkentry uses wide characters.
17300
17301         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
17302         GTk+'s system directory "gtk+", not "gtk".
17303
17304 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
17305
17306         * docs/gtkfaq.sgml: FAQ update
17307
17308 1999-10-21  Tor Lillqvist  <tml@iki.fi>
17309
17310         * gdk/win32/gdkprivate.h: Add more font private data.
17311
17312         * gdk/win32/gdkfont.c
17313         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
17314         fonts and strings. Now works much better. You still have to
17315         have a correct font selected, though. No fontset emulation yet.
17316
17317 1999-10-19  Tor Lillqvist  <tml@iki.fi>
17318
17319         * gtk/maketypes.awk: Use G_OS_WIN32.
17320
17321         * gtk/gtk.def: Add some missing entry points. Also some non-public
17322         ones, but PyGTK porter claims to need them.
17323
17324         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
17325         built-in type generation.
17326
17327 1999-10-14  Tor Lillqvist  <tml@iki.fi>
17328
17329         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
17330         GDK_FONT_FONT fonts (which is all we have for now, we don't
17331         emulate fontsets). The X11 version uses plain XDrawString in that
17332         case, too. The string passed to gdk_draw_text_wc seems to be in
17333         fact (at least, when used by gtkentry and gtktext) either in a
17334         single-byte charset, or a DBCS. Not Unicode.
17335
17336         This fixes the problem in gtkfontsel, where even if you had
17337         selected a font with a non-Latin1 charset (windows-greek, for
17338         instance), the preview still used Latin-1 glyphs.
17339
17340         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
17341         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
17342         (gdk_font_load): Recognize the demibold etc weights, even if we
17343         don't have the corresponding constants in the headers.
17344         (gdk_font_hash_insert): Use same hash mechanism as in the X11
17345         version. Should save font resources a bit, when we don't have
17346         multiple HFONTs for the same font.
17347
17348         * gdk/win32/gdkprivate.h: Add the names field as in the X11
17349         version.
17350
17351 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
17352
17353         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
17354         X values
17355
17356 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
17357
17358         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
17359         layout support (as mentioned on
17360         http://www.jcinteractive.com/gnome-ui/software/widgets/)
17361
17362 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
17363
17364         * gtk/fnmatch.c
17365         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
17366
17367 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
17368
17369         * configure.in (ALL_LINGUAS): Added Galician (gl)
17370
17371 1999-10-05  Tor Lillqvist  <tml@iki.fi>
17372
17373         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
17374
17375         * gdk/win32/gdkcompat.c: New file, actually provide an
17376         implementation for the deprecated functions. (Just temporarily.)
17377
17378         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
17379
17380         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
17381
17382         * gdk/win32/gdk.def gtk/gtk.def: Updates.
17383
17384 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
17385
17386         * configure.in: Added "uk" to ALL_LINGUAS.
17387         
17388 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
17389
17390         * configure.in: correct checking for BeOS check
17391
17392         * gdk/gdktypes.h
17393         * gtk/fnmatch.c
17394         * gtk/gtkfilesel.c
17395         * gtk/gtkitemfactory.c
17396         * gtk/gtkmain.[ch]
17397         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
17398
17399 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
17400
17401         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
17402         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
17403         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
17404         by Bulgarian). 
17405
17406 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
17407
17408         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
17409         Fix a reference to window_private->destroyed.   
17410
17411         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
17412         (ugly) setting of an internal GdkWindow member to use
17413         a _slightly_ cleaner macro.
17414
17415         * gdk/gdkprivate.h: Split GdkWindowPrivate into
17416         GdkDrawablePrivate and GdkWindowPrivate.
17417         Add extra macros for accessing GDK_DRAWABLE_ components.
17418
17419         * *.[ch]: Massive adjustments for the above, use the
17420         new macros in a lot of places.
17421
17422 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
17423
17424         * gdk/gdktypes.h: Make GdkDrawable the base type,
17425         not GdkWindow.
17426
17427 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
17428
17429         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
17430
17431 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
17432
17433         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
17434
17435 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
17436
17437         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
17438         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
17439
17440         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
17441
17442         * docs/gtk-config.1: Now autogenerated.
17443         * docs/Changes-1.4.txt: started
17444         
17445 1999-10-03  Tor Lillqvist  <tml@iki.fi>
17446
17447         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
17448         to #ifdef also here.
17449
17450         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
17451         Owen did to the X11 backend.
17452
17453         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
17454         ScrollWindowEx when blitting inside a window, it can't be correct
17455         in the general case.
17456
17457         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
17458         WM_GETMINMAXINFO is easier.
17459
17460         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
17461         depth equal to the bitspixel value, not the visual's depth.
17462
17463         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
17464         to 24 even if the bitspixel value is 32.
17465
17466         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
17467         need to check for depth==32 when bpp==32, depth will always be 24.
17468
17469 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
17470
17471         * docs/Changes-1.4.txt: Started
17472         
17473         * gtk/Makefile.am (gdk_headers): Include all the new headers.
17474
17475         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
17476         
17477         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
17478         into C file.
17479         
17480         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
17481         header to gdkinputprivate.h.
17482
17483         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
17484         unused since before 1.2.
17485
17486 1999-09-30  Tor Lillqvist  <tml@iki.fi>
17487
17488         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
17489         expand possible hex escapes in the font family (put there by
17490         logfont_to_xlfd if the font name isn't a legal XLFD font family,
17491         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
17492         On Win32, add hex escapes here, too.
17493
17494 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
17495
17496         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
17497         to #ifdef GDK_WINDOWING_X11.
17498
17499 [ Merges from gtk-1-2 ]
17500
17501 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
17502
17503         * configure.in: fixed "GNU Make" check to pass with new make version
17504         3.77.95.
17505
17506 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
17507
17508         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
17509         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
17510         AM_PATH_GTK() macros don't get confused by the -pre1.
17511
17512 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
17513
17514         * configure.in (REBUILD): Change check for perl5
17515           to check explicitely for v >= 5.002. (5.001
17516           does not work with our scripts.)
17517
17518 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
17519
17520         * configure.in: evaluate $PERL for the perl version check. added
17521         --disable-rebuilds to give the user an option to completely disable
17522         any source autogeneration rules.
17523
17524 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
17525
17526         * configure.in: evaluate $ac_make when checking for GNU Make.
17527
17528 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
17529
17530         * docs/Makefile.am: added generation.txt.
17531
17532         * Makefile.am: require automake 1.4, build README from README.in and
17533         INSTALL from INSTALL.in in dist-hook.
17534         
17535         * README.in:
17536         * INSTALL.in: new files to autogenerate README and INSTALL from.
17537
17538         * configure.in: figure whether we have GNU Make
17539
17540         * docs/generation.txt: minor additions/corrections.
17541
17542 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
17543
17544         * docs/gtkfaq.sgml: FAQ Update
17545
17546 July 30, 1999 Elliot Lee <sopwith@redhat.com>
17547         
17548         * configure.in: Fix autoconf warnings about cross compilation by
17549         trying to provide sane defaults for AC_TRY_RUN.
17550
17551 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
17552
17553         * ltconfig
17554         * ltmain.sh: upgrade to libtool 1.3.3
17555
17556 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
17557
17558         * INSTALL: Indicate that the --with-glib= configure
17559         time flag is unsupported.
17560
17561 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
17562
17563         * docs/generation.txt: Added a file that gives
17564         documenation about the autogeneration process for
17565         various autogenerated files.
17566         
17567 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
17568
17569         * configure.in (LIBS): Look for libgmodule in the
17570         right location.
17571
17572 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
17573
17574         * docs/gtk_tut.sgml: Removed references to
17575         code examples in my directory on gtk.org as
17576         they should all be in the tutorial now.
17577
17578         * docs/gtk_tut.sgml: Added sources for dial-test
17579         and scribble-xinput programs that were previously
17580         missing.
17581
17582 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
17583
17584         * TODO: Added entry about menu keyboard navigation, removed
17585         some finished items.
17586
17587 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
17588
17589         * acinclude.m4: Standardize on func_dgettext
17590         not func_gettext, so that the checks for dgettext
17591         actually are paid attention to.
17592
17593 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
17594
17595         * configure.in (LIBS): Add $INTLLIBS into $LIBS
17596         directly, rather than repeating the checks for
17597         gettext.
17598
17599         * INSTALL: Added information about gettext and
17600         NLS support.
17601
17602         * acinclude.m4 (LIBM): Check for dgettext, not
17603         just gettext. This should hopefully fix things wrt
17604         systems with old versions of GNU gettext installed.
17605
17606 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
17607
17608         * configure.in (LIBS): Look for libgmodule in the
17609         right location.
17610
17611 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
17612
17613         * autogen.sh: add --enable-maintainer-mode
17614
17615         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
17616
17617 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
17618
17619         * docs/gtk-config.1.in:
17620           docs/Makefile.am:
17621           configure.in: gtk-config is now generated.
17622
17623         * docs/gtk-config.1: Removed, now generated.
17624
17625 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
17626
17627         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
17628         handle CreateNotify itself, still put out a debuging message for
17629         --gdk-debug=events. made the ReparentNotify debugging message more
17630         verbose.
17631         wrap xcoords translation for ConfigureEvents into an error trap,
17632         a destroy event may already be pending, and in that case, the
17633         actuall coordinate values are not at all critical.
17634
17635 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
17636
17637         * gdk/gdkcc.c: Stop leaking the color_hash all over
17638         the place. Simplify and improve the logic.
17639
17640 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
17641
17642         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
17643         for prototypes and function implementations consistent (reported
17644         by Tomas Ogren).
17645
17646 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
17647
17648         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
17649         send_event set in debugging output.
17650         (gdk_compress_exposures): default initialize the event so we don't
17651         operate on bogus values (namely send_event).
17652
17653 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
17654
17655         * gdk/gdkwindow.c: When we receive an unexpected
17656         destroy notify on one of our windows, don't just
17657         warn about it, also mark our windows as destroyed.
17658
17659 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
17660
17661         * gdk/gdkfont.c (gdk_font_hash_insert): Add
17662           name => font and name => fontset hashes. The 
17663           name => fontset hash is a _big_ win since we
17664           weren't previously caching fontsets at all and loading
17665           fontsets is expensive. The name => font hash
17666           is less of a win, but it does save us from doing
17667           repeated XQueryFont calls on the same font.
17668
17669         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
17670           list so we can remove font/fontset from hash.
17671
17672 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
17673
17674         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
17675           and slightly confusing test. [ XInternAtom (,,TRUE)
17676           will never return None ].
17677
17678 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
17679
17680         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
17681           gdk/gdkwindow.c (gdk_window_set_hints):
17682
17683         Don't omit setting the properties if flags == 0 -
17684         there may be an existing set of properties there
17685         already. (Very old bug. Would it be better to
17686         delete the property instead?)
17687
17688         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
17689           spelling error in comment.
17690
17691 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
17692
17693         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
17694           to avoid stomping over gdk_error_warnings.
17695
17696         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
17697           as (bits_per_pixel + 7) / 8. This gives the same
17698           result as before for multiples of 8, but actually
17699           a "reasonable" value for 1bit or 4bit displays.
17700
17701 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
17702
17703         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
17704         GNU Make.
17705
17706 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
17707
17708         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
17709         discarding configure events.
17710
17711 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
17712
17713         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
17714         refcount is greater than zero.
17715
17716         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
17717
17718         * gdk/gdkfont.c (gdk_font_unref): Likewise.
17719
17720         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
17721
17722         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
17723
17724 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
17725
17726         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
17727         that format 32 => sizeof(item) == 4. It really is
17728         sizeof(long).
17729
17730 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
17731
17732         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
17733         core dump at all on X IO errors, only core dump
17734         if --enable-debug for X errors.
17735
17736 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
17737
17738         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
17739         unknown window:" message. disabled ConfigureNotify discarding code,
17740         because it led to events being processed out of order.
17741
17742 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
17743
17744         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
17745
17746         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
17747         we export this function, supress error warnings and don't reset the
17748         error code in the first half of this function.
17749
17750         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
17751         code (instead of just -1) so gdk_error_trap_pop() reveals something
17752         actually informative about the error that happened.
17753
17754         * gdk/*.c:
17755         don't rely on gdk_error_code being -1 if an error occoured, but just
17756         gdk_error_code != 0.
17757
17758 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
17759
17760         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
17761         pointer *before* invoking the filter function, so we at least don't
17762         crash if a filter is removed that is currently executed. window filters
17763         *really* need to be made truely reentrant at some point.
17764
17765 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
17766
17767         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
17768         PropertyNotify debug messages.
17769
17770 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
17771         
17772         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
17773         
17774         * gdk/gdkim.c: Fix cut-and-paste errors for 
17775         x/y and PreeditAttributes/StatusAttributes.
17776
17777 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
17778
17779         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
17780         G_MAXINT to 2^16 to alleviate overflow problems in
17781         various window managers.
17782
17783 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
17784
17785         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
17786         for fontsets.
17787
17788 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
17789
17790         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
17791         Initialize size_hints.x and size_hints.y because kwm
17792         brokenly pays attention to them.
17793         (Bug #1181 -  Lars Heete <hel@admin.de>)
17794
17795 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
17796
17797         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
17798         return value of gdk_list_visuals(). 
17799         (Bug #1193 - Morten Welinder <terra@diku.dk>)
17800
17801 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
17802
17803         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
17804         XSetIMValues to (void *) when comparing to NULL, to workaround
17805         the problem of some compilers barfing since older X headers don't
17806         have the prototype for it.
17807
17808 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
17809
17810         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
17811         for pseudocolor where colormap->colors was double
17812         allocated.
17813
17814         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
17815         color value in the hash table with the pixel filled
17816         in so when we do later hash table lookups, the color
17817         value is correct.
17818         
17819 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
17820
17821         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
17822         making the call
17823
17824 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
17825
17826         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
17827         pointed out by Morten Welinder <terra@diku.dk>.
17828
17829 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
17830
17831         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
17832           default filter from the list
17833
17834 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
17835
17836         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
17837           default filter from the list
17838
17839 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
17840
17841         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
17842
17843         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
17844         g_strdup_printf instead of calcing the length separately
17845
17846 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
17847
17848         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
17849         that we don't do in many other places. (Fixing duplicate 
17850         #include of config.h)
17851
17852         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
17853         Otherwise, #ifndef XINPUT_NONE check in the latter
17854         doesn't work. (Bug #546)
17855
17856 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
17857
17858         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
17859         "None" case insensitive.
17860
17861 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
17862
17863         * gdk/gdkselection.c: 
17864         Add error traps so if the other end of the connection
17865         dies, we survive.
17866
17867 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
17868
17869         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
17870         dest_xid field into two fields - one for the window
17871         to send in messages, one to indicate the last looked
17872         up window for caching purposes. This is needed, so
17873         that Leave messages get the correct window.
17874
17875 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
17876
17877         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
17878         Fix warning created by people mucking around
17879         with the gsource API.
17880
17881         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
17882         Change mapping between GIOCondition and GdkInputCondition
17883         to match the way the Linux kernel does it. This should
17884         fix problems where closed pipes were no longer signalling
17885         GDK_INPUT_READ on systems with a native poll().
17886
17887 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
17888
17889         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
17890         explicitly for the string "None" - it is in the XPM
17891         spec and some servers treat unknown colors in odd ways
17892         (like asking the user!)
17893
17894 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
17895
17896         * gdk/gdkevents.c: made "->" into a "." of previous change so
17897         it compiles
17898
17899 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
17900
17901         * gdk/gdkevents.c (gdk_compress_exposures): Set the
17902         window field of the event structure before calling
17903         user filters.
17904
17905 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
17906
17907         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
17908         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
17909
17910 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
17911
17912         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
17913         intermediate text property - prevents major memory
17914         leak when gdk_use_mb.
17915         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
17916
17917 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
17918
17919         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
17920         gtk-a-higuti-990322-[0-3]
17921
17922         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
17923         sizeof(wchar_t) != sizeof (GdkWChar)
17924
17925         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
17926         that was causing -DX_LOCALE not to work.
17927
17928         * gtk/gtkrc.c (gtk_rc_init):
17929         X_LOCALE will never have LC_MESSAGES defined
17930
17931         * gdk/gdk.c (gdk_init_check):
17932         Remove --xim-preedit and --xim-status from argv properly.
17933
17934         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
17935         that the client window is present on the X server
17936         before we pass it to the input method.
17937
17938 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
17939
17940         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
17941         if --display is specified on the command line, than
17942         the drag window will not be created on that display.
17943         
17944 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
17945
17946         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
17947         lookups with only_if_exists == TRUE were inserting
17948         bogus values into the atom cache.
17949
17950 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
17951
17952         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
17953         then reset it to NULL.
17954
17955         * gdk/gdkcolor.c:
17956         (gdk_colors_free): 
17957         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
17958         key for g_hash_table_remove() in both functions, this prevents us
17959         from accessing possibly uninitialized portions of a GdkColor structure
17960         where we are only interested in its pixel value.
17961
17962 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
17963
17964         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
17965         font hash table, if we have a GdkFontPrivate entry for this font
17966         already, simply increment its reference count, provided by Olaf Dietsche
17967         <olaf.dietsche+list.gtk@netcologne.de>.
17968
17969 1999-09-21  Tor Lillqvist  <tml@iki.fi>
17970
17971         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
17972         just to be sure.
17973
17974         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
17975         unused variables, leftovers from the X11 version.
17976
17977         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
17978
17979         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
17980         downcase fields on X11.
17981
17982 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
17983         
17984         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
17985         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
17986
17987 1999-09-17  Tor Lillqvist  <tml@iki.fi>
17988
17989         * gdk/win32/gdk.def: Add gdk_threads_mutex.
17990
17991         * gtk/makefile.msc: Correct path to libintl.
17992
17993         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
17994         use of gint vs. int, and gint vs. gboolean in headers and
17995         definitions. Use GtkType for the *_get_type functions. Note that
17996         these changes preserve binary compatibility.
17997
17998         * gdk/gdk.c
17999         * gdk/win32/gdk.c
18000         * gdk/gdk.h: Fix inconsistencies: gint vs int.
18001
18002         * gtk/gtkmain.c
18003         * gtk/gtkclist.c
18004         * gtk/gtkmenufactory.c
18005         * gtk/gtknotebook.c
18006         * gtk/gtkwidget.c: Fix inconsistencies, also gint
18007         vs. gboolean.
18008
18009         * gtk/gtkcolorsel.[ch]
18010         * gtk/gtkcombo.[ch]
18011         * gtk/gtkdrawingarea.[ch]
18012         * gtk/gtkgamma.[ch]
18013         * gtk/gtkhandlebox.[ch]
18014         * gtk/gtkhpaned.[ch]
18015         * gtk/gtkhruler.[ch]
18016         * gtk/gtkplug.[ch]
18017         * gtk/gtkpreview.[ch]
18018         * gtk/gtkruler.[ch]
18019         * gtk/gtksocket.[ch]
18020         * gtk/gtkstatusbar.[ch]
18021         * gtk/gtktoolbar.[ch]
18022         * gtk/gtkvbbox.[ch]
18023         * gtk/gtkvpaned.[ch]
18024         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
18025         functions.
18026
18027         * gtk/gtkgamma.h: Fix bug, missing () in call of
18028         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
18029
18030 1999-09-14  Tor Lillqvist  <tml@iki.fi>
18031
18032         * gdk/gdkcolor.c (gdk_colormap_new)
18033         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
18034         colormap->colors was allocated twice.
18035
18036         * gdk/win32/gdk.c: Remove some unused stuff.
18037
18038         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
18039         colormap.
18040
18041         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
18042         * gtk/gtklabel.h (gtk_label_get_type)
18043         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
18044         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
18045         in a couple of places, not guint.
18046
18047 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
18048
18049         * configure.in,po/et.po: added Estonian language file
18050
18051 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
18052
18053         * configure.in,po/da.po: added Danish file
18054
18055 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
18056
18057         * docs/gtkfaq.sgml: Minor FAQ Update
18058
18059 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
18060
18061         * docs/gtkfaq.sgml: FAQ update
18062
18063 1999-08-27  Tor Lillqvist  <tml@iki.fi>
18064
18065         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
18066         way to get window contents continually refreshed while resizing. I
18067         didn't like the effects myself, so it's not on by default.
18068
18069         * gdk/win32/gdkprivate.h: New flag variable
18070         gdk_event_func_from_window_proc, FALSE by default.
18071
18072         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
18073         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
18074         are passed --gdk-event-func-from-window-proc.
18075
18076         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
18077         and we have am event_func, call it instead of enqueing the event.
18078
18079 1999-08-23  Tor Lillqvist  <tml@iki.fi>
18080
18081         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
18082         Kelley: Set expose_count in GdkEventExposes correctly.
18083
18084         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
18085         MULTIPLE_WINDOW_CLASSES).
18086
18087         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
18088         for bug in NT, apparently NT *does* draw the end pixel, too, in
18089         LineTo with a one-pixel pen, so we don't have to do it ourselves.
18090
18091 1999-08-21  Tor Lillqvist  <tml@iki.fi>
18092
18093         Improvements by Hans Breuer: 
18094
18095         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
18096
18097         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
18098         CS_?REDRAW flags as they cause lots of (late) redraws when "show
18099         window contents while dragging" is turned on. Allocate at least
18100         one unique class for every GdkWindowType. If support for single
18101         window-specific icons is ever needed (eg. Dialog specific), every
18102         such window should get its own class.
18103
18104 1999-08-19  Tor Lillqvist  <tml@iki.fi>
18105
18106         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
18107         error that caused crashes.
18108
18109 1999-08-17  Tor Lillqvist  <tml@iki.fi>
18110
18111         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
18112         window, use ScrollWindowEx, and call UpdateWindow. This prevents
18113         bugs when for instance part of the window was outside the
18114         display. Thanks to Philippe Colantoni for finding and fixing this.
18115
18116 1999-08-16  Tor Lillqvist  <tml@iki.fi>
18117
18118         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
18119         endpoint calculations which were totally wrong. (A little RTFMing
18120         helps a lot ;-)
18121
18122         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
18123         from a separate directory, not from gettext, because of licensing
18124         issues (we want to use the LGPL version).
18125
18126         * README.win32: Mention the intl from glibc vs from gettext issue.
18127
18128 1999-08-13  Tor Lillqvist  <tml@iki.fi>
18129
18130         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
18131         in the key event handling: Now AltGr chars work again. Also,
18132         now Alt-digits are passed up as well as Control-digits.
18133         Pass keypad plus and minus as normal plus and minus.
18134
18135 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
18136
18137         * docs/gtkfaq.sgml: FAQ Update
18138
18139 1999-07-25  Tor Lillqvist  <tml@iki.fi>
18140
18141         * README.win32
18142         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
18143         the Wintab SDK.
18144
18145         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
18146         OK, but getting closer. Guard against bogus tilt data from Wacom
18147         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
18148         enable easier building without Wintab.
18149
18150         * gdk/win32/gdkinput.h
18151         * gdk/win32/gdkevents.c 
18152         * gdk/win32/gdkwindow.c: Minor changes related related to above.
18153         
18154         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
18155         code. As we have just one visual on Win32, no sense to have it in a
18156         table, and no need for the hash table.
18157
18158         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
18159         better on white background.
18160
18161 1999-07-21  Tor Lillqvist  <tml@iki.fi>
18162
18163         * README.win32: Update gcc build instructions. Mention gettext is
18164         GPL.
18165
18166         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
18167         supported cursor size with GetSystemMetrics.
18168
18169         * gdk/win32/gdkfont.c
18170         * gtk/gtkfontsel.c: Guard against some font weight and charset
18171         symbols being undefined (in mingw32 headers).
18172
18173         * gdk/win32/makefile.cygwin
18174         * gtk/makefile.cygwin
18175         * gtk/gtkthemes.c: No longer need to have differently named
18176         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
18177
18178 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
18179
18180         * docs/gtkfaq.sgml: Long awaited FAQ update.
18181
18182 1999-07-15  Tor Lillqvist  <tml@iki.fi>
18183
18184         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
18185         it. Obscure bit manipulation needed.
18186
18187         * gdk/win32/gdkevents.c: Logging.
18188         
18189         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
18190         style (file name include compiler name) for theme engines.
18191
18192 1999-07-13  Tor Lillqvist  <tml@iki.fi>
18193
18194         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
18195
18196         * gdk/win32/gdkevents.c: Fix long-standing bug in key
18197         events. The key.string wasn't zero-terminated, still we strdup'ed
18198         it in gdk_event_copy(). Synthesize crossing events for button
18199         events before possible propagation.
18200
18201         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
18202
18203         * gdk/win32/makefile.cygwin
18204         * gtk/makefile.cygwin: Use new DLL naming style for the
18205         GCC-compiled ones.
18206
18207         * gdk/win32/makefile.msc
18208         * gtk/makefile.msc: Cosmetics mostly.
18209
18210         * gtk/gtk.def: Add missing entry points.
18211
18212         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
18213
18214 1999-07-09  Tor Lillqvist  <tml@iki.fi>
18215
18216         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
18217         or height is zero. Don't print a warning if Pie or Arc fails, they
18218         always fail (?) for very narrow ellipses.
18219
18220         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
18221         the part or the destination window corresponding to source area
18222         outside of the source drawable's boundary.
18223
18224         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
18225         anything if less than two points.
18226
18227         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
18228         return NULL. Gtk cut-and-paste inside a single program works
18229         better this way. (It always gets the clipboard contents from
18230         Windows, not from its own copy, which is cleared anyway. I can't
18231         say I fully understand what happens... Emulating the X selection
18232         and property stuff is a bit of a mess.)
18233
18234         * gdk/win32/gdkevents.c
18235         * gdk/win32/gdkproperty.c: A bit more verbose logging.
18236
18237         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
18238         that never got deleted). Revamp gdk_region_shrink.
18239
18240         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
18241         after use.
18242
18243         * gtk/gtk.def: Add some missing entry points.
18244
18245         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
18246         component.
18247
18248 1999-07-04  Tor Lillqvist  <tml@iki.fi>
18249
18250         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
18251         Control-digits specially.
18252
18253 1999-07-03  Tor Lillqvist  <tml@iki.fi>
18254
18255         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
18256
18257 1999-06-28  Tor Lillqvist  <tml@iki.fi>
18258
18259         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
18260         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
18261         finding this.)
18262
18263 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
18264
18265         * gtk+.spec.in: Corrected some typos in files section.
18266         
18267 1999-06-15  Tor Lillqvist  <tml@iki.fi>
18268
18269         * README.win32: Mention using GNU gettext.
18270         * config.h.win32: Enable NLS stuff.
18271         * gtk/makefile.msc: Use GNU gettext.
18272         * gdk/win32/gdkdnd.c: Minor header reorg.
18273         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
18274         cosmetics.
18275         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
18276         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
18277
18278 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
18279
18280         * acinclude.m4
18281         * config.guess
18282         * config.status
18283         * ltconfig
18284         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
18285
18286 1999-05-30  Tor Lillqvist  <tml@iki.fi>
18287
18288         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
18289         SafeAdjustWindowRectEx. Don't override all calls to
18290         AdjustWindowRectEx by it, but use it only in two places: When
18291         creating a new top-level window and when moving a top-level
18292         window.
18293
18294         Use screen coordinate rectangle, not client rectangle, in
18295         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
18296         when we try to place a window so that the decoration (mainly,
18297         title bar) isn't visible.
18298
18299         These changes fix the bug that showed up for instance as the
18300         GIMP's saved top-level windows moving right and down (by an amount
18301         equal to the window decoration) for each session. This bug showed
18302         up also in testgtk's "Saved Position".
18303
18304         gdk_window_resize also redone a bit.
18305
18306 1999-05-25  Tor Lillqvist  <tml@iki.fi>
18307
18308         * gtk/testgtkrc: Add (commented out) Windows-style theme
18309         include line.
18310
18311         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
18312
18313 1999-05-18  Tor Lillqvist  <tml@iki.fi>
18314
18315         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
18316         gdkx.h to a gdk subdirectory, so that applications can include
18317         these with <gdk/*.h> without trouble.
18318
18319         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
18320         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
18321         have their bitmap destroyed.
18322
18323         * gdk/win32/gdk.def: Add gdk_root_parent.
18324
18325 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
18326
18327         * configure.in
18328           gtk-config.in
18329           ltconfig
18330           ltmain.sh     
18331           gtk/Makefile.am: changes to compile nicely (with xlib) 
18332           on BeOS
18333
18334 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
18335
18336         * acinclude.m4
18337         * config.guess
18338         * config.sub
18339         * ltconfig
18340         * ltmain.sh: upgrade to libtool 1.3
18341
18342 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
18343
18344         * gtk/gtkclist.c:
18345         * gtk/gtkctree.c: merges from gtk-1-2
18346
18347 1999-04-25  Tor Lillqvist  <tml@iki.fi>
18348
18349         Support added for building using a GNU toolchain on Win32,
18350         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
18351
18352         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
18353         * config.h.win32: Changes for gcc.
18354         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
18355         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
18356         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
18357         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
18358         Protect shl stuff unavaiilable with mingw32 headers.
18359         * gdk/win32/gdkevents.c: Fix typo.
18360         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
18361         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
18362         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
18363         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
18364         the mingw32 headers.
18365         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
18366         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
18367         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
18368         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
18369         Test for NATIVE_WIN32, not _MSC_VER.
18370         * gtk/gtkmain.c: No use warning about developer version on Win32,
18371         there aren't any non-developer versions anyhow.
18372         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
18373         * gtk/makefile.msc: Use pthread from another directory. Minor other
18374         changes. 
18375
18376 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
18377
18378         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
18379           default filter from the list
18380
18381 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
18382
18383         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
18384          when gtk_widget_grab_default() is called for a widget that
18385          is not within a GtkWindow.
18386
18387 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
18388
18389         * docs/gtk_tut.sgml, examples/clist.c: use a
18390           scrolled window in the clist example. Minor
18391           tutorial fixes.
18392
18393 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
18394
18395         * docs/gtk_tut.sgml: Style check from David King
18396           <dking@youvegotmail.net>
18397
18398 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
18399
18400         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
18401         compile with unknown value of GDK_WINDOWING
18402
18403 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
18404
18405         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
18406         after the rule is fired.
18407         (install-exec-local): Install gdkconfig.h only if the contents are
18408         different from the currently installed gdkconfig.h.
18409
18410 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
18411
18412         * gdk/Makefile.am (configexecincludedir): Rename from 
18413         configincludedir so that gdkconfig.h will be installed 
18414         as part of `make install-exec'. 
18415
18416 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
18417
18418         * acinclude.m4
18419         * config.guess
18420         * config.sub
18421         * ltconfig
18422         * ltmain.sh: upgrade to libtool 1.2f
18423
18424         * autogen.sh: libtool is not required to autogen gtk+
18425
18426         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
18427         needed)
18428
18429 1999-03-18  Tor Lillqvist  <tml@iki.fi>
18430
18431         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
18432         declaring gdk variables exported/imported from the DLL. New image
18433         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
18434         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
18435         GDK_DRAG_PROTO_OLE2.
18436
18437         * gdk/gdk.h: Merge in Win32 version: Two new functions,
18438         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
18439         declared only for the Win32 version, but could be in the X11
18440         version as well. (Needed for a Xlib-less gdk_imlib.)
18441         gdk_color_hash should have only one parameter. Declare
18442         gdk_threads_mutex with GDKVAR.
18443         
18444         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
18445         just one parameter.
18446
18447         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
18448         per pixel, not bits.
18449
18450         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
18451         Fetch bpp (which means bits-per-pixel here) from another place on
18452         Win32. Accept also depth==32 (which we might get on Win32) with
18453         bpp==32.
18454
18455         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
18456         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
18457         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
18458         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
18459         in the backend-dependent directory, not in the common gdk
18460         directory.
18461
18462         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
18463         headers.
18464
18465 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
18466
18467         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
18468         want to use the Gtk+ devel version (which is true, and yes - even i am
18469         currently working with the 1.2.x branch). so everyone reading this, you
18470         probably want to issue
18471         cvs checkout -r glib-1-2 glib
18472         and
18473         cvs checkout -r gtk-1-2 gtk+
18474         as your next two comands.
18475
18476 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
18477
18478         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
18479         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
18480
18481         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
18482         file. strongly deprecated the GTK_HAVE_* macros, we provide
18483         GTK_CHECK_VERSION() for people that need to check for certain
18484         Gtk+ versions.
18485
18486         * gtk/gtkcompat.h: removed this from CVS.
18487         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
18488         idea right from the start, it just didn't seem like that back then.
18489
18490 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
18491
18492         * merges from gtk-1-2:
18493
18494 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
18495
18496         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
18497         item factory class has been created.
18498         (gtk_item_factory_parse_rc): likewise.
18499
18500         * gtk/gtkmenu.c:
18501         keep proper references for old_active_menu_item.
18502         (gtk_menu_reparent): unset the usize of the new parent,
18503         so the menu can sanely be size requested and we don't get nasty screen
18504         artefacts upon next reparentation.
18505         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
18506         enter notify. only synthesize enter notifies if the pointer really is
18507         inside the event window.
18508         (gtk_menu_popdown): use gtk_menu_shell_deselect().
18509         (gtk_menu_popup): move the background setting stuff into
18510         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
18511
18512         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
18513         gtk_menu_shell_select_item() to select the new item.
18514         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
18515         do the right thing for deselection as well.
18516
18517 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
18518
18519         * gtk/gtkwidget.[hc]:
18520         (gtk_widget_accelerators_locked): return whether a widget's accelerators
18521         are locked.
18522
18523         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
18524         existing accelerators if the widget's accelerators are locked.
18525
18526 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
18527
18528         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
18529
18530         * gtk/gtkmenu.c: truely forward key press and key release events to
18531         the menu widget from the toplevel or tearoff window. we can't simply
18532         connect to that, we need to stop further processing of the events as
18533         well.
18534
18535 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
18536
18537         * gtk/gtkmenu.c:
18538         (gtk_menu_key_press): pass event->keyval, event->state to
18539         gtk_accelerator_valid, instead of event->keyval twice.
18540         refuse to install single letter accelerators for menus that use
18541         single letter shortcuts.
18542
18543         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
18544         gtk_menu_ensure_uline_accel_group().
18545
18546         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
18547         which will always return an uline accel group, made
18548         gtk_menu_get_uline_accel_group() return NULL if the group isn't
18549         yet created.
18550
18551 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
18552
18553         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
18554
18555         * gtk/gtkclist.c (gtk_clist_column_title_passive):
18556         Leave button sensitive, trap  button_press, button_release,
18557         motion_notify, enter_notify and leave_notify events instead.
18558         (gtk_clist_column_title_active): disconnect event handler.
18559         (gtk_clist_drag_data_get): fixed memory leak. Reported by
18560         Guillaume Laurent <glaurent@worldnet.fr>
18561
18562 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
18563
18564         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
18565         width/height mixups.
18566
18567         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
18568         if needed.
18569
18570 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
18571
18572         * gtk/testgtk.c (create_item_factory): unref the item factory after
18573         window's destruction.
18574
18575         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
18576         count on the menu shell around the menu item's activation, since the
18577         signal emission may cause menu shell destruction.
18578
18579         * gtk/gtkitemfactory.c:
18580         the previous code leaked one accel group per menu. we use
18581         gtk_menu_get_uline_accel_group() now to fix that, and with that
18582         also create the underline accelerator group of the menus only if
18583         required (i.e. an underline accelerator has been specified).
18584         (gtk_item_factory_construct):
18585         (gtk_item_factory_create_item): removed code that would create an
18586         extra accel group for the menu (and leak references).
18587         (gtk_item_factory_create_item): adapted the underline accelerator
18588         installation code to properly feature gtk_menu_get_uline_accel_group().
18589
18590         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
18591         menu->accel_group, this may return NULL if the accelerator group
18592         hasn't been set yet.
18593         added gtk_menu_get_uline_accel_group() to retrive the underline
18594         accelerator group of the menu, this will be created on demand
18595         and proper care is taken about its reference count.
18596
18597         * gtk/gtkitemfactory.h:
18598         * gtk/gtkitemfactory.c:
18599         dumped the approach of keeping a widgets by action list on the
18600         factory since the factory<->widget destroy negotiation didn't work
18601         and would be hard to get going at all. instead we keep a list of
18602         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
18603         persistant throughout a program's life time).
18604         also, i removed the static const gchar *key_* variables, and made
18605         them inline strings (they weren't actually used anyways).
18606         (gtk_item_factory_add_item): update ifactory->items.
18607         (gtk_item_factory_destroy): destroy ifactory->items (and remove
18608         the item factory pointer from the remaining ifactory widgets).
18609         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
18610         list to find the widget.
18611         (gtk_item_factory_get_item): new function that works around
18612         gtk_item_factory_get_widget() limitations, this function will only
18613         return menu items, even for <Branch> entries.
18614
18615 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
18616
18617         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
18618         font hash table, if we have a GdkFontPrivate entry for this font
18619         already, simply increment its reference count, provided by Olaf Dietsche
18620         <olaf.dietsche+list.gtk@netcologne.de>.
18621
18622         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
18623         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
18624
18625 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
18626
18627         * gtk/gtkcontainer.c:
18628         (gtk_container_add_with_args):
18629         (gtk_container_addv):
18630         (gtk_container_add): before adding a child to a conatiner, make sure
18631         it is (default) constructed, this is neccessary because under certain
18632         circumstances the child will get relized and mapped immediatedly, in
18633         which case it has to be constructed already.
18634
18635 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
18636
18637         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
18638         values > 1 as TRUE also.
18639
18640 1999-03-16  Tor Lillqvist  <tml@iki.fi>
18641
18642         * README.win32: New file.
18643                 
18644         * configure.in: Check for lstat.
18645
18646         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
18647         completeness.
18648
18649         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
18650
18651         * gtk/gtk.def: Removed CRs.
18652
18653         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
18654         ..\gdk\win32).
18655
18656         * gdk/win32/makefile.msc: Correct upwards relative paths.
18657         
18658 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
18659
18660         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
18661           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
18662           it was connecting a void function to expose_event and the int
18663           returning function to the draw signal
18664
18665 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
18666
18667         * configure.in:
18668         Use correct path to libgmodule.la when ref'ing uninstalled copy
18669         of glib.  (Already in stable branch, Bug #417)
18670
18671 1999-03-15  Tor Lillqvist  <tml@iki.fi>
18672
18673         Win32 merge and general portability stuff:
18674                 
18675         * acconfig.h,configure.in: Check for <sys/time.h>.
18676
18677         * gdk/win32: New directory (actually, been there for a while).
18678         
18679         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
18680         NATIVE_WIN32, and use these. Always case fold on Win32. No
18681         backslashed escapes on native Win32.
18682
18683         * gtk/{gtk.def,makefile.msc}: New files.
18684
18685         * gtk/Makefile.am: Add above new files.
18686         
18687         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
18688         instead of <strings.h>.
18689
18690         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
18691         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
18692         <unistd.h> appropriately.
18693
18694         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
18695         Use ABS() (from <glib.h>) instead of abs().
18696         
18697         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
18698         of gtk (and thus glib) headers, so that WIN32 will be
18699         defined. With MS C, include <direct.h> for mkdir prototype.
18700
18701         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
18702         some casts, needed by MS C.
18703
18704         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
18705         implemented).
18706
18707         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
18708         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
18709         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
18710
18711         * gtk/gtkmain.h: Mark variables for export/import on Win32.
18712                 
18713         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
18714         the event is not a hint, or its window is not the slider. Needed
18715         on Win32, at least.
18716
18717         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
18718         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
18719         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
18720         a subdirectory of the Windows directory as gtk system
18721         configuration directory.
18722
18723         * gtk/gtkselection.c: No chunks on Win32.
18724
18725         * gtk/gtksocket.c: Not implemented on Win32.
18726
18727         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
18728
18729         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
18730
18731         * gtk/maketypes.awk: Declare variables with a macro that expands to
18732         necessary export/import magic in the case of Win32.
18733                 
18734         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
18735
18736 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
18737
18738         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
18739         since those were meant only for gdki18n.h.  
18740         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
18741         for widechar tests.
18742         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
18743
18744 1999-03-13  Tor Lillqvist  <tml@iki.fi>
18745
18746         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
18747         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
18748
18749         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
18750         installed) to CFLAGS.
18751
18752         * gdk/Makefile.am: Add rules for gdkconfig.h.
18753
18754         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
18755         APIs.
18756
18757         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
18758         gdkx.h anyway when compiling for X11.
18759         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
18760         general): Merge in Win32 version.
18761         
18762         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
18763         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
18764         expansion (if we don't have HAVE_PWD_H), allow for drive
18765         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
18766         included code from Craig Setera's port to Win32 (the one that uses
18767         X11, and the cygwin dll), even if it probably will be abandoned.
18768
18769         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
18770         the user entered one herself.  This way one can complete *.h and
18771         don't get matches on any .help files, for instance.
18772         
18773 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
18774
18775         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
18776         font hash table, if we have a GdkFontPrivate entry for this font
18777         already, simply increment its reference count, provided by Olaf Dietsche
18778         <olaf.dietsche+list.gtk@netcologne.de>.
18779
18780         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
18781         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
18782
18783 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
18784
18785         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
18786         the number of calls to gdk_draw_point() (and thus to X) by
18787         clipping the points by hand.
18788
18789         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
18790         the clip parameter.
18791         (gtk_handle_box_paint): Only paint the handle if the expose area
18792         intersects it.
18793
18794 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
18795
18796         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
18797
18798 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
18799
18800         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
18801         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
18802
18803 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
18804
18805         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
18806          textmode (O_TEXT) for OS/2 version.
18807
18808 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
18809
18810         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
18811         GtkSpinButton, "input" and "output", to make the output more flexible.
18812         The user has to provide a mapping between adjustment->value and the
18813         output string (and vice versa, if the spin button is editable). 
18814         See testgtk for examples.
18815
18816 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
18817
18818         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
18819         new one.
18820         
18821         * configure.in: set gtk+ version to 1.3.0.